ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
// ============================================
// DOCTOR TAB (Monitoring → Doctor)
// One-shot health sweep: check list + drift diffs + explicit repairs.
// NOTE: imported from main.scss (wired by the orchestrator).
// ============================================
.doctor-panel {
display: grid;
gap: $space-5;
&__actions {
display: flex;
align-items: center;
gap: $space-2;
}
&__blurb {
margin: 0 0 $space-4;
font-size: $text-sm;
line-height: 1.5;
color: var(--text-dim);
max-width: 68ch;
}
&__ranat {
color: var(--text-faint);
}
}
.doctor-check-list {
display: grid;
gap: $space-2;
}
.doctor-check {
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface);
padding: $space-3 $space-4;
&--warn {
border-color: rgba(245, 179, 66, 0.3);
}
&--fail {
border-color: rgba(240, 82, 82, 0.35);
}
&__row {
display: flex;
align-items: center;
gap: $space-3;
}
&__body {
display: flex;
flex-direction: column;
gap: $space-hair;
min-width: 0;
flex: 1;
}
&__title {
font-size: $text-sm;
font-weight: $font-weight-semibold;
color: var(--text);
}
&__detail {
font-size: $text-xs;
color: var(--text-dim);
overflow-wrap: anywhere;
}
// Rendered as a ghost Button — just tighten it to a mono affordance.
&__difftoggle {
font-size: $text-xs;
color: var(--text-dim);
}
}
// Unified diff viewer — monospace pre, collapsed by default (toggle-rendered).
.doctor-diff {
margin: $space-3 0 0;
padding: $space-3;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface-2);
font-family: var(--mono);
font-size: $text-xs;
line-height: 1.5;
color: var(--text-dim);
max-height: 320px;
overflow: auto;
white-space: pre;
&--modal {
max-height: 220px;
}
}
.doctor-confirm {
&__actions {
display: flex;
justify-content: flex-end;
gap: $space-2;
margin-top: $space-4;
}
}
// Setup Health section — the setup.* checks rendered above the health sweep,
// each with a "why it matters" line and a deep-link/repair fix.
.doctor-setup {
margin-bottom: $space-5;
&__heading {
margin: 0 0 $space-3;
font-size: $text-xs;
font-weight: $font-weight-semibold;
color: var(--text-faint);
}
}
.doctor-check__why {
margin-top: $space-hair;
font-size: $text-xs;
line-height: 1.45;
color: var(--text-faint);
}
.doctor-setup__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: $space-3;
flex-wrap: wrap;
}
.doctor-setup__actions {
display: flex;
gap: $space-2;
}
// Reconcile dry-run list (DNS backfill / URL fix preview).
.doctor-reconcile-list {
list-style: none;
margin: $space-2 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: $space-1;
max-height: 240px;
overflow: auto;
font-size: $text-sm;
color: var(--text-dim);
code {
font-family: var(--mono);
font-size: $text-xs;
}
&__warn {
color: var(--warning, #f5b342);
}
}
// A snoozed setup item — still rendered, just muted.
.doctor-check--snoozed {
opacity: 0.6;
.doctor-check__title { font-weight: $font-weight-medium; }
}
.doctor-check__snooze {
flex-shrink: 0;
}
// ============================================
// Fleet doctor — per-server sweep switcher + server groups.
// ============================================
.doctor-panel__switcher {
display: inline-flex;
align-items: center;
gap: $space-2;
margin-right: $space-2;
&-label {
font-size: $text-xs;
color: var(--text-faint);
}
&-select {
appearance: none;
background: var(--surface-2);
border: 1px solid var(--border-soft);
border-radius: var(--radius);
color: var(--text);
font-size: $text-sm;
padding: $space-1 $space-3;
cursor: pointer;
&:hover { border-color: var(--border); }
}
}
.doctor-fleet-group {
margin-bottom: $space-4;
&__head {
display: flex;
align-items: center;
gap: $space-3;
padding: $space-2 0;
margin-bottom: $space-2;
border-bottom: 1px solid var(--border-soft);
}
&__name {
font-weight: $font-weight-semibold;
font-size: $text-sm;
color: var(--text);
}
// The agent's advertised hostname, next to the display name.
&__host {
font-family: var(--mono);
font-size: $text-xs;
color: var(--text-faint);
overflow-wrap: anywhere;
}
&__counts {
display: flex;
gap: $space-2;
margin-left: auto;
font-size: $text-xs;
color: var(--text-faint);
}
&__count { white-space: nowrap; }
// A paired server the sweep has not reached yet.
&__hint {
margin: 0;
font-size: $text-xs;
color: var(--text-faint);
}
}