Base code for settings and schedules

This commit is contained in:
Dane Everitt 2019-12-07 15:58:37 -08:00
parent 9b80546c0c
commit 2570b4e2d0
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 64 additions and 0 deletions

View file

@ -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,