@seafile/seafile-editor 1.0.21 → 1.0.22

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.
@@ -22,7 +22,7 @@ const applyMarkForInlineItem = function (result, item) {
22
22
  } : children[0];
23
23
  const linkChildren = [{
24
24
  id: slugid.nice(),
25
- text: child.value
25
+ text: child.value || ''
26
26
  }];
27
27
  const link = {
28
28
  id: slugid.nice(),
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "clean": "rm -rf dist && mkdir dist",
8
8
  "test": "jest",
9
+ "push-translate": "tx push -s",
10
+ "pull-translate": "tx pull -f",
9
11
  "start": "export NODE_ENV=development LOG_ENV=rc && node dev-server.js",
10
12
  "build:dist": "export BABEL_ENV=production && ./node_modules/.bin/babel src --out-dir dist --copy-files",
11
13
  "prepublishOnly": "npm run clean && npm run build:dist"
@@ -219,5 +219,6 @@
219
219
  ]
220
220
  },
221
221
  "Select_field": "Select field",
222
- "Font_style": "Font style"
222
+ "Font_style": "Font style",
223
+ "Open_link": "Open link"
223
224
  }
@@ -219,5 +219,6 @@
219
219
  ]
220
220
  },
221
221
  "Select_field": "Select field",
222
- "Font_style": "Font style"
222
+ "Font_style": "Font style",
223
+ "Open_link": "Open link"
223
224
  }
@@ -219,5 +219,6 @@
219
219
  ]
220
220
  },
221
221
  "Select_field": "Select field",
222
- "Font_style": "Font style"
222
+ "Font_style": "Font style",
223
+ "Open_link": "Open link"
223
224
  }
@@ -219,5 +219,6 @@
219
219
  ]
220
220
  },
221
221
  "Select_field": "Select field",
222
- "Font_style": "Font style"
222
+ "Font_style": "Font style",
223
+ "Open_link": "Ouvrir le lien"
223
224
  }
@@ -219,5 +219,6 @@
219
219
  ]
220
220
  },
221
221
  "Select_field": "Select field",
222
- "Font_style": "Font style"
222
+ "Font_style": "Font style",
223
+ "Open_link": "Open link"
223
224
  }
@@ -35,12 +35,12 @@
35
35
  "Remove_table": "Удалить таблицу",
36
36
  "Column": "Столбец",
37
37
  "Row": "Строка",
38
- "Insert_row_before": "Insert row before",
39
- "Insert_row_after": "Insert row after",
40
- "Insert_column_before": "Insert column before",
41
- "Insert_column_after": "Insert column after",
42
- "Remove_row": "Remove row",
43
- "Remove_column": "Remove column",
38
+ "Insert_row_before": "Вставить строку перед",
39
+ "Insert_row_after": "Вставить строку после",
40
+ "Insert_column_before": "Вставить столбец перед",
41
+ "Insert_column_after": "Вставить столбец после",
42
+ "Remove_row": "Удалить строку",
43
+ "Remove_column": "Удалить столбец",
44
44
  "Insert_row": "Вставить строку",
45
45
  "Insert_column": "Вставить столбец",
46
46
  "Set_align": "Установить выравнивание",
@@ -135,12 +135,12 @@
135
135
  "Tags": "Метки",
136
136
  "Add_participants": "Добавить участников",
137
137
  "Clear_format": "Очистить формат",
138
- "Image_address_invalid": "Image address invalid",
138
+ "Image_address_invalid": "Адрес изображения недействителен",
139
139
  "Shortcut_help": "Справка по горячим клавишам",
