@seafile/sdoc-editor 0.1.13 → 0.1.14
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/dist/basic-sdk/assets/css/layout.css +4 -5
- package/dist/basic-sdk/assets/css/sdoc-editor-toolbar.css +16 -9
- package/dist/basic-sdk/extension/menu/menu.css +3 -3
- package/dist/basic-sdk/extension/toolbar/index.js +2 -2
- package/dist/components/doc-operations/style.css +1 -1
- package/dist/config.js +16 -0
- package/dist/layout/header.js +1 -1
- package/dist/layout/layout.css +2 -6
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
flex: 1;
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
|
-
background: #f0f0f0;
|
|
11
10
|
min-height: 0;
|
|
12
11
|
}
|
|
13
12
|
|
|
@@ -19,13 +18,12 @@
|
|
|
19
18
|
padding: 0 10px;
|
|
20
19
|
background-color: #fff;
|
|
21
20
|
user-select: none;
|
|
22
|
-
border-bottom: 1px solid #
|
|
23
|
-
box-shadow: 0 3px 2px -2px rgb(200 200 200 / 15%)
|
|
21
|
+
border-bottom: 1px solid #e5e6e8;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
.sdoc-editor-container .sdoc-editor-content {
|
|
27
25
|
flex: 1;
|
|
28
|
-
|
|
26
|
+
background: #f5f5f5;
|
|
29
27
|
overflow: auto;
|
|
30
28
|
}
|
|
31
29
|
|
|
@@ -35,5 +33,6 @@
|
|
|
35
33
|
margin: 20px auto;
|
|
36
34
|
padding: 40px 60px;
|
|
37
35
|
background-color: #fff;
|
|
38
|
-
border: 1px solid
|
|
36
|
+
border: 1px solid #e5e6e8;
|
|
37
|
+
box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
|
|
39
38
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
.header-menu {
|
|
2
2
|
display: flex;
|
|
3
|
-
height:
|
|
3
|
+
height: 100%;
|
|
4
4
|
width: 140px;
|
|
5
|
-
padding:
|
|
6
|
-
|
|
7
|
-
border-
|
|
8
|
-
border-left: 1px solid #e5e5e5;
|
|
5
|
+
padding: 6px 10px;
|
|
6
|
+
border-right: 1px solid #e5e6e8;
|
|
7
|
+
border-left: 1px solid #e5e6e8;
|
|
9
8
|
position: relative;
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -14,7 +13,12 @@
|
|
|
14
13
|
display: flex;
|
|
15
14
|
justify-content: space-between;
|
|
16
15
|
align-items: center;
|
|
17
|
-
|
|
16
|
+
padding-left: 5px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.header-menu .header-toggle:hover {
|
|
20
|
+
background: #e5e5e5;
|
|
21
|
+
border-radius: 2px;
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
.header-menu .header-toggle .iconfont {
|
|
@@ -30,14 +34,17 @@
|
|
|
30
34
|
|
|
31
35
|
.header-menu .header-popover {
|
|
32
36
|
position: absolute;
|
|
33
|
-
top:
|
|
34
|
-
left:
|
|
37
|
+
top: 42px;
|
|
38
|
+
left: 10px;
|
|
35
39
|
padding: 8px 0;
|
|
40
|
+
background-color: #fff;
|
|
41
|
+
border: 1px solid #e5e6e8;
|
|
42
|
+
border-radius: 2px;
|
|
43
|
+
box-shadow: 0 0 10px #ccc;
|
|
36
44
|
display: flex;
|
|
37
45
|
flex-direction: column;
|
|
38
46
|
align-items: flex-start;
|
|
39
47
|
z-index: 10;
|
|
40
|
-
background-color: #fff;
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
.header-menu .header-popover .header-menu-item {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.menu-group {
|
|
2
2
|
height: 100%;
|
|
3
|
-
padding:
|
|
3
|
+
padding: 6px 0 6px 10px;
|
|
4
4
|
font-size: 0.75rem;
|
|
5
|
-
border-right: 1px solid #
|
|
5
|
+
border-right: 1px solid #e5e6e8;
|
|
6
6
|
color: #555555;
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
|
|
32
32
|
.menu-group .menu-group-item .iconfont {
|
|
33
33
|
font-size: 13px;
|
|
34
|
-
}
|
|
34
|
+
}
|
|
@@ -31,7 +31,7 @@ var Toolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
31
31
|
editor: this.props.editor
|
|
32
32
|
}), /*#__PURE__*/React.createElement(LinkMenu, {
|
|
33
33
|
editor: this.props.editor
|
|
34
|
-
}), /*#__PURE__*/React.createElement(QuoteMenu, {
|
|
34
|
+
})), /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(QuoteMenu, {
|
|
35
35
|
editor: this.props.editor
|
|
36
36
|
}), /*#__PURE__*/React.createElement(ListMenu, {
|
|
37
37
|
editor: this.props.editor,
|
|
@@ -41,7 +41,7 @@ var Toolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
41
41
|
type: ORDERED_LIST
|
|
42
42
|
}), /*#__PURE__*/React.createElement(CheckListMenu, {
|
|
43
43
|
editor: this.props.editor
|
|
44
|
-
}), /*#__PURE__*/React.createElement(CodeBlockMenu, {
|
|
44
|
+
})), /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(CodeBlockMenu, {
|
|
45
45
|
editor: this.props.editor
|
|
46
46
|
})));
|
|
47
47
|
}
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var serverConfig = {
|
|
2
|
+
//serviceUrl: "http://127.0.0.1:8000",
|
|
3
|
+
serviceUrl: "http://192.168.1.100:8000",
|
|
4
|
+
username: "lj@11.com",
|
|
5
|
+
password: "11",
|
|
6
|
+
repoID: "79d1fa93-4b5f-4d6c-8fb5-ad3958e1fa47",
|
|
7
|
+
userInfo: {
|
|
8
|
+
username: 'lj@11.com',
|
|
9
|
+
name: 'lj-',
|
|
10
|
+
contact_email: 'lj@11.com'
|
|
11
|
+
},
|
|
12
|
+
filePath: '/xxx.md',
|
|
13
|
+
fileName: 'xxx.md',
|
|
14
|
+
dirPath: '/'
|
|
15
|
+
};
|
|
16
|
+
export { serverConfig };
|
package/dist/layout/header.js
CHANGED
|
@@ -21,7 +21,7 @@ var Header = /*#__PURE__*/function (_Component) {
|
|
|
21
21
|
className = _this$props.className,
|
|
22
22
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
23
23
|
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
24
|
-
className: classnames('sdoc-editor-page-header', className)
|
|
24
|
+
className: classnames('sdoc-editor-page-header d-flex justify-content-between align-items-center px-4', className)
|
|
25
25
|
}, restProps), children);
|
|
26
26
|
}
|
|
27
27
|
}]);
|
package/dist/layout/layout.css
CHANGED
|
@@ -17,11 +17,7 @@ html, body {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.sdoc-editor-page-wrapper .sdoc-editor-page-header {
|
|
20
|
-
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
padding: 4px 10px;
|
|
24
|
-
border-bottom: 1px solid #c9c9c9;
|
|
20
|
+
border-bottom: 1px solid #e5e6e8;
|
|
25
21
|
flex-shrink: 0;
|
|
26
22
|
height: 56px;
|
|
27
23
|
}
|
|
@@ -30,4 +26,4 @@ html, body {
|
|
|
30
26
|
flex: 1;
|
|
31
27
|
min-height: 0;
|
|
32
28
|
display: flex;
|
|
33
|
-
}
|
|
29
|
+
}
|