@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,205 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import React from 'react';
|
|
6
|
+
|
|
7
|
+
var ShortCut = /*#__PURE__*/function (_React$Component) {
|
|
8
|
+
_inherits(ShortCut, _React$Component);
|
|
9
|
+
|
|
10
|
+
var _super = _createSuper(ShortCut);
|
|
11
|
+
|
|
12
|
+
function ShortCut(props) {
|
|
13
|
+
var _this;
|
|
14
|
+
|
|
15
|
+
_classCallCheck(this, ShortCut);
|
|
16
|
+
|
|
17
|
+
_this = _super.call(this, props); // get platform of browser
|
|
18
|
+
|
|
19
|
+
_this.platfrom = navigator.platform.indexOf('Win') < 0 ? 'Mac' : 'Win';
|
|
20
|
+
return _this;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_createClass(ShortCut, [{
|
|
24
|
+
key: "render",
|
|
25
|
+
value: function render() {
|
|
26
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
27
|
+
className: 'help-shortcut'
|
|
28
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: 'help-shortcut-left'
|
|
30
|
+
}, this.props.shortcutName), /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: 'help-shortcut-right'
|
|
32
|
+
}, /*#__PURE__*/React.createElement(ShortCutRight, {
|
|
33
|
+
platfrom: this.platform,
|
|
34
|
+
shortcuts: this.props.shortcuts
|
|
35
|
+
})));
|
|
36
|
+
}
|
|
37
|
+
}]);
|
|
38
|
+
|
|
39
|
+
return ShortCut;
|
|
40
|
+
}(React.Component);
|
|
41
|
+
|
|
42
|
+
var ShortCutRight = /*#__PURE__*/function (_React$PureComponent) {
|
|
43
|
+
_inherits(ShortCutRight, _React$PureComponent);
|
|
44
|
+
|
|
45
|
+
var _super2 = _createSuper(ShortCutRight);
|
|
46
|
+
|
|
47
|
+
function ShortCutRight() {
|
|
48
|
+
_classCallCheck(this, ShortCutRight);
|
|
49
|
+
|
|
50
|
+
return _super2.apply(this, arguments);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
_createClass(ShortCutRight, [{
|
|
54
|
+
key: "render",
|
|
55
|
+
value: function render() {
|
|
56
|
+
var _this2 = this;
|
|
57
|
+
|
|
58
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.shortcuts.map(function (shortcut) {
|
|
59
|
+
var shortcutFirKey = shortcut[0];
|
|
60
|
+
var shortcutSecnKey = shortcut[1];
|
|
61
|
+
|
|
62
|
+
if (typeof shortcut[0] === 'object') {
|
|
63
|
+
if (_this2.platfrom === 'Win') {
|
|
64
|
+
shortcutFirKey = shortcut[0][0];
|
|
65
|
+
} else {
|
|
66
|
+
shortcutFirKey = shortcut[0][1];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: 'help-shortcut-right-container',
|
|
72
|
+
key: 'help' + shortcut[0]
|
|
73
|
+
}, shortcutFirKey ? /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: 'key shortcut-first'
|
|
75
|
+
}, shortcutFirKey) : null, shortcutSecnKey ? /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
className: 'key shortcut-second'
|
|
77
|
+
}, shortcutSecnKey) : null);
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
}]);
|
|
81
|
+
|
|
82
|
+
return ShortCutRight;
|
|
83
|
+
}(React.PureComponent);
|
|
84
|
+
|
|
85
|
+
var HelpShortcutList = /*#__PURE__*/function (_React$PureComponent2) {
|
|
86
|
+
_inherits(HelpShortcutList, _React$PureComponent2);
|
|
87
|
+
|
|
88
|
+
var _super3 = _createSuper(HelpShortcutList);
|
|
89
|
+
|
|
90
|
+
function HelpShortcutList(props) {
|
|
91
|
+
var _this3;
|
|
92
|
+
|
|
93
|
+
_classCallCheck(this, HelpShortcutList);
|
|
94
|
+
|
|
95
|
+
_this3 = _super3.call(this, props);
|
|
96
|
+
_this3.shortcutData = [{
|
|
97
|
+
'Make_list': [['*/-', 'space']],
|
|
98
|
+
'Make_ordered_list': [['1.', 'space']],
|
|
99
|
+
'Insert_new_item': [['Enter']],
|
|
100
|
+
'Insert_child_in_item': [['Shift', 'Enter']],
|
|
101
|
+
'Increase_depth': [['Tab']]
|
|
102
|
+
}, {
|
|
103
|
+
'Heading_1': [['#', 'space']],
|
|
104
|
+
'Heading_2': [['##', 'space']],
|
|
105
|
+
'Heading_3': [['###', 'space']],
|
|
106
|
+
'Heading_4': [['####', 'space']],
|
|
107
|
+
'Heading_5': [['#####', 'space']],
|
|
108
|
+
'Heading_6': [['######', 'space']]
|
|
109
|
+
}, {
|
|
110
|
+
'Make_code_block': [['```']],
|
|
111
|
+
'Insert_new_line': [['Enter']],
|
|
112
|
+
'Escape_code_block': [[['Ctrl', 'Cmd'], 'Enter']],
|
|
113
|
+
'Insert_indent': [['Tab']]
|
|
114
|
+
}, {
|
|
115
|
+
'Make_Block_quote': [['>', 'space']],
|
|
116
|
+
'Escape_Block_quote': [['Enter']]
|
|
117
|
+
}, {
|
|
118
|
+
'Insert_Table_Row': [['Enter']],
|
|
119
|
+
'Escape_table': [[['Ctrl', 'Cmd'], 'Enter']]
|
|
120
|
+
}, {
|
|
121
|
+
'Insert_Formula': [[['Ctrl', 'Cmd'], '$']]
|
|
122
|
+
}, {
|
|
123
|
+
'Bold': [['**bold** / __bold__', 'space']],
|
|
124
|
+
'Italic': [['*italic* / _italic_', 'space']],
|
|
125
|
+
'Italic_Bold': [['***italic*** / ___italic___', 'space']],
|
|
126
|
+
'Inline_code': [['`code`', 'space']]
|
|
127
|
+
}, {
|
|
128
|
+
'Save_file': [[['Ctrl', 'Cmd'], 's']]
|
|
129
|
+
}, {
|
|
130
|
+
'Paste_screen_shot': [[['Ctrl', 'Cmd'], 'v']],
|
|
131
|
+
'Drag_image_from_anywhere_to_upload_it': []
|
|
132
|
+
}];
|
|
133
|
+
return _this3;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
_createClass(HelpShortcutList, [{
|
|
137
|
+
key: "render",
|
|
138
|
+
value: function render() {
|
|
139
|
+
var title = this.props.data.shortcutType;
|
|
140
|
+
var dataList = this.props.data.shortcutData;
|
|
141
|
+
var liArr = [];
|
|
142
|
+
|
|
143
|
+
for (var prop in dataList) {
|
|
144
|
+
var shortcutKeyArr = this.shortcutData[this.props.index][prop];
|
|
145
|
+
liArr.push( /*#__PURE__*/React.createElement(ShortCut, {
|
|
146
|
+
key: 'help ' + prop,
|
|
147
|
+
shortcutName: dataList[prop],
|
|
148
|
+
shortcuts: shortcutKeyArr
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
153
|
+
className: 'help-content-container'
|
|
154
|
+
}, /*#__PURE__*/React.createElement("h5", {
|
|
155
|
+
className: 'help-shortcut-type'
|
|
156
|
+
}, title), /*#__PURE__*/React.createElement("ul", {
|
|
157
|
+
className: 'help-shortcut-list'
|
|
158
|
+
}, liArr));
|
|
159
|
+
}
|
|
160
|
+
}]);
|
|
161
|
+
|
|
162
|
+
return HelpShortcutList;
|
|
163
|
+
}(React.PureComponent);
|
|
164
|
+
|
|
165
|
+
var UserHelpDialog = /*#__PURE__*/function (_React$PureComponent3) {
|
|
166
|
+
_inherits(UserHelpDialog, _React$PureComponent3);
|
|
167
|
+
|
|
168
|
+
var _super4 = _createSuper(UserHelpDialog);
|
|
169
|
+
|
|
170
|
+
function UserHelpDialog() {
|
|
171
|
+
_classCallCheck(this, UserHelpDialog);
|
|
172
|
+
|
|
173
|
+
return _super4.apply(this, arguments);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
_createClass(UserHelpDialog, [{
|
|
177
|
+
key: "render",
|
|
178
|
+
value: function render() {
|
|
179
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
180
|
+
className: 'seafile-editor-help align-self-end'
|
|
181
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
182
|
+
className: 'help-header d-flex'
|
|
183
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
184
|
+
className: 'help-title'
|
|
185
|
+
}, this.props.userHelp.title), /*#__PURE__*/React.createElement("div", {
|
|
186
|
+
className: 'help-close',
|
|
187
|
+
onClick: this.props.hideHelpDialog
|
|
188
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
189
|
+
className: 'iconfont icon-times-circle'
|
|
190
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
191
|
+
className: 'help-content'
|
|
192
|
+
}, this.props.userHelp.userHelpData.map(function (item, index) {
|
|
193
|
+
return /*#__PURE__*/React.createElement(HelpShortcutList, {
|
|
194
|
+
key: 'help-list' + index,
|
|
195
|
+
index: index,
|
|
196
|
+
data: item
|
|
197
|
+
});
|
|
198
|
+
})));
|
|
199
|
+
}
|
|
200
|
+
}]);
|
|
201
|
+
|
|
202
|
+
return UserHelpDialog;
|
|
203
|
+
}(React.PureComponent);
|
|
204
|
+
|
|
205
|
+
export default UserHelpDialog;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.diff-added {
|
|
2
|
+
padding: 0 5px;
|
|
3
|
+
margin: 0 -5px;
|
|
4
|
+
background-color: #e6ffed;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.diff-removed {
|
|
9
|
+
padding: 0 5px;
|
|
10
|
+
margin: 0 -5px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
background-color: #ffeef0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.diff-removed * {
|
|
16
|
+
border-left: none;
|
|
17
|
+
padding-left: 0
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.diff-added * {
|
|
21
|
+
padding-left: 0;
|
|
22
|
+
border-left: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.diff-replaced {
|
|
27
|
+
padding-left: 2px;
|
|
28
|
+
margin-left: -5px;
|
|
29
|
+
border-left: 3px solid #f9c513;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.diff-replaced .diff-added {
|
|
33
|
+
background-color: #e6ffed;
|
|
34
|
+
margin-left: 0;
|
|
35
|
+
padding-left: 0;
|
|
36
|
+
overflow: visible;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.diff-replaced .diff-removed {
|
|
40
|
+
overflow: visible;
|
|
41
|
+
padding-left: 0;
|
|
42
|
+
color: #cb2431;
|
|
43
|
+
margin-left: 0;
|
|
44
|
+
background-color: #ffeef0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.diff-replaced .diff-replaced {
|
|
48
|
+
border-left: none;
|
|
49
|
+
margin-left: 0;
|
|
50
|
+
overflow: visible;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.diff-replaced .diff-removed-container {
|
|
54
|
+
padding: 0 5px;
|
|
55
|
+
margin: 0 -5px;
|
|
56
|
+
background-color: #ffeef0;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.diff-replaced .diff-added-container {
|
|
62
|
+
padding: 0 5px;
|
|
63
|
+
margin: 0 -5px;
|
|
64
|
+
background-color: #e6ffed;
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
.diff-replaced table .diff-added {
|
|
71
|
+
background-color: #e6ffed;
|
|
72
|
+
padding: 0 0;
|
|
73
|
+
margin: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.diff-replaced table .diff-removed {
|
|
77
|
+
background-color: #ffeef0;
|
|
78
|
+
margin: 0;
|
|
79
|
+
padding: 0 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.diff-replaced table tr.diff-replaced {
|
|
83
|
+
padding-left: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.diff-replaced del {
|
|
87
|
+
background-color: #fdb8c0;
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
color: #cb2431;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.diff-replaced ins {
|
|
93
|
+
background-color: #acf2bd;
|
|
94
|
+
text-decoration: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.article .diff-replaced .old-paragraph {
|
|
98
|
+
background-color: #ffeef0;
|
|
99
|
+
margin-bottom: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.article .diff-replaced .new-paragraph {
|
|
103
|
+
background-color: #e6ffed;
|
|
104
|
+
margin-top: 0;
|
|
105
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
.seafile-history-side-panel {
|
|
2
|
+
user-select: none;
|
|
3
|
+
border-left: 1px solid #e5e5e5;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
flex: 0 0 auto;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.history-side-panel-title {
|
|
11
|
+
height: 50px;
|
|
12
|
+
border-bottom: 1px solid #e5e5e5;
|
|
13
|
+
line-height: 50px;
|
|
14
|
+
font-size: 1rem;
|
|
15
|
+
padding: 0 10px;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
background-color: rgb(250,250,249);
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.history-side-panel-title .history-tile-text {
|
|
24
|
+
font-weight: bolder;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
.history-side-panel-title .history-title-close {
|
|
29
|
+
color: #b9b9b9;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.history-side-panel-title .history-title-close:hover {
|
|
33
|
+
color: #888;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
.history-list-container {
|
|
38
|
+
height: calc(100% - 36px);
|
|
39
|
+
overflow-y: hidden;
|
|
40
|
+
}
|
|
41
|
+
.history-list-container:hover {
|
|
42
|
+
overflow-y: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.item-active {
|
|
46
|
+
background-color: #fdc297;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.history-item-container {
|
|
50
|
+
padding: 0.5rem .8rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.history-item-container:not(.item-active):hover {
|
|
54
|
+
background-color: #ffe7d5;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.history-item-container div {
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.history-item-container .owner {
|
|
62
|
+
margin-top: 0.2rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.history-item-container .owner i {
|
|
66
|
+
color: #549b5a;
|
|
67
|
+
font-size: 0.2rem;
|
|
68
|
+
margin-right: 0.2rem;
|
|
69
|
+
vertical-align: middle;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.history-item-container .owner span {
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.diff-container {
|
|
77
|
+
flex: 1 1 auto;
|
|
78
|
+
overflow: auto;
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.diff-wrapper {
|
|
83
|
+
width: 90%;
|
|
84
|
+
border: 1px solid #e5e5e5;
|
|
85
|
+
margin: 20px auto;
|
|
86
|
+
background-color: #fff;
|
|
87
|
+
min-height: calc(100% - 40px);
|
|
88
|
+
padding: 70px 75px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (max-width:991.8px) {
|
|
92
|
+
.diff-container {
|
|
93
|
+
width: 100%;
|
|
94
|
+
box-sizing: border-box;
|
|
95
|
+
}
|
|
96
|
+
.diff-wrapper {
|
|
97
|
+
padding: 20px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
@media (min-width:992px) {
|
|
101
|
+
.seafile-history-side-panel {
|
|
102
|
+
width: 260px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.keyboard-shortcut-dialog {
|
|
2
|
+
max-width: 600px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.keyboard-shortcut-dialog .modal-body {
|
|
6
|
+
max-height: 500px;
|
|
7
|
+
overflow: auto;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.keyboard-shortcut-container {
|
|
11
|
+
line-height: 1.5;
|
|
12
|
+
border-radius: 3px;
|
|
13
|
+
padding-top: .5rem;
|
|
14
|
+
padding-bottom: .5rem;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
margin-top: 3px;
|
|
19
|
+
background-color: rgb(248, 248, 248);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.keyboard-shortcut-title {
|
|
23
|
+
font-size: 0.9rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.keyboard-shortcut-container>div:first-child {
|
|
27
|
+
text-align: right;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.keyboard-shortcut-container>div:last-child {
|
|
31
|
+
padding-left: 1rem;
|
|
32
|
+
padding-right: 1rem;
|
|
33
|
+
font-size: 13px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.keyboard-shortcut {
|
|
37
|
+
display: inline-block;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.keyboard-shortcut kbd {
|
|
41
|
+
font: inherit;
|
|
42
|
+
background-color: hsla(0,0%,100%,0.25);
|
|
43
|
+
border-color: rgba(0,0,0,0.1);
|
|
44
|
+
text-transform: uppercase;
|
|
45
|
+
text-align: center;
|
|
46
|
+
border-radius: 3px;
|
|
47
|
+
color: #333333;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
border-style: solid;
|
|
50
|
+
border-width: 1px;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
border-bottom-width: 2px;
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
margin-left: 1px;
|
|
55
|
+
margin-right: 1px;
|
|
56
|
+
margin-bottom: 0px;
|
|
57
|
+
min-width: 12px;
|
|
58
|
+
padding: 1px 3px;
|
|
59
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*set scroll bar*/
|
|
2
|
+
.seafile-editor-module ::-webkit-scrollbar{
|
|
3
|
+
width: 8px;
|
|
4
|
+
height: 8px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.iconfont {
|
|
8
|
+
font-size: 13px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.icon-drop-down {
|
|
12
|
+
display: inline-block;
|
|
13
|
+
transform: scale(0.8);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.icon-caret-up {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
transform: scale(0.8);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.seafile-editor-module ::-webkit-scrollbar-button {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.seafile-editor-module ::-webkit-scrollbar-thumb {
|
|
26
|
+
background-color: rgb(206, 206, 212);
|
|
27
|
+
border-radius: 10px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.seafile-editor {
|
|
31
|
+
position: fixed;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
min-width: 960px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.seafile-editor-main {
|
|
38
|
+
height: calc(100% - 96px);
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* fix plain editor main height */
|
|
43
|
+
.plain-editor-main {
|
|
44
|
+
height: calc(100% - 68px);
|
|
45
|
+
}
|
|
46
|
+
.seafile-editor-topbar {
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 68px;
|
|
49
|
+
background-color: #fff;
|
|
50
|
+
padding: 0px 10px;
|
|
51
|
+
border-bottom: 1px solid #e5e5e5;
|
|
52
|
+
box-shadow: 0 3px 2px -2px rgba(200,200,200,.15);
|
|
53
|
+
user-select: none;
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
align-items: center;
|
|
57
|
+
position: relative;
|
|
58
|
+
z-index: 3;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
.seafile-rich-editor-topbar {
|
|
63
|
+
width: 100%;
|
|
64
|
+
background-color: #fff;
|
|
65
|
+
border-bottom: 1px solid #e5e5e5;
|
|
66
|
+
box-shadow: 0 3px 2px -2px rgba(200,200,200,.15);
|
|
67
|
+
user-select: none;
|
|
68
|
+
position: relative;
|
|
69
|
+
z-index: 3;
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: space-between;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.seafile-rich-editor-topbar .use-help-icon {
|
|
75
|
+
background-color: #fff;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.seafile-editor-side-panel {
|
|
80
|
+
height: 100%;
|
|
81
|
+
background-color: #fff;
|
|
82
|
+
border-left: 1px solid rgb(230,230,221);
|
|
83
|
+
position: relative;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.seafile-editor-main-panel {
|
|
87
|
+
height: 100%;
|
|
88
|
+
background-color: rgb(250,250,249);
|
|
89
|
+
overflow-x: hidden;
|
|
90
|
+
display: flex;
|
|
91
|
+
flex: 0 0 1;
|
|
92
|
+
position: relative; /* for seafile-editor-resize */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.plain-editor-left-panel {
|
|
96
|
+
height: 100%;
|
|
97
|
+
width: 50%;
|
|
98
|
+
background-color: #fff;
|
|
99
|
+
border-right: 1px solid rgb(230,230,221);
|
|
100
|
+
overflow-y: scroll;
|
|
101
|
+
overflow-x: hidden;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.plain-editor-right-panel {
|
|
105
|
+
height: 100%;
|
|
106
|
+
width: 50%;
|
|
107
|
+
background-color: rgb(250,250,249);
|
|
108
|
+
overflow-y: scroll;
|
|
109
|
+
overflow-x: hidden;
|
|
110
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
.sf-md-viewer-topbar-second {
|
|
2
|
+
border-bottom: 1px solid #e5e5e5;
|
|
3
|
+
box-shadow: 0 3px 2px -2px rgba(200,200,200,.15);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.sf-related-files-bar {
|
|
7
|
+
display: flex;
|
|
8
|
+
padding: 4px 8px;
|
|
9
|
+
border-right: 1px solid #e6e6dd;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sf-related-files-bar a {
|
|
13
|
+
color: #212529;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.sf-related-files-bar a:hover {
|
|
17
|
+
color: #212529;
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.edit-related-file {
|
|
22
|
+
color: #666;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
margin-left: 10px;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.edit-related-file:hover {
|
|
29
|
+
text-decoration: underline;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sf-files-tags, .no-file-tag {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-wrap: wrap;
|
|
35
|
+
border-left: 1px solid #e6e6dd;
|
|
36
|
+
border-right: 1px solid #e6e6dd;
|
|
37
|
+
margin-bottom: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.no-file-tag {
|
|
41
|
+
padding: 4px 10px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.no-related-file {
|
|
45
|
+
margin: 0 2px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.sf-files-tag {
|
|
49
|
+
margin: 4px 8px;
|
|
50
|
+
width: max-content;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sf-files-tag:last-child {
|
|
56
|
+
background: none;
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
color: #666;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
margin-left: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sf-files-tag:last-child:hover {
|
|
64
|
+
text-decoration: underline;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sf-files-tag .file-tag-icon {
|
|
68
|
+
width: 12px;
|
|
69
|
+
height: 12px;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sf-files-tag .file-tag-name {
|
|
74
|
+
margin-left: 5px;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
}
|