@nestim/koishi-plugin-qqgm-webui 0.2.23 → 0.3.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/public/styles.css CHANGED
@@ -16,6 +16,7 @@
16
16
  --radius: 14px;
17
17
  }
18
18
  * { box-sizing: border-box; }
19
+ [hidden] { display: none !important; }
19
20
  html, body { margin: 0; height: 100%; }
20
21
  body {
21
22
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
@@ -62,8 +63,14 @@ svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round
62
63
  .user div:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; }
63
64
  .user strong { font-size: 12px; color: #e8eefb; font-weight: 600; }
64
65
  .user span { font-size: 10px; color: #71829c; margin-top: 3px; }
65
- .icon-btn { width: 30px; height: 30px; border-radius: 8px; color: #8ea0ba; display: grid; place-items: center; margin-left: auto; }
66
+ .icon-btn { width: 30px; height: 30px; border-radius: 8px; color: #8ea0ba; display: grid; place-items: center; }
66
67
  .icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
68
+ .menu-btn { display: none; width: 34px; height: 34px; border-radius: 9px; color: #53637a; background: #fff; border: 1px solid var(--line); place-items: center; flex: 0 0 auto; }
69
+ .menu-btn svg { width: 18px; height: 18px; }
70
+ .menu-btn:hover { border-color: #c8d4e4; }
71
+ .nav-close { display: none; margin-left: auto; width: 28px; height: 28px; border-radius: 8px; color: #8fa0b9; background: rgba(255,255,255,.06); }
72
+ .topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
73
+ .sidebar-backdrop { display: none; }
67
74
 
68
75
  /* main */
69
76
  .main { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
@@ -77,9 +84,13 @@ svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round
77
84
  .search svg { width: 15px; height: 15px; color: #9aa8bb; }
78
85
  .search input { border: 0; outline: 0; background: transparent; font-size: 12px; width: 100%; color: #3b4a60; }
79
86
  .search input::placeholder { color: #aab5c5; }
80
- .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; border-radius: 20px; padding: 5px 10px; }
87
+ .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; border-radius: 20px; padding: 5px 10px; background: #f1f4f8; color: #77869a; }
88
+ .pill b { font-weight: 600; }
81
89
  .pill.online { color: #17845b; background: #e8f7f0; }
82
90
  .pill.online i { width: 6px; height: 6px; background: #21b47b; border-radius: 50%; }
91
+ .pill.offline { color: #b23b3b; background: #fdeeee; }
92
+ .pill.offline i { width: 6px; height: 6px; background: #d9534f; border-radius: 50%; }
93
+ .pulse.off { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148,163,184,.12); }
83
94
  .top-actions .icon-btn { color: #7d8ba1; background: #fff; border: 1px solid var(--line); font-size: 15px; }
84
95
  .content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 26px 28px 34px; }
85
96
  .page { display: none; animation: fade .18s ease; }
@@ -140,7 +151,8 @@ svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round
140
151
  .line-chart .line.cyan { stroke: var(--cyan); }
141
152
  .line-chart .dashed { stroke-dasharray: 4 4; opacity: .8; }
142
153
  .line-chart .dots circle { fill: #fff; stroke: var(--blue); stroke-width: 2; }
143
- .axis { display: flex; justify-content: space-between; color: #a0adbe; font-size: 10px; padding: 0 2px; }
154
+ .axis { display: grid; grid-auto-flow: column; color: #a0adbe; font-size: 10px; padding: 0 2px; }
155
+ .axis span { text-align: center; overflow: hidden; white-space: nowrap; }
144
156
  .latency-list { display: flex; flex-direction: column; gap: 13px; padding-top: 2px; }
145
157
  .lat-row { display: grid; grid-template-columns: 82px 1fr 52px; align-items: center; gap: 10px; font-size: 11.5px; color: #5f6e83; }
146
158
  .lat-row b { text-align: right; font-weight: 650; color: #2e3d53; }
@@ -148,6 +160,11 @@ svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round
148
160
  .lat-bar i { display: block; height: 100%; border-radius: 4px; }
149
161
  .lat-total { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: #718096; }
150
162
  .lat-total b { font-size: 15px; color: #1c2a3d; }
163
+ .p95-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
164
+ .p95-grid > div { background: #f7f9fc; border: 1px solid #eef2f7; border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
165
+ .p95-grid span { font-size: 10px; color: #8d9aab; }
166
+ .p95-grid b { font-size: 12px; color: #2f4058; overflow-wrap: anywhere; }
167
+ .p95-grid small { font-size: 9.5px; color: #a0adbe; }
151
168
  .hint { font-size: 10.5px; color: #95a1b2; line-height: 1.55; margin: 12px 0 0; }
152
169
  code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px; font-family: Consolas, monospace; font-size: 10.5px; }
153
170
 
@@ -161,9 +178,10 @@ code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px
161
178
  .tag.private { color: #8a63c9; background: #f4efff; }
162
179
  .tag.memory { color: #178c6a; background: #eaf8f2; }
163
180
  .tag.soft { color: #6b7b90; background: #f1f4f8; }
164
- .status { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; border-radius: 5px; padding: 3px 6px; }
181
+ .status { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; border-radius: 5px; padding: 3px 6px; white-space: nowrap; }
165
182
  .status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
166
183
  .status.ok { color: #16875c; background: #eaf8f1; }
184
+ .status.warn { color: #a06a1a; background: #fff4de; }
167
185
  .status.fail { color: #c4574d; background: #fdf0ee; }
168
186
  .plugins-mini { display: flex; flex-direction: column; }
169
187
  .plugin-line { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #f2f5f9; }
@@ -172,6 +190,8 @@ code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px
172
190
  .plugin-line b { font-size: 11.5px; font-weight: 600; color: #35445a; }
173
191
  .plugin-line small { font-size: 10px; color: #95a2b4; margin-top: 2px; }
174
192
  .plugin-line .on { width: 6px; height: 6px; border-radius: 50%; background: #2bb37d; margin-left: auto; }
193
+ .plugin-line .off { width: 6px; height: 6px; border-radius: 50%; background: #c3ccd9; margin-left: auto; }
194
+ .plugin-card .plugin-ico { width: 38px; height: 38px; border-radius: 10px; }
175
195
  .plugin-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
176
196
  .plugin-ico.big { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; }
177
197
  .plugin-ico.blue { background: linear-gradient(135deg, #5b8def, #3f68d8); }
@@ -179,6 +199,9 @@ code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px
179
199
  .plugin-ico.orange { background: linear-gradient(135deg, #f0ae5b, #dd8d2c); }
180
200
  .plugin-ico.purple { background: linear-gradient(135deg, #a486e8, #7c5bc6); }
181
201
  .plugin-ico.slate { background: linear-gradient(135deg, #60738d, #405067); }
202
+ .plugin-ico-svg svg, .group-ico svg { width: 15px; height: 15px; stroke: #fff; fill: none; }
203
+ .group-ico { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #4f7df3, #6a5bd8); }
204
+ .plugin-ico.warn { background: linear-gradient(135deg, #f0ae5b, #dd8d2c); }
182
205
 
183
206
  /* plugins page */
184
207
  .plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
@@ -206,7 +229,13 @@ code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px
206
229
  .scope b { font-size: 10px; color: #9ba8ba; font-weight: 500; }
207
230
  .scope.active { background: #eef3ff; color: #3f68d8; }
208
231
  .scope.active b { color: #4f7df3; }
209
- .memory-toolbar { display: flex; gap: 9px; margin-bottom: 8px; }
232
+ .memory-toolbar { display: flex; gap: 9px; margin-bottom: 8px; align-items: center; }
233
+ .memory-count { font-size: 10.5px; color: #8d9aab; white-space: nowrap; }
234
+ .memory-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 4px 2px; border-top: 1px solid #f1f4f8; margin-top: 6px; flex-wrap: wrap; }
235
+ .pager-info { font-size: 10.5px; color: #8d9aab; }
236
+ .pager-info b { color: #3f4e63; }
237
+ .pager-actions { display: flex; align-items: center; gap: 6px; }
238
+ .btn.small:disabled { opacity: .45; cursor: not-allowed; }
210
239
  .search.wide { flex: 1; width: auto; }
211
240
  .memory-item { padding: 13px 4px; border-bottom: 1px solid #f0f3f8; }
212
241
  .memory-item:last-child { border-bottom: 0; }
@@ -250,10 +279,11 @@ code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px
250
279
  .chip.active { background: #eef3ff; color: #3f68d8; }
251
280
  .log-meta { font-size: 10px; color: #9aa7b8; }
252
281
  .log-view { background: #0f1726; color: #c6d2e4; font-family: Consolas, "Cascadia Mono", monospace; font-size: 11px; line-height: 1.8; padding: 14px 16px; min-height: 420px; }
253
- .log-line { display: grid; grid-template-columns: 78px 48px 170px 1fr; gap: 4px; align-items: baseline; }
282
+ .log-line { display: grid; grid-template-columns: 86px 52px 150px minmax(0, 1fr); gap: 6px; align-items: baseline; }
254
283
  .log-line time { color: #5f718c; }
255
284
  .log-line .src { color: #88a2c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
256
- .log-line p { margin: 0; color: #aebbd0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
285
+ .log-line p { margin: 0; color: #aebbd0; white-space: pre-wrap; overflow-wrap: anywhere; }
286
+ .log-empty { color: #6b7f9c; font-size: 11.5px; padding: 18px 4px; }
257
287
  .lvl { font-size: 9px; letter-spacing: .04em; }
258
288
  .lvl.info { color: #58c49b; } .lvl.warn { color: #e3ad55; } .lvl.error { color: #ef7f74; }
259
289
 
@@ -318,6 +348,15 @@ code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px
318
348
  .schema-field-control > input:not([type=checkbox]), .schema-field-control > select { height: 36px; border: 1px solid #e2e8f1; border-radius: 8px; background: #fbfcfe; padding: 0 10px; font-size: 12px; color: #3b4b61; outline: none; }
319
349
  .schema-field-control > textarea { border: 1px solid #e2e8f1; border-radius: 8px; background: #fbfcfe; padding: 9px 10px; font-size: 12px; color: #3b4b61; outline: none; resize: vertical; line-height: 1.65; font-family: inherit; }
320
350
  .schema-field-control > textarea:focus, .schema-field-control > input:focus, .schema-field-control > select:focus { border-color: #9ab7ef; background: #fff; }
351
+ .secret-field { display: flex; gap: 7px; align-items: center; }
352
+ .secret-field input { flex: 1; min-width: 0; height: 36px; border: 1px solid #e2e8f1; border-radius: 8px; background: #fbfcfe; padding: 0 10px; font-size: 12px; color: #3b4b61; outline: none; font-family: Consolas, monospace; }
353
+ .secret-field input:focus { border-color: #9ab7ef; background: #fff; }
354
+ .eye-btn { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #e2e8f1; border-radius: 8px; background: #fff; color: #7c8ca2; display: grid; place-items: center; }
355
+ .eye-btn:hover { border-color: #b9c9df; color: #4f7df3; }
356
+ .eye-btn svg { width: 17px; height: 17px; }
357
+ .sync-note { margin: 12px 0 0; padding: 9px 11px; border-radius: 8px; background: #fff8e8; border: 1px solid #f3e4c4; color: #8d7138; font-size: 10.5px; line-height: 1.6; }
358
+ .sync-note.ok { background: #eef9f3; border-color: #cfeee0; color: #1a7a58; }
359
+ .sync-note b { color: inherit; }
321
360
  .schema-field .json-input { font-family: Consolas, monospace; font-size: 10.5px; }
322
361
  .switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
323
362
  .switch input { display: none; }
@@ -327,6 +366,25 @@ code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px
327
366
  .switch input:checked + i::after { transform: translateX(15px); }
328
367
  .switch span { font-size: 10.5px; color: #9aa7b8; }
329
368
  .list-editor { border: 1px solid #e6ecf4; border-radius: 9px; padding: 8px; background: #fbfcfe; }
369
+ .object-list { display: flex; flex-direction: column; gap: 8px; }
370
+ .object-rows { display: flex; flex-direction: column; gap: 8px; }
371
+ .object-card { border: 1px solid #e6ecf4; border-radius: 9px; background: #fbfcfe; overflow: hidden; }
372
+ .object-card-head { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #f7f9fc; }
373
+ .object-card-title { flex: 1; min-width: 0; height: 32px; border: 1px solid #e2e8f1; border-radius: 6px; padding: 0 9px; font-size: 11.5px; background: #fff; outline: none; }
374
+ .object-card-body { padding: 10px 12px 12px; border-top: 1px solid #eef2f7; display: flex; flex-direction: column; gap: 8px; }
375
+ .obj-field { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 11.5px; color: #596a80; }
376
+ .obj-field > span { color: #6b7b90; }
377
+ .obj-field.block { display: block; }
378
+ .obj-field.block > span { display: block; margin-bottom: 6px; }
379
+ .obj-control { min-width: 0; }
380
+ .obj-control > input, .obj-control > select, .obj-control > textarea { width: 100%; border: 1px solid #e2e8f1; border-radius: 6px; background: #fff; padding: 7px 9px; font-size: 11.5px; color: #3b4b61; outline: none; font-family: inherit; }
381
+ .obj-control > textarea { resize: vertical; line-height: 1.6; }
382
+ .kv-row { display: flex; gap: 8px; align-items: flex-end; }
383
+ .kv-cell { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: #8d9aab; }
384
+ .kv-cell input, .kv-cell textarea, .kv-cell select { width: 100%; border: 1px solid #e2e8f1; border-radius: 6px; background: #fff; padding: 7px 9px; font-size: 11.5px; color: #3b4b61; outline: none; font-family: inherit; }
385
+ .kv-cell textarea { resize: vertical; }
386
+ .object-fields { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid #e6ecf4; border-radius: 9px; background: #fbfcfe; }
387
+ .switch.mini span { display: none; }
330
388
  .list-rows { display: flex; flex-direction: column; gap: 6px; }
331
389
  .list-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 26px 26px; gap: 6px; align-items: center; }
332
390
  .list-row:not(:has(.list-score)) { grid-template-columns: minmax(0, 1fr) 26px 26px; }
@@ -337,6 +395,7 @@ code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px
337
395
  .row-btn:hover { filter: brightness(.96); }
338
396
  .add-row { margin-top: 7px; font-size: 11px; }
339
397
  .group-rules { border: 1px solid #e6ecf4; border-radius: 9px; padding: 12px; background: #fbfcfe; }
398
+ .group-rules-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
340
399
  .group-rules-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
341
400
  .group-rule { border: 1px solid #e4ebf4; border-radius: 9px; background: #fff; overflow: hidden; }
342
401
  .group-rule-head { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #f7f9fc; }
@@ -375,20 +434,59 @@ code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px
375
434
  .grid.two, .grid.wide { grid-template-columns: 1fr; }
376
435
  .plugin-grid { grid-template-columns: 1fr 1fr; }
377
436
  .welcome-grid { grid-template-columns: 1fr 1fr; }
437
+ .config-layout { grid-template-columns: 210px minmax(0, 1fr); }
438
+ .schema-field { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
378
439
  }
440
+
379
441
  @media (max-width: 820px) {
380
- .app { grid-template-columns: 64px 1fr; }
381
- .brand-text, .nav-item span, .nav-sub, .nav-section, .sys-meta, .user div:nth-child(2), .nav-badge { display: none; }
382
- .sidebar { padding: 18px 8px; align-items: center; }
383
- .brand { padding: 2px 0 20px; }
384
- .nav-item { justify-content: center; width: 44px; }
385
- .sidebar-footer { left: 8px; right: 8px; bottom: 12px; }
386
- .sys-line { justify-content: center; }
387
- .sys-meta { text-align: center; }
388
- .top-actions .search { display: none; }
389
- .content { padding: 18px 16px; }
390
- .plugin-grid, .memory-layout, .config-layout { grid-template-columns: 1fr; }
391
- .welcome-grid { grid-template-columns: 1fr; }
392
- .log-line { grid-template-columns: 70px 42px 1fr; }
442
+ html, body { overflow: hidden; }
443
+ .app { display: block; height: 100dvh; }
444
+ .sidebar {
445
+ position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 50;
446
+ padding: 20px 14px 16px; transform: translateX(-105%); transition: transform .22s ease;
447
+ box-shadow: 20px 0 50px rgba(8, 15, 27, .28);
448
+ }
449
+ .sidebar.open { transform: none; }
450
+ .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(8, 15, 27, .48); }
451
+ .sidebar-backdrop[hidden] { display: none; }
452
+ .nav-close { display: grid; }
453
+ .menu-btn { display: grid; }
454
+ .main { height: 100dvh; }
455
+ .topbar { padding: 0 14px; height: 58px; flex-basis: 58px; }
456
+ .topbar .crumb-muted, .topbar .crumb-sep { display: none; }
457
+ .top-actions { gap: 7px; }
458
+ .content { padding: 16px 14px 28px; }
459
+ .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
460
+ .page-head h1 { font-size: 21px; }
461
+ .head-actions { flex-wrap: wrap; }
462
+ .metrics, .metrics.three { grid-template-columns: 1fr 1fr; }
463
+ .plugin-grid, .memory-layout, .config-layout, .welcome-grid { grid-template-columns: 1fr; }
464
+ .scope-list { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 12px; }
465
+ .scope-list h3 { width: 100%; margin: 2px 6px 2px; }
466
+ .scope-list h3.mt { margin-top: 8px; }
467
+ .scope { width: auto; gap: 8px; }
468
+ .schema-field, .schema-field.long { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
469
+ .obj-field { grid-template-columns: 1fr; gap: 5px; }
470
+ .schema-field .field > span { flex: 0 0 120px; }
471
+ .field > span { flex: 0 0 120px; }
472
+ .config-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
473
+ .config-nav .config-group-label { width: 100%; }
474
+ .config-plugin { width: auto; gap: 7px; padding: 7px 9px; }
475
+ .config-plugin small { display: none; }
476
+ .form-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
477
+ .log-line { grid-template-columns: 72px 44px minmax(0, 1fr); }
393
478
  .log-line .src { display: none; }
479
+ .log-view { min-height: 55vh; padding: 12px; }
480
+ .statusbar { gap: 10px; padding: 0 12px; }
481
+ .statusbar #statusRight { display: none; }
482
+ .statusbar #statusCalls { display: none; }
483
+ .modal-card { width: 94vw; padding: 15px; }
484
+ }
485
+
486
+ @media (max-width: 520px) {
487
+ .metrics, .metrics.three { grid-template-columns: 1fr; }
488
+ .top-actions .pill b { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
489
+ .welcome-hero { padding: 22px 20px; }
490
+ .welcome-actions { flex-wrap: wrap; }
491
+ .brand { padding-bottom: 18px; }
394
492
  }