140
- "Link_address_required": "Link address required",
141
- "Link_address_invalid": "Link address invalid",
142
- "Link_title_required": "Link title required",
143
- "Blank_title_not_allowed": "Blank title not allowed",
140
+ "Link_address_required": "Требуется адрес ссылки",
141
+ "Link_address_invalid": "Адрес ссылки недействителен",
142
+ "Link_title_required": "Требуется название ссылки",
143
+ "Blank_title_not_allowed": "Пустой заголовок недопустим",
144
144
  "userHelp": {
145
145
  "title": "Горячие клавиши",
146
146
  "userHelpData": [
@@ -177,14 +177,14 @@
177
177
  {
178
178
  "shortcutType": "Горячие клавиши для блока цитаты",
179
179
  "shortcutData": {
180
- "Make_block_quote": "Make block quote",
181
- "Escape_block_quote": "Escape block quote"
180
+ "Make_block_quote": "Создать блок цитаты",
181
+ "Escape_block_quote": "Выделить блок цитаты"
182
182
  }
183
183
  },
184
184
  {
185
185
  "shortcutType": "Горячие клавиши для таблицы",
186
186
  "shortcutData": {
187
- "Insert_table_row": "Insert table tow",
187
+ "Insert_table_row": "Вставить строку таблицы",
188
188
  "Escape_table": "Выделить таблицу"
189
189
  }
190
190
  },
@@ -199,7 +199,7 @@
199
199
  "shortcutData": {
200
200
  "Bold": "Полужирный",
201
201
  "Italic": "Курсив",
202
- "Italic_bold": "Italic bold",
202
+ "Italic_bold": "Курсив полужирный",
203
203
  "Inline_code": "Встроенный код"
204
204
  }
205
205
  },
@@ -218,6 +218,7 @@
218
218
  }
219
219
  ]
220
220
  },
221
- "Select_field": "Select field",
222
- "Font_style": "Font style"
221
+ "Select_field": "Выбрать поле",
222
+ "Font_style": "Стиль шрифта",
223
+ "Open_link": "Открыть ссылку"
223
224
  }
@@ -14,7 +14,7 @@
14
14
  "Unordered_list": "无序列表",
15
15
  "Check_list_item": "任务列表",
16
16
  "Insert_image": "插入图片",
17
- "Insert_formula": "插入公式",
17
+ "Insert_formula": " 插入公式",
18
18
  "Formula": "公式",
19
19
  "Insert_file": "插入文件",
20
20
  "Code": "行内代码",
@@ -32,7 +32,7 @@
32
32
  "Switch_to_rich_text_editor": "切换至富文本编辑器",
33
33
  "Switch_to_viewer": "切换到只读模式",
34
34
  "Help": "帮助",
35
- "Remove_table": "删除表格",
35
+ "Remove_table": "清除表格",
36
36
  "Column": "列",
37
37
  "Row": "行",
38
38
  "Insert_row_before": "上方插入行",
@@ -102,7 +102,7 @@
102
102
  "Mark_as_Resolved": "标记为已解决",
103
103
  "Ask_for_review": "发起评审",
104
104
  "Review_already_exists": "评审已存在",
105
- "Ciew_review": "查看评审",
105
+ "View_review": "查看评审",
106
106
  "There_is_an_associated_review_with_this_file": "有一个与此文件相关联的评审。",
107
107
  "Start_review": "开始评审",
108
108
  "This_file_is_in_draft_stage": "该文件处于草稿阶段。",
@@ -116,11 +116,11 @@
116
116
  "Participants": "参与人",
117
117
  "Meeting_note": "会议记录",
118
118
  "Chooser_document_type": "选择文档类型",
119
- "Empty": "",
119
+ "Empty": "暂无",
120
120
  "No_related_files": "没有相关文件",
121
121
  "No_out_line": "没有大纲",
122
122
  "Editing_files_in_this_browser_can_lead_to_slight_display_problems": "在此浏览器中,编辑文件可能导致轻微的显示问题。",
123
- "no_document_improvement_suggestion": "没有文档改进建议",
123
+ "No_document_improvement_suggestion": "没有文档改进建议",
124
124
  "Hide_side_panel": "隐藏侧旁栏",
125
125
  "Show_side_panel": "显示侧旁栏",
126
126
  "Show_resolved_comments": "显示已解决的评论",
@@ -133,9 +133,14 @@
133
133
  "Location": "位置",
134
134
  "Last_update": "更新时间",
135
135
  "Tags": "标签",
136
- "Related_Files": "相关文档",
137
- "Add_participants": "增加文件参与人",
136
+ "Add_participants": "添加参与人",
137
+ "Clear_format": "清除格式",
138
+ "Image_address_invalid": "图片地址不正确",
138
139
  "Shortcut_help": "快捷键帮助",
