@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,69 @@
|
|
|
1
|
+
#root {
|
|
2
|
+
height: 100%;
|
|
3
|
+
}
|
|
4
|
+
.seafile-md-viewer-content .article {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
.seafile-md-viewer-content {
|
|
8
|
+
background: #fff;
|
|
9
|
+
padding: 70px 75px;
|
|
10
|
+
border:1px solid #e6e6dd;
|
|
11
|
+
min-height: calc(100% - 60px);
|
|
12
|
+
}
|
|
13
|
+
.seafile-md-viewer-outline-heading2,
|
|
14
|
+
.seafile-md-viewer-outline-heading3 {
|
|
15
|
+
margin-left: .75rem;
|
|
16
|
+
line-height: 2.5;
|
|
17
|
+
color:#666;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
overflow:hidden;
|
|
20
|
+
text-overflow:ellipsis;
|
|
21
|
+
cursor:pointer;
|
|
22
|
+
}
|
|
23
|
+
.seafile-md-viewer-outline-heading3 {
|
|
24
|
+
margin-left: 2rem;
|
|
25
|
+
}
|
|
26
|
+
.seafile-md-viewer-outline-heading2:hover,
|
|
27
|
+
.seafile-md-viewer-outline-heading3:hover {
|
|
28
|
+
color: #eb8205;
|
|
29
|
+
}
|
|
30
|
+
.seafile-markdown-outline {
|
|
31
|
+
position: fixed;
|
|
32
|
+
padding-right: 1rem;
|
|
33
|
+
top: 97px;
|
|
34
|
+
right: 0;
|
|
35
|
+
width: 200px;
|
|
36
|
+
overflow: auto;
|
|
37
|
+
height: 80%;
|
|
38
|
+
}
|
|
39
|
+
.seafile-editor-outline {
|
|
40
|
+
border-left: 1px solid #ddd;
|
|
41
|
+
}
|
|
42
|
+
.seafile-markdown-outline .active {
|
|
43
|
+
color: #eb8205;
|
|
44
|
+
border-left: 1px solid #eb8205;
|
|
45
|
+
}
|
|
46
|
+
.seafile-markdown-outline .outline-h2, .seafile-markdown-outline .outline-h3 {
|
|
47
|
+
height: 30px;
|
|
48
|
+
margin-left: 0;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
font-size: 14px;
|
|
53
|
+
}
|
|
54
|
+
.seafile-markdown-outline .outline-h2 {
|
|
55
|
+
padding-left: 20px;
|
|
56
|
+
}
|
|
57
|
+
.seafile-markdown-outline .outline-h3 {
|
|
58
|
+
padding-left: 40px;
|
|
59
|
+
}
|
|
60
|
+
@media (max-width:991.8px) {
|
|
61
|
+
.seafile-md-viewer-content {
|
|
62
|
+
padding: 40px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@media (max-width:768px) {
|
|
66
|
+
.seafile-md-viewer-content {
|
|
67
|
+
padding: 20px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var defaultStyle = {
|
|
2
|
+
control: {
|
|
3
|
+
backgroundColor: '#fff',
|
|
4
|
+
fontSize: 14,
|
|
5
|
+
fontWeight: 'normal'
|
|
6
|
+
},
|
|
7
|
+
highlighter: {
|
|
8
|
+
overflow: 'hidden'
|
|
9
|
+
},
|
|
10
|
+
input: {
|
|
11
|
+
margin: 0
|
|
12
|
+
},
|
|
13
|
+
'&singleLine': {
|
|
14
|
+
control: {
|
|
15
|
+
display: 'inline-block',
|
|
16
|
+
width: 130
|
|
17
|
+
},
|
|
18
|
+
highlighter: {
|
|
19
|
+
padding: 1,
|
|
20
|
+
border: '2px inset transparent'
|
|
21
|
+
},
|
|
22
|
+
input: {
|
|
23
|
+
padding: 1,
|
|
24
|
+
border: '2px inset'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
'&multiLine': {
|
|
28
|
+
control: {},
|
|
29
|
+
highlighter: {
|
|
30
|
+
padding: 9
|
|
31
|
+
},
|
|
32
|
+
input: {
|
|
33
|
+
padding: '8px 6px',
|
|
34
|
+
minHeight: 90,
|
|
35
|
+
height: 90,
|
|
36
|
+
border: '1px solid #e6e6dd',
|
|
37
|
+
borderRadius: '5px',
|
|
38
|
+
overfflowY: 'auto',
|
|
39
|
+
'&focused': {
|
|
40
|
+
backgroundColor: '#cee4e5',
|
|
41
|
+
outlineOffset: '-2px',
|
|
42
|
+
outlineColor: '-webkit-focus-ring-color',
|
|
43
|
+
outlineStyle: 'auto',
|
|
44
|
+
outlineWidth: '5px'
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
suggestions: {
|
|
49
|
+
list: {
|
|
50
|
+
backgroundColor: 'white',
|
|
51
|
+
border: '1px solid rgba(0,0,0,0.15)',
|
|
52
|
+
fontSize: 14,
|
|
53
|
+
maxHeight: 200,
|
|
54
|
+
overflow: 'auto',
|
|
55
|
+
position: 'absolute',
|
|
56
|
+
bottom: 14,
|
|
57
|
+
width: '150px'
|
|
58
|
+
},
|
|
59
|
+
item: {
|
|
60
|
+
width: 'auto',
|
|
61
|
+
padding: '5px 15px',
|
|
62
|
+
overflowX: 'auto',
|
|
63
|
+
borderBottom: '1px solid rgba(0,0,0,0.15)',
|
|
64
|
+
'&focused': {
|
|
65
|
+
backgroundColor: '#f19654',
|
|
66
|
+
color: '#fff',
|
|
67
|
+
fontWeight: '400'
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
export { defaultStyle };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.sf-releted-files {
|
|
2
|
+
margin-top: 80px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.sf-releted-files-header {
|
|
6
|
+
border-top: 2px dashed #E6E6EB;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sf-releted-files-header h4 {
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
margin-top: 40px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sf-releted-files .sf-releted-file {
|
|
15
|
+
margin: 20px 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.sf-releted-files .sf-releted-files h4,
|
|
19
|
+
.sf-releted-files .sf-releted-files p {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sf-releted-files .sf-releted-file a {
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sf-releted-files .sf-releted-file .card-body {
|
|
28
|
+
padding: 0.5rem 1.5rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sf-releted-files .sf-releted-file .card {
|
|
32
|
+
border-radius: 10px;
|
|
33
|
+
background-color: #e5e5ea;
|
|
34
|
+
border-color: #e5e5ea;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sf-releted-files .sf-releted-file .card-title {
|
|
38
|
+
margin: 0 0 2px;
|
|
39
|
+
color: #333;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sf-releted-files .sf-releted-file .card-text {
|
|
43
|
+
color: #888;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sf-releted-file-arrow {
|
|
47
|
+
position: absolute;
|
|
48
|
+
right: 30px;
|
|
49
|
+
top: 50%;
|
|
50
|
+
margin-top: -8px;
|
|
51
|
+
border-top: 2px solid #aaa;
|
|
52
|
+
border-right: 2px solid #aaa;
|
|
53
|
+
transform: rotate(45deg);
|
|
54
|
+
width: 16px;
|
|
55
|
+
height: 16px;
|
|
56
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
.seafile-comment {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
position: relative;
|
|
5
|
+
height: 100%;
|
|
6
|
+
margin-top: -8px;
|
|
7
|
+
margin-bottom: -8px;
|
|
8
|
+
}
|
|
9
|
+
.seafile-comment-toggle-resolved {
|
|
10
|
+
width: 100%;
|
|
11
|
+
border-bottom: 1px solid #e5e5e5;
|
|
12
|
+
padding: 5px 10px;
|
|
13
|
+
display: flex;
|
|
14
|
+
position: absolute;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
}
|
|
18
|
+
.seafile-comment-list {
|
|
19
|
+
height: calc(100% - 135px);
|
|
20
|
+
margin-bottom: 135px;
|
|
21
|
+
margin-top: 32px;
|
|
22
|
+
overflow-y: auto;
|
|
23
|
+
background-color: #fff;
|
|
24
|
+
}
|
|
25
|
+
.seafile-comment-list.show-participants {
|
|
26
|
+
height: calc(100% - 165px);
|
|
27
|
+
margin-bottom: 155px;
|
|
28
|
+
}
|
|
29
|
+
.seafile-comment-list .comment-vacant {
|
|
30
|
+
padding: 1em;
|
|
31
|
+
text-align: center;
|
|
32
|
+
}
|
|
33
|
+
.seafile-comment-item {
|
|
34
|
+
padding: 15px 10px;
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
}
|
|
37
|
+
.seafile-comment-item .seafile-comment-info {
|
|
38
|
+
padding-bottom: 0.5em;
|
|
39
|
+
height: 3em;
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: flex-start;
|
|
42
|
+
}
|
|
43
|
+
.seafile-comment-item .seafile-comment-info .reviewer-info {
|
|
44
|
+
padding-left: 10px;
|
|
45
|
+
max-width: 75%;
|
|
46
|
+
}
|
|
47
|
+
.seafile-comment-item .seafile-comment-info .review-time {
|
|
48
|
+
font-size: 10px;
|
|
49
|
+
color: #777;
|
|
50
|
+
}
|
|
51
|
+
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown {
|
|
52
|
+
margin-left: auto;
|
|
53
|
+
}
|
|
54
|
+
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown button {
|
|
55
|
+
border: none;
|
|
56
|
+
box-shadow: none;
|
|
57
|
+
background-color: #fff;
|
|
58
|
+
}
|
|
59
|
+
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown .seafile-comment-dropdown-btn {
|
|
60
|
+
color: #999;
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
}
|
|
63
|
+
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown:hover .seafile-comment-dropdown-btn {
|
|
64
|
+
color: #555;
|
|
65
|
+
}
|
|
66
|
+
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown button:hover,
|
|
67
|
+
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown button:focus {
|
|
68
|
+
border: none;
|
|
69
|
+
box-shadow: none;
|
|
70
|
+
background-color: #eee;
|
|
71
|
+
}
|
|
72
|
+
.seafile-comment-item .seafile-comment-content {
|
|
73
|
+
margin-left: 42px;
|
|
74
|
+
}
|
|
75
|
+
.seafile-comment-item .seafile-comment-content p {
|
|
76
|
+
word-break: break-all;
|
|
77
|
+
}
|
|
78
|
+
.seafile-comment-item blockquote {
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
.seafile-comment-item .seafile-comment-content ol,
|
|
82
|
+
.seafile-comment-item .seafile-comment-content ul,
|
|
83
|
+
.seafile-comment-item .seafile-comment-content li {
|
|
84
|
+
margin-left: 10px;
|
|
85
|
+
}
|
|
86
|
+
.seafile-comment-item .seafile-comment-content table,
|
|
87
|
+
.seafile-comment-item .seafile-comment-content th,
|
|
88
|
+
.seafile-comment-item .seafile-comment-content td {
|
|
89
|
+
border: 1px solid #333;
|
|
90
|
+
}
|
|
91
|
+
.seafile-comment-item-resolved {
|
|
92
|
+
background-color: #e6ffed;
|
|
93
|
+
}
|
|
94
|
+
.seafile-comment-footer {
|
|
95
|
+
background-color: #fafaf9;
|
|
96
|
+
padding: 10px 10px;
|
|
97
|
+
border-top: 1px solid #e5e5e5;
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
min-height: 150px;
|
|
101
|
+
max-height: 300px;
|
|
102
|
+
position: absolute;
|
|
103
|
+
bottom: -16px;
|
|
104
|
+
width: 100%;
|
|
105
|
+
}
|
|
106
|
+
.seafile-comment-footer .add-comment-input,
|
|
107
|
+
.seafile-edit-comment .edit-comment-input {
|
|
108
|
+
border: 1px solid #e6e6dd;
|
|
109
|
+
padding: 5px;
|
|
110
|
+
min-height: 90px;
|
|
111
|
+
border-radius: 5px;
|
|
112
|
+
background-color: #fff;
|
|
113
|
+
width: 100%;
|
|
114
|
+
}
|
|
115
|
+
.seafile-comment-footer .submit-comment {
|
|
116
|
+
margin-top: 5px;
|
|
117
|
+
width: fit-content;
|
|
118
|
+
height: 28px;
|
|
119
|
+
display: inline-block;
|
|
120
|
+
}
|
|
121
|
+
.seafile-edit-comment .comment-btn {
|
|
122
|
+
height: 28px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.seafile-viewer-comment-btn {
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 0;
|
|
128
|
+
right: 5000px;
|
|
129
|
+
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
130
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
131
|
+
border-radius: 3px;
|
|
132
|
+
background-color: #fff;
|
|
133
|
+
padding: 5px;
|
|
134
|
+
}
|
|
135
|
+
.seafile-viewer-comment-btn:hover {
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
background-color: #eee;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.comment-dialog {
|
|
141
|
+
width: 500px;
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: 30%;
|
|
144
|
+
right: 0;
|
|
145
|
+
padding: 15px;
|
|
146
|
+
background-color: #fafafa;
|
|
147
|
+
border: 1px solid rgba(0,0,0,.2);
|
|
148
|
+
border-radius: .3rem;
|
|
149
|
+
box-shadow: 0 0 3px #ccc;
|
|
150
|
+
z-index: 1000;
|
|
151
|
+
}
|
|
152
|
+
.comment-dialog-triangle {
|
|
153
|
+
position: absolute;
|
|
154
|
+
left: -5px;
|
|
155
|
+
top: 50%;
|
|
156
|
+
transform: rotate(45deg);
|
|
157
|
+
border: 1px solid rgba(0,0,0,.2);
|
|
158
|
+
border-top: none;
|
|
159
|
+
border-right: none;
|
|
160
|
+
width: 10px;
|
|
161
|
+
height: 10px;
|
|
162
|
+
background-color: #fafafa;
|
|
163
|
+
box-shadow: -1px 1px #ccc;
|
|
164
|
+
}
|
|
165
|
+
.comment-dialog textarea {
|
|
166
|
+
width: 100%;
|
|
167
|
+
min-height: 100px;
|
|
168
|
+
max-height: 300px;
|
|
169
|
+
padding: 5px;
|
|
170
|
+
background-color: #fff;
|
|
171
|
+
}
|
|
172
|
+
.comment-dialog .button-group .btn {
|
|
173
|
+
margin-right: 10px;
|
|
174
|
+
}
|
|
175
|
+
.comment-dialog .comment-dialog-quote {
|
|
176
|
+
margin-top: 10px;
|
|
177
|
+
max-height: 6rem;
|
|
178
|
+
overflow: auto;
|
|
179
|
+
padding-left: 1rem;
|
|
180
|
+
}
|
|
181
|
+
.comment-dialog .comment-dialog-quote ul,
|
|
182
|
+
.comment-dialog .comment-dialog-quote ol {
|
|
183
|
+
padding-left: 1rem;
|
|
184
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
.dirent-table-container {
|
|
2
|
+
padding: 0px 10px;
|
|
3
|
+
display: flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dirent-table-container tr {
|
|
7
|
+
border: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dirent-table-container table {
|
|
11
|
+
flex: 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dirent-table-container th,
|
|
15
|
+
.dirent-table-container td {
|
|
16
|
+
padding: 5px 3px;
|
|
17
|
+
border: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dirent-table-container th {
|
|
21
|
+
font-size: 13px;
|
|
22
|
+
text-align: left;
|
|
23
|
+
font-weight: normal;
|
|
24
|
+
color: #9c9c9c;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dirent-table-container td {
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
color: #333;
|
|
30
|
+
word-break: break-all;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dirent-table-container .file-tag-container th {
|
|
34
|
+
vertical-align: top;
|
|
35
|
+
list-style: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dirent-table-container .file-tag-container .tag-list {
|
|
39
|
+
list-style: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.file-tag-list li {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
max-width: 180px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.file-tag-list .file-tag-item {
|
|
49
|
+
margin: .25rem 0;
|
|
50
|
+
padding: 0 .5rem;
|
|
51
|
+
width: max-content;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
background-color: #eee;
|
|
54
|
+
border-radius: 1rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.file-tag-list .file-tag-item .file-tag {
|
|
58
|
+
width: 12px;
|
|
59
|
+
height: 12px;
|
|
60
|
+
position: relative;
|
|
61
|
+
display: inline-block;
|
|
62
|
+
width: 1rem;
|
|
63
|
+
height: 1rem;
|
|
64
|
+
border-radius: 50%;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.file-tag-list .tag-name {
|
|
68
|
+
display: inline-block;
|
|
69
|
+
margin-left: 5px;
|
|
70
|
+
width: 80px;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.file-related-files th {
|
|
77
|
+
vertical-align: top;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.file-related-files td i {
|
|
81
|
+
padding: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.file-related-files td ul {
|
|
85
|
+
list-style: none;
|
|
86
|
+
max-height: 100px;
|
|
87
|
+
overflow-y: scroll;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
overflow-x: hidden;
|
|
90
|
+
text-overflow: ellipsis;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.file-related-files td ul li {
|
|
94
|
+
margin-bottom: 5px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.file-related-files ul li a,
|
|
98
|
+
.list-related-file-table tr td a {
|
|
99
|
+
color: #333;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.list-related-file-body {
|
|
103
|
+
min-height: 200px;
|
|
104
|
+
max-height: 500px;
|
|
105
|
+
overflow-y: scroll;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.detail-container .tab-content {
|
|
109
|
+
height: calc(100% - 73px);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.detail-container .nav-item .nav-link, .detail-container .nav-item .nav-link i {
|
|
113
|
+
margin: 0 auto;
|
|
114
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
.seafile-editor-module .info-item {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
font-size: 16px;
|
|
6
|
+
padding: 5px;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.seafile-editor-module .info-item-title {
|
|
12
|
+
flex: 0 0 160px;
|
|
13
|
+
height: 100%;
|
|
14
|
+
color: #a5a4a2;
|
|
15
|
+
height: 35px;
|
|
16
|
+
line-height: 35px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.seafile-editor-module .info-item-title i {
|
|
20
|
+
margin-right: 4px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.seafile-editor-module .info-item-content {
|
|
24
|
+
flex: 1 1 auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.seafile-editor-module .info-item-content:hover {
|
|
28
|
+
background: #f7f7f7;
|
|
29
|
+
border-radius: 5px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.seafile-editor-module .info-item-content input{
|
|
33
|
+
height: 35px;
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
border: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.seafile-editor-module .participants-item {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
margin-right: 5px;
|
|
41
|
+
line-height: 35px;
|
|
42
|
+
height: 35px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.seafile-editor-module .participants-item .avatar {
|
|
46
|
+
width: 24px;
|
|
47
|
+
height: 24px;
|
|
48
|
+
vertical-align: middle;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.seafile-editor-module .select-module.select-module-name {
|
|
52
|
+
margin-left: 5px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.seafile-editor-module .rc-calendar-table tr {
|
|
56
|
+
height: 1.75rem;
|
|
57
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.seafile-editor-module .selected-formula {
|
|
2
|
+
outline: 2px solid #007bff;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.seafile-editor-module .block-formula {
|
|
6
|
+
display: block;
|
|
7
|
+
user-select: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.seafile-editor-module .MathJax {
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.formula-preview {
|
|
15
|
+
padding: 10px;
|
|
16
|
+
border: 2px dashed #ebebeb;
|
|
17
|
+
min-height: 40px;
|
|
18
|
+
overflow-x: auto;
|
|
19
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
.seafile-ed-image {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
}
|
|
6
|
+
.seafile-ed-image .seafile-ed-image-inResizing {
|
|
7
|
+
box-shadow: 0 0 0 2px #007bff;
|
|
8
|
+
}
|
|
9
|
+
.seafile-ed-image .image-resizer {
|
|
10
|
+
width: 10px;
|
|
11
|
+
height: 10px;
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: -5px;
|
|
14
|
+
bottom: -5px;
|
|
15
|
+
transform: ();
|
|
16
|
+
background-color: #007bff;
|
|
17
|
+
border: 1px solid #fff;
|
|
18
|
+
cursor: se-resize;
|
|
19
|
+
}
|
|
20
|
+
.image-size {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
padding: 5px;
|
|
23
|
+
height: 22px;
|
|
24
|
+
position: absolute;
|
|
25
|
+
bottom: -25px;
|
|
26
|
+
left: 100%;
|
|
27
|
+
transform: translateX(5px);
|
|
28
|
+
border-radius: 3px;
|
|
29
|
+
line-height: 12px;
|
|
30
|
+
color: #fff;
|
|
31
|
+
background-color: #4c4c4c;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.seafile-ed-image .image-full-button {
|
|
36
|
+
position: absolute;
|
|
37
|
+
height: 26px;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
width: 26px;
|
|
40
|
+
top: 0;
|
|
41
|
+
right: -32px;
|
|
42
|
+
text-align: center;
|
|
43
|
+
line-height: 20px;
|
|
44
|
+
padding: 2px;
|
|
45
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
|
|
46
|
+
border-radius: 3px;
|
|
47
|
+
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
48
|
+
background-color: #fff;
|
|
49
|
+
user-select: none!important;
|
|
50
|
+
z-index: 1000;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.seafile-ed-image-viwer:hover .image-full-button {
|
|
54
|
+
display: inline-block;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.seafile-ed-image-viwer .image-full-button {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 5px;
|
|
60
|
+
right: 5px;
|
|
61
|
+
display: none;
|
|
62
|
+
background-color: #efefef;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.image-full-button:hover{
|
|
67
|
+
display: block;
|
|
68
|
+
background-color: #efefef;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.image-tooltip {
|
|
72
|
+
display: none;
|
|
73
|
+
position: absolute;
|
|
74
|
+
box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
|
|
75
|
+
left: 50%;
|
|
76
|
+
bottom: -10px;
|
|
77
|
+
transform: translate(-50%, 100%);
|
|
78
|
+
background: #fff;
|
|
79
|
+
padding: 2px;
|
|
80
|
+
border-radius: 2px;
|
|
81
|
+
white-space:nowrap;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.image-tooltip::before{
|
|
85
|
+
position: absolute;
|
|
86
|
+
content: '';
|
|
87
|
+
top: -5px;
|
|
88
|
+
left: 50%;
|
|
89
|
+
margin-left: -5px;
|
|
90
|
+
transform: rotate(45deg);
|
|
91
|
+
border-width: 5px;
|
|
92
|
+
border-style: solid;
|
|
93
|
+
box-shadow: -2px -2px 3px rgba(0, 0, 0, 0.1);
|
|
94
|
+
border-color:#fff transparent transparent #fff;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.image-full-button:hover .image-tooltip {
|
|
98
|
+
display: inline;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.big-image-cover {
|
|
102
|
+
position: fixed;
|
|
103
|
+
top: 0;
|
|
104
|
+
bottom: 0;
|
|
105
|
+
right: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
108
|
+
z-index: 1049;
|
|
109
|
+
text-align: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.big-image-container {
|
|
113
|
+
position: absolute;
|
|
114
|
+
width: 100%;
|
|
115
|
+
top: 50px;
|
|
116
|
+
bottom: 0;
|
|
117
|
+
overflow-y: auto;
|
|
118
|
+
padding: 0 30px 10px 30px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.big-image-cover .image-container-close {
|
|
122
|
+
position: absolute;
|
|
123
|
+
top: 20px;
|
|
124
|
+
right: 20px;
|
|
125
|
+
border-radius: 50%;
|
|
126
|
+
height: 20px;
|
|
127
|
+
width: 20px;
|
|
128
|
+
z-index: 10000;
|
|
129
|
+
font-size: 20px;
|
|
130
|
+
color: hsla(0,0%,100%,.6);
|
|
131
|
+
line-height: 26px;
|
|
132
|
+
text-align: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.image-container-close:hover {
|
|
136
|
+
color: #fff;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.big-image-cover img{
|
|
140
|
+
max-width: 100%;
|
|
141
|
+
}
|