refactor: add & organize server store

This commit is contained in:
Zack Spear
2023-05-31 16:08:18 -07:00
committed by Zack Spear
parent 2ef113dcb2
commit a69066324e
5 changed files with 70 additions and 26 deletions

View File

@@ -20,24 +20,26 @@ export enum ServerState {
ENOCONN = 'ENOCONN',
}
export interface Server {
// state?: ServerState;
state?: string;
name?: string;
description?: string;
deviceCount?: number;
expireTime?: number;
flashProduct?: string;
flashVendor?: string;
guid?: string;
keyfile?: string;
lanIp?: string;
license?: string;
locale?: string;
name?: string;
pluginInstalled?: boolean;
registered?: boolean;
regGen?: number;
regGuid?: string;
site?: string;
wanFQDN?: string;
regGen?: number;
license?: string;
keyfile?: string;
locale?: string;
// state?: ServerState;
state: string;
uptime?: number;
expireTime?: number;
lanIp?: string;
wanFQDN?: string;
}
// @todo convert to object with text and click payload