5htp-core 0.4.9-1 → 0.4.9-5
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/package.json +4 -1
- package/src/client/assets/css/components/lists.less +3 -3
- package/src/client/assets/css/components/table.less +1 -0
- package/src/client/components/Form.ts +1 -1
- package/src/client/components/Select/ChoiceElement.tsx +20 -27
- package/src/client/components/Select/index.tsx +24 -42
- package/src/client/components/Table/index.tsx +24 -79
- package/src/client/components/inputv3/Rte/Editor.tsx +16 -8
- package/src/client/components/inputv3/Rte/ToolbarPlugin/index.tsx +6 -1
- package/src/client/components/inputv3/Rte/plugins/DraggableBlockPlugin/index.css +23 -23
- package/src/client/components/inputv3/Rte/plugins/DraggableBlockPlugin/index.tsx +26 -24
- package/src/client/components/inputv3/Rte/plugins/FloatingLinkEditorPlugin/index.css +10 -38
- package/src/client/components/inputv3/Rte/plugins/FloatingLinkEditorPlugin/index.tsx +349 -356
- package/src/client/components/inputv3/Rte/plugins/FloatingTextFormatToolbarPlugin/index.css +80 -84
- package/src/client/components/inputv3/Rte/plugins/FloatingTextFormatToolbarPlugin/index.tsx +308 -347
- package/src/client/components/inputv3/Rte/style.less +0 -2
- package/src/client/components/inputv3/Rte/themes/PlaygroundEditorTheme.ts +1 -1
- package/src/client/components/inputv3/base.less +0 -6
- package/src/client/components/inputv3/base.tsx +2 -2
- package/src/client/components/inputv3/file/index.tsx +50 -48
- package/src/client/components/inputv3/index.tsx +0 -0
- package/src/client/services/router/request/api.ts +29 -13
- package/src/common/router/request/api.ts +6 -4
- package/src/common/validation/schema.ts +8 -2
- package/src/common/validation/validator.ts +3 -3
- package/src/server/services/disks/driver.ts +2 -0
- package/src/server/services/disks/drivers/s3/index.ts +30 -1
- package/src/server/services/router/request/index.ts +1 -1
- package/src/server/utils/rte.ts +217 -59
- package/src/server/utils/slug.ts +67 -0
- package/src/server/services/schema/rte.ts +0 -110
|
@@ -7,135 +7,131 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
.floating-text-format-popup {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
border-radius: 8px;
|
|
21
|
-
transition: opacity 0.5s;
|
|
22
|
-
height: 35px;
|
|
23
|
-
will-change: transform;
|
|
10
|
+
display: flex;
|
|
11
|
+
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
z-index: 10;
|
|
16
|
+
|
|
17
|
+
opacity: 0;
|
|
18
|
+
transition: opacity 0.5s;
|
|
19
|
+
will-change: transform;
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
.floating-text-format-popup button.popup-item {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
border: 0;
|
|
24
|
+
display: flex;
|
|
25
|
+
background: none;
|
|
26
|
+
border-radius: 10px;
|
|
27
|
+
padding: 8px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
vertical-align: middle;
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
.floating-text-format-popup button.popup-item:disabled {
|
|
37
|
-
|
|
33
|
+
cursor: not-allowed;
|
|
38
34
|
}
|
|
39
35
|
|
|
40
36
|
.floating-text-format-popup button.popup-item.spaced {
|
|
41
|
-
|
|
37
|
+
margin-right: 2px;
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
.floating-text-format-popup button.popup-item i.format {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
background-size: contain;
|
|
42
|
+
height: 18px;
|
|
43
|
+
width: 18px;
|
|
44
|
+
margin-top: 2px;
|
|
45
|
+
vertical-align: -0.25em;
|
|
46
|
+
display: flex;
|
|
47
|
+
opacity: 0.6;
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
.floating-text-format-popup button.popup-item:disabled i.format {
|
|
55
|
-
|
|
51
|
+
opacity: 0.2;
|
|
56
52
|
}
|
|
57
53
|
|
|
58
54
|
.floating-text-format-popup button.popup-item.active {
|
|
59
|
-
|
|
55
|
+
background-color: rgba(223, 232, 250, 0.3);
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
.floating-text-format-popup button.popup-item.active i {
|
|
63
|
-
|
|
59
|
+
opacity: 1;
|
|
64
60
|
}
|
|
65
61
|
|
|
66
62
|
.floating-text-format-popup .popup-item:hover:not([disabled]) {
|
|
67
|
-
|
|
63
|
+
background-color: #eee;
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
.floating-text-format-popup select.popup-item {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
67
|
+
border: 0;
|
|
68
|
+
display: flex;
|
|
69
|
+
background: none;
|
|
70
|
+
border-radius: 10px;
|
|
71
|
+
padding: 8px;
|
|
72
|
+
vertical-align: middle;
|
|
73
|
+
-webkit-appearance: none;
|
|
74
|
+
-moz-appearance: none;
|
|
75
|
+
width: 70px;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
color: #777;
|
|
78
|
+
text-overflow: ellipsis;
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
.floating-text-format-popup select.code-language {
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
text-transform: capitalize;
|
|
83
|
+
width: 130px;
|
|
88
84
|
}
|
|
89
85
|
|
|
90
86
|
.floating-text-format-popup .popup-item .text {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
87
|
+
display: flex;
|
|
88
|
+
line-height: 20px;
|
|
89
|
+
vertical-align: middle;
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
color: #777;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
width: 70px;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
height: 20px;
|
|
96
|
+
text-align: left;
|
|
101
97
|
}
|
|
102
98
|
|
|
103
99
|
.floating-text-format-popup .popup-item .icon {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
100
|
+
display: flex;
|
|
101
|
+
width: 20px;
|
|
102
|
+
height: 20px;
|
|
103
|
+
user-select: none;
|
|
104
|
+
margin-right: 8px;
|
|
105
|
+
line-height: 16px;
|
|
106
|
+
background-size: contain;
|
|
111
107
|
}
|
|
112
108
|
|
|
113
109
|
.floating-text-format-popup i.chevron-down {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
110
|
+
margin-top: 3px;
|
|
111
|
+
width: 16px;
|
|
112
|
+
height: 16px;
|
|
113
|
+
display: flex;
|
|
114
|
+
user-select: none;
|
|
119
115
|
}
|
|
120
116
|
|
|
121
117
|
.floating-text-format-popup i.chevron-down.inside {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
118
|
+
width: 16px;
|
|
119
|
+
height: 16px;
|
|
120
|
+
display: flex;
|
|
121
|
+
margin-left: -25px;
|
|
122
|
+
margin-top: 11px;
|
|
123
|
+
margin-right: 10px;
|
|
124
|
+
pointer-events: none;
|
|
129
125
|
}
|
|
130
126
|
|
|
131
127
|
.floating-text-format-popup .divider {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
width: 1px;
|
|
129
|
+
background-color: #eee;
|
|
130
|
+
margin: 0 4px;
|
|
135
131
|
}
|
|
136
132
|
|
|
137
133
|
@media (max-width: 1024px) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
134
|
+
.floating-text-format-popup button.insert-comment {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
}
|