vue-editify 0.2.17 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- package/examples/App.vue +289 -13
- package/lib/components/colors/colors.vue.d.ts +9 -0
- package/lib/components/colors/props.d.ts +4 -0
- package/lib/core/function.d.ts +120 -45
- package/lib/core/rule.d.ts +23 -17
- package/lib/core/tool.d.ts +1 -13
- package/lib/editify/editify.vue.d.ts +10 -1
- package/lib/editify/props.d.ts +1 -1
- package/lib/editify/toolbar/props.d.ts +1 -1
- package/lib/editify/toolbar/toolbar.vue.d.ts +3 -3
- package/lib/editify.es.js +13640 -13799
- package/lib/editify.umd.js +2 -2
- package/lib/feature/align.d.ts +0 -14
- package/lib/feature/heading.d.ts +0 -14
- package/lib/feature/lineHeight.d.ts +0 -14
- package/lib/feature/orderList.d.ts +1 -3
- package/lib/feature/task.d.ts +0 -14
- package/lib/feature/unorderList.d.ts +1 -3
- package/lib/index.d.ts +12 -3
- package/package.json +2 -2
- package/src/components/button/button.vue +3 -3
- package/src/components/checkbox/checkbox.vue +1 -1
- package/src/components/colors/colors.vue +4 -4
- package/src/components/colors/props.ts +6 -1
- package/src/components/insertAttachment/insertAttachment.vue +1 -1
- package/src/components/insertImage/insertImage.vue +1 -1
- package/src/components/insertLink/insertLink.vue +1 -1
- package/src/components/insertVideo/insertVideo.vue +1 -1
- package/src/components/layer/layer.vue +9 -3
- package/src/components/tooltip/tooltip.vue +1 -1
- package/src/components/updateLink/updateLink.vue +1 -1
- package/src/core/function.ts +961 -475
- package/src/core/rule.ts +85 -367
- package/src/core/tool.ts +8 -114
- package/src/editify/editify.less +88 -14
- package/src/editify/editify.vue +117 -65
- package/src/editify/props.ts +1 -1
- package/src/editify/toolbar/props.ts +2 -2
- package/src/editify/toolbar/toolbar.vue +12 -12
- package/src/feature/align.ts +1 -61
- package/src/feature/attachment.ts +13 -26
- package/src/feature/backColor.ts +1 -0
- package/src/feature/foreColor.ts +1 -0
- package/src/feature/heading.ts +2 -73
- package/src/feature/infoBlock.ts +4 -35
- package/src/feature/lineHeight.ts +1 -77
- package/src/feature/mathformula.ts +3 -50
- package/src/feature/orderList.ts +166 -35
- package/src/feature/panel.ts +4 -49
- package/src/feature/sub.ts +1 -1
- package/src/feature/super.ts +1 -1
- package/src/feature/task.ts +1 -55
- package/src/feature/unorderList.ts +106 -35
- package/src/feature/video.ts +1 -1
- package/src/icon/iconfont.css +40 -0
- package/src/icon/iconfont.ttf +0 -0
- package/src/icon/iconfont.woff +0 -0
- package/src/index.ts +14 -8
- package/src/locale/en_US.ts +112 -110
- package/src/locale/zh_CN.ts +11 -9
package/src/locale/en_US.ts
CHANGED
@@ -1,116 +1,118 @@
|
|
1
1
|
import { ObjectType } from '@/core/tool'
|
2
2
|
|
3
3
|
export const en_US: ObjectType = {
|
4
|
-
textWrapUp: '
|
5
|
-
textWrapDown: '
|
6
|
-
insertRowTop: '
|
7
|
-
insertRowBottom: '
|
8
|
-
insertColumnLeft: '
|
9
|
-
insertColumnRight: '
|
10
|
-
deleteRow: '
|
11
|
-
deleteColumn: '
|
12
|
-
mergeCellsLeft: '
|
13
|
-
mergeCellsRight: '
|
14
|
-
mergeCellsUp: '
|
15
|
-
mergeCellsDown: '
|
16
|
-
deleteTable: '
|
17
|
-
selectLanguages: '
|
18
|
-
autoRecognize: '
|
19
|
-
linkAddress: '
|
20
|
-
newWindowOpen: '
|
21
|
-
removeLink: '
|
22
|
-
viewLink: '
|
23
|
-
linkUrlEnterPlaceholder: '
|
24
|
-
linkTextEnterPlaceholder: '
|
25
|
-
width30: '
|
26
|
-
width50: '
|
27
|
-
width100: '
|
28
|
-
deleteImage: '
|
29
|
-
autoplay: '
|
30
|
-
disabledAutoplay: '
|
31
|
-
loop: '
|
32
|
-
disabledLoop: '
|
33
|
-
muted: '
|
34
|
-
unmuted: '
|
35
|
-
controls: '
|
36
|
-
deleteVideo: '
|
37
|
-
heading: '
|
38
|
-
bold: '
|
39
|
-
h1: '
|
40
|
-
h2: '
|
41
|
-
h3: '
|
42
|
-
h4: '
|
43
|
-
h5: '
|
44
|
-
h6: '
|
45
|
-
text: '
|
46
|
-
italic: '
|
47
|
-
orderList: '
|
48
|
-
unorderList: '
|
49
|
-
strikethrough: '
|
50
|
-
underline: '
|
51
|
-
code: '
|
52
|
-
super: '
|
53
|
-
sub: '
|
54
|
-
fontSize: '
|
55
|
-
fontFamily: '
|
56
|
-
defaultFontFamily: '
|
57
|
-
foreColor: '
|
58
|
-
defaultColor: '
|
59
|
-
backColor: '
|
60
|
-
formatClear: '
|
61
|
-
defaultSize: '
|
62
|
-
totalWordCount: '
|
63
|
-
align: '
|
64
|
-
undo: '
|
65
|
-
redo: '
|
66
|
-
quote: '
|
67
|
-
separator: '
|
68
|
-
lineHeight: '
|
69
|
-
indent: '
|
70
|
-
insertLink: '
|
71
|
-
insertImage: '
|
72
|
-
remoteImage: '
|
73
|
-
uploadImage: '
|
74
|
-
imageUrlPlaceholder: '
|
75
|
-
insert: '
|
76
|
-
insertVideo: '
|
77
|
-
remoteVideo: '
|
78
|
-
uploadVideo: '
|
79
|
-
videoUrlPlaceholder: '
|
80
|
-
insertTable: '
|
81
|
-
inserCodeBlock: '
|
82
|
-
sourceView: '
|
83
|
-
task: '
|
84
|
-
indentIncrease: '
|
85
|
-
indentDecrease: '
|
86
|
-
alignLeft: '
|
87
|
-
alignCenter: '
|
88
|
-
alignRight: '
|
89
|
-
alignJustify: '
|
90
|
-
defaultLineHeight: '
|
4
|
+
textWrapUp: 'up feed',
|
5
|
+
textWrapDown: 'down feed',
|
6
|
+
insertRowTop: 'insert row forward',
|
7
|
+
insertRowBottom: 'insert row backward',
|
8
|
+
insertColumnLeft: 'insert column forward',
|
9
|
+
insertColumnRight: 'insert column backward',
|
10
|
+
deleteRow: 'delete rows',
|
11
|
+
deleteColumn: 'delete column',
|
12
|
+
mergeCellsLeft: 'merge cells to the left',
|
13
|
+
mergeCellsRight: 'merge cells to the right',
|
14
|
+
mergeCellsUp: 'merge cells up',
|
15
|
+
mergeCellsDown: 'merge cells down',
|
16
|
+
deleteTable: 'delete table',
|
17
|
+
selectLanguages: 'select language',
|
18
|
+
autoRecognize: 'auto',
|
19
|
+
linkAddress: 'link address',
|
20
|
+
newWindowOpen: 'open in new window',
|
21
|
+
removeLink: 'remove',
|
22
|
+
viewLink: 'view',
|
23
|
+
linkUrlEnterPlaceholder: 'please enter the link address',
|
24
|
+
linkTextEnterPlaceholder: 'please enter the link text',
|
25
|
+
width30: 'set the width to 30%',
|
26
|
+
width50: 'set the width to 50%',
|
27
|
+
width100: 'set the width to 100%',
|
28
|
+
deleteImage: 'delete image',
|
29
|
+
autoplay: 'autoplay',
|
30
|
+
disabledAutoplay: 'turn off autoplay',
|
31
|
+
loop: 'loop',
|
32
|
+
disabledLoop: 'close loop',
|
33
|
+
muted: 'mute',
|
34
|
+
unmuted: 'unmute',
|
35
|
+
controls: 'play control',
|
36
|
+
deleteVideo: 'delete video',
|
37
|
+
heading: 'heading',
|
38
|
+
bold: 'bold',
|
39
|
+
h1: 'heading 1',
|
40
|
+
h2: 'heading 2',
|
41
|
+
h3: 'heading 3',
|
42
|
+
h4: 'heading 4',
|
43
|
+
h5: 'heading 5',
|
44
|
+
h6: 'heading 6',
|
45
|
+
text: 'paragraph',
|
46
|
+
italic: 'italic',
|
47
|
+
orderList: 'ordered list',
|
48
|
+
unorderList: 'unordered list',
|
49
|
+
strikethrough: 'strikethrough',
|
50
|
+
underline: 'underline',
|
51
|
+
code: 'inline code',
|
52
|
+
super: 'superscript',
|
53
|
+
sub: 'subscript',
|
54
|
+
fontSize: 'font size',
|
55
|
+
fontFamily: 'font family',
|
56
|
+
defaultFontFamily: 'default',
|
57
|
+
foreColor: 'forecolor',
|
58
|
+
defaultColor: 'default color',
|
59
|
+
backColor: 'backcolor',
|
60
|
+
formatClear: 'clear format',
|
61
|
+
defaultSize: 'default',
|
62
|
+
totalWordCount: 'total word count: ',
|
63
|
+
align: 'alignment mode',
|
64
|
+
undo: 'undo',
|
65
|
+
redo: 'redo',
|
66
|
+
quote: 'quote',
|
67
|
+
separator: 'separator',
|
68
|
+
lineHeight: 'line height',
|
69
|
+
indent: 'indent',
|
70
|
+
insertLink: 'insert Link',
|
71
|
+
insertImage: 'insert Image',
|
72
|
+
remoteImage: 'remote',
|
73
|
+
uploadImage: 'upload',
|
74
|
+
imageUrlPlaceholder: 'please enter the image address',
|
75
|
+
insert: 'insert',
|
76
|
+
insertVideo: 'insert Video',
|
77
|
+
remoteVideo: 'remote',
|
78
|
+
uploadVideo: 'upload',
|
79
|
+
videoUrlPlaceholder: 'please enter the video address',
|
80
|
+
insertTable: 'insert table',
|
81
|
+
inserCodeBlock: 'insert code block',
|
82
|
+
sourceView: 'code view',
|
83
|
+
task: 'task',
|
84
|
+
indentIncrease: 'increase indent',
|
85
|
+
indentDecrease: 'reduce indent',
|
86
|
+
alignLeft: 'align left',
|
87
|
+
alignCenter: 'align center',
|
88
|
+
alignRight: 'align right',
|
89
|
+
alignJustify: 'align justify',
|
90
|
+
defaultLineHeight: 'default',
|
91
91
|
auto: 'auto',
|
92
|
-
fullScreen: '
|
93
|
-
confirm: '
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
attachmentUrlPlaceholder: 'Please enter the attachment address',
|
101
|
-
attachmentDownloadTitle: 'Click to download attachment',
|
92
|
+
fullScreen: 'full screen',
|
93
|
+
confirm: 'confirm',
|
94
|
+
insertAttachment: 'insert attachment',
|
95
|
+
uploadAttachment: 'upload',
|
96
|
+
remoteAttachment: 'remote',
|
97
|
+
attachmentNamePlaceholder: 'please enter the attachment name',
|
98
|
+
attachmentUrlPlaceholder: 'please enter the attachment address',
|
99
|
+
attachmentDownloadTitle: 'click to download attachment',
|
102
100
|
attachmentDefaultName: 'attachment',
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
101
|
+
insertMathformula: 'insert mathematical formula',
|
102
|
+
editMathformula: 'edit mathematical formula',
|
103
|
+
mathformulaPlaceholder: 'please enter latex syntax',
|
104
|
+
insertPanel: 'insert panel',
|
105
|
+
panelTitle: 'here is the title',
|
106
|
+
panelContent: 'here is the content',
|
107
|
+
insertInfoBlock: 'insert Information Block',
|
108
|
+
decimal: 'decimal',
|
109
|
+
lowerRoman: 'lower roman',
|
110
|
+
upperRoman: 'upper roman',
|
111
|
+
lowerAlpha: 'lower alpha',
|
112
|
+
upperAlpha: 'upper alpha',
|
113
|
+
lowerGreek: 'lower greek',
|
114
|
+
cjkIdeographic: 'cjk ideographic',
|
115
|
+
disc: 'disc',
|
116
|
+
circle: 'circle',
|
117
|
+
square: 'square'
|
116
118
|
}
|
package/src/locale/zh_CN.ts
CHANGED
@@ -91,8 +91,6 @@ export const zh_CN: ObjectType = {
|
|
91
91
|
auto: '自适应',
|
92
92
|
fullScreen: '全屏',
|
93
93
|
confirm: '确定',
|
94
|
-
|
95
|
-
//附件插件语言配置
|
96
94
|
insertAttachment: '插入附件',
|
97
95
|
uploadAttachment: '上传附件',
|
98
96
|
remoteAttachment: '远程地址',
|
@@ -100,17 +98,21 @@ export const zh_CN: ObjectType = {
|
|
100
98
|
attachmentUrlPlaceholder: '请输入附件地址',
|
101
99
|
attachmentDownloadTitle: '点击下载附件',
|
102
100
|
attachmentDefaultName: '附件',
|
103
|
-
|
104
|
-
//数学公式插件语言配置
|
105
101
|
insertMathformula: '插入数学公式',
|
106
102
|
editMathformula: '编辑数学公式',
|
107
103
|
mathformulaPlaceholder: '请输入LaTex语法',
|
108
|
-
|
109
|
-
//面板插件语言配置
|
110
104
|
insertPanel: '插入面板',
|
111
105
|
panelTitle: '这里是标题',
|
112
106
|
panelContent: '这里是内容',
|
113
|
-
|
114
|
-
|
115
|
-
|
107
|
+
insertInfoBlock: '插入信息块',
|
108
|
+
decimal: '默认数字',
|
109
|
+
lowerRoman: '小写罗马数字',
|
110
|
+
upperRoman: '大写罗马数字',
|
111
|
+
lowerAlpha: '小写英文字母',
|
112
|
+
upperAlpha: '大写英文字母',
|
113
|
+
lowerGreek: '小写希腊字母',
|
114
|
+
cjkIdeographic: '表意数字',
|
115
|
+
disc: '实心圆',
|
116
|
+
circle: '空心圆',
|
117
|
+
square: '实心方块'
|
116
118
|
}
|