From 9bdafe8221a5bad09a98505baec3e13bc18f899a Mon Sep 17 00:00:00 2001 From: Muah Date: Mon, 19 Oct 2020 13:40:10 +0200 Subject: [PATCH] add trans for img editor btns --- .../js/components/image/editor/controls.vue | 54 ++--- .../image/editor/filters/controls.vue | 21 +- .../components/image/editor/filters/index.vue | 114 +++++------ .../image/editor/filters/presets.vue | 16 +- .../js/components/image/editor/main.vue | 69 +++---- .../assets/js/components/manager.vue | 184 +++++++++--------- src/resources/lang/en/messages.php | 100 ++++++---- src/resources/views/_manager.blade.php | 32 +++ 8 files changed, 337 insertions(+), 253 deletions(-) diff --git a/src/resources/assets/js/components/image/editor/controls.vue b/src/resources/assets/js/components/image/editor/controls.vue index e63ab16..283e065 100644 --- a/src/resources/assets/js/components/image/editor/controls.vue +++ b/src/resources/assets/js/components/image/editor/controls.vue @@ -8,8 +8,10 @@ :disabled="processing" class="btn-plain" @click.stop="operations(item.op)"> - + + + @@ -27,51 +29,51 @@ export default { controlsList: [ { trans: 'move', - op: 'move', - mode: 'move', - icon: 'arrows' + op : 'move', + mode : 'move', + icon : 'arrows' }, { trans: 'crop', - op: 'crop', - mode: 'crop', - icon: 'crop' + op : 'crop', + mode : 'crop', + icon : 'crop' }, { trans: 'crop_zoom_in', - op: 'zoom-in', - mode: null, - icon: 'search-plus' + op : 'zoom-in', + mode : null, + icon : 'search-plus' }, { trans: 'crop_zoom_out', - op: 'zoom-out', - mode: null, - icon: 'search-minus' + op : 'zoom-out', + mode : null, + icon : 'search-minus' }, { trans: 'crop_rotate_left', - op: 'rotate-left', - mode: null, - icon: 'rotate-left' + op : 'rotate-left', + mode : null, + icon : 'rotate-left' }, { trans: 'crop_rotate_right', - op: 'rotate-right', - mode: null, - icon: 'rotate-right' + op : 'rotate-right', + mode : null, + icon : 'rotate-right' }, { trans: 'crop_flip_horizontal', - op: 'flip-horizontal', - mode: null, - icon: 'arrows-h' + op : 'flip-horizontal', + mode : null, + icon : 'arrows-h' }, { trans: 'crop_flip_vertical', - op: 'flip-vertical', - mode: null, - icon: 'arrows-v' + op : 'flip-vertical', + mode : null, + icon : 'arrows-v' } ] } diff --git a/src/resources/assets/js/components/image/editor/filters/controls.vue b/src/resources/assets/js/components/image/editor/filters/controls.vue index 02322cc..c288bd2 100644 --- a/src/resources/assets/js/components/image/editor/filters/controls.vue +++ b/src/resources/assets/js/components/image/editor/filters/controls.vue @@ -1,13 +1,15 @@