side_bro 0.2.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/Rakefile +10 -0
- data/lib/side_bro/version.rb +5 -0
- data/lib/side_bro/web/action.rb +115 -0
- data/lib/side_bro/web/application.rb +331 -0
- data/lib/side_bro/web/helpers.rb +176 -0
- data/lib/side_bro/web/router.rb +50 -0
- data/lib/side_bro/web.rb +96 -0
- data/lib/side_bro.rb +8 -0
- data/sig/side_bro.rbs +4 -0
- data/web/assets/images/.keep +0 -0
- data/web/assets/javascripts/application.js +62 -0
- data/web/assets/javascripts/base-charts.js +1 -0
- data/web/assets/javascripts/dashboard-charts.js +1 -0
- data/web/assets/javascripts/dashboard.js +262 -0
- data/web/assets/javascripts/metrics.js +1 -0
- data/web/assets/stylesheets/style.css +636 -0
- data/web/locales/en.yml +88 -0
- data/web/views/_footer.html.erb +3 -0
- data/web/views/_job_info.html.erb +23 -0
- data/web/views/_metrics_period_select.html.erb +5 -0
- data/web/views/_nav.html.erb +76 -0
- data/web/views/_paging.html.erb +11 -0
- data/web/views/_poll_link.html.erb +4 -0
- data/web/views/_summary.html.erb +44 -0
- data/web/views/busy.html.erb +104 -0
- data/web/views/dashboard.html.erb +124 -0
- data/web/views/dead.html.erb +31 -0
- data/web/views/layout.html.erb +61 -0
- data/web/views/metrics.html.erb +56 -0
- data/web/views/metrics_for_job.html.erb +67 -0
- data/web/views/morgue.html.erb +82 -0
- data/web/views/queue.html.erb +190 -0
- data/web/views/queues.html.erb +59 -0
- data/web/views/retries.html.erb +99 -0
- data/web/views/retry.html.erb +32 -0
- data/web/views/scheduled.html.erb +79 -0
- data/web/views/scheduled_job_info.html.erb +31 -0
- metadata +126 -0
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg-0: #0b0614;
|
|
3
|
+
--bg-1: #110a1f;
|
|
4
|
+
--bg-2: #170f29;
|
|
5
|
+
--bg-3: #1d1334;
|
|
6
|
+
--line: #2a1d49;
|
|
7
|
+
--line-soft: #1f1638;
|
|
8
|
+
--text: #ece7fb;
|
|
9
|
+
--text-dim: #9c91c2;
|
|
10
|
+
--text-faint: #6a5f8a;
|
|
11
|
+
|
|
12
|
+
--violet-50: #f3efff;
|
|
13
|
+
--violet-200: #c8b8ff;
|
|
14
|
+
--violet-300: #a98cff;
|
|
15
|
+
--violet-400: #8b5cff;
|
|
16
|
+
--violet-500: #7a3dff;
|
|
17
|
+
--violet-600: #6526ff;
|
|
18
|
+
--violet-700: #4d12d4;
|
|
19
|
+
|
|
20
|
+
--magenta: #ff3db7;
|
|
21
|
+
--pink-glow: #ff5cd6;
|
|
22
|
+
--cyan: #4be3ff;
|
|
23
|
+
--lime: #a4ff5c;
|
|
24
|
+
--amber: #ffb84d;
|
|
25
|
+
--red: #ff5470;
|
|
26
|
+
|
|
27
|
+
--radius-sm: 8px;
|
|
28
|
+
--radius: 12px;
|
|
29
|
+
--radius-lg: 16px;
|
|
30
|
+
|
|
31
|
+
--mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
32
|
+
|
|
33
|
+
--shadow-pop: 0 10px 40px -8px rgba(122, 61, 255, .35), 0 2px 0 0 rgba(255,255,255,.03) inset;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
* { box-sizing: border-box; }
|
|
37
|
+
html, body { margin: 0; padding: 0; }
|
|
38
|
+
body {
|
|
39
|
+
font-family: 'Space Grotesk', system-ui, sans-serif;
|
|
40
|
+
background: var(--bg-0);
|
|
41
|
+
color: var(--text);
|
|
42
|
+
min-height: 100vh;
|
|
43
|
+
-webkit-font-smoothing: antialiased;
|
|
44
|
+
background-image:
|
|
45
|
+
radial-gradient(1200px 600px at 12% -10%, rgba(122,61,255,.18), transparent 60%),
|
|
46
|
+
radial-gradient(900px 500px at 100% 0%, rgba(255,61,183,.10), transparent 60%);
|
|
47
|
+
background-attachment: fixed;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
|
|
51
|
+
|
|
52
|
+
/* ---------- Layout ---------- */
|
|
53
|
+
.app {
|
|
54
|
+
display: grid;
|
|
55
|
+
grid-template-columns: 200px 1fr;
|
|
56
|
+
min-height: 100vh;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* ---------- Sidebar ---------- */
|
|
60
|
+
.sidebar {
|
|
61
|
+
border-right: 1px solid var(--line-soft);
|
|
62
|
+
background: linear-gradient(180deg, rgba(23,15,41,.8), rgba(11,6,20,.6));
|
|
63
|
+
backdrop-filter: blur(8px);
|
|
64
|
+
padding: 18px 10px;
|
|
65
|
+
position: sticky; top: 0; height: 100vh;
|
|
66
|
+
display: flex; flex-direction: column; gap: 6px;
|
|
67
|
+
}
|
|
68
|
+
.brand {
|
|
69
|
+
display: flex; align-items: center; gap: 8px;
|
|
70
|
+
padding: 4px 6px 14px;
|
|
71
|
+
border-bottom: 1px solid var(--line-soft);
|
|
72
|
+
margin-bottom: 8px;
|
|
73
|
+
}
|
|
74
|
+
.brand-mark {
|
|
75
|
+
width: 28px; height: 28px; border-radius: 8px;
|
|
76
|
+
background:
|
|
77
|
+
conic-gradient(from 200deg, var(--violet-400), var(--magenta), var(--violet-600), var(--violet-400));
|
|
78
|
+
box-shadow: 0 6px 22px -4px rgba(139,92,255,.6), inset 0 0 0 1px rgba(255,255,255,.18);
|
|
79
|
+
position: relative;
|
|
80
|
+
}
|
|
81
|
+
.brand-mark::after{
|
|
82
|
+
content: ""; position:absolute; inset: 5px; border-radius: 4px;
|
|
83
|
+
background: var(--bg-0);
|
|
84
|
+
box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
|
|
85
|
+
}
|
|
86
|
+
.brand-mark::before{
|
|
87
|
+
content:""; position:absolute; left:50%; top:50%; width: 8px; height: 8px;
|
|
88
|
+
transform: translate(-50%,-50%); border-radius: 2px;
|
|
89
|
+
background: var(--pink-glow);
|
|
90
|
+
box-shadow: 0 0 12px var(--pink-glow);
|
|
91
|
+
z-index: 1;
|
|
92
|
+
}
|
|
93
|
+
.brand-name { font-weight: 700; letter-spacing: .2px; font-size: 15px; }
|
|
94
|
+
.brand-name span { color: var(--violet-300); }
|
|
95
|
+
.brand-pill {
|
|
96
|
+
margin-left: auto; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
|
|
97
|
+
color: var(--lime); background: rgba(164,255,92,.08);
|
|
98
|
+
border: 1px solid rgba(164,255,92,.25);
|
|
99
|
+
border-radius: 999px; padding: 3px 8px;
|
|
100
|
+
display: flex; align-items: center; gap: 5px; font-weight: 600;
|
|
101
|
+
}
|
|
102
|
+
.brand-pill::before{ content:""; width:6px;height:6px;border-radius:50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
|
|
103
|
+
|
|
104
|
+
.nav-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin: 12px 8px 4px; font-weight: 600; }
|
|
105
|
+
.nav { display: flex; flex-direction: column; gap: 1px; }
|
|
106
|
+
.nav a {
|
|
107
|
+
display: flex; align-items: center; gap: 9px;
|
|
108
|
+
padding: 7px 8px; border-radius: 8px;
|
|
109
|
+
color: var(--text-dim); text-decoration: none;
|
|
110
|
+
font-size: 13px; font-weight: 500;
|
|
111
|
+
border: 1px solid transparent;
|
|
112
|
+
transition: all .15s ease;
|
|
113
|
+
}
|
|
114
|
+
.nav a:hover { background: rgba(122,61,255,.08); color: var(--text); }
|
|
115
|
+
.nav a.active {
|
|
116
|
+
background: linear-gradient(180deg, rgba(122,61,255,.22), rgba(122,61,255,.08));
|
|
117
|
+
color: white;
|
|
118
|
+
border-color: rgba(168,140,255,.25);
|
|
119
|
+
box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 6px 22px -8px rgba(122,61,255,.5);
|
|
120
|
+
}
|
|
121
|
+
.nav a .dot {
|
|
122
|
+
width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint);
|
|
123
|
+
box-shadow: 0 0 0 0 rgba(0,0,0,0);
|
|
124
|
+
}
|
|
125
|
+
.nav a.active .dot { background: var(--magenta); box-shadow: 0 0 8px var(--pink-glow); }
|
|
126
|
+
.nav a .count {
|
|
127
|
+
margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
|
|
128
|
+
color: var(--text-faint); padding: 2px 7px; border-radius: 6px;
|
|
129
|
+
background: rgba(255,255,255,.03); border: 1px solid var(--line-soft);
|
|
130
|
+
}
|
|
131
|
+
.nav a.active .count { color: var(--violet-200); border-color: rgba(168,140,255,.3); background: rgba(122,61,255,.18); }
|
|
132
|
+
|
|
133
|
+
.sidebar-footer { margin-top: auto; padding: 10px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
|
|
134
|
+
.avatar { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--violet-500), var(--magenta)); display:grid; place-items:center; font-weight:700; font-size:12px; }
|
|
135
|
+
.who { font-size: 13px; }
|
|
136
|
+
.who small { display:block; color: var(--text-faint); font-size: 11px; }
|
|
137
|
+
|
|
138
|
+
/* ---------- Main ---------- */
|
|
139
|
+
.main {
|
|
140
|
+
padding: 22px 32px 48px;
|
|
141
|
+
max-width: 1500px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Top bar */
|
|
145
|
+
.topbar {
|
|
146
|
+
display: flex; align-items: center; gap: 14px;
|
|
147
|
+
margin-bottom: 22px;
|
|
148
|
+
}
|
|
149
|
+
.breadcrumb { display:flex; align-items:center; gap: 8px; color: var(--text-dim); font-size: 13px; }
|
|
150
|
+
.breadcrumb b { color: var(--text); font-weight: 600; }
|
|
151
|
+
.breadcrumb svg { opacity: .4; }
|
|
152
|
+
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
|
|
153
|
+
.live-toggle {
|
|
154
|
+
display:flex; align-items:center; gap: 8px; padding: 7px 12px;
|
|
155
|
+
border: 1px solid var(--line); border-radius: 8px; background: rgba(122,61,255,.06);
|
|
156
|
+
font-size: 13px; cursor: pointer; color: var(--text); font-family: inherit;
|
|
157
|
+
transition: all .15s;
|
|
158
|
+
}
|
|
159
|
+
.live-toggle:hover { background: rgba(122,61,255,.14); border-color: var(--violet-400); }
|
|
160
|
+
.live-toggle .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(164,255,92,.6); animation: pulse 1.6s ease-out infinite; }
|
|
161
|
+
.live-toggle.off .pulse { background: var(--text-faint); animation: none; box-shadow: none; }
|
|
162
|
+
@keyframes pulse {
|
|
163
|
+
0% { box-shadow: 0 0 0 0 rgba(164,255,92,.6); }
|
|
164
|
+
70% { box-shadow: 0 0 0 8px rgba(164,255,92,0); }
|
|
165
|
+
100% { box-shadow: 0 0 0 0 rgba(164,255,92,0); }
|
|
166
|
+
}
|
|
167
|
+
.icon-btn {
|
|
168
|
+
width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
|
|
169
|
+
background: transparent; color: var(--text-dim); cursor: pointer; display:grid;place-items:center;
|
|
170
|
+
}
|
|
171
|
+
.icon-btn:hover { color: white; border-color: var(--violet-400); background: rgba(122,61,255,.1); }
|
|
172
|
+
|
|
173
|
+
/* Stat bar */
|
|
174
|
+
.stat-strip {
|
|
175
|
+
display: grid; grid-template-columns: repeat(7, 1fr);
|
|
176
|
+
background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
|
|
177
|
+
border: 1px solid var(--line-soft);
|
|
178
|
+
border-radius: var(--radius-lg);
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
position: relative;
|
|
181
|
+
margin-bottom: 28px;
|
|
182
|
+
}
|
|
183
|
+
.stat-strip::before {
|
|
184
|
+
content:""; position:absolute; inset:0;
|
|
185
|
+
background:
|
|
186
|
+
radial-gradient(600px 120px at 30% 0%, rgba(122,61,255,.15), transparent 70%);
|
|
187
|
+
pointer-events:none;
|
|
188
|
+
}
|
|
189
|
+
.stat {
|
|
190
|
+
padding: 16px 18px;
|
|
191
|
+
display: flex; flex-direction: column; gap: 4px;
|
|
192
|
+
border-right: 1px solid var(--line-soft);
|
|
193
|
+
position: relative; z-index: 1;
|
|
194
|
+
cursor: pointer;
|
|
195
|
+
transition: background .15s;
|
|
196
|
+
text-decoration: none;
|
|
197
|
+
color: inherit;
|
|
198
|
+
}
|
|
199
|
+
.stat:hover { background: rgba(122,61,255,.05); }
|
|
200
|
+
.stat:last-child { border-right: 0; }
|
|
201
|
+
.stat-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; display: flex; align-items: center; gap: 6px; }
|
|
202
|
+
.stat-label .dot-mini { width: 6px; height: 6px; border-radius: 50%; }
|
|
203
|
+
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
|
|
204
|
+
.stat-delta { font-size: 11px; color: var(--text-faint); }
|
|
205
|
+
.stat-delta.up { color: var(--lime); }
|
|
206
|
+
.stat-delta.down { color: var(--red); }
|
|
207
|
+
.stat-delta.warn { color: var(--amber); }
|
|
208
|
+
|
|
209
|
+
.stat[data-tone="processed"] .stat-value { color: var(--violet-200); }
|
|
210
|
+
.stat[data-tone="failed"] .stat-value, .stat[data-tone="dead"] .stat-value { color: var(--red); }
|
|
211
|
+
.stat[data-tone="busy"] .stat-value, .stat[data-tone="enqueued"] .stat-value { color: var(--cyan); }
|
|
212
|
+
.stat[data-tone="retries"] .stat-value { color: var(--amber); }
|
|
213
|
+
.stat[data-tone="scheduled"] .stat-value { color: var(--text); }
|
|
214
|
+
|
|
215
|
+
/* ---------- Page Header ---------- */
|
|
216
|
+
.page-head {
|
|
217
|
+
display: flex; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
|
|
218
|
+
}
|
|
219
|
+
.page-title-block { display:flex; flex-direction: column; gap: 6px; }
|
|
220
|
+
.eyebrow { display:flex; align-items:center; gap: 8px; font-size: 12px; color: var(--text-faint); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
|
|
221
|
+
.eyebrow .pill { background: rgba(122,61,255,.18); border: 1px solid rgba(168,140,255,.3); color: var(--violet-200); padding: 2px 8px; border-radius: 999px; font-size: 10px; }
|
|
222
|
+
h1 {
|
|
223
|
+
margin: 0; font-size: 34px; letter-spacing: -.8px; font-weight: 600;
|
|
224
|
+
display: flex; align-items: center; gap: 14px;
|
|
225
|
+
}
|
|
226
|
+
h1 .queue-name {
|
|
227
|
+
background: linear-gradient(110deg, var(--violet-200), var(--pink-glow) 60%, var(--violet-300));
|
|
228
|
+
-webkit-background-clip: text; background-clip: text; color: transparent;
|
|
229
|
+
font-weight: 700;
|
|
230
|
+
}
|
|
231
|
+
h1 .badge-num {
|
|
232
|
+
font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600;
|
|
233
|
+
background: rgba(255,61,183,.15); border: 1px solid rgba(255,92,214,.3); color: var(--pink-glow);
|
|
234
|
+
padding: 4px 10px; border-radius: 999px; letter-spacing: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.page-head-meta {
|
|
238
|
+
margin-left: auto; display: flex; align-items: center; gap: 20px;
|
|
239
|
+
color: var(--text-dim); font-size: 13px;
|
|
240
|
+
}
|
|
241
|
+
.page-head-meta .meta-item { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
|
|
242
|
+
.page-head-meta .meta-k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600;}
|
|
243
|
+
.page-head-meta .meta-v { font-family: 'JetBrains Mono', monospace; font-weight: 500; color: var(--text); font-size: 14px;}
|
|
244
|
+
|
|
245
|
+
/* sparkline */
|
|
246
|
+
.sparkline {
|
|
247
|
+
display: flex; align-items: flex-end; gap: 2px;
|
|
248
|
+
height: 28px;
|
|
249
|
+
}
|
|
250
|
+
.sparkline span {
|
|
251
|
+
width: 4px; background: linear-gradient(180deg, var(--magenta), var(--violet-400));
|
|
252
|
+
border-radius: 2px;
|
|
253
|
+
opacity: .9;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/* ---------- Toolbar / Filters ---------- */
|
|
257
|
+
.toolbar {
|
|
258
|
+
display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
|
|
259
|
+
background: var(--bg-1); border: 1px solid var(--line-soft);
|
|
260
|
+
border-radius: var(--radius);
|
|
261
|
+
padding: 10px;
|
|
262
|
+
margin-bottom: 14px;
|
|
263
|
+
}
|
|
264
|
+
.search {
|
|
265
|
+
flex: 1; min-width: 280px;
|
|
266
|
+
display: flex; align-items: center; gap: 8px;
|
|
267
|
+
background: var(--bg-0); border: 1px solid var(--line-soft);
|
|
268
|
+
border-radius: 9px; padding: 8px 12px;
|
|
269
|
+
}
|
|
270
|
+
.search:focus-within { border-color: var(--violet-400); box-shadow: 0 0 0 3px rgba(122,61,255,.2); }
|
|
271
|
+
.search svg { opacity: .5; }
|
|
272
|
+
.search input {
|
|
273
|
+
flex: 1; background: transparent; border: 0; outline: 0; color: var(--text);
|
|
274
|
+
font-family: 'JetBrains Mono', monospace; font-size: 13px;
|
|
275
|
+
}
|
|
276
|
+
.search input::placeholder { color: var(--text-faint); }
|
|
277
|
+
.search kbd {
|
|
278
|
+
font-family: inherit; font-size: 10.5px; color: var(--text-faint);
|
|
279
|
+
border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.02);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.filter-group { display: flex; align-items: center; gap: 6px; }
|
|
283
|
+
.filter-label { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; padding: 0 4px; }
|
|
284
|
+
.chip {
|
|
285
|
+
background: var(--bg-0); border: 1px solid var(--line-soft);
|
|
286
|
+
color: var(--text-dim); font-size: 12.5px; font-weight: 500;
|
|
287
|
+
padding: 7px 11px; border-radius: 8px; cursor: pointer;
|
|
288
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
289
|
+
font-family: inherit;
|
|
290
|
+
transition: all .15s;
|
|
291
|
+
}
|
|
292
|
+
.chip:hover { color: white; border-color: var(--violet-400); }
|
|
293
|
+
.chip.active {
|
|
294
|
+
background: linear-gradient(180deg, rgba(122,61,255,.22), rgba(122,61,255,.08));
|
|
295
|
+
color: white; border-color: rgba(168,140,255,.4);
|
|
296
|
+
}
|
|
297
|
+
.chip .chip-count { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); }
|
|
298
|
+
.chip.active .chip-count { color: var(--violet-200); }
|
|
299
|
+
|
|
300
|
+
.dropdown {
|
|
301
|
+
position: relative;
|
|
302
|
+
}
|
|
303
|
+
.dropdown > .chip { gap: 8px; }
|
|
304
|
+
.dropdown > .chip svg { opacity: .6; }
|
|
305
|
+
|
|
306
|
+
.divider-v { width: 1px; align-self: stretch; background: var(--line-soft); margin: 4px 4px; }
|
|
307
|
+
|
|
308
|
+
.btn {
|
|
309
|
+
background: linear-gradient(180deg, var(--violet-500), var(--violet-700));
|
|
310
|
+
color: white; border: 0;
|
|
311
|
+
padding: 9px 14px; border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 13px;
|
|
312
|
+
cursor: pointer;
|
|
313
|
+
box-shadow: 0 6px 22px -8px rgba(122,61,255,.7), inset 0 1px 0 rgba(255,255,255,.18);
|
|
314
|
+
display: inline-flex; align-items: center; gap: 7px;
|
|
315
|
+
text-decoration: none;
|
|
316
|
+
}
|
|
317
|
+
.btn:hover { filter: brightness(1.1); }
|
|
318
|
+
.btn.danger {
|
|
319
|
+
background: linear-gradient(180deg, #ff4666, #c01837);
|
|
320
|
+
box-shadow: 0 6px 22px -8px rgba(255,84,112,.6), inset 0 1px 0 rgba(255,255,255,.18);
|
|
321
|
+
}
|
|
322
|
+
.btn.ghost {
|
|
323
|
+
background: transparent; border: 1px solid var(--line); color: var(--text-dim);
|
|
324
|
+
box-shadow: none;
|
|
325
|
+
}
|
|
326
|
+
.btn.ghost:hover { color: white; border-color: var(--violet-400); background: rgba(122,61,255,.08); }
|
|
327
|
+
|
|
328
|
+
/* legacy button classes */
|
|
329
|
+
.btn-primary {
|
|
330
|
+
background: linear-gradient(180deg, var(--violet-500), var(--violet-700));
|
|
331
|
+
color: white; border: 0;
|
|
332
|
+
padding: 9px 14px; border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 13px;
|
|
333
|
+
cursor: pointer;
|
|
334
|
+
box-shadow: 0 6px 22px -8px rgba(122,61,255,.7), inset 0 1px 0 rgba(255,255,255,.18);
|
|
335
|
+
display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
|
|
336
|
+
}
|
|
337
|
+
.btn-primary:hover { filter: brightness(1.1); }
|
|
338
|
+
.btn-danger {
|
|
339
|
+
background: linear-gradient(180deg, #ff4666, #c01837);
|
|
340
|
+
box-shadow: 0 6px 22px -8px rgba(255,84,112,.6), inset 0 1px 0 rgba(255,255,255,.18);
|
|
341
|
+
color: white; border: 0;
|
|
342
|
+
padding: 9px 14px; border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 13px;
|
|
343
|
+
cursor: pointer; display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
|
|
344
|
+
}
|
|
345
|
+
.btn-danger:hover { filter: brightness(1.1); }
|
|
346
|
+
.btn-warning {
|
|
347
|
+
background: transparent; border: 1px solid var(--line); color: var(--text-dim);
|
|
348
|
+
box-shadow: none;
|
|
349
|
+
padding: 9px 14px; border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 13px;
|
|
350
|
+
cursor: pointer; display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
|
|
351
|
+
}
|
|
352
|
+
.btn-warning:hover { color: white; border-color: var(--violet-400); background: rgba(122,61,255,.08); }
|
|
353
|
+
|
|
354
|
+
/* Active filter row */
|
|
355
|
+
.active-filters {
|
|
356
|
+
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
|
|
357
|
+
padding: 0 4px 14px;
|
|
358
|
+
color: var(--text-faint); font-size: 12px;
|
|
359
|
+
}
|
|
360
|
+
.filter-tag {
|
|
361
|
+
display:inline-flex; align-items:center; gap:6px;
|
|
362
|
+
background: rgba(122,61,255,.12);
|
|
363
|
+
border: 1px solid rgba(168,140,255,.3);
|
|
364
|
+
color: var(--violet-200);
|
|
365
|
+
padding: 4px 6px 4px 10px;
|
|
366
|
+
border-radius: 7px;
|
|
367
|
+
font-size: 12px; font-family: 'JetBrains Mono', monospace;
|
|
368
|
+
}
|
|
369
|
+
.filter-tag .x {
|
|
370
|
+
cursor: pointer; opacity: .6; padding: 0 2px; line-height: 1;
|
|
371
|
+
}
|
|
372
|
+
.filter-tag .x:hover { opacity: 1; color: var(--pink-glow); }
|
|
373
|
+
|
|
374
|
+
/* ---------- Panel / Table ---------- */
|
|
375
|
+
.panel {
|
|
376
|
+
background: var(--bg-1);
|
|
377
|
+
border: 1px solid var(--line-soft);
|
|
378
|
+
border-radius: var(--radius-lg);
|
|
379
|
+
overflow: hidden;
|
|
380
|
+
box-shadow: 0 1px 0 rgba(255,255,255,.02) inset;
|
|
381
|
+
margin-bottom: 22px;
|
|
382
|
+
}
|
|
383
|
+
.panel-head {
|
|
384
|
+
display: flex; align-items: center; gap: 14px;
|
|
385
|
+
padding: 12px 16px;
|
|
386
|
+
border-bottom: 1px solid var(--line-soft);
|
|
387
|
+
background: rgba(255,255,255,.01);
|
|
388
|
+
}
|
|
389
|
+
.panel-head .ph-title {
|
|
390
|
+
font-size: 13px; color: var(--text); font-weight: 600;
|
|
391
|
+
}
|
|
392
|
+
.panel-head .ph-meta { color: var(--text-faint); font-size: 12px; font-family: 'JetBrains Mono', monospace; }
|
|
393
|
+
.panel-head .ph-spacer { flex: 1; }
|
|
394
|
+
.bulk-bar {
|
|
395
|
+
display: flex; align-items: center; gap: 10px;
|
|
396
|
+
color: var(--text-dim); font-size: 12.5px;
|
|
397
|
+
}
|
|
398
|
+
.bulk-bar.hidden { display: none; }
|
|
399
|
+
.bulk-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; }
|
|
400
|
+
|
|
401
|
+
table {
|
|
402
|
+
width: 100%; border-collapse: collapse;
|
|
403
|
+
font-size: 13.5px;
|
|
404
|
+
}
|
|
405
|
+
thead th {
|
|
406
|
+
text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .1em;
|
|
407
|
+
text-transform: uppercase; color: var(--text-faint);
|
|
408
|
+
padding: 10px 16px;
|
|
409
|
+
background: var(--bg-1);
|
|
410
|
+
position: sticky; top: 0; z-index: 1;
|
|
411
|
+
overflow: hidden; white-space: nowrap;
|
|
412
|
+
}
|
|
413
|
+
.table-scroll {
|
|
414
|
+
max-height: calc(100vh - 300px);
|
|
415
|
+
overflow: auto;
|
|
416
|
+
scrollbar-width: thin;
|
|
417
|
+
scrollbar-color: var(--violet-500) transparent;
|
|
418
|
+
}
|
|
419
|
+
.table-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
420
|
+
.table-scroll::-webkit-scrollbar-track { background: transparent; }
|
|
421
|
+
.table-scroll::-webkit-scrollbar-thumb { background: var(--violet-500); border-radius: 3px; }
|
|
422
|
+
.table-scroll::-webkit-scrollbar-thumb:hover { background: var(--violet-400); }
|
|
423
|
+
.table-head-wrap {
|
|
424
|
+
background: var(--bg-1);
|
|
425
|
+
border-bottom: 1px solid var(--line-soft);
|
|
426
|
+
}
|
|
427
|
+
.table-head-wrap table { table-layout: fixed; }
|
|
428
|
+
.table-scroll table { table-layout: fixed; }
|
|
429
|
+
thead th .sort-arrow { opacity: .8; }
|
|
430
|
+
tbody td {
|
|
431
|
+
padding: 14px 16px;
|
|
432
|
+
border-bottom: 1px solid var(--line-soft);
|
|
433
|
+
color: var(--text);
|
|
434
|
+
vertical-align: middle;
|
|
435
|
+
overflow: hidden;
|
|
436
|
+
}
|
|
437
|
+
tbody tr { transition: background .12s; cursor: pointer; }
|
|
438
|
+
tbody tr:hover { background: rgba(122,61,255,.06); }
|
|
439
|
+
tbody tr.selected { background: rgba(122,61,255,.12); box-shadow: inset 3px 0 0 var(--magenta); }
|
|
440
|
+
tbody tr:last-child td { border-bottom: 0; }
|
|
441
|
+
|
|
442
|
+
.check {
|
|
443
|
+
appearance: none; width: 16px; height: 16px; border-radius: 4px;
|
|
444
|
+
border: 1.5px solid var(--line); background: var(--bg-0);
|
|
445
|
+
cursor: pointer; display: inline-grid; place-items: center;
|
|
446
|
+
margin: 0;
|
|
447
|
+
}
|
|
448
|
+
.check:checked {
|
|
449
|
+
background: var(--violet-500); border-color: var(--violet-300);
|
|
450
|
+
}
|
|
451
|
+
.check:checked::after {
|
|
452
|
+
content: ""; width: 8px; height: 4px;
|
|
453
|
+
border-left: 2px solid white; border-bottom: 2px solid white;
|
|
454
|
+
transform: rotate(-45deg) translate(0, -1px);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.col-select { width: 36px; padding-right: 0 !important; }
|
|
458
|
+
.col-num { width: 56px; font-family: 'JetBrains Mono', monospace; color: var(--text-faint); }
|
|
459
|
+
.col-actions { width: 90px; text-align: right; }
|
|
460
|
+
/* col-compact: reduced side padding for narrow data cells */
|
|
461
|
+
.col-compact { padding-left: 8px !important; padding-right: 8px !important; }
|
|
462
|
+
/* width classes for col elements — col only supports border/background/width/visibility */
|
|
463
|
+
col.w-xs { width: 40px; }
|
|
464
|
+
col.w-sm { width: 60px; }
|
|
465
|
+
col.w-md { width: 80px; }
|
|
466
|
+
col.w-lg { width: 140px; }
|
|
467
|
+
|
|
468
|
+
.job-cell { display: flex; flex-direction: column; gap: 4px; }
|
|
469
|
+
.job-name {
|
|
470
|
+
font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 13px;
|
|
471
|
+
color: var(--violet-200);
|
|
472
|
+
display: inline-flex; align-items: center; gap: 7px;
|
|
473
|
+
}
|
|
474
|
+
a.job-name { text-decoration: none; }
|
|
475
|
+
a.job-name:hover { color: #fff; text-shadow: 0 0 14px var(--violet-300); }
|
|
476
|
+
.job-name::before {
|
|
477
|
+
content:""; width: 6px; height: 6px; border-radius: 50%;
|
|
478
|
+
background: var(--violet-400); box-shadow: 0 0 6px var(--violet-400);
|
|
479
|
+
}
|
|
480
|
+
.job-meta { font-size: 11.5px; color: var(--text-faint); display: flex; gap: 10px; }
|
|
481
|
+
.job-meta .tag {
|
|
482
|
+
color: var(--text-dim); display: inline-flex; align-items: center; gap: 4px;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.args {
|
|
486
|
+
font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-dim);
|
|
487
|
+
background: var(--bg-0); border: 1px solid var(--line-soft);
|
|
488
|
+
padding: 5px 9px; border-radius: 6px;
|
|
489
|
+
max-width: 460px;
|
|
490
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
491
|
+
display: inline-block;
|
|
492
|
+
}
|
|
493
|
+
a.args-link { text-decoration: none; display: inline-block; }
|
|
494
|
+
a.args-link:hover code.args { border-color: var(--violet-400); color: var(--violet-200); }
|
|
495
|
+
.args .k { color: var(--cyan); }
|
|
496
|
+
.args .s { color: var(--lime); }
|
|
497
|
+
.args .n { color: var(--amber); }
|
|
498
|
+
|
|
499
|
+
.ctx-pill {
|
|
500
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
501
|
+
font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
|
|
502
|
+
color: var(--text-dim);
|
|
503
|
+
padding: 3px 8px; border-radius: 6px;
|
|
504
|
+
background: rgba(255,255,255,.02); border: 1px solid var(--line-soft);
|
|
505
|
+
}
|
|
506
|
+
.ctx-pill .ctx-dot { width: 6px; height: 6px; border-radius: 50%; }
|
|
507
|
+
|
|
508
|
+
.priority {
|
|
509
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
510
|
+
font-size: 11.5px; font-weight: 500;
|
|
511
|
+
}
|
|
512
|
+
.priority .bars { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 10px; }
|
|
513
|
+
.priority .bars i { display: block; width: 2.5px; background: var(--text-faint); border-radius: 1px;}
|
|
514
|
+
.priority.high .bars i { background: var(--magenta); }
|
|
515
|
+
.priority.med .bars i { background: var(--amber); }
|
|
516
|
+
.priority.low .bars i { background: var(--text-faint); }
|
|
517
|
+
.priority .bars i:nth-child(1){height:3px}
|
|
518
|
+
.priority .bars i:nth-child(2){height:6px}
|
|
519
|
+
.priority .bars i:nth-child(3){height:10px}
|
|
520
|
+
.priority.med .bars i:nth-child(3),
|
|
521
|
+
.priority.low .bars i:nth-child(2),
|
|
522
|
+
.priority.low .bars i:nth-child(3){ opacity:.25; }
|
|
523
|
+
|
|
524
|
+
.row-actions {
|
|
525
|
+
display: inline-flex; gap: 4px; opacity: 0; transition: opacity .15s;
|
|
526
|
+
}
|
|
527
|
+
tbody tr:hover .row-actions { opacity: 1; }
|
|
528
|
+
tbody tr.selected .row-actions { opacity: 1; }
|
|
529
|
+
.iconlink {
|
|
530
|
+
width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line-soft);
|
|
531
|
+
background: var(--bg-0); color: var(--text-dim);
|
|
532
|
+
display: inline-grid; place-items: center; cursor: pointer;
|
|
533
|
+
}
|
|
534
|
+
.iconlink:hover { color: white; border-color: var(--violet-400); background: rgba(122,61,255,.1); }
|
|
535
|
+
.iconlink.danger:hover { color: var(--red); border-color: var(--red); background: rgba(255,84,112,.08); }
|
|
536
|
+
|
|
537
|
+
/* footer / pagination */
|
|
538
|
+
.panel-foot {
|
|
539
|
+
display: flex; align-items: center; gap: 10px;
|
|
540
|
+
padding: 12px 16px;
|
|
541
|
+
border-top: 1px solid var(--line-soft);
|
|
542
|
+
color: var(--text-faint); font-size: 12.5px;
|
|
543
|
+
}
|
|
544
|
+
.pager { margin-left: auto; display: inline-flex; gap: 4px; }
|
|
545
|
+
.pager a, .pager button {
|
|
546
|
+
background: transparent; border: 1px solid var(--line-soft); color: var(--text-dim);
|
|
547
|
+
width: 30px; height: 30px; border-radius: 7px; cursor: pointer;
|
|
548
|
+
font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
|
|
549
|
+
display: inline-grid; place-items: center; text-decoration: none;
|
|
550
|
+
}
|
|
551
|
+
.pager a:hover, .pager button:hover { color: white; border-color: var(--violet-400); }
|
|
552
|
+
.pager button.active, .pager a.active { background: var(--violet-500); border-color: var(--violet-400); color: white; }
|
|
553
|
+
.pager button[disabled]{ opacity: .35; cursor: not-allowed; }
|
|
554
|
+
|
|
555
|
+
/* old paging partial compat */
|
|
556
|
+
.paging { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text-faint); font-size: 12.5px; border-top: 1px solid var(--line-soft); }
|
|
557
|
+
.paging a { color: var(--violet-200); text-decoration: none; }
|
|
558
|
+
|
|
559
|
+
/* Empty / loaded states */
|
|
560
|
+
.empty {
|
|
561
|
+
padding: 40px 16px; text-align: center; color: var(--text-faint);
|
|
562
|
+
font-size: 13px;
|
|
563
|
+
}
|
|
564
|
+
.empty-state {
|
|
565
|
+
padding: 40px 16px; text-align: center; color: var(--text-faint);
|
|
566
|
+
font-size: 13px;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/* job-info table */
|
|
570
|
+
.job-info { width: auto; }
|
|
571
|
+
.job-info th { text-align: left; color: var(--text-faint); padding: 8px 16px 8px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; width: 160px; vertical-align: top; }
|
|
572
|
+
.job-info td { padding: 8px 0; color: var(--text); }
|
|
573
|
+
.job-info pre { background: var(--bg-0); border: 1px solid var(--line-soft); padding: 12px; border-radius: 8px; font-size: 12px; overflow: auto; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
|
|
574
|
+
.job-detail-meta { margin-bottom: 18px; color: var(--text-dim); font-size: 13px; }
|
|
575
|
+
|
|
576
|
+
/* links */
|
|
577
|
+
a { color: var(--violet-200); text-decoration: none; }
|
|
578
|
+
a:hover { color: var(--violet-300); }
|
|
579
|
+
|
|
580
|
+
/* code inline */
|
|
581
|
+
code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); background: var(--bg-0); border: 1px solid var(--line-soft); padding: 2px 6px; border-radius: 5px; }
|
|
582
|
+
|
|
583
|
+
/* Responsive */
|
|
584
|
+
@media (max-width: 1100px){
|
|
585
|
+
.stat-strip { grid-template-columns: repeat(4,1fr); }
|
|
586
|
+
.stat:nth-child(n+5) { border-top: 1px solid var(--line-soft); }
|
|
587
|
+
}
|
|
588
|
+
@media (max-width: 800px){
|
|
589
|
+
.app { grid-template-columns: 1fr; }
|
|
590
|
+
.sidebar { display: none; }
|
|
591
|
+
.main { padding: 18px; }
|
|
592
|
+
.args { max-width: 220px; }
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/* ---------- Dashboard-only: poll slider, charts, redis ---------- */
|
|
596
|
+
.poll-slider { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 999px;
|
|
597
|
+
background: linear-gradient(90deg, var(--violet-500), var(--violet-600), var(--line)); outline: 0; }
|
|
598
|
+
.poll-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
|
|
599
|
+
background: var(--violet-300); border: 2px solid var(--bg-0); cursor: pointer; box-shadow: 0 0 12px var(--violet-400); }
|
|
600
|
+
.poll-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%;
|
|
601
|
+
background: var(--violet-300); border: 2px solid var(--bg-0); cursor: pointer; box-shadow: 0 0 12px var(--violet-400); }
|
|
602
|
+
.chart-wrap { position: relative; padding: 14px 16px 14px; }
|
|
603
|
+
.chart-wrap svg { width: 100%; height: 280px; display: block; }
|
|
604
|
+
#historyChart { height: 320px; }
|
|
605
|
+
.chart-tooltip { display: none; position: absolute; pointer-events: none;
|
|
606
|
+
background: rgba(11,6,20,.95); border: 1px solid var(--violet-400); border-radius: 8px;
|
|
607
|
+
padding: 8px 10px; font-size: 12px; min-width: 130px; z-index: 5;
|
|
608
|
+
box-shadow: 0 8px 24px rgba(0,0,0,.5); }
|
|
609
|
+
.chart-tooltip .tip-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--violet-200); margin-bottom: 4px; }
|
|
610
|
+
.chart-tooltip .tip-row { display: flex; align-items: center; gap: 6px; color: var(--text-dim); margin: 2px 0; }
|
|
611
|
+
.chart-tooltip .tip-row b { color: white; font-family: 'JetBrains Mono', monospace; margin-left: auto; }
|
|
612
|
+
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
|
|
613
|
+
.redis-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-soft); }
|
|
614
|
+
.redis-card { padding: 22px 18px; background: var(--bg-1); display: flex; flex-direction: column; gap: 6px;
|
|
615
|
+
position: relative; overflow: hidden; }
|
|
616
|
+
.redis-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: .9; }
|
|
617
|
+
.redis-card[data-tone="violet"]::before { background: var(--violet-400); box-shadow: 0 0 14px var(--violet-400); }
|
|
618
|
+
.redis-card[data-tone="cyan"]::before { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
|
|
619
|
+
.redis-card[data-tone="magenta"]::before { background: var(--magenta); box-shadow: 0 0 14px var(--magenta); }
|
|
620
|
+
.redis-card[data-tone="amber"]::before { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
|
|
621
|
+
.redis-card[data-tone="red"]::before { background: var(--red); box-shadow: 0 0 14px var(--red); }
|
|
622
|
+
.redis-num { font-size: 30px; font-weight: 600; letter-spacing: -.5px; color: white; font-family: 'JetBrains Mono', monospace; }
|
|
623
|
+
.redis-num small { font-size: 18px; color: var(--text-dim); margin-left: 2px; }
|
|
624
|
+
.redis-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
|
|
625
|
+
.redis-label small { color: var(--text-faint); font-size: 11px; }
|
|
626
|
+
.redis-foot { font-size: 11px; color: var(--text-faint); margin-top: 4px; font-family: 'JetBrains Mono', monospace; }
|
|
627
|
+
.redis-bar { height: 4px; border-radius: 2px; background: var(--bg-0); margin-top: 8px; overflow: hidden; }
|
|
628
|
+
.redis-bar i { display: block; height: 100%; border-radius: 2px; }
|
|
629
|
+
@media (max-width: 1100px){ .redis-grid { grid-template-columns: repeat(2, 1fr);} }
|
|
630
|
+
|
|
631
|
+
/* ---------- Flash messages ---------- */
|
|
632
|
+
.flash-bar { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
|
|
633
|
+
.flash { padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 500;
|
|
634
|
+
border: 1px solid; display: flex; align-items: center; gap: 8px; }
|
|
635
|
+
.flash-notice { background: rgba(75,227,255,.08); border-color: rgba(75,227,255,.3); color: var(--cyan); }
|
|
636
|
+
.flash-error { background: rgba(255,84,112,.08); border-color: rgba(255,84,112,.3); color: var(--red); }
|