ui(admin): server editing improvements
This commit is contained in:
parent
23a160b9e1
commit
6df2368264
9 changed files with 153 additions and 90 deletions
|
@ -22,6 +22,7 @@ export interface Server {
|
|||
io: number;
|
||||
cpu: number;
|
||||
threads: string | null;
|
||||
oomDisabled: boolean;
|
||||
}
|
||||
|
||||
featureLimits: {
|
||||
|
@ -43,8 +44,6 @@ export interface Server {
|
|||
environment: Map<string, string>;
|
||||
}
|
||||
|
||||
oomKiller: boolean;
|
||||
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
|
||||
|
@ -71,6 +70,7 @@ export const rawDataToServer = ({ attributes }: FractalResponseData): Server =>
|
|||
io: attributes.limits.io,
|
||||
cpu: attributes.limits.cpu,
|
||||
threads: attributes.limits.threads,
|
||||
oomDisabled: attributes.limits.oom_disabled,
|
||||
},
|
||||
|
||||
featureLimits: {
|
||||
|
@ -92,8 +92,6 @@ export const rawDataToServer = ({ attributes }: FractalResponseData): Server =>
|
|||
environment: attributes.container.environment,
|
||||
},
|
||||
|
||||
oomKiller: attributes.oom_killer,
|
||||
|
||||
createdAt: new Date(attributes.created_at),
|
||||
updatedAt: new Date(attributes.updated_at),
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ export interface Values {
|
|||
externalId: string;
|
||||
name: string;
|
||||
ownerId: number;
|
||||
oomKiller: boolean;
|
||||
|
||||
memory: number;
|
||||
swap: number;
|
||||
|
@ -13,6 +12,7 @@ export interface Values {
|
|||
io: number;
|
||||
cpu: number;
|
||||
threads: string;
|
||||
oomDisabled: boolean;
|
||||
|
||||
databases: number;
|
||||
allocations: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue