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.
Files changed (60) hide show
  1. package/examples/App.vue +289 -13
  2. package/lib/components/colors/colors.vue.d.ts +9 -0
  3. package/lib/components/colors/props.d.ts +4 -0
  4. package/lib/core/function.d.ts +120 -45
  5. package/lib/core/rule.d.ts +23 -17
  6. package/lib/core/tool.d.ts +1 -13
  7. package/lib/editify/editify.vue.d.ts +10 -1
  8. package/lib/editify/props.d.ts +1 -1
  9. package/lib/editify/toolbar/props.d.ts +1 -1
  10. package/lib/editify/toolbar/toolbar.vue.d.ts +3 -3
  11. package/lib/editify.es.js +13640 -13799
  12. package/lib/editify.umd.js +2 -2
  13. package/lib/feature/align.d.ts +0 -14
  14. package/lib/feature/heading.d.ts +0 -14
  15. package/lib/feature/lineHeight.d.ts +0 -14
  16. package/lib/feature/orderList.d.ts +1 -3
  17. package/lib/feature/task.d.ts +0 -14
  18. package/lib/feature/unorderList.d.ts +1 -3
  19. package/lib/index.d.ts +12 -3
  20. package/package.json +2 -2
  21. package/src/components/button/button.vue +3 -3
  22. package/src/components/checkbox/checkbox.vue +1 -1
  23. package/src/components/colors/colors.vue +4 -4
  24. package/src/components/colors/props.ts +6 -1
  25. package/src/components/insertAttachment/insertAttachment.vue +1 -1
  26. package/src/components/insertImage/insertImage.vue +1 -1
  27. package/src/components/insertLink/insertLink.vue +1 -1
  28. package/src/components/insertVideo/insertVideo.vue +1 -1
  29. package/src/components/layer/layer.vue +9 -3
  30. package/src/components/tooltip/tooltip.vue +1 -1
  31. package/src/components/updateLink/updateLink.vue +1 -1
  32. package/src/core/function.ts +961 -475
  33. package/src/core/rule.ts +85 -367
  34. package/src/core/tool.ts +8 -114
  35. package/src/editify/editify.less +88 -14
  36. package/src/editify/editify.vue +117 -65
  37. package/src/editify/props.ts +1 -1
  38. package/src/editify/toolbar/props.ts +2 -2
  39. package/src/editify/toolbar/toolbar.vue +12 -12
  40. package/src/feature/align.ts +1 -61
  41. package/src/feature/attachment.ts +13 -26
  42. package/src/feature/backColor.ts +1 -0
  43. package/src/feature/foreColor.ts +1 -0
  44. package/src/feature/heading.ts +2 -73
  45. package/src/feature/infoBlock.ts +4 -35
  46. package/src/feature/lineHeight.ts +1 -77
  47. package/src/feature/mathformula.ts +3 -50
  48. package/src/feature/orderList.ts +166 -35
  49. package/src/feature/panel.ts +4 -49
  50. package/src/feature/sub.ts +1 -1
  51. package/src/feature/super.ts +1 -1
  52. package/src/feature/task.ts +1 -55
  53. package/src/feature/unorderList.ts +106 -35
  54. package/src/feature/video.ts +1 -1
  55. package/src/icon/iconfont.css +40 -0
  56. package/src/icon/iconfont.ttf +0 -0
  57. package/src/icon/iconfont.woff +0 -0
  58. package/src/index.ts +14 -8
  59. package/src/locale/en_US.ts +112 -110
  60. package/src/locale/zh_CN.ts +11 -9
@@ -1,116 +1,118 @@
1
1
  import { ObjectType } from '@/core/tool'
2
2
 
3
3
  export const en_US: ObjectType = {
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',
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: 'Full screen',
93
- confirm: 'Confirm',
94
-
95
- //插件语言配置
96
- insertAttachment: 'Insert attachment',
97
- uploadAttachment: 'Upload',
98
- remoteAttachment: 'Remote',
99
- attachmentNamePlaceholder: 'Please enter the attachment name',
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
- insertMathformula: 'Insert mathematical formula',
106
- editMathformula: 'Edit mathematical formula',
107
- mathformulaPlaceholder: 'Please enter LaTex syntax',
108
-
109
- //面板插件语言配置
110
- insertPanel: 'Insert Panel',
111
- panelTitle: 'Here is the title',
112
- panelContent: 'Here is the content',
113
-
114
- //信息插件语言配置
115
- insertInfoBlock: 'Insert Information Block'
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
  }
@@ -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
- insertInfoBlock: '插入信息块'
107
+ insertInfoBlock: '插入信息块',
108
+ decimal: '默认数字',
109
+ lowerRoman: '小写罗马数字',
110
+ upperRoman: '大写罗马数字',
111
+ lowerAlpha: '小写英文字母',
112
+ upperAlpha: '大写英文字母',
113
+ lowerGreek: '小写希腊字母',
114
+ cjkIdeographic: '表意数字',
115
+ disc: '实心圆',
116
+ circle: '空心圆',
117
+ square: '实心方块'
116
118
  }