From 59a061e3cd4488cce37ed4ddaab5ece292333bec Mon Sep 17 00:00:00 2001 From: Auri Date: Sat, 2 Nov 2024 16:02:33 -0400 Subject: [PATCH] Use new data.json format --- data.json | 78 ++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 54 insertions(+), 24 deletions(-) diff --git a/data.json b/data.json index 7705aac..e7eb870 100644 --- a/data.json +++ b/data.json @@ -1,44 +1,74 @@ { - "Whitelabel": false, - "RandomOperationalMessage": true, "OverallStatus": "NoOverride", - "announcement": { - "text": "This is a demo announcement. You can customize this message in data.json!" - }, + "RandomOperationalMessage": true, + "Whitelabel": false, "maintenanceAlerts": [ { - "start": "2024-09-17T12:00:00Z", "end": "2024-09-18T12:00:00Z", - "message": "Demo maintenance (hide by disabling maintenanceAlerts in data.json).", - "title": "Demo Maintenance" + "message": "Demo maintenance (hide by disabling maintenanceAlerts in data.json!)", + "start": "2024-09-17T12:00:00Z", + "title": "Demo" } ], "sections": { + "announcementBar": false, "maintenanceAlerts": true, - "statusUpdates": true, - "announcementBar": true + "statusUpdates": true }, - "services": { - "Example 1": { - "Example service 1": "Operational", - "Example service 2": "Operational", - "Example service 3": "Operational" + "services": [ + { + "categoryName": "Example 1", + "services": [ + { + "serviceName": "Example service 1", + "status": "Operational" + }, + { + "serviceName": "Example service 2", + "status": "Operational" + }, + { + "serviceName": "Example service 3", + "status": "Operational" + } + ] }, - "Example 2": { - "Another example service 1": "Operational", - "Another example service 2": "Operational", - "Another example service 3": "Operational" + { + "categoryName": "Example 2", + "services": [ + { + "serviceName": "Another example service 1", + "status": "Operational" + }, + { + "serviceName": "Another example service 2", + "status": "Operational" + }, + { + "serviceName": "Another example service 3", + "status": "Operational" + } + ] }, - "Example 3": { - "Again another example service 1": "Operational", - "Again another example service 2": "Operational" + { + "categoryName": "Example 3", + "services": [ + { + "serviceName": "Again another example service 1", + "status": "Operational" + }, + { + "serviceName": "Again another example service 2", + "status": "Operational" + } + ] } - }, + ], "statusUpdates": [ { "color": "#7a54f8", "date": "2024-08-10T09:00:00Z", - "message": "We like playing Uno... and developing software!", + "message": "We like playing uno... and developing software", "title": "This is a demo site!" } ]