@seafile/seafile-editor 0.3.76
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.
- package/README.md +119 -0
- package/TODO.md +55 -0
- package/dist/components/add-formula-dialog.js +135 -0
- package/dist/components/add-image-dialog.js +78 -0
- package/dist/components/add-link-dialog.js +148 -0
- package/dist/components/comment-dialog.js +107 -0
- package/dist/components/comment-panel.js +452 -0
- package/dist/components/context-menu.js +112 -0
- package/dist/components/detail-list-view.js +119 -0
- package/dist/components/generate-share-link.js +412 -0
- package/dist/components/internal-link-dialog.js +96 -0
- package/dist/components/loading.js +32 -0
- package/dist/components/markdown-lint.js +87 -0
- package/dist/components/modal-portal.js +46 -0
- package/dist/components/outline.js +130 -0
- package/dist/components/participants-list.js +126 -0
- package/dist/components/related-files-list.js +75 -0
- package/dist/components/shortcut-dialog.js +167 -0
- package/dist/components/side-panel.js +175 -0
- package/dist/components/toast/alert.js +150 -0
- package/dist/components/toast/index.js +3 -0
- package/dist/components/toast/toast.js +179 -0
- package/dist/components/toast/toastManager.js +158 -0
- package/dist/components/toast/toaster.js +76 -0
- package/dist/components/toolbar.js +235 -0
- package/dist/components/topbar-component/button-group.js +31 -0
- package/dist/components/topbar-component/editor-toolbar.js +545 -0
- package/dist/components/topbar-component/file-info.js +65 -0
- package/dist/components/topbar-component/header-list.js +128 -0
- package/dist/components/topbar-component/icon-button.js +99 -0
- package/dist/components/topbar-component/insert-file.js +67 -0
- package/dist/components/topbar-component/table-toolbar.js +175 -0
- package/dist/components/topbar-component/upload-img.js +122 -0
- package/dist/components/user-help.js +205 -0
- package/dist/css/diff-viewer.css +105 -0
- package/dist/css/history-viewer.css +104 -0
- package/dist/css/keyboard-shortcuts.css +59 -0
- package/dist/css/layout.css +110 -0
- package/dist/css/markdown-viewer-slate/file-tags-list.css +76 -0
- package/dist/css/markdown-viewer.css +69 -0
- package/dist/css/plaineditor/markdown-editor.css +12 -0
- package/dist/css/react-mentions-default-style.js +72 -0
- package/dist/css/related-files-list.css +56 -0
- package/dist/css/richeditor/comments-list.css +184 -0
- package/dist/css/richeditor/detail-list-view.css +114 -0
- package/dist/css/richeditor/document-info.css +57 -0
- package/dist/css/richeditor/formula.css +19 -0
- package/dist/css/richeditor/image.css +141 -0
- package/dist/css/richeditor/link.css +7 -0
- package/dist/css/richeditor/navbar-imgbutton.css +79 -0
- package/dist/css/richeditor/participants-list.css +22 -0
- package/dist/css/richeditor/rich-editor-main.css +42 -0
- package/dist/css/richeditor/right-panel.css +84 -0
- package/dist/css/richeditor/side-panel.css +190 -0
- package/dist/css/richeditor/table.css +57 -0
- package/dist/css/richeditor/textlink-hovermenu.css +47 -0
- package/dist/css/richeditor/tree-view.css +67 -0
- package/dist/css/topbar.css +400 -0
- package/dist/editor/code-highlight-package.js +27 -0
- package/dist/editor/controller/block-element-controller.js +376 -0
- package/dist/editor/controller/inline-element-controller.js +129 -0
- package/dist/editor/controller/normalize-controller.js +107 -0
- package/dist/editor/controller/shortcut-controller.js +394 -0
- package/dist/editor/controller/void-element-controller.js +12 -0
- package/dist/editor/custom/custom.js +17 -0
- package/dist/editor/custom/get-event-transfer.js +34 -0
- package/dist/editor/custom/getNodesByTypeAtRange.js +69 -0
- package/dist/editor/custom/insertNodes.js +140 -0
- package/dist/editor/custom/is-empty-paragraph.js +13 -0
- package/dist/editor/custom/set-event-transfer.js +31 -0
- package/dist/editor/custom/split-nodes-at-point.js +162 -0
- package/dist/editor/custom/unwrap-node-by-type-at-range.js +81 -0
- package/dist/editor/editor-component/check-list-item.js +64 -0
- package/dist/editor/editor-component/code-block.js +150 -0
- package/dist/editor/editor-component/formula.js +79 -0
- package/dist/editor/editor-component/image.js +215 -0
- package/dist/editor/editor-component/link.js +11 -0
- package/dist/editor/editor-component/table.js +172 -0
- package/dist/editor/editor-component/textlink-hovermenu.js +136 -0
- package/dist/editor/editor-plugin.js +249 -0
- package/dist/editor/editor-utils/block-element-utils/blockquote-utils.js +96 -0
- package/dist/editor/editor-utils/block-element-utils/code-utils.js +162 -0
- package/dist/editor/editor-utils/block-element-utils/formula-utils.js +58 -0
- package/dist/editor/editor-utils/block-element-utils/index.js +38 -0
- package/dist/editor/editor-utils/block-element-utils/list-utils.js +398 -0
- package/dist/editor/editor-utils/block-element-utils/table-utils.js +418 -0
- package/dist/editor/editor-utils/common-editor-utils.js +587 -0
- package/dist/editor/editor-utils/inline-element-utils/index.js +95 -0
- package/dist/editor/editor-utils/mark-utils.js +25 -0
- package/dist/editor/editor-utils/range-utils.js +9 -0
- package/dist/editor/editor-utils/selection-utils.js +33 -0
- package/dist/editor/editor-utils/text-utils.js +130 -0
- package/dist/editor/editor.js +66 -0
- package/dist/editor/element-model/blockquote.js +16 -0
- package/dist/editor/element-model/image.js +19 -0
- package/dist/editor/element-model/link.js +19 -0
- package/dist/editor/element-model/table.js +50 -0
- package/dist/editor/element-model/text.js +13 -0
- package/dist/editor/load-script.js +83 -0
- package/dist/editor/plain-markdown-editor.js +324 -0
- package/dist/editor/rich-markdown-editor.js +580 -0
- package/dist/editor/seafile-editor.js +326 -0
- package/dist/editor/simple-editor.js +245 -0
- package/dist/editor-api.js +261 -0
- package/dist/index.css +97 -0
- package/dist/lib/slate-hyperscript/creators.js +263 -0
- package/dist/lib/slate-hyperscript/hyperscript.js +92 -0
- package/dist/lib/slate-hyperscript/index.js +3 -0
- package/dist/lib/slate-hyperscript/tokens.js +102 -0
- package/dist/lib/unified/index.js +470 -0
- package/dist/lib/vfile/core.js +172 -0
- package/dist/lib/vfile/index.js +48 -0
- package/dist/seafile-editor-chooser.js +45 -0
- package/dist/seafile-markdown-editor.js +301 -0
- package/dist/seafile-markdown-viewer.js +79 -0
- package/dist/seafile-simple-editor.js +56 -0
- package/dist/utils/copy-to-clipboard.js +47 -0
- package/dist/utils/deserialize-html.js +282 -0
- package/dist/utils/diff/compare-strings.js +46 -0
- package/dist/utils/diff/diff.js +855 -0
- package/dist/utils/diff/index.js +2 -0
- package/dist/utils/render-slate.js +219 -0
- package/dist/utils/seafile-markdown2html.js +62 -0
- package/dist/utils/slate2markdown/deserialize.js +689 -0
- package/dist/utils/slate2markdown/index.js +3 -0
- package/dist/utils/slate2markdown/serialize.js +407 -0
- package/dist/utils/utils.js +28 -0
- package/dist/viewer/diff-viewer.js +98 -0
- package/dist/viewer/markdown-viewer.js +139 -0
- package/dist/viewer/slate-viewer.js +73 -0
- package/dist/viewer/viewer-formula.js +67 -0
- package/dist/viewer/viewer-image.js +93 -0
- package/dist/viewer/viewer-outline.js +118 -0
- package/package.json +215 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +45 -0
- package/public/locales/cs/seafile-editor.json +169 -0
- package/public/locales/de/seafile-editor.json +169 -0
- package/public/locales/en/seafile-editor.json +222 -0
- package/public/locales/es/seafile-editor.json +169 -0
- package/public/locales/es-AR/seafile-editor.json +169 -0
- package/public/locales/es-MX/seafile-editor.json +169 -0
- package/public/locales/fr/seafile-editor.json +169 -0
- package/public/locales/it/seafile-editor.json +169 -0
- package/public/locales/ru/seafile-editor.json +169 -0
- package/public/locales/zh-CN/seafile-editor.json +219 -0
- package/public/manifest.json +15 -0
- package/public/media/scripts/mathjax/tex-svg.js +1 -0
- package/public/media/seafile-editor-font/iconfont.eot +0 -0
- package/public/media/seafile-editor-font/iconfont.svg +164 -0
- package/public/media/seafile-editor-font/iconfont.ttf +0 -0
- package/public/media/seafile-editor-font/iconfont.woff +0 -0
- package/public/media/seafile-editor-font/iconfont.woff2 +0 -0
- package/public/media/seafile-editor-font.css +201 -0
- package/public/media/seafile-logo.png +0 -0
- package/public/media/seafile-ui.css +11169 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bold": "粗体",
|
|
3
|
+
"italic": "斜体",
|
|
4
|
+
"inline_code": "代码",
|
|
5
|
+
"header_one": "一级标题",
|
|
6
|
+
"header_two": "二级标题",
|
|
7
|
+
"header_three": "三级标题",
|
|
8
|
+
"header_four": "四级标题",
|
|
9
|
+
"header_five": "五级标题",
|
|
10
|
+
"header_six": "六级标题",
|
|
11
|
+
"paragraph": "段落",
|
|
12
|
+
"quote": "引用",
|
|
13
|
+
"ordered_list": "有序列表",
|
|
14
|
+
"unordered_list": "无序列表",
|
|
15
|
+
"check_list_item": "任务列表",
|
|
16
|
+
"insert_image": "插入图片",
|
|
17
|
+
"insert_formula": "插入公式",
|
|
18
|
+
"formula": "公式",
|
|
19
|
+
"insert_file": "插入文件",
|
|
20
|
+
"code": "行内代码",
|
|
21
|
+
"code_block": "代码块",
|
|
22
|
+
"insert_link": "添加链接",
|
|
23
|
+
"insert_table": "添加表格",
|
|
24
|
+
"save": "保存",
|
|
25
|
+
"more": "更多",
|
|
26
|
+
"invalid_url": "无效链接",
|
|
27
|
+
"link_address": "链接地址",
|
|
28
|
+
"image_address": "图片地址",
|
|
29
|
+
"submit": "提交",
|
|
30
|
+
"cancel": "取消",
|
|
31
|
+
"switch_to_plain_text_editor": "切换至普通文本编辑器",
|
|
32
|
+
"switch_to_rich_text_editor": "切换至富文本编辑器",
|
|
33
|
+
"switch_to_viewer": "切换到只读模式",
|
|
34
|
+
"help": "帮助",
|
|
35
|
+
"remove_table": "删除表格",
|
|
36
|
+
"Insert_Row_Before": "上方插入行",
|
|
37
|
+
"Insert_Row_After": "下方插入行",
|
|
38
|
+
"Insert_Column_Before": "左边插入列",
|
|
39
|
+
"Insert_Column_After": "右边插入列",
|
|
40
|
+
"Remove_Row": "删除当前行",
|
|
41
|
+
"Remove_Column": "删除当前列",
|
|
42
|
+
"Insert_Row": "插入行",
|
|
43
|
+
"Insert_Column": "插入列",
|
|
44
|
+
"column": "列",
|
|
45
|
+
"row": "行",
|
|
46
|
+
"set_align": "对齐方式",
|
|
47
|
+
"left": "左对齐",
|
|
48
|
+
"center": "居中",
|
|
49
|
+
"right": "右对齐",
|
|
50
|
+
"file_saved": "保存文件成功",
|
|
51
|
+
"file_failed_to_save": "保存文件失败",
|
|
52
|
+
"star": "添加星标",
|
|
53
|
+
"unstar": "移除星标",
|
|
54
|
+
"back_to_parent_directory":"返回上级目录",
|
|
55
|
+
"edit":"编辑",
|
|
56
|
+
"copy": "复制",
|
|
57
|
+
"copied": "已复制",
|
|
58
|
+
"internal_link": "内部链接",
|
|
59
|
+
"copy_internal_link": "内部链接已复制到剪贴板",
|
|
60
|
+
"internal_link_desc": "内部链接是指向文件或目录的链接,只有对该文件或目录有访问权限的人可以访问。",
|
|
61
|
+
"share": "共享",
|
|
62
|
+
"share_link": "共享链接",
|
|
63
|
+
"generate": "生成链接",
|
|
64
|
+
"add_password_protection": "增加密码保护",
|
|
65
|
+
"password": "密码",
|
|
66
|
+
"at_least_8_characters": "至少8个字符",
|
|
67
|
+
"password_again": "请再次输入密码",
|
|
68
|
+
"add_auto_expiration": "增加自动过期",
|
|
69
|
+
"days": "天",
|
|
70
|
+
"please_enter_password": "请输入密码",
|
|
71
|
+
"greater_than_or_equal_to": "大于或等于",
|
|
72
|
+
"less_than_or_equal_to": "小于或等于",
|
|
73
|
+
"set_permission": "设置权限",
|
|
74
|
+
"preview_and_download": "预览与下载",
|
|
75
|
+
"preview_only": "仅查看",
|
|
76
|
+
"please_enter_valid_days": "请输入有效的天数",
|
|
77
|
+
"please_enter_a_non-negative_integer": "请输入一个非负整数",
|
|
78
|
+
"please_enter_days": "请输入天数",
|
|
79
|
+
"password_is_too_short": "密码长度太短",
|
|
80
|
+
"passwords_do_not_match": "两次输入的密码不一致",
|
|
81
|
+
"return_to_wiki_page": "返回维基页面",
|
|
82
|
+
"insert_network_image": "插入网络图片",
|
|
83
|
+
"upload_local_image": "上传本地图片",
|
|
84
|
+
"add_link": "加入链接",
|
|
85
|
+
"file_history": "文件历史",
|
|
86
|
+
"history_version": "历史版本",
|
|
87
|
+
"back_to_viewer": "返回查看页面",
|
|
88
|
+
"link_title": "链接标题",
|
|
89
|
+
"local_draft": "本地草稿",
|
|
90
|
+
"use_draft": "使用草稿",
|
|
91
|
+
"delete_draft": "删除草稿",
|
|
92
|
+
"you_have_an_unsaved_draft_do_you_like_to_use_it": "有未保存的草稿,使用草稿吗?",
|
|
93
|
+
"local_draft_saved": "本地草稿已保存",
|
|
94
|
+
"new_draft": "创建草稿",
|
|
95
|
+
"view_draft": "查看草稿",
|
|
96
|
+
"publish": "发布",
|
|
97
|
+
"this_file_has_a_draft": "这个文件有一个草稿.",
|
|
98
|
+
"delete": "删除",
|
|
99
|
+
"comments": "评论",
|
|
100
|
+
"add_a_comment": "增加评论",
|
|
101
|
+
"no_comment_yet": "还没有评论",
|
|
102
|
+
"Mark_as_Resolved": "标记为已解决",
|
|
103
|
+
"ask_for_review": "发起评审",
|
|
104
|
+
"review_already_exists": "评审已存在",
|
|
105
|
+
"view_review": "查看评审",
|
|
106
|
+
"there_is_an_associated_review_with_this_file": "有一个与此文件相关联的评审。",
|
|
107
|
+
"start_review": "开始评审",
|
|
108
|
+
"this_file_is_in_draft_stage": "该文件处于草稿阶段。",
|
|
109
|
+
"this_file_is_in_review_stage": "该文件处于评审阶段。",
|
|
110
|
+
"this_file_has_been_updated": "这个文件已被修改。",
|
|
111
|
+
"refresh": "刷新",
|
|
112
|
+
"related_files": "相关文件",
|
|
113
|
+
"related_file": "相关文件",
|
|
114
|
+
"no_tags": "没有标签",
|
|
115
|
+
"date": "日期",
|
|
116
|
+
"participants": "参与者",
|
|
117
|
+
"no_related_files": "没有相关文件",
|
|
118
|
+
"no_out_line": "没有大纲",
|
|
119
|
+
"Editing_files_in_this_browser_can_lead_to_slight_display_problems": "在此浏览器中,编辑文件可能导致轻微的显示问题。",
|
|
120
|
+
"no_document_improvement_suggestion": "没有文档改进建议",
|
|
121
|
+
"Hide_side_panel": "隐藏侧旁栏",
|
|
122
|
+
"Show_side_panel": "显示侧旁栏",
|
|
123
|
+
"Show_resolved_comments": "显示已解决的评论",
|
|
124
|
+
"Update": "更新",
|
|
125
|
+
"Width": "宽度",
|
|
126
|
+
"Height": "高度",
|
|
127
|
+
"Full_screen": "全屏",
|
|
128
|
+
"Insert_library_image": "插入资料库图片",
|
|
129
|
+
"Size": "大小",
|
|
130
|
+
"Location": "位置",
|
|
131
|
+
"Last_Update": "更新时间",
|
|
132
|
+
"Tags": "标签",
|
|
133
|
+
"Related_Files": "相关文档",
|
|
134
|
+
"Add_participants": "增加文件参与人",
|
|
135
|
+
"markdownLint": {
|
|
136
|
+
"missing_h1": {
|
|
137
|
+
"description": "文档缺少一级标题",
|
|
138
|
+
"issue" : "缺少一级标题"
|
|
139
|
+
},
|
|
140
|
+
"heading_end_with_colon": {
|
|
141
|
+
"description": "标题末尾的标点符号不应该是冒号",
|
|
142
|
+
"issue": "标题末尾是冒号"
|
|
143
|
+
},
|
|
144
|
+
"heading_increase_irregular": {
|
|
145
|
+
"description": "标题级别一次只能增加一级",
|
|
146
|
+
"issue": "标题级别不规范"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"Shortcut_help": "快捷键帮助",
|
|
150
|
+
"userHelp": {
|
|
151
|
+
"title": "键盘快捷键",
|
|
152
|
+
"userHelpData": [
|
|
153
|
+
{
|
|
154
|
+
"shortcutType":"列表快捷键",
|
|
155
|
+
"shortcutData": {
|
|
156
|
+
"Make_list": "生成列表",
|
|
157
|
+
"Make_ordered_list": "生成有序列表",
|
|
158
|
+
"Insert_new_item": "插入列表项",
|
|
159
|
+
"Insert_child_in_item": "插入新段落",
|
|
160
|
+
"Increase_depth": "增加列表项深度"
|
|
161
|
+
}
|
|
162
|
+
}, {
|
|
163
|
+
"shortcutType": "标题快捷键",
|
|
164
|
+
"shortcutData": {
|
|
165
|
+
"Heading_1": "一级标题",
|
|
166
|
+
"Heading_2": "二级标题",
|
|
167
|
+
"Heading_3": "三级标题",
|
|
168
|
+
"Heading_4": "四级标题",
|
|
169
|
+
"Heading_5": "五级标题",
|
|
170
|
+
"Heading_6": "六级标题"
|
|
171
|
+
}
|
|
172
|
+
}, {
|
|
173
|
+
"shortcutType": "代码块快捷键",
|
|
174
|
+
"shortcutData": {
|
|
175
|
+
"Make_code_block": "生成代码块",
|
|
176
|
+
"Insert_new_line": "插入行",
|
|
177
|
+
"Escape_code_block": "退出代码块",
|
|
178
|
+
"Insert_indent": "缩进"
|
|
179
|
+
}
|
|
180
|
+
}, {
|
|
181
|
+
"shortcutType": "引用快捷键",
|
|
182
|
+
"shortcutData": {
|
|
183
|
+
"Make_Block_quote": "生成引用",
|
|
184
|
+
"Escape_Block_quote": "退出引用"
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
"shortcutType": "表格快捷键",
|
|
188
|
+
"shortcutData": {
|
|
189
|
+
"Insert_Table_Row": "插入行",
|
|
190
|
+
"Escape_table": "退出表格"
|
|
191
|
+
}
|
|
192
|
+
}, {
|
|
193
|
+
"shortcutType": "公式快捷键",
|
|
194
|
+
"shortcutData": {
|
|
195
|
+
"Insert_Formula": "插入公式"
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
"shortcutType":"行级操作",
|
|
199
|
+
"shortcutData": {
|
|
200
|
+
"Bold": "粗体",
|
|
201
|
+
"Italic": "斜体",
|
|
202
|
+
"Italic_Bold": "斜体加粗",
|
|
203
|
+
"Inline_code": "行内代码"
|
|
204
|
+
}
|
|
205
|
+
}, {
|
|
206
|
+
"shortcutType": "文件保存",
|
|
207
|
+
"shortcutData": {
|
|
208
|
+
"Save_file": "保存文件"
|
|
209
|
+
}
|
|
210
|
+
}, {
|
|
211
|
+
"shortcutType": "图片操作",
|
|
212
|
+
"shortcutData": {
|
|
213
|
+
"Paste_screen_shot": "上传截图",
|
|
214
|
+
"Drag_image_from_anywhere_to_upload_it": "拖拽任意图片上传"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"short_name": "React App",
|
|
3
|
+
"name": "Create React App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"start_url": "./index.html",
|
|
12
|
+
"display": "standalone",
|
|
13
|
+
"theme_color": "#000000",
|
|
14
|
+
"background_color": "#ffffff"
|
|
15
|
+
}
|