140
+ "Link_address_required": "链接地址是必填项。",
141
+ "Link_address_invalid": "链接地址不合法",
142
+ "Link_title_required": "链接标题是必填项。",
143
+ "Blank_title_not_allowed": "不允许空白标题",
139
144
  "userHelp": {
140
145
  "title": "键盘快捷键",
141
146
  "userHelpData": [
@@ -148,7 +153,8 @@
148
153
  "Insert_child_in_item": "插入新段落",
149
154
  "Increase_depth": "增加列表项深度"
150
155
  }
151
- }, {
156
+ },
157
+ {
152
158
  "shortcutType": "标题快捷键",
153
159
  "shortcutData": {
154
160
  "Heading_1": "一级标题",
@@ -158,7 +164,8 @@
158
164
  "Heading_5": "五级标题",
159
165
  "Heading_6": "六级标题"
160
166
  }
161
- }, {
167
+ },
168
+ {
162
169
  "shortcutType": "代码块快捷键",
163
170
  "shortcutData": {
164
171
  "Make_code_block": "生成代码块",
@@ -166,46 +173,52 @@
166
173
  "Escape_code_block": "退出代码块",
167
174
  "Insert_indent": "缩进"
168
175
  }
169
- }, {
176
+ },
177
+ {
170
178
  "shortcutType": "引用快捷键",
171
179
  "shortcutData": {
172
180
  "Make_block_quote": "生成引用",
173
181
  "Escape_block_quote": "退出引用"
174
182
  }
175
- }, {
183
+ },
184
+ {
176
185
  "shortcutType": "表格快捷键",
177
186
  "shortcutData": {
178
187
  "Insert_table_row": "插入行",
179
188
  "Escape_table": "退出表格"
180
189
  }
181
- }, {
190
+ },
191
+ {
182
192
  "shortcutType": "公式快捷键",
183
193
  "shortcutData": {
184
194
  "Insert_formula": "插入公式"
185
195
  }
186
- }, {
187
- "shortcutType": "行内快捷键",
196
+ },
197
+ {
198
+ "shortcutType": "行级操作",
188
199
  "shortcutData": {
189
200
  "Bold": "粗体",
190
201
  "Italic": "斜体",
191
- "Italic_bold": "斜体粗体",
202
+ "Italic_bold": "斜体加粗",
192
203
  "Inline_code": "行内代码"
193
204
  }
194
- }, {
195
- "shortcutType": "保存快捷键",
205
+ },
206
+ {
207
+ "shortcutType": "文件保存",
196
208
  "shortcutData": {
197
209
  "Save_file": "保存文件"
198
210
  }
199
- }, {
200
- "shortcutType": "图片快捷键",
211
+ },
212
+ {
213
+ "shortcutType": "图片操作",
201
214
  "shortcutData": {
202
- "Paste_screen_shot": "粘贴屏幕截图",
203
- "Drag_image_from_anywhere_to_upload_it": "从任意地方拖动图像以上传"
215
+ "Paste_screen_shot": "上传截图",
216
+ "Drag_image_from_anywhere_to_upload_it": "拖拽任意图片上传"
204
217
  }
205
218
  }
206
219
  ]
207
220
  },
208
- "Select_field": "Select field",
209
- "Font_style": "Font style",
210
- "Open_link":"打开链接"
221
+ "Select_field": "选中字段",
222
+ "Font_style": "字体样式",
223
+ "Open_link": "打开链接"
211
224
  }
