revert(nodes): remove server auto-setup feature
All checks were successful
Backend Tests / pytest (Python 3.12) (push) Successful in 1m35s
Deploy to Production / Trigger production update (push) Successful in 8s

Drop the /api/servers/auto-setup endpoint, the AutoSetupDialog UI and the
useAutoSetupServer hook. Rename the auto_setup locale strings to
auto_create_token. Also normalize the storages response to an array.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 22:18:38 +05:00
parent 493814f44f
commit f18ba4d597
6 changed files with 15 additions and 378 deletions

View File

@@ -105,7 +105,9 @@ export function DownloadCTDialog({ open, onClose }: { open: boolean; onClose: ()
// Storages that accept CT templates (vztmpl content).
const storages = useMemo(
() => (storagesRaw as { storage: string; content?: string }[]).filter(s => (s.content || '').split(',').includes('vztmpl')),
() => (storagesRaw as { storage: string; content?: string }[]).filter(
s => (s.content || '').split(',').includes('vztmpl')
),
[storagesRaw],
);