5htp-core 0.5.9 → 0.6.0-1
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/client/app/component.tsx +1 -0
- package/client/assets/css/colors.less +265 -0
- package/client/assets/css/components/button.less +27 -9
- package/client/assets/css/components/card.less +24 -0
- package/client/assets/css/components/input.less +0 -4
- package/client/assets/css/components/mantine.less +11 -0
- package/client/assets/css/components/other.less +1 -0
- package/client/assets/css/components/progressbar.less +45 -0
- package/client/assets/css/components/table.less +8 -12
- package/client/assets/css/components.less +1 -0
- package/client/assets/css/core.less +6 -4
- package/client/assets/css/text/text.less +4 -9
- package/client/assets/css/theme.less +10 -0
- package/client/assets/css/utils/layouts.less +8 -4
- package/client/assets/css/utils/sizing.less +2 -0
- package/client/components/Card/index.tsx +1 -2
- package/client/components/Checkbox.tsx +2 -1
- package/client/components/DropDown.tsx +11 -5
- package/client/components/Input.tsx +1 -0
- package/client/components/Rte/ToolbarPlugin/BlockFormat.tsx +1 -1
- package/client/components/Rte/ToolbarPlugin/ElementFormat.tsx +5 -3
- package/client/components/Rte/ToolbarPlugin/index.tsx +4 -4
- package/client/components/Select.tsx +95 -69
- package/client/components/Table/index.tsx +34 -23
- package/client/components/containers/Popover/index.tsx +1 -1
- package/client/components/containers/Popover/popover.less +1 -1
- package/client/components/index.ts +3 -2
- package/client/components/utils.tsx +5 -5
- package/client/index.ts +1 -0
- package/client/services/router/components/router.tsx +0 -1
- package/client/services/router/index.tsx +1 -2
- package/client/services/router/request/api.ts +4 -4
- package/common/errors/index.tsx +6 -0
- package/common/router/index.ts +8 -2
- package/package.json +1 -2
- package/server/app/commands.ts +2 -21
- package/server/app/container/console/index.ts +1 -6
- package/server/app/container/index.ts +0 -2
- package/server/app/index.ts +88 -22
- package/server/app/service/index.ts +30 -35
- package/server/services/auth/index.ts +15 -17
- package/server/services/auth/old.ts +1 -1
- package/server/services/auth/router/index.ts +24 -12
- package/server/services/cache/index.ts +5 -16
- package/server/services/cron/index.ts +2 -9
- package/server/services/database/index.ts +5 -10
- package/server/services/database/stats.ts +0 -2
- package/server/services/disks/driver.ts +1 -1
- package/server/services/disks/drivers/s3/index.ts +4 -8
- package/server/services/disks/index.ts +10 -9
- package/server/services/email/index.ts +5 -2
- package/server/services/email/transporter.ts +1 -21
- package/server/services/fetch/index.ts +9 -11
- package/server/services/fetch/service.json +2 -1
- package/server/services/prisma/index.ts +1 -14
- package/server/services/router/index.ts +28 -53
- package/server/services/router/request/api.ts +2 -7
- package/server/services/router/service.ts +5 -17
- package/server/services/security/encrypt/aes/index.ts +1 -1
- package/server/services/socket/index.ts +11 -19
- package/types/global/utils.d.ts +44 -1
- package/types/icons.d.ts +1 -1
- package/server/app/container/patch.ts +0 -15
package/client/app/component.tsx
CHANGED
|
@@ -69,6 +69,7 @@ export default function App({ context }: {
|
|
|
69
69
|
SegmentedControl: { defaultProps: { size: 'md' } },
|
|
70
70
|
Menu: { defaultProps: { size: 'md' } },
|
|
71
71
|
MenuItem: { defaultProps: { size: 'md' } },
|
|
72
|
+
Autocomplete: { defaultProps: { size: 'md' } },
|
|
72
73
|
// Add any others you use...
|
|
73
74
|
},
|
|
74
75
|
}} withGlobalStyles withNormalizeCSS>
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
@import (reference) '@/client/assets/vars.less';
|
|
2
|
+
|
|
3
|
+
/*----------------------------------
|
|
4
|
+
- BASIC THEMES
|
|
5
|
+
----------------------------------*/
|
|
6
|
+
|
|
7
|
+
@whiteTheme: {
|
|
8
|
+
alpha: false;
|
|
9
|
+
background: #FFF;
|
|
10
|
+
foreground: #555;
|
|
11
|
+
accent1: @c1;
|
|
12
|
+
accent2: @c2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@greyTheme: {
|
|
16
|
+
alpha: false;
|
|
17
|
+
background: #F3F3F3;
|
|
18
|
+
foreground: #4D4D4D;
|
|
19
|
+
accent1: @c1;
|
|
20
|
+
accent2: @c2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@silverTheme: {
|
|
24
|
+
alpha: false;
|
|
25
|
+
background: @cBgPage - #080808;
|
|
26
|
+
foreground: #777;
|
|
27
|
+
accent1: @c1;
|
|
28
|
+
accent2: @c2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@darkTheme: {
|
|
32
|
+
alpha: false;
|
|
33
|
+
background: #000;
|
|
34
|
+
foreground: #DDD;
|
|
35
|
+
accent1: #83B2FF;
|
|
36
|
+
accent2: @c2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@darkerTheme: {
|
|
40
|
+
alpha: false;
|
|
41
|
+
background: #181818;
|
|
42
|
+
foreground: #bbb;
|
|
43
|
+
accent1: #fff;
|
|
44
|
+
accent2: @c2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@darkestTheme: {
|
|
48
|
+
alpha: false;
|
|
49
|
+
background: #242424;
|
|
50
|
+
foreground: #ddd;
|
|
51
|
+
accent1: #fff;
|
|
52
|
+
accent2: @c2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*----------------------------------
|
|
56
|
+
- COLOR THEMES
|
|
57
|
+
----------------------------------*/
|
|
58
|
+
|
|
59
|
+
@primaryTheme: {
|
|
60
|
+
alpha: false;
|
|
61
|
+
background: #111;
|
|
62
|
+
foreground: #fff;
|
|
63
|
+
accent1: #FFF;
|
|
64
|
+
accent2: #FFF;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/*@accentTheme: {
|
|
68
|
+
alpha: false;
|
|
69
|
+
background: @c1;
|
|
70
|
+
foreground: #fff;
|
|
71
|
+
accent1: #fff;
|
|
72
|
+
accent2: #fff;;
|
|
73
|
+
}*/
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@accentTheme: {
|
|
78
|
+
alpha: false;
|
|
79
|
+
background: @c1;
|
|
80
|
+
foreground: #fff;
|
|
81
|
+
accent1: #fff;
|
|
82
|
+
accent2: #fff;;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@accentLightTheme: {
|
|
86
|
+
alpha: false;
|
|
87
|
+
background: #EAE8F9;
|
|
88
|
+
foreground: @c1 - #444;
|
|
89
|
+
accent1: #fff;
|
|
90
|
+
accent2: #fff;;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.bg.primary {
|
|
94
|
+
|
|
95
|
+
.apply-theme(@primaryTheme);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.bg.accent {
|
|
99
|
+
.apply-theme(@accentTheme);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.bg.accent.light,
|
|
103
|
+
.btn.bg.col.active {
|
|
104
|
+
.apply-theme(@accentLightTheme);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.bg.grey {
|
|
108
|
+
.apply-theme(@greyTheme, @whiteTheme);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.card,
|
|
112
|
+
.bg.white {
|
|
113
|
+
.apply-theme(@whiteTheme, @greyTheme);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.bg.silver {
|
|
117
|
+
.apply-theme(@silverTheme, @whiteTheme);
|
|
118
|
+
|
|
119
|
+
box-shadow: inset 0 0 20px fade(#000, 5%)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.bg.dark {
|
|
123
|
+
.apply-theme(@darkTheme, @darkerTheme);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.bg.darker {
|
|
127
|
+
.apply-theme(@darkerTheme, @darkestTheme);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/*----------------------------------
|
|
131
|
+
- GRADIENT & IMG THEMES
|
|
132
|
+
----------------------------------*/
|
|
133
|
+
|
|
134
|
+
.bg.img {
|
|
135
|
+
|
|
136
|
+
.apply-theme({
|
|
137
|
+
alpha: true;
|
|
138
|
+
background: #000;
|
|
139
|
+
foreground: fade(#fff, 60%);
|
|
140
|
+
accent1: #fff;
|
|
141
|
+
accent2: green;
|
|
142
|
+
}, @whiteTheme);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.card:not(.bg), .card.bg.white {
|
|
146
|
+
border: 1px solid var(--cLine);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* --- vivid swatches --- */
|
|
150
|
+
.bg.color1 { .color-theme(#1fb4ff ); } // bright cyan
|
|
151
|
+
.bg.color2 { .color-theme(#ff6a1a ); } // vivid orange
|
|
152
|
+
.bg.color3 { .color-theme(#f52ff9 ); } // hot magenta
|
|
153
|
+
.bg.color4 { .color-theme(#962eff ); } // electric violet
|
|
154
|
+
.bg.color5 { .color-theme(#23ff6e ); } // neon green
|
|
155
|
+
.bg.color6 { .color-theme(#ffde1f ); } // vibrant yellow
|
|
156
|
+
.bg.color7 { .color-theme(#ff145d ); } // punch‑red
|
|
157
|
+
.bg.color8 { .color-theme(#12fff9 ); } // aqua glow
|
|
158
|
+
.bg.color9 { .color-theme(#ffba1f ); } // golden amber
|
|
159
|
+
.bg.color10 { .color-theme(#1eff5e ); } // lime burst
|
|
160
|
+
|
|
161
|
+
/* --- matching light versions (≈20 % tint of base) --- */
|
|
162
|
+
.bg.light1 { .color-theme(#d2f0ff ); }
|
|
163
|
+
.bg.light2 { .color-theme(#ffe1d1 ); }
|
|
164
|
+
.bg.light3 { .color-theme(#fdd5fe ); }
|
|
165
|
+
.bg.light4 { .color-theme(#ead5ff ); }
|
|
166
|
+
.bg.light5 { .color-theme(#d3ffe2 ); }
|
|
167
|
+
.bg.light6 { .color-theme(#fff8d2 ); }
|
|
168
|
+
.bg.light7 { .color-theme(#ffd0df ); }
|
|
169
|
+
.bg.light8 { .color-theme(#d0fffe ); }
|
|
170
|
+
.bg.light9 { .color-theme(#fff1d2 ); }
|
|
171
|
+
.bg.light10 { .color-theme(#d2ffdf ); }
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
.bg.success {
|
|
175
|
+
box-shadow: none;
|
|
176
|
+
border: none;
|
|
177
|
+
|
|
178
|
+
.apply-theme({
|
|
179
|
+
alpha: false;
|
|
180
|
+
background: #D7FEEE;
|
|
181
|
+
foreground: darken( #D7FEEE, 80% );
|
|
182
|
+
accent1: #111;
|
|
183
|
+
accent2: #111;
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
&.light {
|
|
187
|
+
.apply-theme({
|
|
188
|
+
alpha: false;
|
|
189
|
+
background: lighten( @cSuccess, 40% );
|
|
190
|
+
foreground: darken( @cSuccess, 50% );
|
|
191
|
+
accent1: #111;
|
|
192
|
+
accent2: #111;
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.bg.error {
|
|
198
|
+
box-shadow: none;
|
|
199
|
+
border: none;
|
|
200
|
+
|
|
201
|
+
.apply-theme({
|
|
202
|
+
alpha: false;
|
|
203
|
+
background: lighten( @cError, 20% );
|
|
204
|
+
foreground: darken( @cError, 50% );
|
|
205
|
+
accent1: #111;
|
|
206
|
+
accent2: #111;
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.bg.warn {
|
|
211
|
+
box-shadow: none;
|
|
212
|
+
border: none;
|
|
213
|
+
|
|
214
|
+
.apply-theme({
|
|
215
|
+
alpha: false;
|
|
216
|
+
background: lighten( @cWarn, 20% );
|
|
217
|
+
foreground: darken( @cWarn, 50% );
|
|
218
|
+
accent1: #111;
|
|
219
|
+
accent2: #111;
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
&.light {
|
|
223
|
+
.apply-theme({
|
|
224
|
+
alpha: false;
|
|
225
|
+
background: lighten( @cWarn, 20% );
|
|
226
|
+
foreground: darken( @cWarn, 50% );
|
|
227
|
+
accent1: #111;
|
|
228
|
+
accent2: #111;
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.bg.info {
|
|
234
|
+
box-shadow: none;
|
|
235
|
+
border: none;
|
|
236
|
+
|
|
237
|
+
.apply-theme({
|
|
238
|
+
alpha: false;
|
|
239
|
+
background: lighten( @cInfo, 50% );
|
|
240
|
+
foreground: darken( @cInfo, 50% );
|
|
241
|
+
accent1: #111;
|
|
242
|
+
accent2: #111;
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
&.light {
|
|
246
|
+
.apply-theme({
|
|
247
|
+
alpha: false;
|
|
248
|
+
background: lighten( @cInfo, 35% );
|
|
249
|
+
foreground: darken( @cInfo, 50% );
|
|
250
|
+
accent1: #111;
|
|
251
|
+
accent2: #111;
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.fg {
|
|
257
|
+
|
|
258
|
+
&.primary { .build-theme-fg(@c1, #fff); }
|
|
259
|
+
|
|
260
|
+
&.desc { color: var(--cTxtDesc); }
|
|
261
|
+
|
|
262
|
+
&.success { .build-theme-fg( @cSuccess ); }
|
|
263
|
+
&.error { .build-theme-fg( @cError ); }
|
|
264
|
+
&.warn { .build-theme-fg( @cWarn ); }
|
|
265
|
+
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
font-size: 1em;
|
|
19
19
|
padding: 0 1.5em;
|
|
20
20
|
height: @sizeComponent;
|
|
21
|
+
min-height: @sizeComponent;
|
|
21
22
|
|
|
22
23
|
// Shape
|
|
23
24
|
border-radius: @radius;
|
|
@@ -159,19 +160,20 @@
|
|
|
159
160
|
color: var(--cTxtAccent);
|
|
160
161
|
}
|
|
161
162
|
|
|
163
|
+
&.secondary {
|
|
164
|
+
border: 1px solid var(--cLine);
|
|
165
|
+
|
|
166
|
+
&:hover {
|
|
167
|
+
border-color: var(--cLine2);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
162
171
|
/*----------------------------------
|
|
163
172
|
- STATE
|
|
164
173
|
----------------------------------*/
|
|
165
174
|
|
|
166
175
|
cursor: pointer;
|
|
167
176
|
|
|
168
|
-
&:not(.primary).active {
|
|
169
|
-
|
|
170
|
-
&.col {
|
|
171
|
-
box-shadow: 0 0 0 0.2em @c2;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
177
|
&[disabled] {
|
|
176
178
|
cursor: default;
|
|
177
179
|
opacity: 0.5;
|
|
@@ -278,7 +280,7 @@
|
|
|
278
280
|
&.menu > .btn,
|
|
279
281
|
&.menu > li > .btn {
|
|
280
282
|
|
|
281
|
-
> .label {
|
|
283
|
+
&:not(.col) > .label {
|
|
282
284
|
// All the list items label must be aligned
|
|
283
285
|
justify-content: flex-start;
|
|
284
286
|
// Since they're all horizontally aligned,
|
|
@@ -288,6 +290,20 @@
|
|
|
288
290
|
}
|
|
289
291
|
}
|
|
290
292
|
|
|
293
|
+
.submenu.card {
|
|
294
|
+
animation: aff-submenu 0.1s ease;
|
|
295
|
+
@keyframes aff-submenu {
|
|
296
|
+
0% {
|
|
297
|
+
opacity: 0;
|
|
298
|
+
transform: scale(0.8);
|
|
299
|
+
}
|
|
300
|
+
100% {
|
|
301
|
+
opacity: 1;
|
|
302
|
+
transform: scale(1);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
291
307
|
ul.col,
|
|
292
308
|
ul.row {
|
|
293
309
|
|
|
@@ -322,7 +338,9 @@ ul.col {
|
|
|
322
338
|
&.menu > li > .btn {
|
|
323
339
|
|
|
324
340
|
// Align items ver sla gauche
|
|
325
|
-
|
|
341
|
+
&:not(.col) {
|
|
342
|
+
justify-content: flex-start;
|
|
343
|
+
}
|
|
326
344
|
|
|
327
345
|
// Align all icons by giveing them the same width
|
|
328
346
|
> i {
|
|
@@ -17,6 +17,17 @@
|
|
|
17
17
|
|
|
18
18
|
background-color: var(--cBg);
|
|
19
19
|
padding: @cardPadding;
|
|
20
|
+
box-shadow: 0 3px 2px fade(#000, 10%);
|
|
21
|
+
border: 1px solid fade(#000, 10%);
|
|
22
|
+
|
|
23
|
+
&.floating {
|
|
24
|
+
box-shadow: 0 10px 50px fade(black, 15%);
|
|
25
|
+
z-index: 10;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.minimal {
|
|
29
|
+
box-shadow: none;
|
|
30
|
+
}
|
|
20
31
|
|
|
21
32
|
&.row {
|
|
22
33
|
padding: @cardPadding @cardPaddingLong;
|
|
@@ -48,6 +59,15 @@
|
|
|
48
59
|
}
|
|
49
60
|
}
|
|
50
61
|
|
|
62
|
+
a&,
|
|
63
|
+
&.clickable {
|
|
64
|
+
text-decoration: none; // Remove a underline
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
border-color: #aaa;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
51
71
|
&.col {
|
|
52
72
|
padding: @cardPadding @cardPaddingLong;
|
|
53
73
|
|
|
@@ -92,6 +112,10 @@
|
|
|
92
112
|
|
|
93
113
|
&.menu {
|
|
94
114
|
padding: @cardPaddingLong;
|
|
115
|
+
|
|
116
|
+
&.popover {
|
|
117
|
+
padding: @cardPaddingMini;
|
|
118
|
+
}
|
|
95
119
|
}
|
|
96
120
|
|
|
97
121
|
/*----------------------------------
|
|
@@ -24,6 +24,17 @@
|
|
|
24
24
|
--number-input-height-md: @sizeComponent;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
.mantine-SegmentedControl-root {
|
|
28
|
+
--segmented-control-height-md: @sizeComponent;
|
|
29
|
+
--mantine-SegmentedControl-height: @sizeComponent;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.mantine-TextInput-wrapper textarea {
|
|
33
|
+
--input-line-height: 1.5;
|
|
34
|
+
--input-padding-y: @spacing;
|
|
35
|
+
--input-padding-x: @spacing;
|
|
36
|
+
}
|
|
37
|
+
|
|
27
38
|
|
|
28
39
|
|
|
29
40
|
/*----------------------------------
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@import (reference) "@/client/assets/vars.less";
|
|
2
|
+
|
|
3
|
+
div.progressbar {
|
|
4
|
+
|
|
5
|
+
background: var(--cLine);
|
|
6
|
+
position: relative;
|
|
7
|
+
|
|
8
|
+
@hProgress: 0.5rem;
|
|
9
|
+
|
|
10
|
+
&,
|
|
11
|
+
> .progress {
|
|
12
|
+
border-radius: @hProgress / 2rem;
|
|
13
|
+
height: @hProgress;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
> .progress {
|
|
17
|
+
--cBg: var(--cTxtAccent);
|
|
18
|
+
background: var(--cBg);
|
|
19
|
+
width: 0%;
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
transition: width .25s ease-in;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.col {
|
|
25
|
+
|
|
26
|
+
width: @hProgress * 2rem;
|
|
27
|
+
|
|
28
|
+
&,
|
|
29
|
+
> .progress {
|
|
30
|
+
border-radius: @hProgress;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
> .progress {
|
|
34
|
+
|
|
35
|
+
width: auto;
|
|
36
|
+
height: 0%;
|
|
37
|
+
max-height: 100%;
|
|
38
|
+
|
|
39
|
+
position: absolute;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
left: 0;
|
|
42
|
+
right: 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
.table {
|
|
2
|
+
|
|
2
3
|
overflow: auto;
|
|
3
|
-
|
|
4
|
+
|
|
5
|
+
&.scrollable {
|
|
6
|
+
max-height: 90vh;
|
|
7
|
+
}
|
|
4
8
|
|
|
5
9
|
> table {
|
|
6
10
|
border-collapse: collapse;
|
|
@@ -27,7 +31,6 @@ table {
|
|
|
27
31
|
|
|
28
32
|
// By default, chrome disables text inherits
|
|
29
33
|
line-height: inherit;
|
|
30
|
-
font-size: 0.9em;
|
|
31
34
|
|
|
32
35
|
th {
|
|
33
36
|
font-weight: 500;
|
|
@@ -37,7 +40,8 @@ table {
|
|
|
37
40
|
|
|
38
41
|
td, th {
|
|
39
42
|
|
|
40
|
-
padding:
|
|
43
|
+
padding: 0.6em 1em;
|
|
44
|
+
font-size: 1rem;
|
|
41
45
|
text-align: left;
|
|
42
46
|
|
|
43
47
|
&:not(:last-child) {
|
|
@@ -74,7 +78,7 @@ table {
|
|
|
74
78
|
top: 0;
|
|
75
79
|
background: var(--cBg);
|
|
76
80
|
white-space: break-spaces;
|
|
77
|
-
z-index:
|
|
81
|
+
z-index: 2;
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
tbody {
|
|
@@ -126,14 +130,6 @@ table {
|
|
|
126
130
|
}
|
|
127
131
|
}
|
|
128
132
|
|
|
129
|
-
// Size
|
|
130
|
-
&.s, .table.s & {
|
|
131
|
-
td, th {
|
|
132
|
-
padding: 0.7em 1em;
|
|
133
|
-
font-size: 1rem;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
133
|
// Tableua responsive
|
|
138
134
|
// Utilisation déconseillée (lauvaise utilisation de l'espace, ergonomie horrible
|
|
139
135
|
/*@media (max-width: @responsive2) {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@import '@mantine/core/styles.css';
|
|
3
3
|
|
|
4
4
|
// Utils
|
|
5
|
+
@import './colors.less';
|
|
5
6
|
@import (reference) "./theme.less";
|
|
6
|
-
|
|
7
7
|
// Apply the theme class
|
|
8
8
|
.bg {
|
|
9
9
|
background-color: var(--cBg);
|
|
@@ -78,23 +78,25 @@
|
|
|
78
78
|
html {
|
|
79
79
|
font-size: @sTxtPage;
|
|
80
80
|
line-height: 1.25em;
|
|
81
|
-
font-weight: 400;
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
* {
|
|
85
84
|
box-sizing: border-box;
|
|
86
85
|
outline: none;
|
|
87
86
|
font-size: 1em;
|
|
87
|
+
font-weight: 500;
|
|
88
88
|
padding: 0;
|
|
89
89
|
margin: 0;
|
|
90
|
-
// Avoids flexbox childrens to overflw parent
|
|
91
|
-
min-width: 0;
|
|
92
90
|
|
|
93
91
|
&, &:hover, &:focus {
|
|
94
92
|
-webkit-tap-highlight-color: transparent;
|
|
95
93
|
}
|
|
96
94
|
}
|
|
97
95
|
|
|
96
|
+
p {
|
|
97
|
+
font-weight: 400;
|
|
98
|
+
}
|
|
99
|
+
|
|
98
100
|
body {
|
|
99
101
|
// Pas propre. A eviter (ex: perturbation smooth scroll
|
|
100
102
|
//overflow-x: hidden;
|
|
@@ -42,15 +42,6 @@ p, .p {
|
|
|
42
42
|
margin: 0; // Overwrite browser defaults
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.desc {
|
|
46
|
-
font-size: 0.8rem;
|
|
47
|
-
color: var(--cTxtDesc);
|
|
48
|
-
|
|
49
|
-
i {
|
|
50
|
-
height: 1.16rem;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
45
|
// Gestion des dépassements
|
|
55
46
|
//.bouton, // Empêche le label d'être affiché en mode icone only
|
|
56
47
|
.bouton > .label /* <Select /> */ {
|
|
@@ -114,6 +105,10 @@ strong.number {
|
|
|
114
105
|
line-height: 1em;
|
|
115
106
|
}
|
|
116
107
|
|
|
108
|
+
.nowrap {
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
}
|
|
111
|
+
|
|
117
112
|
em {
|
|
118
113
|
/*font-style: normal;
|
|
119
114
|
position: relative;
|
|
@@ -42,6 +42,11 @@
|
|
|
42
42
|
display: flex;
|
|
43
43
|
flex-wrap: nowrap;
|
|
44
44
|
|
|
45
|
+
> * {
|
|
46
|
+
// Avoids flexbox childrens to overflw parent
|
|
47
|
+
min-width: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
&.scrollable {
|
|
46
51
|
> * {
|
|
47
52
|
min-width: fit-content;
|
|
@@ -134,10 +139,9 @@
|
|
|
134
139
|
display: flex;
|
|
135
140
|
flex-direction: column;
|
|
136
141
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
142
|
+
// Not too precice as it culd override important heights (ex: btn)
|
|
143
|
+
:where(& > *) {
|
|
144
|
+
min-height: fit-content;
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
// Put this one at first because high possibilities we need to override
|
|
@@ -7,8 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import type { ComponentChild } from 'preact';
|
|
8
8
|
|
|
9
9
|
// Core components
|
|
10
|
-
import { Logo } from '@client/components';
|
|
11
|
-
import { Link } from '@client/services/router';
|
|
10
|
+
import { Logo, Link } from '@client/components';
|
|
12
11
|
|
|
13
12
|
// Resources
|
|
14
13
|
import './index.less';
|
|
@@ -26,7 +26,7 @@ export default (initProps: Props) => {
|
|
|
26
26
|
- INIT
|
|
27
27
|
----------------------------------*/
|
|
28
28
|
|
|
29
|
-
const [{ title }, { errors, required, ...props }] = useMantineInput<Props>(initProps);
|
|
29
|
+
const [{ title, onChange }, { errors, required, ...props }] = useMantineInput<Props>(initProps);
|
|
30
30
|
|
|
31
31
|
/*----------------------------------
|
|
32
32
|
- RENDER
|
|
@@ -37,6 +37,7 @@ export default (initProps: Props) => {
|
|
|
37
37
|
error={errors?.join(', ')}
|
|
38
38
|
required={required}
|
|
39
39
|
{...props}
|
|
40
|
+
onChange={e => onChange?.(e.target.checked)}
|
|
40
41
|
/>
|
|
41
42
|
)
|
|
42
43
|
}
|