Skip to content

Commit

Permalink
update filerobot image editor
Browse files Browse the repository at this point in the history
  • Loading branch information
sanluan committed Jul 26, 2024
1 parent 2cc988e commit 0a59dad
Show file tree
Hide file tree
Showing 9 changed files with 237 additions and 167 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
window.TIMYMCE_FILETYPES = "<@sys.configData code='safe'>${object.allow_files!}</@sys.configData>";
window.CKEDITOR_BASEPATH = "${(parentSite!site).dynamicPath}resource/plugins/ckeditor/";
window.CKEDITOR_LANGUAGE = "<@t.page 'ckeditor.lang'/>";
window.LANGUAGE = "<@t.page 'lang'/>";
window.LOADSCRIPTS_BASE = "${base}";
</script>
<script src="${base}/resource/plugins/jquery/jquery.min.js"></script>
Expand All @@ -141,8 +142,6 @@
<script src="${base}/resource/plugins/encrypt/sha512.min.js"></script>
<script src="${base}/resource/plugins/spectrum/spectrum.min.js"></script>
<script src="${base}/resource/plugins/spectrum/i18n/jquery.spectrum-<@t.page 'spectrum.lang'/>.js"></script>
<script src="${base}/resource/plugins/filerobot-image-editor/config.js"></script>
<script src="${base}/resource/plugins/filerobot-image-editor/lang/<@t.page 'lang'/>.js"></script>
<script src="${base}/resource/js/loadscripts.js"></script>
<script src="${base}/resource/js/loadscripts.config.js"></script>
<script src="${base}/resource/js/tinymce.config.js"></script>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
$uploadWrap.after("<div class=\"image-editor\"></div>");
$this = $uploadWrap.parent().find(".image-editor");
}
$this.on("click","button",function(){
return false;
});
var index = window.imageEditor.index++;
var dataId = "imageEditor_"+index;
var widthInput=$uploadWrap.find("input[name=width]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
index: 0
};
window.imageEditor = {
resources: [window.LOADSCRIPTS_BASE + "/resource/plugins/filerobot-image-editor/filerobot-image-editor.min.js"],
resources: [window.LOADSCRIPTS_BASE + "/resource/plugins/filerobot-image-editor/filerobot-image-editor.min.js",window.LOADSCRIPTS_BASE + "/resource/plugins/filerobot-image-editor/config.js",window.LOADSCRIPTS_BASE + "/resource/plugins/filerobot-image-editor/lang/" + window.LANGUAGE+".js"],
initd: false,
index: 0
};
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
back: "Back",
loading: "Loading...",
resetOperations: "Reset/delete all operations",
changesLoseConfirmation: "All changes will be lost",
changesLoseConfirmationHint: "Are you sure you want to continue?",
changesLoseWarningHint:
"If you press button “reset” your changes will lost. Would you like to continue?",
discardChangesWarningHint:
"If you close modal, your last change will not be saved.",
cancel: "Cancel",
continue: "Continue",
apply: "Apply",
warning: "Warning",
confirm: "Confirm",
discardChanges: "Discard changes",
undoTitle: "Undo last operation",
redoTitle: "Redo last operation",
showImageTitle: "Show original image",
Expand All @@ -19,9 +24,10 @@
finetuneTab: "Finetune",
filtersTab: "Filters",
watermarkTab: "Watermark",
annotateTab: "Draw",
annotateTabLabel: "Annotate",
resize: "Resize",
resizeTab: "Resize",
imageName: "Image name",
invalidImageError: "Invalid image provided.",
uploadImageError: "Error while uploading the image.",
areNotImages: "are not images",
Expand All @@ -47,6 +53,7 @@
flipY: "Flip Y",
hsvTool: "HSV",
hue: "Hue",
brightness: "Brightness",
saturation: "Saturation",
value: "Value",
imageTool: "Image",
Expand All @@ -63,7 +70,6 @@
resizeWidthTitle: "Width in pixels",
resizeHeightTitle: "Height in pixels",
toggleRatioLockTitle: "Toggle ratio lock",
reset: "Reset",
resetSize: "Reset to original image size",
rotateTool: "Rotate",
textTool: "Text",
Expand All @@ -75,19 +81,23 @@
lineHeight: "Line height",
warmthTool: "Warmth",
addWatermark: "+ Add watermark",
addTextWatermark: "+ Add text watermark",
addWatermarkTitle: "Choose the watermark type",
uploadWatermark: "Upload watermark",
addWatermarkAsText: "Add as text",
padding: "Padding",
paddings: "Paddings",
shadow: "Shadow",
horizontal: "Horizontal",
vertical: "Vertical",
blur: "Blur",
opacity: "Opacity",
transparency: "Transparency",
position: "Position",
stroke: "Stroke",
saveAsModalLabel: "Save the image as",
saveAsModalTitle: "Save as",
extension: "Extension",
format: "Format",
nameIsRequired: "Name is required.",
quality: "Quality",
imageDimensionsHoverTitle: "Saved image size (width x height)",
Expand All @@ -96,4 +106,11 @@
actualSize: "Actual size (100%)",
fitSize: "Fit size",
addImageTitle: "Select image to add...",
mutualizedFailedToLoadImg: "Failed to load image.",
tabsMenu: "Menu",
download: "Download",
width: "Width",
height: "Height",
plus: "+",
cropItemNoEffect: "No preview available for this crop item",
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,97 +3,114 @@
save: "保存",
saveAs: "名前を付けて保存",
back: "戻る",
loading: "読み込んでいます...",
resetOperations: "すべての操作をリセット/削除",
changesLoseConfirmation: "すべての変更が失われます"
changesLoseConfirmationHint: "続行しますか?",
loading: "読み込み中...",
resetOperations: "すべての操作をリセット/削除します",
changesLoseWarningHint を使用します
"リセット」ボタンを押すと、変更が失われます。続けてみませんか?",
discardChangesWarningHint です
"モーダルを閉じると、最後の変更は保存されません。",
cancel: "キャンセル",
continue: "続行",
undoTitle: "最後の操作をキャンセル",
redoTitle: "最後の操作を復元する",
apply: "適用する",
warning: "警告",
confirm: "確認",
discardChanges: "変更を破棄する",
undoTitle: "最後の操作を元に戻す",
redoTitle: "最後の操作をやり直し",
showImageTitle: "元の画像を表示",
zoomInTitle: "ズームアウト",
zoomOutTitle: "ズームイン",
toggleZoomMenuTitle: "トグルズームメニュー",
zoomInTitle: "ズームイン",
zoomOutTitle: "ズームアウト",
toggleZoomMenuTitle: "ズームメニューを切り替えます",
adjustTab: "調整",
finetuneTab: "微調整",
finetuneTab: "ファインチューン",
filtersTab: "フィルター",
watermarkTab: "透かし",
annotateTab: "プロット",
watermarkTab: "ウォーターマーク",
annotateTabLabel: "注釈を付ける",
resize: "サイズ変更",
resizeTab: "サイズ",
invalidImageError: "無効な画像が指定されました",
resizeTab: "サイズ変更",
imageName: "画像名",
invalidImageError: "無効な画像が指定されました。",
uploadImageError: "画像のアップロード中にエラーが発生しました。",
areNotImages: "画像はありません",
areNotImages: "画像ではありません",
isNotImage: "画像ではありません",
toBeUploaded: "アップロード",
cropTool: "クロップ",
toBeUploaded: "アップロード予定",
cropTool: "切り抜き",
original: "オリジナル",
custom: "カスタム",
square: "正方形",
landscape: "風景",
portrait: "肖像画",
portrait: "ポートレート",
ellipse: "楕円",
classicTv: "クラシックテレビ",
cinemascope: "シネマティックプロポーション",
classicTv: "クラシックTV",
cinemascope: "シネマスコープ",
arrowTool: "矢印",
blurTool: "ぼかし",
brightnessTool: "明るさ",
contrastTool: "コントラスト",
ellipseTool: "楕円",
unFlipX: "横向きフリップをキャンセル",
flipX: "横に反転",
unFlipY: "ポートレートフリップをキャンセル",
flipY: "垂直に反転",
hsvTool: "色相/彩度",
unFlipX: "Xを反転解除",
flipX: "Xを反転",
unFlipY: "Yを反転解除",
flipY: "Yを反転",
hsvTool: "HSV",
hue: "色相",
brightness: "明るさ",
saturation: "彩度",
value: "明るさ"
value: "値",
imageTool: "画像",
importing: "インポート...",
addImage: "画像を追加",
importing: "インポートしています...",
addImage: "+ 画像を追加",
uploadImage: "画像をアップロード",
fromGallery: "ギャラリーから",
lineTool: "ライン",
penTool: "ブラシ",
penTool: "ペン",
polygonTool: "ポリゴン",
sides: "側面",
rectangleTool: "長方形",
cornerRadius: "コーナー半径",
resizeWidthTitle: "幅ピクセル",
resizeHeightTitle: "高さピクセル",
toggleRatioLockTitle: "ロック率",
reset: "リセット",
resetSize: "元の画像サイズに戻す"
resizeWidthTitle: "ピクセル単位の幅",
resizeHeightTitle: "ピクセル単位の高さ",
toggleRatioLockTitle: "トグル比率ロック",
resetSize: "元の画像サイズにリセット",
rotateTool: "回転",
textTool: "テキスト",
textSpacings: "テキスト間隔",
textAlignment: "アライメント",
fontFamily: "フォント",
textSpacings: "テキストの間隔",
textAlignment: "テキストの配置",
fontFamily: "フォントファミリー",
size: "サイズ",
letterSpacing: "文字間隔",
letterSpacing: "文字の間隔",
lineHeight: "行の高さ",
warmthTool: "暖かい",
addWatermark: "透かしを追加",
addWatermarkTitle: "透かしの種類を選択",
uploadWatermark: "透かし画像をアップロード",
addWatermarkAsText: "透かしテキストを追加する",
warmthTool: "ぬくもり",
addWatermark: "+ ウォーターマークを追加",
addTextWatermark: "+ テキストの透かしを追加",
addWatermarkTitle: "ウォーターマークの種類を選択してください",
uploadWatermark: "ウォーターマークをアップロード",
addWatermarkAsText: "テキストとして追加",
padding: "パディング",
paddings: "パディング",
shadow: "影",
horizontal: "水平",
vertical: "垂直"
blur: "ぼかし"
vertical: "vertical",
blur: "ぼかし",
opacity: "不透明度",
position: "場所",
transparency: "透明性",
position: "位置",
stroke: "ストローク",
saveAsModalLabel: "画像として保存",
extension: "拡張機能",
nameIsRequired: "名前が必要です",
saveAsModalTitle: "名前を付けて保存",
extension: "拡張子",
format: "format",
nameIsRequired: "名前は必須です。",
quality: "品質",
imageDimensionsHoverTitle: "画像サイズ(幅x高さ)を保存"
imageDimensionsHoverTitle: "保存された画像サイズ (幅 x 高さ)",
cropSizeLowerThanResizedWarning:
"選択したトリミング領域は、適用されたサイズ変更よりも小さいため、品質が低下する可能性があることに注意してください"
"選択したトリミング領域は、適用されたサイズ変更よりも小さいため、品質が低下する可能性があることに注意してください",
actualSize: "実際のサイズ (100%)",
fitSize: "アダプティブサイズ",
fitSize: "フィットサイズ",
addImageTitle: "追加する画像を選択してください...",
mutualizedFailedToLoadImg: "イメージの読み込みに失敗しました。",
tabsMenu: "メニュー",
download: "ダウンロード",
width: "幅",
height: "高さ",
plus: "+",
cropItemNoEffect: "この切り抜きアイテムのプレビューはありません",
};
Loading

0 comments on commit 0a59dad

Please sign in to comment.