feat(frontend): switch to Inter Variable, bump type scale, fix TS errors
Some checks failed
Deploy to Production / Trigger production update (push) Failing after 10s
Some checks failed
Deploy to Production / Trigger production update (push) Failing after 10s
- Replace DM Sans with Inter Variable (better screen rendering at small sizes) - Bump text-xs 12→13px, text-sm 14→15px globally via theme tokens - Fix hardcoded text-[13px] → text-sm in AppLayout, CommandPalette, DashboardPage - Fix button sm variant text-[0.8rem] → text-xs for consistency - Fix TS: ScriptExecuteDialog unused isRunning, setResult → setExecutionId(r.id) - Fix TS: InstanceActionDialogs onValueChange null guards (string | null → string) - Dockerfile: npm ci → npm install (cross-platform lockfile, Linux optional deps)
This commit is contained in:
@@ -73,7 +73,7 @@ function CircularGauge({ label, value }: { label: string; value: number }) {
|
||||
/>
|
||||
</svg>
|
||||
<div className="absolute inset-0 flex items-center justify-center">
|
||||
<span className="font-mono text-[13px] font-bold tabular-nums">{Math.round(clamped)}</span>
|
||||
<span className="font-mono text-sm font-bold tabular-nums">{Math.round(clamped)}</span>
|
||||
</div>
|
||||
</div>
|
||||
<span className="text-2xs font-mono text-muted-foreground tracking-wide uppercase">{label}</span>
|
||||
|
||||
@@ -1010,7 +1010,7 @@ function BackupDialog({ open, onClose, serverId, vmid, type, node, name }: Omit<
|
||||
<div className="space-y-4">
|
||||
<div className="space-y-2">
|
||||
<Label>{t('backups.storage')}</Label>
|
||||
<Select value={storage} onValueChange={setStorage}>
|
||||
<Select value={storage} onValueChange={(v) => setStorage(v ?? '')}>
|
||||
<SelectTrigger>
|
||||
<SelectValue placeholder={t('backups.select_storage')} />
|
||||
</SelectTrigger>
|
||||
@@ -1031,7 +1031,7 @@ function BackupDialog({ open, onClose, serverId, vmid, type, node, name }: Omit<
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<div className="space-y-2">
|
||||
<Label>{t('backups.mode')}</Label>
|
||||
<Select value={mode} onValueChange={setMode}>
|
||||
<Select value={mode} onValueChange={(v) => setMode(v ?? '')}>
|
||||
<SelectTrigger><SelectValue /></SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="snapshot">Snapshot</SelectItem>
|
||||
@@ -1042,7 +1042,7 @@ function BackupDialog({ open, onClose, serverId, vmid, type, node, name }: Omit<
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<Label>{t('backups.compression')}</Label>
|
||||
<Select value={compress} onValueChange={setCompress}>
|
||||
<Select value={compress} onValueChange={(v) => setCompress(v ?? '')}>
|
||||
<SelectTrigger><SelectValue /></SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="zstd">ZSTD</SelectItem>
|
||||
|
||||
@@ -35,7 +35,6 @@ export default function ScriptExecuteDialog({ script, onOpenChange }: Props) {
|
||||
// дальше поллим его до завершения (см. useScriptExecution).
|
||||
const { data: liveExec } = useScriptExecution(executionId ?? 0);
|
||||
const result: ScriptExecution | null = liveExec ?? null;
|
||||
const isRunning = result?.status === 'running';
|
||||
|
||||
const serverIdNum = serverId ? Number(serverId) : 0;
|
||||
const { data: nodesData } = useNodes(serverIdNum || 0);
|
||||
@@ -87,7 +86,7 @@ export default function ScriptExecuteDialog({ script, onOpenChange }: Props) {
|
||||
params: paramValues,
|
||||
},
|
||||
{
|
||||
onSuccess: (r) => setResult(r),
|
||||
onSuccess: (r) => setExecutionId(r.id),
|
||||
onError: (e) => toast.error((e as Error).message),
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user