Add editable system configuration flow
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user