Base code for settings and schedules
This commit is contained in:
parent
9b80546c0c
commit
2570b4e2d0
5 changed files with 64 additions and 0 deletions
|
@ -12,6 +12,10 @@ export interface Server {
|
|||
uuid: string;
|
||||
name: string;
|
||||
node: string;
|
||||
sftpDetails: {
|
||||
ip: string;
|
||||
port: number;
|
||||
};
|
||||
description: string;
|
||||
allocations: Allocation[];
|
||||
limits: {
|
||||
|
@ -32,6 +36,10 @@ export const rawDataToServerObject = (data: any): Server => ({
|
|||
uuid: data.uuid,
|
||||
name: data.name,
|
||||
node: data.node,
|
||||
sftpDetails: {
|
||||
ip: data.sftp_details.ip,
|
||||
port: data.sftp_details.port,
|
||||
},
|
||||
description: data.description ? ((data.description.length > 0) ? data.description : null) : null,
|
||||
allocations: [{
|
||||
ip: data.allocation.ip,
|
||||
|
|
Reference in a new issue