@seafile/seafile-editor 0.3.97 → 0.3.98
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.
|
@@ -14,12 +14,16 @@ var KeyboardShortcuts = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
14
14
|
|
|
15
15
|
var _super = _createSuper(KeyboardShortcuts);
|
|
16
16
|
|
|
17
|
-
function KeyboardShortcuts(
|
|
17
|
+
function KeyboardShortcuts() {
|
|
18
18
|
var _this;
|
|
19
19
|
|
|
20
20
|
_classCallCheck(this, KeyboardShortcuts);
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
23
|
+
args[_key] = arguments[_key];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
23
27
|
|
|
24
28
|
_this.renderShortcut = function (keys) {
|
|
25
29
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
@@ -41,39 +45,6 @@ var KeyboardShortcuts = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
41
45
|
}, description));
|
|
42
46
|
};
|
|
43
47
|
|
|
44
|
-
_this.shortcutData = [{
|
|
45
|
-
'Make_list': [['*', 'space'], ['-', 'space']],
|
|
46
|
-
'Make_ordered_list': [['1.', 'space']],
|
|
47
|
-
'Insert_new_item': [['Enter']],
|
|
48
|
-
'Insert_child_in_item': [['Shift', 'Enter']],
|
|
49
|
-
'Increase_depth': [['Tab']]
|
|
50
|
-
}, {
|
|
51
|
-
'Heading_1': [['#', 'space']],
|
|
52
|
-
'Heading_2': [['##', 'space']],
|
|
53
|
-
'Heading_3': [['###', 'space']],
|
|
54
|
-
'Heading_4': [['####', 'space']],
|
|
55
|
-
'Heading_5': [['#####', 'space']],
|
|
56
|
-
'Heading_6': [['######', 'space']]
|
|
57
|
-
}, {
|
|
58
|
-
'Make_code_block': [['```'], ['space*4']],
|
|
59
|
-
'Insert_new_line': [['Enter']],
|
|
60
|
-
'Escape_code_block': [[controlKey, 'Enter']],
|
|
61
|
-
'Insert_indent': [['Tab']]
|
|
62
|
-
}, {
|
|
63
|
-
'Make_Block_quote': [['>', 'space']],
|
|
64
|
-
'Escape_Block_quote': [['Enter']]
|
|
65
|
-
}, {
|
|
66
|
-
'Insert_Table_Row': [['Enter']],
|
|
67
|
-
'Escape_table': [[controlKey, 'Enter']]
|
|
68
|
-
}, {
|
|
69
|
-
'Bold': [['**bold**', 'space'], ['__bold__', 'space']],
|
|
70
|
-
'Italic': [['*italic*', 'space'], ['_italic_', 'space']],
|
|
71
|
-
'Italic_Bold': [['***italic***', 'space'], ['___italic___', 'space']],
|
|
72
|
-
'Inline_code': [['`code`', 'space']]
|
|
73
|
-
}, {
|
|
74
|
-
'Paste_screen_shot': [[controlKey, 'v']],
|
|
75
|
-
'Drag_image_from_anywhere_to_upload_it': []
|
|
76
|
-
}];
|
|
77
48
|
return _this;
|
|
78
49
|
}
|
|
79
50
|
|
|
@@ -97,7 +68,7 @@ var KeyboardShortcuts = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
97
68
|
className: "pb-2"
|
|
98
69
|
}, /*#__PURE__*/React.createElement("div", {
|
|
99
70
|
className: "keyboard-shortcut-title pb-1"
|
|
100
|
-
}, t(userHelpData[1]['shortcutType'])), this.renderContainer(
|
|
71
|
+
}, t(userHelpData[1]['shortcutType'])), this.renderContainer(['#', 'space'], t(userHelpData[1].shortcutData['Heading_1'])), this.renderContainer(['##', 'space'], t(userHelpData[1].shortcutData['Heading_2'])), this.renderContainer(['###', 'space'], t(userHelpData[1].shortcutData['Heading_3'])), this.renderContainer(['####', 'space'], t(userHelpData[1].shortcutData['Heading_4'])), this.renderContainer(['#####', 'space'], t(userHelpData[1].shortcutData['Heading_5'])), this.renderContainer(['######', 'space'], t(userHelpData[1].shortcutData['Heading_6']))), /*#__PURE__*/React.createElement("div", {
|
|
101
72
|
className: "pb-2"
|
|
102
73
|
}, /*#__PURE__*/React.createElement("div", {
|
|
103
74
|
className: "keyboard-shortcut-title pb-1"
|
|
@@ -105,15 +76,15 @@ var KeyboardShortcuts = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
105
76
|
className: "keyboard-shortcut-container"
|
|
106
77
|
}, /*#__PURE__*/React.createElement("div", {
|
|
107
78
|
className: "col-4"
|
|
108
|
-
}, this.renderShortcut(
|
|
79
|
+
}, this.renderShortcut(['*', 'space']), this.renderShortcut(['-', 'space'])), /*#__PURE__*/React.createElement("div", {
|
|
109
80
|
className: "col-8"
|
|
110
81
|
}, t(userHelpData[0].shortcutData['Make_list']))), /*#__PURE__*/React.createElement("div", {
|
|
111
82
|
className: "keyboard-shortcut-container"
|
|
112
83
|
}, /*#__PURE__*/React.createElement("div", {
|
|
113
84
|
className: "col-4"
|
|
114
|
-
}, this.renderShortcut(
|
|
85
|
+
}, this.renderShortcut(['1.', 'space'])), /*#__PURE__*/React.createElement("div", {
|
|
115
86
|
className: "col-8"
|
|
116
|
-
}, t(userHelpData[0].shortcutData['Make_ordered_list']))), this.renderContainer(
|
|
87
|
+
}, t(userHelpData[0].shortcutData['Make_ordered_list']))), this.renderContainer(['Tab'], t(userHelpData[0].shortcutData['Increase_depth'])), this.renderContainer(['Shift', 'Enter'], t(userHelpData[0].shortcutData['Insert_child_in_item'])), this.renderContainer(['Enter'], t(userHelpData[0].shortcutData['Insert_new_item']))), /*#__PURE__*/React.createElement("div", {
|
|
117
88
|
className: "pb-2"
|
|
118
89
|
}, /*#__PURE__*/React.createElement("div", {
|
|
119
90
|
className: "keyboard-shortcut-title pb-1"
|
|
@@ -121,21 +92,21 @@ var KeyboardShortcuts = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
121
92
|
className: "keyboard-shortcut-container"
|
|
122
93
|
}, /*#__PURE__*/React.createElement("div", {
|
|
123
94
|
className: "col-4"
|
|
124
|
-
}, this.renderShortcut(
|
|
95
|
+
}, this.renderShortcut(['**bold**', 'space']), this.renderShortcut(['__bold__', 'space'])), /*#__PURE__*/React.createElement("div", {
|
|
125
96
|
className: "col-8"
|
|
126
|
-
}, t(userHelpData[
|
|
97
|
+
}, t(userHelpData[6].shortcutData['Bold']))), /*#__PURE__*/React.createElement("div", {
|
|
127
98
|
className: "keyboard-shortcut-container"
|
|
128
99
|
}, /*#__PURE__*/React.createElement("div", {
|
|
129
100
|
className: "col-4"
|
|
130
|
-
}, this.renderShortcut(
|
|
101
|
+
}, this.renderShortcut(['*italic*', 'space']), this.renderShortcut(['_italic_', 'space'])), /*#__PURE__*/React.createElement("div", {
|
|
131
102
|
className: "col-8"
|
|
132
|
-
}, t(userHelpData[
|
|
103
|
+
}, t(userHelpData[6].shortcutData['Italic']))), /*#__PURE__*/React.createElement("div", {
|
|
133
104
|
className: "keyboard-shortcut-container"
|
|
134
105
|
}, /*#__PURE__*/React.createElement("div", {
|
|
135
106
|
className: "col-4"
|
|
136
|
-
}, this.renderShortcut(
|
|
107
|
+
}, this.renderShortcut(['***italic***', 'space']), this.renderShortcut(['___italic___', 'space'])), /*#__PURE__*/React.createElement("div", {
|
|
137
108
|
className: "col-8"
|
|
138
|
-
}, t(userHelpData[
|
|
109
|
+
}, t(userHelpData[6].shortcutData['Italic_Bold']))), this.renderContainer(['`code`', 'space'], t(userHelpData[6].shortcutData['Inline_code']))), /*#__PURE__*/React.createElement("div", {
|
|
139
110
|
className: "pb-2"
|
|
140
111
|
}, /*#__PURE__*/React.createElement("div", {
|
|
141
112
|
className: "keyboard-shortcut-title pb-1"
|
|
@@ -143,21 +114,25 @@ var KeyboardShortcuts = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
143
114
|
className: "keyboard-shortcut-container"
|
|
144
115
|
}, /*#__PURE__*/React.createElement("div", {
|
|
145
116
|
className: "col-4"
|
|
146
|
-
}, this.renderShortcut(
|
|
117
|
+
}, this.renderShortcut(['```']), this.renderShortcut(['space*4'])), /*#__PURE__*/React.createElement("div", {
|
|
147
118
|
className: "col-8"
|
|
148
|
-
}, t(userHelpData[2].shortcutData['Make_code_block']))), this.renderContainer(
|
|
119
|
+
}, t(userHelpData[2].shortcutData['Make_code_block']))), this.renderContainer(['Tab'], t(userHelpData[2].shortcutData['Insert_indent'])), this.renderContainer(['Enter'], t(userHelpData[2].shortcutData['Insert_new_line'])), this.renderContainer([controlKey, 'Enter'], t(userHelpData[2].shortcutData['Escape_code_block']))), /*#__PURE__*/React.createElement("div", {
|
|
120
|
+
className: "pb-2"
|
|
121
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
122
|
+
className: "keyboard-shortcut-title pb-1"
|
|
123
|
+
}, t(userHelpData[3]['shortcutType'])), this.renderContainer(['>', 'space'], t(userHelpData[3].shortcutData['Make_Block_quote'])), this.renderContainer(['Enter'], t(userHelpData[3].shortcutData['Escape_Block_quote']))), /*#__PURE__*/React.createElement("div", {
|
|
149
124
|
className: "pb-2"
|
|
150
125
|
}, /*#__PURE__*/React.createElement("div", {
|
|
151
126
|
className: "keyboard-shortcut-title pb-1"
|
|
152
|
-
}, t(userHelpData[
|
|
127
|
+
}, t(userHelpData[4]['shortcutType'])), this.renderContainer(['Enter'], t(userHelpData[4].shortcutData['Insert_Table_Row'])), this.renderContainer([controlKey, 'Enter'], t(userHelpData[4].shortcutData['Escape_table']))), /*#__PURE__*/React.createElement("div", {
|
|
153
128
|
className: "pb-2"
|
|
154
129
|
}, /*#__PURE__*/React.createElement("div", {
|
|
155
130
|
className: "keyboard-shortcut-title pb-1"
|
|
156
|
-
}, t(userHelpData[
|
|
131
|
+
}, t(userHelpData[7]['shortcutType'])), this.renderContainer([controlKey, 's'], t(userHelpData[7].shortcutData['Save_file']))), /*#__PURE__*/React.createElement("div", {
|
|
157
132
|
className: "pb-2"
|
|
158
133
|
}, /*#__PURE__*/React.createElement("div", {
|
|
159
134
|
className: "keyboard-shortcut-title pb-1"
|
|
160
|
-
}, t(userHelpData[
|
|
135
|
+
}, t(userHelpData[8]['shortcutType'])), this.renderContainer([controlKey, 'v'], t(userHelpData[8].shortcutData['Paste_screen_shot']))))));
|
|
161
136
|
}
|
|
162
137
|
}]);
|
|
163
138
|
|
package/package.json
CHANGED
|
@@ -33,6 +33,8 @@
|
|
|
33
33
|
"switch_to_viewer": "切换到只读模式",
|
|
34
34
|
"help": "帮助",
|
|
35
35
|
"remove_table": "删除表格",
|
|
36
|
+
"column": "列",
|
|
37
|
+
"row": "行",
|
|
36
38
|
"Insert_Row_Before": "上方插入行",
|
|
37
39
|
"Insert_Row_After": "下方插入行",
|
|
38
40
|
"Insert_Column_Before": "左边插入列",
|
|
@@ -41,8 +43,6 @@
|
|
|
41
43
|
"Remove_Column": "删除当前列",
|
|
42
44
|
"Insert_Row": "插入行",
|
|
43
45
|
"Insert_Column": "插入列",
|
|
44
|
-
"column": "列",
|
|
45
|
-
"row": "行",
|
|
46
46
|
"set_align": "对齐方式",
|
|
47
47
|
"left": "左对齐",
|
|
48
48
|
"center": "居中",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"star": "添加星标",
|
|
53
53
|
"unstar": "移除星标",
|
|
54
54
|
"back_to_parent_directory":"返回上级目录",
|
|
55
|
-
"edit":"编辑",
|
|
55
|
+
"edit": "编辑",
|
|
56
56
|
"copy": "复制",
|
|
57
57
|
"copied": "已复制",
|
|
58
58
|
"internal_link": "内部链接",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"new_draft": "创建草稿",
|
|
95
95
|
"view_draft": "查看草稿",
|
|
96
96
|
"publish": "发布",
|
|
97
|
-
"this_file_has_a_draft": "这个文件有一个草稿.",
|
|
97
|
+
"this_file_has_a_draft": "这个文件有一个草稿.",
|
|
98
98
|
"delete": "删除",
|
|
99
99
|
"comments": "评论",
|
|
100
100
|
"add_a_comment": "增加评论",
|
|
@@ -112,8 +112,11 @@
|
|
|
112
112
|
"related_files": "相关文件",
|
|
113
113
|
"related_file": "相关文件",
|
|
114
114
|
"no_tags": "没有标签",
|
|
115
|
-
"
|
|
116
|
-
"
|
|
115
|
+
"Date": "日期",
|
|
116
|
+
"Participants": "参与人",
|
|
117
|
+
"Meeting_note": "会议记录",
|
|
118
|
+
"Chooser_document_type": "选择文档类型",
|
|
119
|
+
"Empty": "空",
|
|
117
120
|
"no_related_files": "没有相关文件",
|
|
118
121
|
"no_out_line": "没有大纲",
|
|
119
122
|
"Editing_files_in_this_browser_can_lead_to_slight_display_problems": "在此浏览器中,编辑文件可能导致轻微的显示问题。",
|
|
@@ -132,7 +135,6 @@
|
|
|
132
135
|
"Tags": "标签",
|
|
133
136
|
"Related_Files": "相关文档",
|
|
134
137
|
"Add_participants": "增加文件参与人",
|
|
135
|
-
"Clear_format": "清除格式",
|
|
136
138
|
"markdownLint": {
|
|
137
139
|
"missing_h1": {
|
|
138
140
|
"description": "文档缺少一级标题",
|
|
@@ -196,23 +198,23 @@
|
|
|
196
198
|
"Insert_Formula": "插入公式"
|
|
197
199
|
}
|
|
198
200
|
}, {
|
|
199
|
-
"shortcutType":"
|
|
201
|
+
"shortcutType":"行内快捷键",
|
|
200
202
|
"shortcutData": {
|
|
201
203
|
"Bold": "粗体",
|
|
202
204
|
"Italic": "斜体",
|
|
203
|
-
"Italic_Bold": "
|
|
205
|
+
"Italic_Bold": "斜体粗体",
|
|
204
206
|
"Inline_code": "行内代码"
|
|
205
207
|
}
|
|
206
208
|
}, {
|
|
207
|
-
"shortcutType": "
|
|
209
|
+
"shortcutType": "保存快捷键",
|
|
208
210
|
"shortcutData": {
|
|
209
211
|
"Save_file": "保存文件"
|
|
210
212
|
}
|
|
211
213
|
}, {
|
|
212
|
-
"shortcutType": "
|
|
214
|
+
"shortcutType": "图片快捷键",
|
|
213
215
|
"shortcutData": {
|
|
214
|
-
"Paste_screen_shot": "
|
|
215
|
-
"Drag_image_from_anywhere_to_upload_it": "
|
|
216
|
+
"Paste_screen_shot": "粘贴屏幕截图",
|
|
217
|
+
"Drag_image_from_anywhere_to_upload_it": "从任意地方拖动图像以上传"
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
220
|
]
|
package/dist/config-0.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var serverConfig = {
|
|
2
|
-
serviceUrl: "https://download.seafile.top",
|
|
3
|
-
username: "xxx",
|
|
4
|
-
password: "xxx",
|
|
5
|
-
repoID: "xxxxxxx-xxxx-xxx-xxx-xxxx",
|
|
6
|
-
userInfo: {
|
|
7
|
-
username: 'xxx',
|
|
8
|
-
name: 'xxx',
|
|
9
|
-
contact_email: 'xxxx'
|
|
10
|
-
},
|
|
11
|
-
filePath: '/demo.md',
|
|
12
|
-
fileName: 'demo.md',
|
|
13
|
-
dirPath: '/'
|
|
14
|
-
};
|
|
15
|
-
export { serverConfig };
|