Add editable system configuration flow

This commit is contained in:
2026-04-02 00:25:14 +03:00
parent 25f6beedd8
commit 1f73a29137
11 changed files with 756 additions and 152 deletions

View File

@@ -31,6 +31,14 @@ export interface ProxyUserRecord {
paused?: boolean;
}
export interface SystemSettings {
publicHost: string;
configMode: string;
reloadMode: string;
storageMode: string;
services: ProxyServiceRecord[];
}
export interface ControlPlaneState {
service: {
versionLabel: string;
@@ -44,13 +52,7 @@ export interface ControlPlaneState {
daily: DailyTrafficBucket[];
};
userRecords: ProxyUserRecord[];
system: {
publicHost: string;
configMode: string;
reloadMode: string;
storageMode: string;
services: ProxyServiceRecord[];
};
system: SystemSettings;
}
export interface DashboardSnapshot {
@@ -85,3 +87,5 @@ export interface CreateUserInput {
serviceId: string;
quotaMb: number | null;
}
export type UpdateSystemInput = SystemSettings;