@@ -0,0 +1,224 @@
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
+ "Column": "列",
37
+ "Row": "行",
38
+ "Insert_row_before": "上方插入行",
39
+ "Insert_row_after": "下方插入行",
40
+ "Insert_column_before": "左边插入列",
41
+ "Insert_column_after": "右边插入列",
42
+ "Remove_row": "删除当前行",
43
+ "Remove_column": "删除当前列",
44
+ "Insert_row": "插入行",
45
+ "Insert_column": "插入列",
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
+ "Meeting_note": "会议记录",
118
+ "Chooser_document_type": "选择文档类型",
119
+ "Empty": "暂无",
120
+ "No_related_files": "没有相关文件",
121
+ "No_out_line": "没有大纲",
122
+ "Editing_files_in_this_browser_can_lead_to_slight_display_problems": "在此浏览器中,编辑文件可能导致轻微的显示问题。",
123
+ "No_document_improvement_suggestion": "没有文档改进建议",
124
+ "Hide_side_panel": "隐藏侧旁栏",
125
+ "Show_side_panel": "显示侧旁栏",
126
+ "Show_resolved_comments": "显示已解决的评论",
127
+ "Update": "更新",
128
+ "Width": "宽度",
129
+ "Height": "高度",
130
+ "Full_screen": "全屏",
131
+ "Insert_library_image": "插入资料库图片",
132
+ "Size": "大小",
133
+ "Location": "位置",
134
+ "Last_update": "更新时间",
135
+ "Tags": "标签",
136
+ "Add_participants": "添加参与人",
137
+ "Clear_format": "清除格式",
138
+ "Image_address_invalid": "图片地址不正确",
139
+ "Shortcut_help": "快捷键帮助",
140
+ "Link_address_required": "链接地址是必填项。",
141
+ "Link_address_invalid": "链接地址不合法",
142
+ "Link_title_required": "链接标题是必填项。",
143
+ "Blank_title_not_allowed": "不允许空白标题",
144
+ "userHelp": {
145
+ "title": "键盘快捷键",
146
+ "userHelpData": [
147
+ {
148
+ "shortcutType": "列表快捷键",
149
+ "shortcutData": {
150
+ "Make_list": "生成列表",
151
+ "Make_ordered_list": "生成有序列表",
152
+ "Insert_new_item": "插入列表项",
153
+ "Insert_child_in_item": "插入新段落",
154
+ "Increase_depth": "增加列表项深度"
155
+ }
156
+ },
157
+ {
158
+ "shortcutType": "标题快捷键",
159
+ "shortcutData": {
160
+ "Heading_1": "一级标题",
161
+ "Heading_2": "二级标题",
162
+ "Heading_3": "三级标题",
163
+ "Heading_4": "四级标题",
164
+ "Heading_5": "五级标题",
165
+ "Heading_6": "六级标题"
166
+ }
167
+ },
168
+ {
169
+ "shortcutType": "代码块快捷键",
170
+ "shortcutData": {
171
+ "Make_code_block": "生成代码块",
172
+ "Insert_new_line": "插入行",
173
+ "Escape_code_block": "退出代码块",
174
+ "Insert_indent": "缩进"
175
+ }
176
+ },
177
+ {
178
+ "shortcutType": "引用快捷键",
179
+ "shortcutData": {
180
+ "Make_block_quote": "生成引用",
181
+ "Escape_block_quote": "退出引用"
182
+ }
183
+ },
184
+ {
185
+ "shortcutType": "表格快捷键",
186
+ "shortcutData": {
187
+ "Insert_table_row": "插入行",
188
+ "Escape_table": "退出表格"
189
+ }
190
+ },
191
+ {
192
+ "shortcutType": "公式快捷键",
193
+ "shortcutData": {
194
+ "Insert_formula": "插入公式"
195
+ }
196
+ },
197
+ {
198
+ "shortcutType": "行级操作",
199
+ "shortcutData": {
200
+ "Bold": "粗体",
201
+ "Italic": "斜体",
202
+ "Italic_bold": "斜体加粗",
203
+ "Inline_code": "行内代码"
204
+ }
205
+ },
206
+ {
207
+ "shortcutType": "文件保存",
208
+ "shortcutData": {
209
+ "Save_file": "保存文件"
210
+ }
211
+ },
212
+ {
213
+ "shortcutType": "图片操作",
214
+ "shortcutData": {
215
+ "Paste_screen_shot": "上传截图",
216
+ "Drag_image_from_anywhere_to_upload_it": "拖拽任意图片上传"
217
+ }
218
+ }
219
+ ]
220
+ },
221
+ "Select_field": "选中字段",
222
+ "Font_style": "字体样式",
223
+ "Open_link": "打开链接"
224
+ }