From 1dd8f956071f0072c825c4086088a53511ea14d7 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 30 Jul 2023 21:44:15 +0100 Subject: [PATCH] Add new detail map --- src/lib/scripts/serviceMap.ts | 17 +++++++++++++++++ src/lib/types/serviceData.ts | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 src/lib/scripts/serviceMap.ts create mode 100644 src/lib/types/serviceData.ts diff --git a/src/lib/scripts/serviceMap.ts b/src/lib/scripts/serviceMap.ts new file mode 100644 index 0000000..c6b02fa --- /dev/null +++ b/src/lib/scripts/serviceMap.ts @@ -0,0 +1,17 @@ +import type { ServiceData } from "$lib/types/serviceData" +export const detailMap = new Map ([ + ["nextcloud", { + formattedName: "Nextcloud", + url: "https://cloud.fjla.uk", + checkString: "Login -", + description: "Personal cloud, organiser and workspace", + imgPath: "nextcloud.svg" + }], + ["gitea", { + formattedName: "Gitea", + url: "https://git.fjla.uk", + checkString: "--??--", + description: "Git Repository & Development tools", + imgPath: "" + }] +]) \ No newline at end of file diff --git a/src/lib/types/serviceData.ts b/src/lib/types/serviceData.ts new file mode 100644 index 0000000..3479908 --- /dev/null +++ b/src/lib/types/serviceData.ts @@ -0,0 +1,7 @@ +export interface ServiceData { + formattedName: string, + url: string, + checkString: string, + imgPath: string, + description: string, +} \ No newline at end of file