vue-editify 0.0.24 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,211 +1,211 @@
1
- .editify-icon-task:before {
2
- content: '\e605';
3
- }
4
-
5
- .editify-icon-source-view:before {
6
- content: '\e6a1';
7
- }
8
-
9
- .editify-icon-upload:before {
10
- content: '\e637';
11
- }
12
-
13
- .editify-icon-remove:before {
14
- content: '\e852';
15
- }
16
-
17
- .editify-icon-code:before {
18
- content: '\e6a0';
19
- }
20
-
21
- .editify-icon-stop:before {
22
- content: '\e67c';
23
- }
24
-
25
- .editify-icon-loop:before {
26
- content: '\e621';
27
- }
28
-
29
- .editify-icon-autoplay:before {
30
- content: '\e618';
31
- }
32
-
33
- .editify-icon-muted:before {
34
- content: '\ea0f';
35
- }
36
-
37
- .editify-icon-unmuted:before {
38
- content: '\ea11';
39
- }
40
-
41
- .editify-icon-controls:before {
42
- content: '\e627';
43
- }
44
-
45
- .editify-icon-video:before {
46
- content: '\e622';
47
- }
48
-
49
- .editify-icon-single:before {
50
- content: '\e63e';
51
- }
52
-
53
- .editify-icon-rotate:before {
54
- content: '\e652';
55
- }
56
-
57
- .editify-icon-delete:before {
58
- content: '\e60f';
59
- }
60
-
61
- .editify-icon-image:before {
62
- content: '\e6ed';
63
- }
64
-
65
- .editify-icon-brush:before {
66
- content: '\e71c';
67
- }
68
-
69
- .editify-icon-check:before {
70
- content: '\e6cc';
71
- }
72
-
73
- .editify-icon-italic:before {
74
- content: '\e69f';
75
- }
76
-
77
- .editify-icon-redo:before {
78
- content: '\e6df';
79
- }
80
-
81
- .editify-icon-undo:before {
82
- content: '\e713';
83
- }
84
-
85
- .editify-icon-code-block:before {
86
- content: '\e620';
87
- }
88
-
89
- .editify-icon-width:before {
90
- content: '\e674';
91
- }
92
-
93
- .editify-icon-edit:before {
94
- content: '\e817';
95
- }
96
-
97
- .editify-icon-table:before {
98
- content: '\e6c4';
99
- }
100
-
101
- .editify-icon-delete-table:before {
102
- content: '\e7a2';
103
- }
104
-
105
- .editify-icon-align-center:before {
106
- content: '\e783';
107
- }
108
-
109
- .editify-icon-align-justify:before {
110
- content: '\e786';
111
- }
112
-
113
- .editify-icon-align-left:before {
114
- content: '\e787';
115
- }
116
-
117
- .editify-icon-bold:before {
118
- content: '\e78d';
119
- }
120
-
121
- .editify-icon-align-right:before {
122
- content: '\e78f';
123
- }
124
-
125
- .editify-icon-font-color:before {
126
- content: '\e792';
127
- }
128
-
129
- .editify-icon-format-clear:before {
130
- content: '\e793';
131
- }
132
-
133
- .editify-icon-indent-increase:before {
134
- content: '\e798';
135
- }
136
-
137
- .editify-icon-quote:before {
138
- content: '\e79b';
139
- }
140
-
141
- .editify-icon-indent-decrease:before {
142
- content: '\e79c';
143
- }
144
-
145
- .editify-icon-list-ordered:before {
146
- content: '\e79f';
147
- }
148
-
149
- .editify-icon-list-unordered:before {
150
- content: '\e7a0';
151
- }
152
-
153
- .editify-icon-link:before {
154
- content: '\e7a1';
155
- }
156
-
157
- .editify-icon-paragraph:before {
158
- content: '\e7a3';
159
- }
160
-
161
- .editify-icon-separator:before {
162
- content: '\e7a4';
163
- }
164
-
165
- .editify-icon-subscript:before {
166
- content: '\e7a5';
167
- }
168
-
169
- .editify-icon-superscript:before {
170
- content: '\e7a6';
171
- }
172
-
173
- .editify-icon-strikethrough:before {
174
- content: '\e7a7';
175
- }
176
-
177
- .editify-icon-underline:before {
178
- content: '\e7a8';
179
- }
180
-
181
- .editify-icon-text-wrap:before {
182
- content: '\e7a9';
183
- }
184
-
185
- .editify-icon-caret-down:before {
186
- content: '\e78c';
187
- }
188
-
189
- .editify-icon-delete-column:before {
190
- content: '\e784';
191
- }
192
-
193
- .editify-icon-delete-row:before {
194
- content: '\e785';
195
- }
196
-
197
- .editify-icon-insert-column-left:before {
198
- content: '\e788';
199
- }
200
-
201
- .editify-icon-insert-column-right:before {
202
- content: '\e789';
203
- }
204
-
205
- .editify-icon-insert-row-bottom:before {
206
- content: '\e78a';
207
- }
208
-
209
- .editify-icon-insert-row-top:before {
210
- content: '\e78b';
211
- }
1
+ .editify-icon-task:before {
2
+ content: '\e605';
3
+ }
4
+
5
+ .editify-icon-source-view:before {
6
+ content: '\e6a1';
7
+ }
8
+
9
+ .editify-icon-upload:before {
10
+ content: '\e637';
11
+ }
12
+
13
+ .editify-icon-remove:before {
14
+ content: '\e852';
15
+ }
16
+
17
+ .editify-icon-code:before {
18
+ content: '\e6a0';
19
+ }
20
+
21
+ .editify-icon-stop:before {
22
+ content: '\e67c';
23
+ }
24
+
25
+ .editify-icon-loop:before {
26
+ content: '\e621';
27
+ }
28
+
29
+ .editify-icon-autoplay:before {
30
+ content: '\e618';
31
+ }
32
+
33
+ .editify-icon-muted:before {
34
+ content: '\ea0f';
35
+ }
36
+
37
+ .editify-icon-unmuted:before {
38
+ content: '\ea11';
39
+ }
40
+
41
+ .editify-icon-controls:before {
42
+ content: '\e627';
43
+ }
44
+
45
+ .editify-icon-video:before {
46
+ content: '\e622';
47
+ }
48
+
49
+ .editify-icon-single:before {
50
+ content: '\e63e';
51
+ }
52
+
53
+ .editify-icon-rotate:before {
54
+ content: '\e652';
55
+ }
56
+
57
+ .editify-icon-delete:before {
58
+ content: '\e60f';
59
+ }
60
+
61
+ .editify-icon-image:before {
62
+ content: '\e6ed';
63
+ }
64
+
65
+ .editify-icon-brush:before {
66
+ content: '\e71c';
67
+ }
68
+
69
+ .editify-icon-check:before {
70
+ content: '\e6cc';
71
+ }
72
+
73
+ .editify-icon-italic:before {
74
+ content: '\e69f';
75
+ }
76
+
77
+ .editify-icon-redo:before {
78
+ content: '\e6df';
79
+ }
80
+
81
+ .editify-icon-undo:before {
82
+ content: '\e713';
83
+ }
84
+
85
+ .editify-icon-code-block:before {
86
+ content: '\e620';
87
+ }
88
+
89
+ .editify-icon-width:before {
90
+ content: '\e674';
91
+ }
92
+
93
+ .editify-icon-edit:before {
94
+ content: '\e817';
95
+ }
96
+
97
+ .editify-icon-table:before {
98
+ content: '\e6c4';
99
+ }
100
+
101
+ .editify-icon-delete-table:before {
102
+ content: '\e7a2';
103
+ }
104
+
105
+ .editify-icon-align-center:before {
106
+ content: '\e783';
107
+ }
108
+
109
+ .editify-icon-align-justify:before {
110
+ content: '\e786';
111
+ }
112
+
113
+ .editify-icon-align-left:before {
114
+ content: '\e787';
115
+ }
116
+
117
+ .editify-icon-bold:before {
118
+ content: '\e78d';
119
+ }
120
+
121
+ .editify-icon-align-right:before {
122
+ content: '\e78f';
123
+ }
124
+
125
+ .editify-icon-font-color:before {
126
+ content: '\e792';
127
+ }
128
+
129
+ .editify-icon-format-clear:before {
130
+ content: '\e793';
131
+ }
132
+
133
+ .editify-icon-indent-increase:before {
134
+ content: '\e798';
135
+ }
136
+
137
+ .editify-icon-quote:before {
138
+ content: '\e79b';
139
+ }
140
+
141
+ .editify-icon-indent-decrease:before {
142
+ content: '\e79c';
143
+ }
144
+
145
+ .editify-icon-list-ordered:before {
146
+ content: '\e79f';
147
+ }
148
+
149
+ .editify-icon-list-unordered:before {
150
+ content: '\e7a0';
151
+ }
152
+
153
+ .editify-icon-link:before {
154
+ content: '\e7a1';
155
+ }
156
+
157
+ .editify-icon-paragraph:before {
158
+ content: '\e7a3';
159
+ }
160
+
161
+ .editify-icon-separator:before {
162
+ content: '\e7a4';
163
+ }
164
+
165
+ .editify-icon-subscript:before {
166
+ content: '\e7a5';
167
+ }
168
+
169
+ .editify-icon-superscript:before {
170
+ content: '\e7a6';
171
+ }
172
+
173
+ .editify-icon-strikethrough:before {
174
+ content: '\e7a7';
175
+ }
176
+
177
+ .editify-icon-underline:before {
178
+ content: '\e7a8';
179
+ }
180
+
181
+ .editify-icon-text-wrap:before {
182
+ content: '\e7a9';
183
+ }
184
+
185
+ .editify-icon-caret-down:before {
186
+ content: '\e78c';
187
+ }
188
+
189
+ .editify-icon-delete-column:before {
190
+ content: '\e784';
191
+ }
192
+
193
+ .editify-icon-delete-row:before {
194
+ content: '\e785';
195
+ }
196
+
197
+ .editify-icon-insert-column-left:before {
198
+ content: '\e788';
199
+ }
200
+
201
+ .editify-icon-insert-column-right:before {
202
+ content: '\e789';
203
+ }
204
+
205
+ .editify-icon-insert-row-bottom:before {
206
+ content: '\e78a';
207
+ }
208
+
209
+ .editify-icon-insert-row-top:before {
210
+ content: '\e78b';
211
+ }
package/src/index.js CHANGED
@@ -1,24 +1,24 @@
1
- //引入AlexElement
2
- import AlexElement from 'alex-editor'
3
- //引入组件
4
- import Editify from './Editify'
5
- //引入图标样式
6
- import './icon/iconfont.css'
7
- //引入国际化
8
- import i18n from './locale'
9
- //版本号
10
- const version = '0.0.24'
11
- //安装函数
12
- const install = (app, props) => {
13
- const locale = (props ? props.locale : 'zh_CN') || 'zh_CN'
14
- app.provide('$editTrans', i18n(locale))
15
- app.provide('$editLocale', locale)
16
- app.component(Editify.name, Editify)
17
- }
18
-
19
- const stdin_default = {
20
- install,
21
- version
22
- }
23
-
24
- export { stdin_default as default, install, version, AlexElement }
1
+ //引入AlexElement
2
+ import AlexElement from 'alex-editor'
3
+ //引入组件
4
+ import Editify from './Editify'
5
+ //引入图标样式
6
+ import './icon/iconfont.css'
7
+ //引入国际化
8
+ import i18n from './locale'
9
+ //版本号
10
+ const version = '0.0.26'
11
+ //安装函数
12
+ const install = (app, props) => {
13
+ const locale = (props ? props.locale : 'zh_CN') || 'zh_CN'
14
+ app.provide('$editTrans', i18n(locale))
15
+ app.provide('$editLocale', locale)
16
+ app.component(Editify.name, Editify)
17
+ }
18
+
19
+ const stdin_default = {
20
+ install,
21
+ version
22
+ }
23
+
24
+ export { stdin_default as default, install, version, AlexElement }
@@ -1,84 +1,84 @@
1
- export default {
2
- textWrapUp: 'Up feed',
3
- textWrapDown: 'Down feed',
4
- insertRowTop: 'Insert row forward',
5
- insertRowBottom: 'Insert row backward',
6
- insertColumnLeft: 'Insert column forward',
7
- insertColumnRight: 'Insert column backward',
8
- deleteRow: 'Delete rows',
9
- deleteColumn: 'Delete column',
10
- deleteTable: 'Delete table',
11
- selectLanguages: 'Select language',
12
- autoRecognize: 'Auto',
13
- linkAddress: 'Link address',
14
- newWindowOpen: 'Open in new window',
15
- removeLink: 'Remove',
16
- viewLink: 'View',
17
- linkUrlEnterPlaceholder: 'Please enter the link address',
18
- linkTextEnterPlaceholder: 'Please enter the link text',
19
- width30: 'Set the width to 30%',
20
- width50: 'Set the width to 50%',
21
- width100: 'Set the width to 100%',
22
- deleteImage: 'Delete image',
23
- autoplay: 'Autoplay',
24
- disabledAutoplay: 'Turn off autoplay',
25
- loop: 'Loop',
26
- disabledLoop: 'Close loop',
27
- muted: 'Mute',
28
- unmuted: 'Unmute',
29
- controls: 'Play control',
30
- deleteVideo: 'Delete video',
31
- heading: 'Heading',
32
- bold: 'Bold',
33
- h1: 'Heading 1',
34
- h2: 'Heading 2',
35
- h3: 'Heading 3',
36
- h4: 'Heading 4',
37
- h5: 'Heading 5',
38
- h6: 'Heading 6',
39
- text: 'Paragraph',
40
- italic: 'Italic',
41
- orderList: 'Ordered list',
42
- unorderList: 'Unordered list',
43
- strikethrough: 'Strikethrough',
44
- underline: 'Underline',
45
- code: 'Inline code',
46
- superscript: 'Superscript',
47
- subscript: 'Subscript',
48
- fontSize: 'Font size',
49
- fontFamily: 'Font family',
50
- defaultFontFamily: 'Default',
51
- foreColor: 'Forecolor',
52
- defaultColor: 'Default color',
53
- backColor: 'Backcolor',
54
- formatClear: 'Clear format',
55
- defaultSize: 'Default',
56
- totalWordCount: 'Total word count: ',
57
- align: 'Alignment mode',
58
- undo: 'Undo',
59
- redo: 'Redo',
60
- quote: 'Quote',
61
- lineHeight: 'Line height',
62
- indent: 'Indent',
63
- insertLink: 'Insert',
64
- insertImage: 'Insert',
65
- remoteImage: 'Remote',
66
- uploadImage: 'Upload',
67
- imageUrlPlaceholder: 'Please enter the image address',
68
- insert: 'Insert',
69
- insertVideo: 'Insert',
70
- remoteVideo: 'Remote',
71
- uploadVideo: 'Upload',
72
- videoUrlPlaceholder: 'Please enter the video address',
73
- insertTable: 'Insert table',
74
- inserCodeBlock: 'Insert code block',
75
- sourceView: 'Code view',
76
- task: 'Task',
77
- indentIncrease: 'Increase indent',
78
- indentDecrease: 'Reduce indent',
79
- alignLeft: 'Align left',
80
- alignCenter: 'Align center',
81
- alignRight: 'Align right',
82
- alignJustify: 'Align justify',
83
- defaultLineHeight: 'Default'
84
- }
1
+ export default {
2
+ textWrapUp: 'Up feed',
3
+ textWrapDown: 'Down feed',
4
+ insertRowTop: 'Insert row forward',
5
+ insertRowBottom: 'Insert row backward',
6
+ insertColumnLeft: 'Insert column forward',
7
+ insertColumnRight: 'Insert column backward',
8
+ deleteRow: 'Delete rows',
9
+ deleteColumn: 'Delete column',
10
+ deleteTable: 'Delete table',
11
+ selectLanguages: 'Select language',
12
+ autoRecognize: 'Auto',
13
+ linkAddress: 'Link address',
14
+ newWindowOpen: 'Open in new window',
15
+ removeLink: 'Remove',
16
+ viewLink: 'View',
17
+ linkUrlEnterPlaceholder: 'Please enter the link address',
18
+ linkTextEnterPlaceholder: 'Please enter the link text',
19
+ width30: 'Set the width to 30%',
20
+ width50: 'Set the width to 50%',
21
+ width100: 'Set the width to 100%',
22
+ deleteImage: 'Delete image',
23
+ autoplay: 'Autoplay',
24
+ disabledAutoplay: 'Turn off autoplay',
25
+ loop: 'Loop',
26
+ disabledLoop: 'Close loop',
27
+ muted: 'Mute',
28
+ unmuted: 'Unmute',
29
+ controls: 'Play control',
30
+ deleteVideo: 'Delete video',
31
+ heading: 'Heading',
32
+ bold: 'Bold',
33
+ h1: 'Heading 1',
34
+ h2: 'Heading 2',
35
+ h3: 'Heading 3',
36
+ h4: 'Heading 4',
37
+ h5: 'Heading 5',
38
+ h6: 'Heading 6',
39
+ text: 'Paragraph',
40
+ italic: 'Italic',
41
+ orderList: 'Ordered list',
42
+ unorderList: 'Unordered list',
43
+ strikethrough: 'Strikethrough',
44
+ underline: 'Underline',
45
+ code: 'Inline code',
46
+ superscript: 'Superscript',
47
+ subscript: 'Subscript',
48
+ fontSize: 'Font size',
49
+ fontFamily: 'Font family',
50
+ defaultFontFamily: 'Default',
51
+ foreColor: 'Forecolor',
52
+ defaultColor: 'Default color',
53
+ backColor: 'Backcolor',
54
+ formatClear: 'Clear format',
55
+ defaultSize: 'Default',
56
+ totalWordCount: 'Total word count: ',
57
+ align: 'Alignment mode',
58
+ undo: 'Undo',
59
+ redo: 'Redo',
60
+ quote: 'Quote',
61
+ lineHeight: 'Line height',
62
+ indent: 'Indent',
63
+ insertLink: 'Insert',
64
+ insertImage: 'Insert',
65
+ remoteImage: 'Remote',
66
+ uploadImage: 'Upload',
67
+ imageUrlPlaceholder: 'Please enter the image address',
68
+ insert: 'Insert',
69
+ insertVideo: 'Insert',
70
+ remoteVideo: 'Remote',
71
+ uploadVideo: 'Upload',
72
+ videoUrlPlaceholder: 'Please enter the video address',
73
+ insertTable: 'Insert table',
74
+ inserCodeBlock: 'Insert code block',
75
+ sourceView: 'Code view',
76
+ task: 'Task',
77
+ indentIncrease: 'Increase indent',
78
+ indentDecrease: 'Reduce indent',
79
+ alignLeft: 'Align left',
80
+ alignCenter: 'Align center',
81
+ alignRight: 'Align right',
82
+ alignJustify: 'Align justify',
83
+ defaultLineHeight: 'Default'
84
+ }
@@ -1,14 +1,14 @@
1
- import en_US from './en_US'
2
- import zh_CN from './zh_CN'
3
-
4
- //翻译词组
5
- const translations = {
6
- zh_CN,
7
- en_US
8
- }
9
-
10
- export default locale => {
11
- return key => {
12
- return translations[locale][key]
13
- }
14
- }
1
+ import en_US from './en_US'
2
+ import zh_CN from './zh_CN'
3
+
4
+ //翻译词组
5
+ const translations = {
6
+ zh_CN,
7
+ en_US
8
+ }
9
+
10
+ export default locale => {
11
+ return key => {
12
+ return translations[locale][key]
13
+ }
14
+ }