mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
Add POST /webhook/{groupId} with per-group secrets (KV tenant:{groupId}), a custom provider (X-WebHooker-Signature HMAC, arbitrary JSON -> custom events through the route pipeline), and GitHub App installation isolation (Group.installationId) with automatic provisioning on installation.created (inst-{id} groups or binding matching owners groups). Includes WebhookPanel admin UI, custom route template, docs and 157 passing tests.
1365 lines
22 KiB
CSS
1365 lines
22 KiB
CSS
:root {
|
|
--bg: #f6f7f9;
|
|
--surface: #ffffff;
|
|
--surface-2: #f3f4f6;
|
|
--surface-3: #eceef2;
|
|
--border: #e6e8ec;
|
|
--border-strong: #d4d8de;
|
|
--text: #0f172a;
|
|
--muted: #5b6472;
|
|
--faint: #9aa3b2;
|
|
--accent: #4f46e5;
|
|
--accent-strong: #4338ca;
|
|
--accent-dim: #eef2ff;
|
|
--accent-text: #3730a3;
|
|
--ok: #16a34a;
|
|
--ok-dim: #ecfdf3;
|
|
--warn: #b45309;
|
|
--warn-dim: #fef3c7;
|
|
--bad: #dc2626;
|
|
--bad-dim: #fef2f2;
|
|
--dot: rgba(15, 23, 42, 0.05);
|
|
--header-bg: rgba(255, 255, 255, 0.82);
|
|
--scrim: rgba(15, 23, 42, 0.4);
|
|
--knob: #ffffff;
|
|
--shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
|
|
--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
--ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
--radius: 12px;
|
|
--radius-sm: 8px;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme="light"]) {
|
|
--bg: #0b0f17;
|
|
--surface: #131a24;
|
|
--surface-2: #1a2230;
|
|
--surface-3: #232d3d;
|
|
--border: #273143;
|
|
--border-strong: #384660;
|
|
--text: #e6e9ef;
|
|
--muted: #9aa6b8;
|
|
--faint: #6b7789;
|
|
--accent: #6366f1;
|
|
--accent-strong: #818cf8;
|
|
--accent-dim: #1c2140;
|
|
--accent-text: #c7d2fe;
|
|
--ok: #22c55e;
|
|
--ok-dim: #10241a;
|
|
--warn: #fbbf24;
|
|
--warn-dim: #2a2410;
|
|
--bad: #f05252;
|
|
--bad-dim: #2a1618;
|
|
--dot: rgba(148, 163, 184, 0.08);
|
|
--header-bg: rgba(15, 20, 28, 0.82);
|
|
--scrim: rgba(2, 6, 12, 0.6);
|
|
--knob: #dfe4ee;
|
|
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
|
|
color-scheme: dark;
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: var(--ui);
|
|
font-size: 14px;
|
|
line-height: 1.55;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
background-image: radial-gradient(var(--dot) 1px, transparent 1px);
|
|
background-size: 22px 22px;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 40%);
|
|
}
|
|
|
|
.shell {
|
|
position: relative;
|
|
z-index: 1;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 14px 32px;
|
|
background: var(--header-bg);
|
|
backdrop-filter: blur(12px);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.brand-mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 38px;
|
|
height: 38px;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
font-weight: 800;
|
|
font-size: 15px;
|
|
letter-spacing: 0.5px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.brand h1 {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.tagline {
|
|
display: block;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 2.5px;
|
|
color: var(--faint);
|
|
margin-top: 1px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.head-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 9px 16px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border-strong);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
font-family: var(--ui);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition:
|
|
border-color 0.15s,
|
|
background 0.15s,
|
|
color 0.15s,
|
|
transform 0.1s;
|
|
}
|
|
|
|
.btn:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-accent {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-accent:hover {
|
|
background: var(--accent-strong);
|
|
border-color: var(--accent-strong);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.btn-ghost:hover {
|
|
background: var(--surface-2);
|
|
border-color: transparent;
|
|
color: var(--text);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-lg {
|
|
padding: 12px 24px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
main {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: 1040px;
|
|
margin: 0 auto;
|
|
padding: 32px 32px 96px;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.kpi-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 1.5px;
|
|
color: var(--faint);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.kpi {
|
|
font-size: 24px;
|
|
font-weight: 800;
|
|
color: var(--accent);
|
|
margin-left: 8px;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--border-strong);
|
|
}
|
|
|
|
.dot.ok {
|
|
background: var(--ok);
|
|
}
|
|
|
|
.routes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 20px 22px;
|
|
transition:
|
|
border-color 0.15s,
|
|
transform 0.15s;
|
|
animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
}
|
|
|
|
.card:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.card.disabled {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
@keyframes rise {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.card-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
}
|
|
|
|
.card-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.route-name {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.2px;
|
|
}
|
|
|
|
.route-id {
|
|
color: var(--faint);
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
background: var(--surface-2);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.badge.lang {
|
|
background: var(--accent-dim);
|
|
color: var(--accent-text);
|
|
}
|
|
|
|
.badge.group {
|
|
background: var(--ok-dim);
|
|
color: var(--ok);
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.badge.fallback {
|
|
background: var(--warn-dim);
|
|
color: var(--warn);
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.badge.stop {
|
|
background: var(--bad-dim);
|
|
color: var(--bad);
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.card-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.icon-btn {
|
|
width: 30px;
|
|
height: 30px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
color: var(--accent);
|
|
border-color: var(--accent);
|
|
background: var(--accent-dim);
|
|
}
|
|
|
|
.icon-btn:disabled {
|
|
opacity: 0.35;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.icon-btn:disabled:hover {
|
|
color: var(--muted);
|
|
border-color: var(--border);
|
|
background: transparent;
|
|
}
|
|
|
|
.icon-btn.danger:hover {
|
|
color: var(--bad);
|
|
border-color: var(--bad);
|
|
background: var(--bad-dim);
|
|
}
|
|
|
|
.switch {
|
|
position: relative;
|
|
width: 38px;
|
|
height: 22px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.switch .track {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--surface-3);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
transition:
|
|
background 0.18s,
|
|
border-color 0.18s;
|
|
}
|
|
|
|
.switch .track::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: var(--knob);
|
|
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
|
|
transition: transform 0.18s;
|
|
}
|
|
|
|
.switch input:checked + .track {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.switch input:checked + .track::after {
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
.chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
background: var(--surface-2);
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.chip .f-type {
|
|
color: var(--faint);
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.chip .f-val {
|
|
color: var(--text);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chip.exclude {
|
|
background: var(--bad-dim);
|
|
}
|
|
|
|
.chip.exclude .f-type {
|
|
color: var(--bad);
|
|
}
|
|
|
|
.target {
|
|
margin-top: 12px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 18px;
|
|
}
|
|
|
|
.target b {
|
|
color: var(--faint);
|
|
font-weight: 600;
|
|
margin-right: 4px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.target code {
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
background: var(--surface-2);
|
|
padding: 1px 6px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.empty {
|
|
text-align: center;
|
|
padding: 72px 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.empty p {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.login {
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: 62vh;
|
|
}
|
|
|
|
.login-card {
|
|
text-align: center;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
padding: 48px 52px;
|
|
max-width: 420px;
|
|
}
|
|
|
|
.login-card h2 {
|
|
font-size: 22px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.5px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.login-card p {
|
|
color: var(--muted);
|
|
margin-bottom: 24px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.login-card code {
|
|
color: var(--accent);
|
|
background: var(--accent-dim);
|
|
padding: 1px 6px;
|
|
border-radius: 5px;
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 40;
|
|
background: var(--scrim);
|
|
backdrop-filter: blur(2px);
|
|
}
|
|
|
|
.editor {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 50;
|
|
width: min(520px, 100vw);
|
|
background: var(--surface);
|
|
border-left: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: -16px 0 48px rgba(15, 23, 42, 0.12);
|
|
}
|
|
|
|
.editor-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.editor-head h2 {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.editor-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 22px 24px;
|
|
}
|
|
|
|
.editor-foot {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 16px 24px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.field {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.field label {
|
|
display: block;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 1.2px;
|
|
color: var(--faint);
|
|
margin-bottom: 6px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.lbl-note {
|
|
text-transform: none;
|
|
font-weight: 500;
|
|
letter-spacing: 0;
|
|
color: var(--faint);
|
|
}
|
|
|
|
.templates {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.template-chip {
|
|
padding: 5px 12px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 999px;
|
|
color: var(--muted);
|
|
font-family: var(--ui);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition:
|
|
border-color 0.15s,
|
|
color 0.15s,
|
|
background 0.15s;
|
|
}
|
|
|
|
.template-chip:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.template-chip.active {
|
|
background: var(--accent-dim);
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.field input[type="text"] {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text);
|
|
font-family: var(--ui);
|
|
font-size: 13.5px;
|
|
transition:
|
|
border-color 0.15s,
|
|
box-shadow 0.15s;
|
|
}
|
|
|
|
.field input[type="text"]:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-dim);
|
|
}
|
|
|
|
.field select {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text);
|
|
font-family: var(--ui);
|
|
font-size: 13.5px;
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
|
|
.field select:focus {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-dim);
|
|
}
|
|
|
|
.field select + input[type="text"],
|
|
.field input[type="text"] + input[type="text"] {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.field .hint {
|
|
font-size: 11px;
|
|
color: var(--faint);
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.row2 {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.inline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.inline input[type="checkbox"] {
|
|
accent-color: var(--accent);
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.inline span {
|
|
color: var(--muted);
|
|
font-size: 12.5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.filter-row {
|
|
display: grid;
|
|
grid-template-columns: 130px 1fr auto auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 10px;
|
|
margin-bottom: 8px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.filter-row select {
|
|
padding: 7px 8px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 6px;
|
|
color: var(--text);
|
|
font-family: var(--ui);
|
|
font-size: 12.5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.filter-row input[type="text"] {
|
|
width: 100%;
|
|
}
|
|
|
|
.target-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(130px, 1fr) auto;
|
|
grid-template-areas:
|
|
"select del"
|
|
"in1 in2";
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 10px;
|
|
margin-bottom: 8px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.target-row select {
|
|
grid-area: select;
|
|
width: 100%;
|
|
padding: 7px 8px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 6px;
|
|
color: var(--text);
|
|
font-family: var(--ui);
|
|
font-size: 12.5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.target-row input[type="text"] {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.target-row input.tg-in1 {
|
|
grid-area: in1;
|
|
}
|
|
|
|
.target-row input.tg-in2 {
|
|
grid-area: in2;
|
|
}
|
|
|
|
.target-row > .icon-btn {
|
|
grid-area: del;
|
|
justify-self: end;
|
|
}
|
|
|
|
.add-filter {
|
|
margin-top: 4px;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.err {
|
|
color: var(--bad);
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
min-height: 16px;
|
|
}
|
|
|
|
.toasts {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: 28px;
|
|
transform: translateX(-50%);
|
|
z-index: 60;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-items: center;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast {
|
|
padding: 10px 18px;
|
|
border-radius: 999px;
|
|
background: var(--text);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.toast.ok {
|
|
background: var(--ok);
|
|
}
|
|
|
|
.toast.bad {
|
|
background: var(--bad);
|
|
}
|
|
|
|
.toast-enter-active,
|
|
.toast-leave-active {
|
|
transition:
|
|
opacity 0.22s,
|
|
transform 0.22s;
|
|
}
|
|
|
|
.toast-enter-from,
|
|
.toast-leave-to {
|
|
opacity: 0;
|
|
transform: translateY(12px);
|
|
}
|
|
|
|
.fade-enter-active,
|
|
.fade-leave-active {
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.fade-enter-from,
|
|
.fade-leave-to {
|
|
opacity: 0;
|
|
}
|
|
|
|
.slide-enter-active,
|
|
.slide-leave-active {
|
|
transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
|
|
}
|
|
|
|
.slide-enter-from,
|
|
.slide-leave-to {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.tabs {
|
|
display: inline-flex;
|
|
gap: 2px;
|
|
padding: 4px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.tab {
|
|
padding: 7px 16px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 7px;
|
|
color: var(--muted);
|
|
font-family: var(--ui);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition:
|
|
background 0.15s,
|
|
color 0.15s;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.tab.active {
|
|
background: var(--surface);
|
|
color: var(--accent);
|
|
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
|
|
}
|
|
|
|
.log-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 14px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.log-filters {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.filter-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.8px;
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.filter-select {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
padding: 4px 8px;
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
|
|
.filter-select:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.log-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.log-entry {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-left: 3px solid var(--ok);
|
|
border-radius: var(--radius);
|
|
padding: 16px 18px;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.log-entry:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.log-entry.fail {
|
|
border-left-color: var(--bad);
|
|
}
|
|
|
|
.log-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.log-route {
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
letter-spacing: -0.2px;
|
|
}
|
|
|
|
.log-event {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
background: var(--accent-dim);
|
|
border-radius: 999px;
|
|
padding: 2px 9px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.log-time {
|
|
margin-left: auto;
|
|
color: var(--faint);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.log-meta {
|
|
display: flex;
|
|
gap: 18px;
|
|
flex-wrap: wrap;
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.log-meta b {
|
|
color: var(--faint);
|
|
font-weight: 600;
|
|
margin-right: 4px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.log-meta code {
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
background: var(--surface-2);
|
|
padding: 1px 6px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.log-error {
|
|
margin-top: 8px;
|
|
padding: 8px 10px;
|
|
background: var(--bad-dim);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--bad);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.empty-log {
|
|
color: var(--faint);
|
|
text-align: center;
|
|
padding: 56px 0;
|
|
}
|
|
|
|
.log-entry.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.log-status {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
border-radius: 999px;
|
|
padding: 2px 9px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.log-status.ok {
|
|
color: var(--ok);
|
|
background: var(--ok-dim);
|
|
}
|
|
|
|
.log-status.bad {
|
|
color: var(--bad);
|
|
background: var(--bad-dim);
|
|
}
|
|
|
|
.log-detail {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 22px;
|
|
max-width: 720px;
|
|
width: calc(100vw - 48px);
|
|
max-height: 82vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 60;
|
|
background: var(--scrim);
|
|
backdrop-filter: blur(2px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.detail-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.detail-head h3 {
|
|
font-size: 15px;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.detail-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(120px, 30%) 1fr;
|
|
gap: 6px 16px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.detail-grid dt {
|
|
color: var(--faint);
|
|
font-weight: 600;
|
|
letter-spacing: 0.6px;
|
|
padding-top: 6px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.detail-grid dd {
|
|
margin: 0;
|
|
padding-top: 6px;
|
|
color: var(--text);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.detail-grid code {
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
background: var(--surface-2);
|
|
padding: 2px 7px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.detail-grid dd code {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* ---- Members panel ---- */
|
|
.members-panel {
|
|
margin-top: 28px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 18px 20px;
|
|
}
|
|
|
|
.panel-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.panel-head h3 {
|
|
font-size: 14px;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.members-panel h4 {
|
|
font-size: 12px;
|
|
margin: 14px 0 8px;
|
|
}
|
|
|
|
.member-list {
|
|
list-style: none;
|
|
margin: 0 0 12px;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.member-row,
|
|
.invite-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
padding: 8px 12px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.member-login {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
flex: 1;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.role-pill {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
border-radius: 999px;
|
|
padding: 2px 10px;
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.role-pill.owner {
|
|
color: var(--accent);
|
|
background: var(--accent-dim, rgba(88, 101, 242, 0.12));
|
|
}
|
|
|
|
.role-pill.admin {
|
|
color: var(--ok);
|
|
background: var(--ok-dim);
|
|
}
|
|
|
|
.role-pill.viewer {
|
|
color: var(--faint);
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.member-add,
|
|
.invite-create {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.text-input {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
padding: 6px 10px;
|
|
min-width: 200px;
|
|
outline: none;
|
|
}
|
|
|
|
.text-input:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.invite-box {
|
|
margin-top: 14px;
|
|
border-top: 1px dashed var(--border);
|
|
padding-top: 6px;
|
|
}
|
|
|
|
.invite-list {
|
|
list-style: none;
|
|
margin: 10px 0 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.invite-token {
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.invite-exp {
|
|
font-size: 12px;
|
|
color: var(--faint);
|
|
}
|
|
|
|
.webhook-panel .wh-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.webhook-panel .wh-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.8px;
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
min-width: 52px;
|
|
}
|
|
|
|
.webhook-panel .wh-value {
|
|
flex: 1;
|
|
min-width: 180px;
|
|
padding: 6px 10px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 12.5px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.webhook-panel .wh-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.webhook-panel .wh-usage {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.webhook-panel .wh-usage summary {
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.webhook-panel .wh-code {
|
|
margin: 10px 0 0;
|
|
padding: 12px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 11.5px;
|
|
line-height: 1.6;
|
|
overflow-x: auto;
|
|
color: var(--muted);
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.filter-row {
|
|
grid-template-columns: 100px 1fr auto;
|
|
}
|
|
|
|
.target-row {
|
|
grid-template-columns: 1fr auto;
|
|
grid-template-areas:
|
|
"select del"
|
|
"in1 in1"
|
|
"in2 in2";
|
|
}
|
|
|
|
header {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
main {
|
|
padding: 20px 16px 80px;
|
|
}
|
|
|
|
.row2 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|