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