koishi-plugin-chat-patch 5.0.0 → 5.0.2
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/web/dist/assets/AppIcon-DIku6-h0.png +0 -0
- package/client/web/dist/assets/AppIconDark-BYymN71t.png +0 -0
- package/client/web/dist/assets/CapacitorAppIcon-CSZwNhvi.png +0 -0
- package/client/web/dist/assets/CapacitorAppIconDark-BMvMOzsg.png +0 -0
- package/client/web/dist/assets/Chat-CTdyeaX2.css +1 -0
- package/client/web/dist/assets/Chat-DkZvD7d8.js +28 -0
- package/client/web/dist/assets/MealHungryPan-Beos3lRI.js +1 -0
- package/client/web/dist/assets/MsgBody-aZ4_aija.js +1 -0
- package/client/web/dist/assets/MsgBody.vue_vue_type_script_setup_true_lang-CPZjRLp6.js +67 -0
- package/client/web/dist/assets/NapcatAppIcon-C7VOAkW9.png +0 -0
- package/client/web/dist/assets/Vue-lEhHouxB.png +0 -0
- package/client/web/dist/assets/append_darwin-CqBNU62J.css +1 -0
- package/client/web/dist/assets/append_full_vibrancy-j0D2LM9m.css +1 -0
- package/client/web/dist/assets/append_linux-uhxeBqeC.css +1 -0
- package/client/web/dist/assets/append_linux_vibrancy-COiZq8MS.css +1 -0
- package/client/web/dist/assets/append_napcat-DV8CAyAd.css +1 -0
- package/client/web/dist/assets/append_new-407Lo5_V.css +1 -0
- package/client/web/dist/assets/append_vibrancy-6FHctkOY.css +1 -0
- package/client/web/dist/assets/append_win32-srmD-78y.css +1 -0
- package/client/web/dist/assets/cakes-CxTVKdnK.svg +189 -0
- package/client/web/dist/assets/core-DhEqZVGG.js +1 -0
- package/client/web/dist/assets/event-Cadp6m6J.js +1 -0
- package/client/web/dist/assets/index-CPTXiemn.js +4045 -0
- package/client/web/dist/assets/index-Cg_esKB0.js +1 -0
- package/client/web/dist/assets/index-Cln012sP.css +1 -0
- package/client/web/dist/assets//346/226/271/346/255/243/345/226/265/345/221/234/344/275/223-CJKIKBn3.ttf +0 -0
- package/client/web/dist/assets//346/234/237/345/276/205-C90_OY60.png +0 -0
- package/client/web/dist/bcui/css/color-dark.css +35 -0
- package/client/web/dist/bcui/css/color-light.css +35 -0
- package/client/web/dist/bcui/css/style.css +468 -0
- package/client/web/dist/bcui/js/main.js +193 -0
- package/client/web/dist/css/append-dark.css +13 -0
- package/client/web/dist/css/append-light.css +13 -0
- package/client/web/dist/css/append-napcat-dark.css +14 -0
- package/client/web/dist/css/append-napcat-light.css +14 -0
- package/client/web/dist/favicon.ico +0 -0
- package/client/web/dist/img/icons/icon-for-fuck-apple.png +0 -0
- package/client/web/dist/img/icons/icon-maskable.png +0 -0
- package/client/web/dist/img/icons/icon.png +0 -0
- package/client/web/dist/img/icons/icon.svg +10 -0
- package/client/web/dist/index.html +22 -0
- package/client/web/dist/robots.txt +2 -0
- package/client/web/dist/sw.js +58 -0
- package/package.json +1 -1
- package/readme.md +45 -1
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
input {
|
|
2
|
+
caret-color: var(--color-main);
|
|
3
|
+
color: var(--color-font);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ss-code {
|
|
7
|
+
background: var(--color-main);
|
|
8
|
+
color: var(--color-font-r);
|
|
9
|
+
border-radius: 7px;
|
|
10
|
+
padding: 3px 10px;
|
|
11
|
+
margin: 0 5px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ss-card {
|
|
15
|
+
background-color: var(--color-card);;
|
|
16
|
+
box-shadow:0 0 5px transparent;
|
|
17
|
+
transition: box-shadow .3s;
|
|
18
|
+
color: var(--color-font);
|
|
19
|
+
border-radius: 7px;
|
|
20
|
+
min-height: 40px;
|
|
21
|
+
min-width: 40px;
|
|
22
|
+
padding: 20px;
|
|
23
|
+
}
|
|
24
|
+
.ss-card div[class="ss-card"] {
|
|
25
|
+
min-height: 65px;
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
.ss-card div[class="ss-card"] header {
|
|
29
|
+
padding: 20px 0 0 20px;
|
|
30
|
+
}
|
|
31
|
+
.ss-card div[class="ss-card"] > button > svg {
|
|
32
|
+
margin-right: 20px;
|
|
33
|
+
margin-top: -25px;
|
|
34
|
+
}
|
|
35
|
+
.ss-card:hover {
|
|
36
|
+
box-shadow:0 0 5px var(--color-shader);
|
|
37
|
+
}
|
|
38
|
+
.ss-card header {
|
|
39
|
+
color: var(--color-font);
|
|
40
|
+
letter-spacing: 0.1rem;
|
|
41
|
+
padding-bottom: 10px;
|
|
42
|
+
font-size: 1.02rem;
|
|
43
|
+
font-weight: 300;
|
|
44
|
+
text-indent: 0;
|
|
45
|
+
}
|
|
46
|
+
.ss-card header div:first-child {
|
|
47
|
+
background: var(--color-main);
|
|
48
|
+
margin-right: 20px;
|
|
49
|
+
border-radius: 5px;
|
|
50
|
+
height: 25px;
|
|
51
|
+
float: left;
|
|
52
|
+
width: 5px;
|
|
53
|
+
}
|
|
54
|
+
.ss-card header > i:first-child {
|
|
55
|
+
color: var(--color-main);
|
|
56
|
+
display: inline-block;
|
|
57
|
+
margin-right: 10px;
|
|
58
|
+
text-align: center;
|
|
59
|
+
font-size: 1.1rem;
|
|
60
|
+
min-width: 20px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ss-button {
|
|
64
|
+
background: var(--color-main);
|
|
65
|
+
color: var(--color-font-r);
|
|
66
|
+
border-radius: 7px;
|
|
67
|
+
font-size: 0.95rem;
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
height: 33px;
|
|
70
|
+
border: 0;
|
|
71
|
+
}
|
|
72
|
+
.ss-button:hover {
|
|
73
|
+
opacity: 0.95;
|
|
74
|
+
}
|
|
75
|
+
.ss-button:focus {
|
|
76
|
+
outline: none;
|
|
77
|
+
}
|
|
78
|
+
.ss-button:active {
|
|
79
|
+
opacity: 0.9;
|
|
80
|
+
}
|
|
81
|
+
.ss-button:disabled {
|
|
82
|
+
opacity: 0.4;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ss-input {
|
|
86
|
+
background: var(--color-card-1);
|
|
87
|
+
border-radius: 7px;
|
|
88
|
+
padding: 0 10px;
|
|
89
|
+
font-size: 15px;
|
|
90
|
+
height: 35px;
|
|
91
|
+
border: 0;
|
|
92
|
+
}
|
|
93
|
+
.ss-input:focus {
|
|
94
|
+
outline: 2px solid var(--color-card-1);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ss-pop {
|
|
98
|
+
-webkit-box-shadow: 0 0 5px var(--color-shader);
|
|
99
|
+
-moz-box-shadow: 0 0 5px var(--color-shader);
|
|
100
|
+
box-shadow: 0 0 5px var(--color-shader);
|
|
101
|
+
background: var(--color-bg);
|
|
102
|
+
}
|
|
103
|
+
.ss-pop div[class="arrow"]:before {
|
|
104
|
+
border: none;
|
|
105
|
+
}
|
|
106
|
+
.ss-pop div[class="arrow"]:after {
|
|
107
|
+
border: none;
|
|
108
|
+
}
|
|
109
|
+
.ss-pop div {
|
|
110
|
+
color: var(--color-font);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ss-radio {
|
|
114
|
+
--radio-size: 32px;
|
|
115
|
+
|
|
116
|
+
height: var(--radio-size);
|
|
117
|
+
margin-bottom: 0;
|
|
118
|
+
}
|
|
119
|
+
.ss-radio:hover > div:nth-child(2) {
|
|
120
|
+
padding: calc((var(--radio-size) / 4) + 1px);
|
|
121
|
+
}
|
|
122
|
+
.ss-radio > div:nth-child(2) {
|
|
123
|
+
padding: calc((var(--radio-size) / 4) + 2px);
|
|
124
|
+
border-radius: var(--radio-size);
|
|
125
|
+
background: var(--color-main);
|
|
126
|
+
height: var(--radio-size);
|
|
127
|
+
width: var(--radio-size);
|
|
128
|
+
transition: padding .1s;
|
|
129
|
+
}
|
|
130
|
+
.ss-radio > div:nth-child(2) > div {
|
|
131
|
+
background: #fff;
|
|
132
|
+
border-radius: 100%;
|
|
133
|
+
width: 100%;
|
|
134
|
+
height: 100%;
|
|
135
|
+
}
|
|
136
|
+
.ss-radio input {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
.ss-radio input:checked ~ div:nth-child(2) {
|
|
140
|
+
padding: calc(var(--radio-size) / 4);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ss-checkbox {
|
|
144
|
+
--checkbox-size: 13px;
|
|
145
|
+
margin-bottom: 0;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
}
|
|
149
|
+
.ss-checkbox > input {
|
|
150
|
+
display: none;
|
|
151
|
+
}
|
|
152
|
+
.ss-checkbox > div {
|
|
153
|
+
border: 1px solid var(--color-font);
|
|
154
|
+
border-radius: 30%;
|
|
155
|
+
background: transparent;
|
|
156
|
+
transition: background .3s, border .1s;
|
|
157
|
+
height: var(--checkbox-size);
|
|
158
|
+
width: var(--checkbox-size);
|
|
159
|
+
}
|
|
160
|
+
.ss-checkbox > input:checked ~ div {
|
|
161
|
+
background: var(--color-bg);
|
|
162
|
+
border: calc(var(--checkbox-size) / 3) solid var(--color-main);
|
|
163
|
+
}
|
|
164
|
+
.ss-checkbox > span {
|
|
165
|
+
margin-left: 10px;
|
|
166
|
+
font-size: 0.9rem;
|
|
167
|
+
}
|
|
168
|
+
.ss-checkbox.button {
|
|
169
|
+
border: 2px solid var(--color-main);
|
|
170
|
+
border-radius: 7px;
|
|
171
|
+
background: transparent;
|
|
172
|
+
padding: 10px 15px;
|
|
173
|
+
}
|
|
174
|
+
.ss-checkbox.button > div {
|
|
175
|
+
border: 0 !important;
|
|
176
|
+
max-width: 5px;
|
|
177
|
+
border-radius: 5px;
|
|
178
|
+
transform: scaleY(0);
|
|
179
|
+
background: var(--color-main) !important;
|
|
180
|
+
transition: transform .3s;
|
|
181
|
+
}
|
|
182
|
+
.ss-checkbox.button > input:checked ~ div {
|
|
183
|
+
transform: scaleY(1);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ss-switch {
|
|
187
|
+
--switch-dot-border: 4px;
|
|
188
|
+
--switch-dot-margin: 5px;
|
|
189
|
+
--switch-height: 30px;
|
|
190
|
+
min-width: 55px;
|
|
191
|
+
margin-bottom: 0;
|
|
192
|
+
}
|
|
193
|
+
.ss-switch > div {
|
|
194
|
+
border-radius: var(--switch-height);
|
|
195
|
+
background: var(--color-card-1);
|
|
196
|
+
height: var(--switch-height);
|
|
197
|
+
transition: background .4s;
|
|
198
|
+
width: 100%;
|
|
199
|
+
}
|
|
200
|
+
.ss-switch > div > div {
|
|
201
|
+
transition: margin-left .3s cubic-bezier(0.85, 0, 0.12, 0.99), border .2s;
|
|
202
|
+
border-radius: calc(var(--switch-height) - (var(--switch-dot-margin) * 2));
|
|
203
|
+
height: calc(var(--switch-height) - (var(--switch-dot-margin) * 2));
|
|
204
|
+
width: calc(var(--switch-height) - (var(--switch-dot-margin) * 2));
|
|
205
|
+
border: var(--switch-dot-border) solid #fff;
|
|
206
|
+
box-shadow:0 0 5px var(--color-shader);
|
|
207
|
+
margin-left: var(--switch-dot-margin);
|
|
208
|
+
margin-top: var(--switch-dot-margin);
|
|
209
|
+
background: var(--color-main);
|
|
210
|
+
float: left;
|
|
211
|
+
}
|
|
212
|
+
.ss-switch input {
|
|
213
|
+
display: none;
|
|
214
|
+
}
|
|
215
|
+
.ss-switch input:checked ~ div {
|
|
216
|
+
background: var(--color-main);
|
|
217
|
+
}
|
|
218
|
+
.ss-switch input:checked ~ div > div {
|
|
219
|
+
border: calc((var(--switch-height) - var(--switch-dot-margin) * 2) / 2 + 0.5px) solid #fff;
|
|
220
|
+
margin-left: calc(100% - var(--switch-height) + var(--switch-dot-margin));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.ss-code-input {
|
|
224
|
+
flex-direction: initial;
|
|
225
|
+
justify-content: center;
|
|
226
|
+
padding-top: 30px;
|
|
227
|
+
display: flex;
|
|
228
|
+
}
|
|
229
|
+
.ss-code-input input {
|
|
230
|
+
background: var(--color-card-1);
|
|
231
|
+
outline: 2px solid transparent;
|
|
232
|
+
caret-color: transparent;
|
|
233
|
+
transition: outline .3s;
|
|
234
|
+
border-radius: 7px;
|
|
235
|
+
text-align: center;
|
|
236
|
+
font-size: 1.5rem;
|
|
237
|
+
margin: 0 10px;
|
|
238
|
+
height: 60px;
|
|
239
|
+
width: 60px;
|
|
240
|
+
border: 0;
|
|
241
|
+
}
|
|
242
|
+
.ss-code-input input:first-child {
|
|
243
|
+
padding: 0;
|
|
244
|
+
margin: 0;
|
|
245
|
+
height: 0;
|
|
246
|
+
width: 0;
|
|
247
|
+
}
|
|
248
|
+
.ss-code-input-selete {
|
|
249
|
+
outline: 2px solid var(--color-main) !important;
|
|
250
|
+
}
|
|
251
|
+
.ss-code-input-err {
|
|
252
|
+
outline: 2px solid #ef5f5f !important;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.ana-card {
|
|
256
|
+
color: var(--color-font);
|
|
257
|
+
text-align: center;
|
|
258
|
+
font-size: 0.9rem;
|
|
259
|
+
font-weight: 100;
|
|
260
|
+
display: flex;
|
|
261
|
+
height: 60px;
|
|
262
|
+
}
|
|
263
|
+
.ana-card div {
|
|
264
|
+
background: var(--color-main);
|
|
265
|
+
border-radius: 5px;
|
|
266
|
+
height: 100%;
|
|
267
|
+
width: 5px;
|
|
268
|
+
}
|
|
269
|
+
.ana-card span {
|
|
270
|
+
width: 100%;
|
|
271
|
+
}
|
|
272
|
+
.ana-card-left {
|
|
273
|
+
text-align: left;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
footer > div:first-child {
|
|
277
|
+
color: var(--color-font);
|
|
278
|
+
margin-bottom: 20px;
|
|
279
|
+
}
|
|
280
|
+
footer > div:first-child > span {
|
|
281
|
+
margin-left: 20px;
|
|
282
|
+
font-size: 0.7rem;
|
|
283
|
+
}
|
|
284
|
+
footer > div:last-child {
|
|
285
|
+
margin-bottom: 10px;
|
|
286
|
+
text-align: center;
|
|
287
|
+
margin-top: -10px;
|
|
288
|
+
font-size: 0.7rem;
|
|
289
|
+
}
|
|
290
|
+
footer > div:last-child span a {
|
|
291
|
+
color: var(--color-font-1);
|
|
292
|
+
}
|
|
293
|
+
footer header {
|
|
294
|
+
color: var(--color-main);
|
|
295
|
+
}
|
|
296
|
+
footer header span {
|
|
297
|
+
color: var(--color-font-1);
|
|
298
|
+
font-size: 0.7rem;
|
|
299
|
+
margin-left: 10px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.cls-1 {
|
|
303
|
+
fill: var(--color-card-1);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.bar-search {
|
|
307
|
+
border: 0;
|
|
308
|
+
height: 35px;
|
|
309
|
+
font-size: 15px;
|
|
310
|
+
margin-right: 0 !important;
|
|
311
|
+
background: var(--color-card-1);
|
|
312
|
+
}
|
|
313
|
+
.bar-search:focus {
|
|
314
|
+
background: var(--color-card-1);
|
|
315
|
+
outline: none;
|
|
316
|
+
|
|
317
|
+
-webkit-box-shadow:0 0 5px var(--color-shader);
|
|
318
|
+
-moz-box-shadow:0 0 5px var(--color-shader);
|
|
319
|
+
box-shadow:0 0 5px var(--color-shader);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.avatar {
|
|
323
|
+
cursor: hand;
|
|
324
|
+
overflow: hidden;
|
|
325
|
+
margin-left: 20px;
|
|
326
|
+
--main-size: 33px;
|
|
327
|
+
margin-right: 5px;
|
|
328
|
+
width: var(--main-size);
|
|
329
|
+
height: var(--main-size);
|
|
330
|
+
border-radius: var(--main-size);
|
|
331
|
+
background: var(--color-card-1);
|
|
332
|
+
}
|
|
333
|
+
.avatar img {
|
|
334
|
+
width: var(--main-size);
|
|
335
|
+
height: var(--main-size);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.user-name {
|
|
339
|
+
display: none;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.scroll-top {
|
|
343
|
+
border-top: 1px dashed var(--color-main);
|
|
344
|
+
margin: 0 30px;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
pre {
|
|
348
|
+
background: transparent !important;
|
|
349
|
+
overflow: visible !important;
|
|
350
|
+
padding: 0 !important;
|
|
351
|
+
}
|
|
352
|
+
pre:before {
|
|
353
|
+
display: none !important;
|
|
354
|
+
}
|
|
355
|
+
pre:after {
|
|
356
|
+
display: none !important;
|
|
357
|
+
}
|
|
358
|
+
pre > code {
|
|
359
|
+
font-family: 'Fira Code', monospace !important;
|
|
360
|
+
padding: 1rem !important;
|
|
361
|
+
}
|
|
362
|
+
@supports (font-variation-settings: normal) {
|
|
363
|
+
pre > code
|
|
364
|
+
{
|
|
365
|
+
font-family: 'Fira Code VF', monospace !important;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
pre > code span {
|
|
369
|
+
background: transparent !important;
|
|
370
|
+
}
|
|
371
|
+
pre[class*=language-]>code {
|
|
372
|
+
border-left: 0px solid var(--color-main) !important;
|
|
373
|
+
background-color: var(--color-card-2) !important;
|
|
374
|
+
background-image: none !important;
|
|
375
|
+
border-left: 10px solid #358ccb;
|
|
376
|
+
background-origin: content-box;
|
|
377
|
+
background-attachment: local;
|
|
378
|
+
box-shadow: none !important;
|
|
379
|
+
background-size: 3em 3em;
|
|
380
|
+
margin-bottom: -75px;
|
|
381
|
+
border-radius: 7px;
|
|
382
|
+
position: relative;
|
|
383
|
+
margin-top: -10px;
|
|
384
|
+
z-index: 1;
|
|
385
|
+
}
|
|
386
|
+
code[class*=language-] {
|
|
387
|
+
max-height: inherit;
|
|
388
|
+
font-size: 0.8rem;
|
|
389
|
+
height: inherit;
|
|
390
|
+
padding: 0 1em;
|
|
391
|
+
display: block;
|
|
392
|
+
overflow: auto;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.about-text {
|
|
396
|
+
padding: 20px;
|
|
397
|
+
}
|
|
398
|
+
.about-text i {
|
|
399
|
+
color: var(--color-font-1);
|
|
400
|
+
margin-bottom: 10px;
|
|
401
|
+
font-style: normal;
|
|
402
|
+
font-size: 0.9rem;
|
|
403
|
+
font-weight: 400;
|
|
404
|
+
text-indent: 2em;
|
|
405
|
+
display: block;
|
|
406
|
+
}
|
|
407
|
+
.about-text a {
|
|
408
|
+
color: var(--color-font);
|
|
409
|
+
font-weight: bold;
|
|
410
|
+
}
|
|
411
|
+
.no-indent i {
|
|
412
|
+
text-indent: 0;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
::-webkit-scrollbar-thumb {
|
|
416
|
+
background: var(--color-main);
|
|
417
|
+
border-radius: 6px;
|
|
418
|
+
}
|
|
419
|
+
::-webkit-scrollbar {
|
|
420
|
+
background-color:var(--color-card-1);
|
|
421
|
+
width:6px;
|
|
422
|
+
}
|
|
423
|
+
::-webkit-scrollbar-button {
|
|
424
|
+
display: none;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@media screen and (max-width: 992px) {
|
|
428
|
+
.avatar {
|
|
429
|
+
width: auto;
|
|
430
|
+
height: auto;
|
|
431
|
+
margin-left: 0;
|
|
432
|
+
border-radius: 0;
|
|
433
|
+
background: none;
|
|
434
|
+
}
|
|
435
|
+
.avatar img {
|
|
436
|
+
display: none;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.bar-search {
|
|
440
|
+
display: none !important;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.user-name {
|
|
444
|
+
display: unset;
|
|
445
|
+
cursor: pointer;
|
|
446
|
+
color: var(--color-font-1);
|
|
447
|
+
}
|
|
448
|
+
.user-name:hover {
|
|
449
|
+
color: var(--color-font);
|
|
450
|
+
opacity: 0.7;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.navbar-dark .navbar-brand {
|
|
455
|
+
color: var(--color-font) !important;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.navbar-dark .navbar-nav .nav-link.active {
|
|
459
|
+
color: var(--color-font) !important;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.navbar-dark .navbar-nav .nav-link {
|
|
463
|
+
color: var(--color-font-1) !important;
|
|
464
|
+
}
|
|
465
|
+
.navbar-dark:hover .navbar-nav:hover .nav-link:hover {
|
|
466
|
+
color: var(--color-font) !important;
|
|
467
|
+
opacity: 0.7 !important;
|
|
468
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
let fist_load = true
|
|
2
|
+
|
|
3
|
+
function changeColor(type) {
|
|
4
|
+
if(!fist_load) {
|
|
5
|
+
// 启用颜色渐变动画
|
|
6
|
+
document.body.style.transition = 'background, color, background-color .3s'
|
|
7
|
+
} else {
|
|
8
|
+
fist_load = false
|
|
9
|
+
}
|
|
10
|
+
// 切换颜色
|
|
11
|
+
let match_list = ['color-.*\.css', 'prism-.*\.css', 'append-.*\.css']
|
|
12
|
+
const css_list = document.getElementsByTagName("link")
|
|
13
|
+
for(let i=0; i<css_list.length; i++) {
|
|
14
|
+
name = css_list[i].href
|
|
15
|
+
match_list.forEach(function (value) {
|
|
16
|
+
if(name.match(value) != null) {
|
|
17
|
+
const newLink = document.createElement("link");
|
|
18
|
+
newLink.setAttribute("rel", "stylesheet");
|
|
19
|
+
newLink.setAttribute("type", "text/css");
|
|
20
|
+
if(type === "dark") {
|
|
21
|
+
newLink.setAttribute("href", name.replace('light', 'dark'));
|
|
22
|
+
} else {
|
|
23
|
+
newLink.setAttribute("href", name.replace('dark', 'light'));
|
|
24
|
+
}
|
|
25
|
+
document.getElementsByTagName("head").item(0).replaceChild(newLink, css_list[i]);
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function foldChange(sender) {
|
|
32
|
+
const svg = sender.getElementsByTagName('svg');
|
|
33
|
+
if(svg[0].style.transform === 'rotate(-90deg)') {
|
|
34
|
+
svg[0].style.transform = 'rotate(90deg)'
|
|
35
|
+
animateScroll(sender, 40)
|
|
36
|
+
} else {
|
|
37
|
+
svg[0].style.transform = 'rotate(-90deg)'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function animateScroll(element, speed) {
|
|
42
|
+
let rect=element.getBoundingClientRect()
|
|
43
|
+
let top=window.pageYOffset+rect.top
|
|
44
|
+
let currentTop=document.documentElement.scrollTop
|
|
45
|
+
let requestId
|
|
46
|
+
function step(timestamp) {
|
|
47
|
+
currentTop+=speed
|
|
48
|
+
if(currentTop<=top){
|
|
49
|
+
window.scrollTo(0,currentTop)
|
|
50
|
+
requestId=window.requestAnimationFrame(step)
|
|
51
|
+
}else{
|
|
52
|
+
window.cancelAnimationFrame(requestId)
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
window.requestAnimationFrame(step)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function scrollDiv(sender) {
|
|
59
|
+
const par_body = sender.parentNode
|
|
60
|
+
const line = par_body.getElementsByClassName('scroll-top')[0];
|
|
61
|
+
if(sender.scrollTop === 0) {
|
|
62
|
+
line.style.display = 'none'
|
|
63
|
+
} else {
|
|
64
|
+
line.style.display = 'block'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function getQueryVariable(variable) {
|
|
69
|
+
const query = window.location.search.substring(1);
|
|
70
|
+
const vars = query.split("&");
|
|
71
|
+
for (let i=0; i<vars.length; i++) {
|
|
72
|
+
const pair = vars[i].split("=");
|
|
73
|
+
if(pair[0] === variable){
|
|
74
|
+
return pair[1]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return false
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function initCodeInput(body, fun, regex) {
|
|
81
|
+
// 初始化输入框
|
|
82
|
+
if(body.classList.toString().indexOf('ss-code-input') >= 0) {
|
|
83
|
+
// 初始化 label onclick 事件
|
|
84
|
+
body.onclick = function () { codeInputAllow(body) }
|
|
85
|
+
// 初始化主输入框
|
|
86
|
+
const input = body.getElementsByTagName('input')[0]
|
|
87
|
+
input.oninput = function() { codeInputChanged(body, fun, regex) }
|
|
88
|
+
input.onblur = function() { codeInputNoAllow(body) }
|
|
89
|
+
input.dataset.typeing = "false"
|
|
90
|
+
input.addEventListener('compositionstart',function(e){ input.dataset.typeing = "true" }, false)
|
|
91
|
+
input.addEventListener('compositionend',function(e){ input.dataset.typeing = "false"; }, false)
|
|
92
|
+
if(input !== undefined) {
|
|
93
|
+
// 添加显示输入框
|
|
94
|
+
for(var i=0; i<body.dataset.num; i++) {
|
|
95
|
+
// 构建
|
|
96
|
+
let inputShow = document.createElement("input")
|
|
97
|
+
inputShow.onclick = function () { codeInputAllow(body) }
|
|
98
|
+
inputShow.dataset.id = (i+1).toString()
|
|
99
|
+
inputShow.disabled = true
|
|
100
|
+
// 添加
|
|
101
|
+
body.appendChild(inputShow)
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function codeInputAllow(body) {
|
|
108
|
+
// 输入框 label 点击事件
|
|
109
|
+
const inputs = body.getElementsByTagName('input')
|
|
110
|
+
inputs[0].focus()
|
|
111
|
+
codeInputChanged(body)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function codeInputNoAllow(body) {
|
|
115
|
+
const inputs = body.getElementsByTagName('input')
|
|
116
|
+
for(let i=1; i<inputs.length; i++) {
|
|
117
|
+
inputs[i].classList = ""
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function codeInputChanged(body, fun, regex) {
|
|
122
|
+
// 主输入框变化事件
|
|
123
|
+
const inputs = body.getElementsByTagName('input')
|
|
124
|
+
if(inputs !== undefined && inputs.length > 1 && inputs[0].dataset.typeing === "false") {
|
|
125
|
+
if(regex === undefined) {
|
|
126
|
+
regex = ""
|
|
127
|
+
}
|
|
128
|
+
if(inputs[0].dataset.up === "true") {
|
|
129
|
+
inputs[0].value = inputs[0].value.toUpperCase()
|
|
130
|
+
}
|
|
131
|
+
// 变更输入框内容
|
|
132
|
+
for(let i=1; i<inputs.length; i++) {
|
|
133
|
+
inputs[i].value = ""
|
|
134
|
+
}
|
|
135
|
+
for(let i=0; i<inputs[0].value.length; i++) {
|
|
136
|
+
// 检查正则表达式
|
|
137
|
+
const reg = new RegExp(regex)
|
|
138
|
+
if(reg.test(inputs[0].value.substring(i, i+1))) {
|
|
139
|
+
if(i < inputs.length - 2) {
|
|
140
|
+
inputs[i+1].classList = ""
|
|
141
|
+
inputs[i+1].value = inputs[0].value.substring(i, i+1)
|
|
142
|
+
if(i + 2 < inputs.length) {
|
|
143
|
+
inputs[i+2].classList = "ss-code-input-selete"
|
|
144
|
+
}
|
|
145
|
+
if(i + 3 < inputs.length) {
|
|
146
|
+
inputs[i+3].classList = ""
|
|
147
|
+
}
|
|
148
|
+
} else if( i == inputs.length - 2) {
|
|
149
|
+
inputs[i+1].value = inputs[0].value.substring(i, i+1)
|
|
150
|
+
if(fun !== undefined) {
|
|
151
|
+
// 触发函数
|
|
152
|
+
inputs[0].disabled = true
|
|
153
|
+
// 完成部分动画
|
|
154
|
+
setTimeout(() => {
|
|
155
|
+
fun()
|
|
156
|
+
}, 300)
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
} else {
|
|
160
|
+
inputs[0].value = inputs[0].value.substring(0, inputs[0].value.length - 1)
|
|
161
|
+
inputs[i+1].classList = "ss-code-input-selete ss-code-input-err"
|
|
162
|
+
setTimeout(() => {
|
|
163
|
+
inputs[i+1].classList = "ss-code-input-selete"
|
|
164
|
+
}, 500)
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if(inputs[0].value.length == 0) {
|
|
168
|
+
inputs[1].classList = "ss-code-input-selete"
|
|
169
|
+
inputs[2].classList = ""
|
|
170
|
+
}
|
|
171
|
+
// 防止光标不在最后
|
|
172
|
+
inputs[0].setSelectionRange(inputs[0].value.length, inputs[0].value.length)
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function getCodeInput(body) {
|
|
177
|
+
if(body.classList.toString().indexOf('ss-code-input') >= 0) {
|
|
178
|
+
const inputs = body.getElementsByTagName('input')
|
|
179
|
+
return inputs[0].value.substring(0, inputs.length - 1)
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function cleanCodeInput(body) {
|
|
184
|
+
if(body.classList.toString().indexOf('ss-code-input') >= 0) {
|
|
185
|
+
const inputs = body.getElementsByTagName('input')
|
|
186
|
+
inputs[0].value = ""
|
|
187
|
+
inputs[0].disabled = false
|
|
188
|
+
for(let i=1; i<inputs.length; i++) {
|
|
189
|
+
inputs[i].classList = ""
|
|
190
|
+
}
|
|
191
|
+
codeInputChanged(body)
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-blue: #6291fd;
|
|
3
|
+
--color-green: #6cd892;
|
|
4
|
+
--color-red: #f56269;
|
|
5
|
+
--color-yellow: #f6c344;
|
|
6
|
+
|
|
7
|
+
--color-bg-blue: #393e47;
|
|
8
|
+
--color-bg-green: #3f544a;
|
|
9
|
+
--color-bg-red: #523a3c;
|
|
10
|
+
--color-bg-yellow: #504b3d;
|
|
11
|
+
|
|
12
|
+
--color-issue-close: #a47ff1;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-blue: #316cf4;
|
|
3
|
+
--color-green: #408558;
|
|
4
|
+
--color-red: #cb444a;
|
|
5
|
+
--color-yellow: #d68100;
|
|
6
|
+
|
|
7
|
+
--color-bg-blue: #d3e1fc;
|
|
8
|
+
--color-bg-green: #d5e6de;
|
|
9
|
+
--color-bg-red: #f3d8da;
|
|
10
|
+
--color-bg-yellow: #fdf3d1;
|
|
11
|
+
|
|
12
|
+
--color-issue-close: #8059d9;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--heroui-background: 0 0% 0%;
|
|
3
|
+
--tw-bg-opacity: 1;
|
|
4
|
+
|
|
5
|
+
--color-main: #142342;
|
|
6
|
+
--color-main-0: #142342;
|
|
7
|
+
--color-font-r: var(--color-font);
|
|
8
|
+
--color-font-1-r: var(--color-font-1);
|
|
9
|
+
|
|
10
|
+
--color-bg: hsl(var(--heroui-background) / var(--heroui-background-opacity, var(--tw-bg-opacity)));
|
|
11
|
+
--color-card: hsl(var(--heroui-background) / var(--heroui-background-opacity, var(--tw-bg-opacity)));
|
|
12
|
+
--color-card-1: hsl(var(--heroui-background) / var(--heroui-background-opacity, var(--tw-bg-opacity)));
|
|
13
|
+
--color-card-2: hsl(var(--heroui-background) / var(--heroui-background-opacity, var(--tw-bg-opacity)));
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--heroui-background: 0 0% 100%;
|
|
3
|
+
--tw-bg-opacity: .5 !important;
|
|
4
|
+
|
|
5
|
+
--color-main: #c8dafb;
|
|
6
|
+
--color-main-0: #c8dafb;
|
|
7
|
+
--color-font-r: var(--color-font);
|
|
8
|
+
--color-font-1-r: var(--color-font-1);
|
|
9
|
+
|
|
10
|
+
--color-bg: hsl(var(--heroui-background) / var(--heroui-background-opacity, var(--tw-bg-opacity)));
|
|
11
|
+
--color-card: hsl(var(--heroui-background) / var(--heroui-background-opacity, var(--tw-bg-opacity)));
|
|
12
|
+
--color-card-1: hsl(var(--heroui-background) / var(--heroui-background-opacity, var(--tw-bg-opacity)));
|
|
13
|
+
--color-card-2: hsl(var(--heroui-background) / var(--heroui-background-opacity, var(--tw-bg-opacity)));
|
|
14
|
+
}
|
|
Binary file
|