vue-editify 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,219 +1,219 @@
1
- .editify-icon-full-screen:before {
2
- content: '\e62f';
3
- }
4
-
5
- .editify-icon-auto-width:before {
6
- content: '\e61d';
7
- }
8
-
9
- .editify-icon-task:before {
10
- content: '\e605';
11
- }
12
-
13
- .editify-icon-source-view:before {
14
- content: '\e6a1';
15
- }
16
-
17
- .editify-icon-upload:before {
18
- content: '\e637';
19
- }
20
-
21
- .editify-icon-remove:before {
22
- content: '\e852';
23
- }
24
-
25
- .editify-icon-code:before {
26
- content: '\e6a0';
27
- }
28
-
29
- .editify-icon-stop:before {
30
- content: '\e67c';
31
- }
32
-
33
- .editify-icon-loop:before {
34
- content: '\e621';
35
- }
36
-
37
- .editify-icon-autoplay:before {
38
- content: '\e618';
39
- }
40
-
41
- .editify-icon-muted:before {
42
- content: '\ea0f';
43
- }
44
-
45
- .editify-icon-unmuted:before {
46
- content: '\ea11';
47
- }
48
-
49
- .editify-icon-controls:before {
50
- content: '\e627';
51
- }
52
-
53
- .editify-icon-video:before {
54
- content: '\e622';
55
- }
56
-
57
- .editify-icon-single:before {
58
- content: '\e63e';
59
- }
60
-
61
- .editify-icon-rotate:before {
62
- content: '\e652';
63
- }
64
-
65
- .editify-icon-delete:before {
66
- content: '\e60f';
67
- }
68
-
69
- .editify-icon-image:before {
70
- content: '\e6ed';
71
- }
72
-
73
- .editify-icon-brush:before {
74
- content: '\e71c';
75
- }
76
-
77
- .editify-icon-check:before {
78
- content: '\e6cc';
79
- }
80
-
81
- .editify-icon-italic:before {
82
- content: '\e69f';
83
- }
84
-
85
- .editify-icon-redo:before {
86
- content: '\e6df';
87
- }
88
-
89
- .editify-icon-undo:before {
90
- content: '\e713';
91
- }
92
-
93
- .editify-icon-code-block:before {
94
- content: '\e620';
95
- }
96
-
97
- .editify-icon-width:before {
98
- content: '\e674';
99
- }
100
-
101
- .editify-icon-edit:before {
102
- content: '\e817';
103
- }
104
-
105
- .editify-icon-table:before {
106
- content: '\e6c4';
107
- }
108
-
109
- .editify-icon-delete-table:before {
110
- content: '\e7a2';
111
- }
112
-
113
- .editify-icon-align-center:before {
114
- content: '\e783';
115
- }
116
-
117
- .editify-icon-align-justify:before {
118
- content: '\e786';
119
- }
120
-
121
- .editify-icon-align-left:before {
122
- content: '\e787';
123
- }
124
-
125
- .editify-icon-bold:before {
126
- content: '\e78d';
127
- }
128
-
129
- .editify-icon-align-right:before {
130
- content: '\e78f';
131
- }
132
-
133
- .editify-icon-font-color:before {
134
- content: '\e792';
135
- }
136
-
137
- .editify-icon-format-clear:before {
138
- content: '\e793';
139
- }
140
-
141
- .editify-icon-indent-increase:before {
142
- content: '\e798';
143
- }
144
-
145
- .editify-icon-quote:before {
146
- content: '\e79b';
147
- }
148
-
149
- .editify-icon-indent-decrease:before {
150
- content: '\e79c';
151
- }
152
-
153
- .editify-icon-list-ordered:before {
154
- content: '\e79f';
155
- }
156
-
157
- .editify-icon-list-unordered:before {
158
- content: '\e7a0';
159
- }
160
-
161
- .editify-icon-link:before {
162
- content: '\e7a1';
163
- }
164
-
165
- .editify-icon-paragraph:before {
166
- content: '\e7a3';
167
- }
168
-
169
- .editify-icon-separator:before {
170
- content: '\e7a4';
171
- }
172
-
173
- .editify-icon-subscript:before {
174
- content: '\e7a5';
175
- }
176
-
177
- .editify-icon-superscript:before {
178
- content: '\e7a6';
179
- }
180
-
181
- .editify-icon-strikethrough:before {
182
- content: '\e7a7';
183
- }
184
-
185
- .editify-icon-underline:before {
186
- content: '\e7a8';
187
- }
188
-
189
- .editify-icon-text-wrap:before {
190
- content: '\e7a9';
191
- }
192
-
193
- .editify-icon-caret-down:before {
194
- content: '\e78c';
195
- }
196
-
197
- .editify-icon-delete-column:before {
198
- content: '\e784';
199
- }
200
-
201
- .editify-icon-delete-row:before {
202
- content: '\e785';
203
- }
204
-
205
- .editify-icon-insert-column-left:before {
206
- content: '\e788';
207
- }
208
-
209
- .editify-icon-insert-column-right:before {
210
- content: '\e789';
211
- }
212
-
213
- .editify-icon-insert-row-bottom:before {
214
- content: '\e78a';
215
- }
216
-
217
- .editify-icon-insert-row-top:before {
218
- content: '\e78b';
219
- }
1
+ .editify-icon-full-screen:before {
2
+ content: '\e62f';
3
+ }
4
+
5
+ .editify-icon-auto-width:before {
6
+ content: '\e61d';
7
+ }
8
+
9
+ .editify-icon-task:before {
10
+ content: '\e605';
11
+ }
12
+
13
+ .editify-icon-source-view:before {
14
+ content: '\e6a1';
15
+ }
16
+
17
+ .editify-icon-upload:before {
18
+ content: '\e637';
19
+ }
20
+
21
+ .editify-icon-remove:before {
22
+ content: '\e852';
23
+ }
24
+
25
+ .editify-icon-code:before {
26
+ content: '\e6a0';
27
+ }
28
+
29
+ .editify-icon-stop:before {
30
+ content: '\e67c';
31
+ }
32
+
33
+ .editify-icon-loop:before {
34
+ content: '\e621';
35
+ }
36
+
37
+ .editify-icon-autoplay:before {
38
+ content: '\e618';
39
+ }
40
+
41
+ .editify-icon-muted:before {
42
+ content: '\ea0f';
43
+ }
44
+
45
+ .editify-icon-unmuted:before {
46
+ content: '\ea11';
47
+ }
48
+
49
+ .editify-icon-controls:before {
50
+ content: '\e627';
51
+ }
52
+
53
+ .editify-icon-video:before {
54
+ content: '\e622';
55
+ }
56
+
57
+ .editify-icon-single:before {
58
+ content: '\e63e';
59
+ }
60
+
61
+ .editify-icon-rotate:before {
62
+ content: '\e652';
63
+ }
64
+
65
+ .editify-icon-delete:before {
66
+ content: '\e60f';
67
+ }
68
+
69
+ .editify-icon-image:before {
70
+ content: '\e6ed';
71
+ }
72
+
73
+ .editify-icon-brush:before {
74
+ content: '\e71c';
75
+ }
76
+
77
+ .editify-icon-check:before {
78
+ content: '\e6cc';
79
+ }
80
+
81
+ .editify-icon-italic:before {
82
+ content: '\e69f';
83
+ }
84
+
85
+ .editify-icon-redo:before {
86
+ content: '\e6df';
87
+ }
88
+
89
+ .editify-icon-undo:before {
90
+ content: '\e713';
91
+ }
92
+
93
+ .editify-icon-code-block:before {
94
+ content: '\e620';
95
+ }
96
+
97
+ .editify-icon-width:before {
98
+ content: '\e674';
99
+ }
100
+
101
+ .editify-icon-edit:before {
102
+ content: '\e817';
103
+ }
104
+
105
+ .editify-icon-table:before {
106
+ content: '\e6c4';
107
+ }
108
+
109
+ .editify-icon-delete-table:before {
110
+ content: '\e7a2';
111
+ }
112
+
113
+ .editify-icon-align-center:before {
114
+ content: '\e783';
115
+ }
116
+
117
+ .editify-icon-align-justify:before {
118
+ content: '\e786';
119
+ }
120
+
121
+ .editify-icon-align-left:before {
122
+ content: '\e787';
123
+ }
124
+
125
+ .editify-icon-bold:before {
126
+ content: '\e78d';
127
+ }
128
+
129
+ .editify-icon-align-right:before {
130
+ content: '\e78f';
131
+ }
132
+
133
+ .editify-icon-font-color:before {
134
+ content: '\e792';
135
+ }
136
+
137
+ .editify-icon-format-clear:before {
138
+ content: '\e793';
139
+ }
140
+
141
+ .editify-icon-indent-increase:before {
142
+ content: '\e798';
143
+ }
144
+
145
+ .editify-icon-quote:before {
146
+ content: '\e79b';
147
+ }
148
+
149
+ .editify-icon-indent-decrease:before {
150
+ content: '\e79c';
151
+ }
152
+
153
+ .editify-icon-list-ordered:before {
154
+ content: '\e79f';
155
+ }
156
+
157
+ .editify-icon-list-unordered:before {
158
+ content: '\e7a0';
159
+ }
160
+
161
+ .editify-icon-link:before {
162
+ content: '\e7a1';
163
+ }
164
+
165
+ .editify-icon-paragraph:before {
166
+ content: '\e7a3';
167
+ }
168
+
169
+ .editify-icon-separator:before {
170
+ content: '\e7a4';
171
+ }
172
+
173
+ .editify-icon-subscript:before {
174
+ content: '\e7a5';
175
+ }
176
+
177
+ .editify-icon-superscript:before {
178
+ content: '\e7a6';
179
+ }
180
+
181
+ .editify-icon-strikethrough:before {
182
+ content: '\e7a7';
183
+ }
184
+
185
+ .editify-icon-underline:before {
186
+ content: '\e7a8';
187
+ }
188
+
189
+ .editify-icon-text-wrap:before {
190
+ content: '\e7a9';
191
+ }
192
+
193
+ .editify-icon-caret-down:before {
194
+ content: '\e78c';
195
+ }
196
+
197
+ .editify-icon-delete-column:before {
198
+ content: '\e784';
199
+ }
200
+
201
+ .editify-icon-delete-row:before {
202
+ content: '\e785';
203
+ }
204
+
205
+ .editify-icon-insert-column-left:before {
206
+ content: '\e788';
207
+ }
208
+
209
+ .editify-icon-insert-column-right:before {
210
+ content: '\e789';
211
+ }
212
+
213
+ .editify-icon-insert-row-bottom:before {
214
+ content: '\e78a';
215
+ }
216
+
217
+ .editify-icon-insert-row-top:before {
218
+ content: '\e78b';
219
+ }
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.1.3'
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, Editify, 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.1.4'
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, Editify, AlexElement }
@@ -1,86 +1,86 @@
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 Link',
64
- insertImage: 'Insert Image',
65
- remoteImage: 'Remote',
66
- uploadImage: 'Upload',
67
- imageUrlPlaceholder: 'Please enter the image address',
68
- insert: 'Insert',
69
- insertVideo: 'Insert Video',
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
- auto: 'auto',
85
- fullScreen: 'Full screen'
86
- }
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 Link',
64
+ insertImage: 'Insert Image',
65
+ remoteImage: 'Remote',
66
+ uploadImage: 'Upload',
67
+ imageUrlPlaceholder: 'Please enter the image address',
68
+ insert: 'Insert',
69
+ insertVideo: 'Insert Video',
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
+ auto: 'auto',
85
+ fullScreen: 'Full screen'
86
+ }
@@ -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
+ }