@nestim/koishi-plugin-qqgm-webui 0.0.0-stage → 0.2.0
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/README.md +135 -2
- package/index.js +134 -0
- package/lib/data.js +168 -0
- package/package.json +24 -4
- package/public/app.js +156 -0
- package/public/index.html +578 -0
- package/public/styles.css +321 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg: #f3f5f8;
|
|
3
|
+
--card: #ffffff;
|
|
4
|
+
--ink: #142033;
|
|
5
|
+
--muted: #748197;
|
|
6
|
+
--line: #e4e9f0;
|
|
7
|
+
--nav: #0e1726;
|
|
8
|
+
--nav-2: #121f33;
|
|
9
|
+
--blue: #4f7df3;
|
|
10
|
+
--cyan: #19b6a5;
|
|
11
|
+
--green: #1c9c65;
|
|
12
|
+
--red: #d9534f;
|
|
13
|
+
--orange: #e79a3b;
|
|
14
|
+
--purple: #8b6cd8;
|
|
15
|
+
--shadow: 0 10px 30px rgba(22, 38, 62, .06);
|
|
16
|
+
--radius: 14px;
|
|
17
|
+
}
|
|
18
|
+
* { box-sizing: border-box; }
|
|
19
|
+
html, body { margin: 0; height: 100%; }
|
|
20
|
+
body {
|
|
21
|
+
font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
|
|
22
|
+
background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
|
|
23
|
+
}
|
|
24
|
+
button, input, select { font: inherit; color: inherit; }
|
|
25
|
+
button { cursor: pointer; border: 0; background: none; }
|
|
26
|
+
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
27
|
+
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100vh; overflow: hidden; }
|
|
28
|
+
|
|
29
|
+
/* sidebar */
|
|
30
|
+
.sidebar { background: var(--nav); color: #dbe4f2; display: flex; flex-direction: column; padding: 22px 14px 16px; position: relative; overflow: hidden; }
|
|
31
|
+
.brand { display: flex; gap: 12px; align-items: center; padding: 2px 8px 26px; }
|
|
32
|
+
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #5b8def, #2dd4bf); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; box-shadow: 0 6px 16px rgba(76, 125, 243, .35); }
|
|
33
|
+
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
|
|
34
|
+
.brand-text strong { font-size: 16px; letter-spacing: .08em; color: #fff; }
|
|
35
|
+
.brand-text span { font-size: 9px; letter-spacing: .22em; color: #7d8ca5; margin-top: 4px; }
|
|
36
|
+
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow: auto; padding-right: 2px; padding-bottom: 74px; }
|
|
37
|
+
.nav-section { font-size: 9px; letter-spacing: .16em; color: #61728c; margin: 16px 12px 4px; text-transform: uppercase; }
|
|
38
|
+
.nav-sub { text-align: left; padding: 7px 12px 7px 44px; border-radius: 8px; font-size: 12px; color: #8493aa; position: relative; }
|
|
39
|
+
.nav-sub::before { content: ""; position: absolute; left: 24px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #33445e; }
|
|
40
|
+
.nav-sub:hover { color: #e8eefb; background: rgba(255,255,255,.04); }
|
|
41
|
+
.nav-sub.active { color: #9db9f5; background: rgba(79,125,243,.1); }
|
|
42
|
+
.nav-sub.active::before { background: #6f96ee; box-shadow: 0 0 0 3px rgba(111,150,238,.14); }
|
|
43
|
+
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #93a1b8; font-size: 13.5px; text-align: left; transition: .15s; position: relative; }
|
|
44
|
+
.nav-item svg { width: 18px; height: 18px; opacity: .9; }
|
|
45
|
+
.pulse { width: 7px; height: 7px; background: #34d399; border-radius: 50%; box-shadow: 0 0 0 4px rgba(52,211,153,.12); display: inline-block; flex: 0 0 auto; }
|
|
46
|
+
.nav-item:hover { color: #e8eefb; background: rgba(255,255,255,.045); }
|
|
47
|
+
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(79,125,243,.24), rgba(79,125,243,.08)); box-shadow: inset 2px 0 0 #5b8def; }
|
|
48
|
+
.nav-item.active svg { color: #8fb0ff; }
|
|
49
|
+
.nav-badge { margin-left: auto; font-style: normal; font-size: 10.5px; background: #1c2b42; color: #9fb4d6; border-radius: 20px; padding: 2px 7px; }
|
|
50
|
+
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #2dd4bf; margin-left: auto; box-shadow: 0 0 0 4px rgba(45,212,191,.12); }
|
|
51
|
+
.sidebar-footer { position: absolute; left: 14px; right: 14px; bottom: 16px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 11px; background: var(--nav); }
|
|
52
|
+
.sys-line { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #a9b9d2; padding: 2px 4px 4px; }
|
|
53
|
+
.sys-line b { margin-left: auto; color: #7f90a9; font-weight: 500; font-size: 10px; }
|
|
54
|
+
.sys-meta { font-size: 9.5px; color: #62738d; padding: 0 4px 0; }
|
|
55
|
+
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #263752; color: #9eb9e8; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
|
|
56
|
+
.user div:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; }
|
|
57
|
+
.user strong { font-size: 12px; color: #e8eefb; font-weight: 600; }
|
|
58
|
+
.user span { font-size: 10px; color: #71829c; margin-top: 3px; }
|
|
59
|
+
.icon-btn { width: 30px; height: 30px; border-radius: 8px; color: #8ea0ba; display: grid; place-items: center; margin-left: auto; }
|
|
60
|
+
.icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
|
|
61
|
+
|
|
62
|
+
/* main */
|
|
63
|
+
.main { min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
|
|
64
|
+
.topbar { height: 64px; flex: 0 0 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
|
|
65
|
+
.crumb { display: flex; align-items: center; gap: 9px; font-size: 13px; }
|
|
66
|
+
.crumb-muted { color: #9aa6b7; }
|
|
67
|
+
.crumb-sep { color: #c3ccd8; }
|
|
68
|
+
.crumb strong { font-weight: 600; }
|
|
69
|
+
.top-actions { display: flex; align-items: center; gap: 10px; }
|
|
70
|
+
.search { display: flex; align-items: center; gap: 7px; background: #f3f6fa; border: 1px solid #e5ebf3; border-radius: 9px; padding: 7px 10px; width: 245px; }
|
|
71
|
+
.search svg { width: 15px; height: 15px; color: #9aa8bb; }
|
|
72
|
+
.search input { border: 0; outline: 0; background: transparent; font-size: 12px; width: 100%; color: #3b4a60; }
|
|
73
|
+
.search input::placeholder { color: #aab5c5; }
|
|
74
|
+
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; border-radius: 20px; padding: 5px 10px; }
|
|
75
|
+
.pill.online { color: #17845b; background: #e8f7f0; }
|
|
76
|
+
.pill.online i { width: 6px; height: 6px; background: #21b47b; border-radius: 50%; }
|
|
77
|
+
.top-actions .icon-btn { color: #7d8ba1; background: #fff; border: 1px solid var(--line); font-size: 15px; }
|
|
78
|
+
.content { flex: 1; overflow: auto; padding: 26px 28px 34px; }
|
|
79
|
+
.page { display: none; animation: fade .18s ease; }
|
|
80
|
+
.page.active { display: block; }
|
|
81
|
+
@keyframes fade { from { opacity: .2; transform: translateY(3px); } to { opacity: 1; transform: none; } }
|
|
82
|
+
.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 18px; }
|
|
83
|
+
.page-head h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em; font-weight: 700; }
|
|
84
|
+
.page-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
|
|
85
|
+
.head-actions { display: flex; gap: 8px; align-items: center; }
|
|
86
|
+
.proto-tag { font-size: 9px; color: #b47712; background: #fff3d6; border: 1px solid #f6dfae; border-radius: 5px; padding: 3px 6px; vertical-align: 3px; letter-spacing: .04em; }
|
|
87
|
+
|
|
88
|
+
.btn { border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 600; transition: .15s; border: 1px solid transparent; }
|
|
89
|
+
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(79,125,243,.22); }
|
|
90
|
+
.btn.primary:hover { background: #416ee2; }
|
|
91
|
+
.btn.ghost { background: #fff; border-color: var(--line); color: #516078; }
|
|
92
|
+
.btn.ghost:hover { border-color: #cbd6e4; }
|
|
93
|
+
.btn.small { padding: 6px 10px; font-size: 11px; }
|
|
94
|
+
.select { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12px; color: #47566d; outline: none; }
|
|
95
|
+
.select.tiny { padding: 5px 8px; font-size: 11px; }
|
|
96
|
+
.link-btn { color: var(--blue); font-size: 12px; font-weight: 600; padding: 4px; }
|
|
97
|
+
|
|
98
|
+
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
|
|
99
|
+
.metrics.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
100
|
+
.metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px 13px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
|
|
101
|
+
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11.5px; }
|
|
102
|
+
.metric-value { font-size: 27px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 4px; line-height: 1.05; }
|
|
103
|
+
.metric-value small { font-size: 12px; color: #95a2b4; font-weight: 500; margin-left: 2px; }
|
|
104
|
+
.metric-foot { font-size: 11px; color: #8d9aab; }
|
|
105
|
+
.metric-foot.danger { color: #c96a5f; }
|
|
106
|
+
.trend { font-style: normal; font-size: 10.5px; color: #8b99ab; background: #f4f7fb; border-radius: 5px; padding: 3px 6px; }
|
|
107
|
+
.trend.up { color: #16875c; background: #eaf8f1; }
|
|
108
|
+
.trend.danger { color: #c4574d; background: #fdf0ee; }
|
|
109
|
+
.spark { height: 28px; margin-top: 8px; opacity: .9; }
|
|
110
|
+
.spark svg { width: 100%; height: 28px; stroke: #7b9ff8; stroke-width: 2; }
|
|
111
|
+
.progress { height: 5px; border-radius: 5px; background: #eef2f8; margin-top: 12px; overflow: hidden; }
|
|
112
|
+
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #35c894, #1aa876); border-radius: 5px; }
|
|
113
|
+
.progress.blue i { background: linear-gradient(90deg, #7aa4ff, #4f7df3); }
|
|
114
|
+
|
|
115
|
+
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
|
|
116
|
+
.grid.two { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
|
|
117
|
+
.grid.wide { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
|
|
118
|
+
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 17px 18px; min-width: 0; }
|
|
119
|
+
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
|
|
120
|
+
.card-head h2 { font-size: 14px; margin: 0 0 4px; font-weight: 650; }
|
|
121
|
+
.card-head p { margin: 0; font-size: 11px; color: var(--muted); }
|
|
122
|
+
.badge { font-size: 10px; border-radius: 5px; padding: 3px 7px; }
|
|
123
|
+
.badge.soft { color: #61718a; background: #f2f5f9; }
|
|
124
|
+
.chart-card { padding-bottom: 12px; }
|
|
125
|
+
.chart-legend { display: flex; gap: 14px; font-size: 10.5px; color: #8290a3; margin-bottom: 4px; }
|
|
126
|
+
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
|
|
127
|
+
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
|
|
128
|
+
.dot.blue { background: var(--blue); } .dot.cyan { background: var(--cyan); }
|
|
129
|
+
.line-chart { width: 100%; height: 210px; overflow: visible; }
|
|
130
|
+
.grid-lines line { stroke: #edf1f6; stroke-width: 1; }
|
|
131
|
+
.line-chart .area { fill: url(#g1); stroke: none; }
|
|
132
|
+
.line-chart .line { stroke-width: 2.4; }
|
|
133
|
+
.line-chart .line.blue { stroke: var(--blue); }
|
|
134
|
+
.line-chart .line.cyan { stroke: var(--cyan); }
|
|
135
|
+
.line-chart .dashed { stroke-dasharray: 4 4; opacity: .8; }
|
|
136
|
+
.line-chart .dots circle { fill: #fff; stroke: var(--blue); stroke-width: 2; }
|
|
137
|
+
.axis { display: flex; justify-content: space-between; color: #a0adbe; font-size: 10px; padding: 0 2px; }
|
|
138
|
+
.latency-list { display: flex; flex-direction: column; gap: 13px; padding-top: 2px; }
|
|
139
|
+
.lat-row { display: grid; grid-template-columns: 82px 1fr 52px; align-items: center; gap: 10px; font-size: 11.5px; color: #5f6e83; }
|
|
140
|
+
.lat-row b { text-align: right; font-weight: 650; color: #2e3d53; }
|
|
141
|
+
.lat-bar { height: 7px; background: #f0f3f8; border-radius: 4px; overflow: hidden; }
|
|
142
|
+
.lat-bar i { display: block; height: 100%; border-radius: 4px; }
|
|
143
|
+
.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; }
|
|
144
|
+
.lat-total b { font-size: 15px; color: #1c2a3d; }
|
|
145
|
+
.hint { font-size: 10.5px; color: #95a1b2; line-height: 1.55; margin: 12px 0 0; }
|
|
146
|
+
code { background: #f2f5f9; color: #55657d; border-radius: 4px; padding: 1px 4px; font-family: Consolas, monospace; font-size: 10.5px; }
|
|
147
|
+
|
|
148
|
+
.table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
|
|
149
|
+
.table th { text-align: left; color: #98a5b6; font-weight: 500; font-size: 10.5px; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
|
|
150
|
+
.table td { padding: 10px 8px; border-bottom: 1px solid #f1f4f8; color: #4d5c71; white-space: nowrap; }
|
|
151
|
+
.table tr:last-child td { border-bottom: 0; }
|
|
152
|
+
.table.compact td { padding: 9px 8px; }
|
|
153
|
+
.tag { display: inline-block; border-radius: 5px; padding: 3px 6px; font-size: 10px; line-height: 1; }
|
|
154
|
+
.tag.group { color: #4877d4; background: #edf3ff; }
|
|
155
|
+
.tag.private { color: #8a63c9; background: #f4efff; }
|
|
156
|
+
.tag.memory { color: #178c6a; background: #eaf8f2; }
|
|
157
|
+
.tag.soft { color: #6b7b90; background: #f1f4f8; }
|
|
158
|
+
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; border-radius: 5px; padding: 3px 6px; }
|
|
159
|
+
.status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
|
|
160
|
+
.status.ok { color: #16875c; background: #eaf8f1; }
|
|
161
|
+
.status.fail { color: #c4574d; background: #fdf0ee; }
|
|
162
|
+
.plugins-mini { display: flex; flex-direction: column; }
|
|
163
|
+
.plugin-line { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #f2f5f9; }
|
|
164
|
+
.plugin-line:last-child { border-bottom: 0; }
|
|
165
|
+
.plugin-line div { display: flex; flex-direction: column; min-width: 0; }
|
|
166
|
+
.plugin-line b { font-size: 11.5px; font-weight: 600; color: #35445a; }
|
|
167
|
+
.plugin-line small { font-size: 10px; color: #95a2b4; margin-top: 2px; }
|
|
168
|
+
.plugin-line .on { width: 6px; height: 6px; border-radius: 50%; background: #2bb37d; margin-left: auto; }
|
|
169
|
+
.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; }
|
|
170
|
+
.plugin-ico.big { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; }
|
|
171
|
+
.plugin-ico.blue { background: linear-gradient(135deg, #5b8def, #3f68d8); }
|
|
172
|
+
.plugin-ico.green { background: linear-gradient(135deg, #2fc08b, #159b6a); }
|
|
173
|
+
.plugin-ico.orange { background: linear-gradient(135deg, #f0ae5b, #dd8d2c); }
|
|
174
|
+
.plugin-ico.purple { background: linear-gradient(135deg, #a486e8, #7c5bc6); }
|
|
175
|
+
.plugin-ico.slate { background: linear-gradient(135deg, #60738d, #405067); }
|
|
176
|
+
|
|
177
|
+
/* plugins page */
|
|
178
|
+
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
|
|
179
|
+
.plugin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
|
|
180
|
+
.plugin-card-top { display: flex; align-items: flex-start; gap: 10px; }
|
|
181
|
+
.plugin-card-top h3 { margin: 0 0 3px; font-size: 14px; }
|
|
182
|
+
.plugin-card-top p { margin: 0; font-size: 9.5px; color: #9aa6b7; word-break: break-all; }
|
|
183
|
+
.plugin-card-top .status { margin-left: auto; flex: 0 0 auto; }
|
|
184
|
+
.plugin-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 9px; }
|
|
185
|
+
.plugin-meta span { font-size: 9.5px; color: #7b8a9f; background: #f4f7fb; border-radius: 4px; padding: 3px 6px; }
|
|
186
|
+
.plugin-desc { font-size: 11.5px; color: #6e7d92; line-height: 1.55; margin: 0 0 13px; flex: 1; }
|
|
187
|
+
.plugin-actions { display: flex; gap: 7px; }
|
|
188
|
+
.plugin-card.add { border-style: dashed; background: rgba(255,255,255,.45); box-shadow: none; }
|
|
189
|
+
.add-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px; min-height: 180px; color: #8d9aab; }
|
|
190
|
+
.add-inner span { font-size: 28px; color: #b9c5d4; font-weight: 300; }
|
|
191
|
+
.add-inner b { font-size: 12.5px; color: #61718a; }
|
|
192
|
+
.add-inner p { font-size: 10.5px; margin: 0 0 4px; }
|
|
193
|
+
|
|
194
|
+
/* memory */
|
|
195
|
+
.memory-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
|
|
196
|
+
.scope-list { padding: 16px 12px; height: fit-content; }
|
|
197
|
+
.scope-list h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #9aa7b8; margin: 4px 8px 8px; }
|
|
198
|
+
.scope-list h3.mt { margin-top: 18px; }
|
|
199
|
+
.scope { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 9px; border-radius: 7px; font-size: 11.5px; color: #607086; }
|
|
200
|
+
.scope b { font-size: 10px; color: #9ba8ba; font-weight: 500; }
|
|
201
|
+
.scope.active { background: #eef3ff; color: #3f68d8; }
|
|
202
|
+
.scope.active b { color: #4f7df3; }
|
|
203
|
+
.memory-toolbar { display: flex; gap: 9px; margin-bottom: 8px; }
|
|
204
|
+
.search.wide { flex: 1; width: auto; }
|
|
205
|
+
.memory-item { padding: 13px 4px; border-bottom: 1px solid #f0f3f8; }
|
|
206
|
+
.memory-item:last-child { border-bottom: 0; }
|
|
207
|
+
.memory-head { display: flex; align-items: center; gap: 6px; }
|
|
208
|
+
.memory-head time { margin-left: auto; font-size: 10px; color: #a1adbe; }
|
|
209
|
+
.memory-item p { font-size: 12px; color: #3f4e63; line-height: 1.6; margin: 8px 0; }
|
|
210
|
+
.memory-foot { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: #9aa7b8; }
|
|
211
|
+
.memory-foot .link-btn { margin-left: auto; font-size: 10.5px; }
|
|
212
|
+
.segmented { display: inline-flex; background: #e9eef6; border-radius: 8px; padding: 3px; }
|
|
213
|
+
.segmented button { padding: 5px 11px; border-radius: 6px; font-size: 11px; color: #728198; }
|
|
214
|
+
.segmented button.active { background: #fff; color: #2f4058; box-shadow: 0 1px 4px rgba(20,35,55,.12); }
|
|
215
|
+
|
|
216
|
+
/* config */
|
|
217
|
+
.config-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
|
|
218
|
+
.config-nav { padding: 10px; height: fit-content; }
|
|
219
|
+
.config-plugin { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 9px; text-align: left; color: #52627a; }
|
|
220
|
+
.config-plugin div { display: flex; flex-direction: column; }
|
|
221
|
+
.config-plugin b { font-size: 11.5px; font-weight: 600; }
|
|
222
|
+
.config-plugin small { font-size: 9.5px; color: #9aa7b8; margin-top: 2px; }
|
|
223
|
+
.config-plugin.active { background: #eef3ff; color: #355dca; }
|
|
224
|
+
.config-form { padding: 18px 20px; }
|
|
225
|
+
.form-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
|
|
226
|
+
.form-head h2 { margin: 0 0 4px; font-size: 16px; }
|
|
227
|
+
.form-head p { margin: 0; font-size: 10px; color: #9aa7b8; }
|
|
228
|
+
.form-section { padding: 15px 0; border-bottom: 1px solid #f1f4f8; }
|
|
229
|
+
.form-section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #8f9db0; margin: 0 0 12px; }
|
|
230
|
+
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 9px 0; font-size: 11.5px; color: #536277; }
|
|
231
|
+
.field > span { flex: 0 0 180px; }
|
|
232
|
+
.field input:not([type=checkbox]), .field select { flex: 1; border: 1px solid #e2e8f1; border-radius: 7px; background: #fbfcfe; padding: 7px 9px; font-size: 11.5px; outline: none; color: #3b4b61; }
|
|
233
|
+
.field input[type=checkbox] { width: 32px; height: 18px; accent-color: var(--blue); }
|
|
234
|
+
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
235
|
+
.field-row .field > span { flex: 0 0 120px; }
|
|
236
|
+
.form-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; font-size: 10px; color: #9aa7b8; }
|
|
237
|
+
.form-foot > div { display: flex; gap: 8px; }
|
|
238
|
+
|
|
239
|
+
/* logs */
|
|
240
|
+
.log-card { padding: 0; overflow: hidden; }
|
|
241
|
+
.log-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--line); }
|
|
242
|
+
.chips { display: flex; gap: 5px; }
|
|
243
|
+
.chip { font-size: 10px; border-radius: 5px; padding: 4px 8px; color: #7a889b; }
|
|
244
|
+
.chip.active { background: #eef3ff; color: #3f68d8; }
|
|
245
|
+
.log-meta { font-size: 10px; color: #9aa7b8; }
|
|
246
|
+
.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; }
|
|
247
|
+
.log-line { display: grid; grid-template-columns: 78px 48px 170px 1fr; gap: 4px; align-items: baseline; }
|
|
248
|
+
.log-line time { color: #5f718c; }
|
|
249
|
+
.log-line .src { color: #88a2c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
250
|
+
.log-line p { margin: 0; color: #aebbd0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
251
|
+
.lvl { font-size: 9px; letter-spacing: .04em; }
|
|
252
|
+
.lvl.info { color: #58c49b; } .lvl.warn { color: #e3ad55; } .lvl.error { color: #ef7f74; }
|
|
253
|
+
|
|
254
|
+
/* status */
|
|
255
|
+
.statusbar { height: 30px; flex: 0 0 30px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #fff; border-top: 1px solid var(--line); color: #96a3b5; font-size: 10px; }
|
|
256
|
+
.statusbar .right { margin-left: auto; color: #b3becd; }
|
|
257
|
+
.statusbar .pulse { width: 5px; height: 5px; margin-right: 5px; }
|
|
258
|
+
.memory-note { background: #fff8e8; border: 1px solid #f3e4c4; color: #8d7138; font-size: 10.5px; line-height: 1.55; padding: 8px 11px; border-radius: 8px; margin: -8px 0 14px; }
|
|
259
|
+
.memory-note b { color: #775c24; }
|
|
260
|
+
.overview-meta { text-align: right; color: #a5b1c2; font-size: 9.5px; padding: 4px 2px 0; letter-spacing: .01em; }
|
|
261
|
+
|
|
262
|
+
/* welcome / no monitor */
|
|
263
|
+
.welcome-hero { background: linear-gradient(120deg, #101c30 0%, #172844 55%, #1b3154 100%); border-radius: 16px; color: #f2f6fc; padding: 30px 32px; margin-bottom: 16px; box-shadow: 0 16px 35px rgba(20,35,60,.16); position: relative; overflow: hidden; }
|
|
264
|
+
.welcome-hero::after { content: "Q"; position: absolute; right: 28px; top: -38px; font-size: 220px; font-weight: 800; color: rgba(255,255,255,.035); line-height: 1; }
|
|
265
|
+
.eyebrow { font-size: 9px; letter-spacing: .22em; color: #7f9bc9; margin-bottom: 12px; }
|
|
266
|
+
.welcome-hero h1 { margin: 0 0 9px; font-size: 27px; letter-spacing: -.02em; }
|
|
267
|
+
.welcome-hero p { margin: 0; color: #aebdd4; font-size: 12px; line-height: 1.7; }
|
|
268
|
+
.welcome-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
|
|
269
|
+
.welcome-actions .btn.ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #d9e5f7; }
|
|
270
|
+
.welcome-actions .btn.primary { background: #fff; color: #1b3154; box-shadow: none; }
|
|
271
|
+
.welcome-actions .link-btn { color: #9dbcf0; margin-left: 4px; }
|
|
272
|
+
.welcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
|
|
273
|
+
.welcome-card { position: relative; padding: 18px; }
|
|
274
|
+
.welcome-card .step { font-size: 10px; letter-spacing: .1em; color: #8fa3bd; }
|
|
275
|
+
.welcome-card h3 { margin: 8px 0 6px; font-size: 14px; }
|
|
276
|
+
.welcome-card p { margin: 0; color: #7d8b9f; font-size: 11px; line-height: 1.6; }
|
|
277
|
+
.install-code { display: block; margin-top: 10px; padding: 8px 9px; font-size: 10px; background: #f3f6fb; color: #526782; border-radius: 6px; }
|
|
278
|
+
.welcome-note { display: flex; align-items: center; gap: 8px; color: #8d9caf; font-size: 10.5px; padding: 14px 2px 0; }
|
|
279
|
+
|
|
280
|
+
/* side config */
|
|
281
|
+
.config-group-label { font-size: 9px; letter-spacing: .14em; color: #9ba8b9; text-transform: uppercase; padding: 12px 10px 5px; }
|
|
282
|
+
.config-group-label:first-child { padding-top: 4px; }
|
|
283
|
+
.mini-badge { margin-left: auto; font-size: 8.5px; color: #b47a15; background: #fff4de; border-radius: 4px; padding: 2px 5px; }
|
|
284
|
+
.plugin-ico.muted { background: #e7ecf3; color: #9aa8ba; }
|
|
285
|
+
.side-panel { display: none; }
|
|
286
|
+
.side-panel.active { display: block; }
|
|
287
|
+
.empty-install { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
|
|
288
|
+
.empty-icon { width: 52px; height: 52px; border-radius: 15px; background: #eef3fb; color: #8ba3c4; display: grid; place-items: center; font-size: 26px; font-weight: 300; margin-bottom: 13px; }
|
|
289
|
+
.empty-install h2 { margin: 0 0 7px; font-size: 18px; }
|
|
290
|
+
.empty-install p { margin: 0; color: #7c8b9f; font-size: 11.5px; line-height: 1.7; }
|
|
291
|
+
.install-actions { display: flex; gap: 8px; margin: 16px 0 12px; }
|
|
292
|
+
.empty-install .install-code { width: 100%; max-width: 370px; }
|
|
293
|
+
.field textarea { flex: 1; border: 1px solid #e2e8f1; border-radius: 7px; background: #fbfcfe; padding: 8px 9px; font-size: 11.5px; color: #3b4b61; resize: vertical; outline: none; font-family: inherit; }
|
|
294
|
+
.word-list { display: flex; flex-wrap: wrap; gap: 7px; }
|
|
295
|
+
.word-list span { display: inline-flex; align-items: center; gap: 5px; background: #f3f6fb; border: 1px solid #e6ecf5; color: #53647b; border-radius: 6px; padding: 5px 8px; font-size: 10.5px; }
|
|
296
|
+
.word-list button { color: #a6b2c2; font-size: 12px; line-height: 1; }
|
|
297
|
+
.toast { position: fixed; left: 50%; bottom: 45px; transform: translate(-50%, 12px); background: #18263a; color: #fff; font-size: 11.5px; padding: 9px 15px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .2s; box-shadow: 0 8px 24px rgba(15,25,42,.2); z-index: 20; }
|
|
298
|
+
.toast.show { opacity: 1; transform: translate(-50%, 0); }
|
|
299
|
+
|
|
300
|
+
@media (max-width: 1100px) {
|
|
301
|
+
.metrics { grid-template-columns: repeat(2, 1fr); }
|
|
302
|
+
.grid.two, .grid.wide { grid-template-columns: 1fr; }
|
|
303
|
+
.plugin-grid { grid-template-columns: 1fr 1fr; }
|
|
304
|
+
.welcome-grid { grid-template-columns: 1fr 1fr; }
|
|
305
|
+
}
|
|
306
|
+
@media (max-width: 820px) {
|
|
307
|
+
.app { grid-template-columns: 64px 1fr; }
|
|
308
|
+
.brand-text, .nav-item span, .nav-sub, .nav-section, .sys-meta, .user div:nth-child(2), .nav-badge { display: none; }
|
|
309
|
+
.sidebar { padding: 18px 8px; align-items: center; }
|
|
310
|
+
.brand { padding: 2px 0 20px; }
|
|
311
|
+
.nav-item { justify-content: center; width: 44px; }
|
|
312
|
+
.sidebar-footer { left: 8px; right: 8px; bottom: 12px; }
|
|
313
|
+
.sys-line { justify-content: center; }
|
|
314
|
+
.sys-meta { text-align: center; }
|
|
315
|
+
.top-actions .search { display: none; }
|
|
316
|
+
.content { padding: 18px 16px; }
|
|
317
|
+
.plugin-grid, .memory-layout, .config-layout { grid-template-columns: 1fr; }
|
|
318
|
+
.welcome-grid { grid-template-columns: 1fr; }
|
|
319
|
+
.log-line { grid-template-columns: 70px 42px 1fr; }
|
|
320
|
+
.log-line .src { display: none; }
|
|
321
|
+
}
|