diff --git a/package.json b/package.json index 00adc78ef7308a054af82766f2df72cee54b9ab2..47cee39ab8067101fd715b2880427cd06da8954a 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,5 @@ }, "devDependencies": { "tailwindcss": "^3.3.2" - }, - "homepage": "https://niklasschroetler.fspages.org/infoscreen" + } } diff --git a/public/config/default.json b/public/config/default.json index 7dbd1138413f02ec9f93ade22c35632470c3e49f..c9858c7c8323f6a9ccf39b40a1f1a9b799e8114c 100644 --- a/public/config/default.json +++ b/public/config/default.json @@ -37,7 +37,7 @@ "h": 5 }, "config": { - "url": "/infoscreen/content/warning.png", + "url": "/content/warning.png", "title": "Achtung, Testbetrieb", "description": "Wie du vielleicht siehst, sieht dieser Bildschirm heute anders aus. Darf ich vorstellen: Der neue Infoscreen. Bitte beachte allerdings, dass wir gerade einen Testbetrieb machen. Bitte melde daher Fehler und auch sonstige Wünsche an Niklas unter @niklasschroetler:chat.upi.li oder niklas.schroetler@tu-dortmund.de" } diff --git a/src/config.ts b/src/config.ts deleted file mode 100644 index 79a3ff32c7134f2e341c47a0564ba7a29d795cb0..0000000000000000000000000000000000000000 --- a/src/config.ts +++ /dev/null @@ -1 +0,0 @@ -export const BASE_URL = "/infoscreen"; // No trailing slash diff --git a/src/services/LayoutService.ts b/src/services/LayoutService.ts index 070cfcc77a27d56e4b750c8ed8c0cf0f52fb516c..2b90cad305f707c48d656b7f6a33e6a20948ee2f 100644 --- a/src/services/LayoutService.ts +++ b/src/services/LayoutService.ts @@ -1,5 +1,4 @@ import {LayoutConfig} from "../types/LayoutConfig"; -import {BASE_URL} from "../config"; const NO_LAYOUT_CONFIG: LayoutConfig = { id: "", @@ -14,9 +13,9 @@ export class LayoutService { static async init(): Promise<void> { try { - const activeConfigs = await fetch(BASE_URL + "/activeConfigs.json").then(content => content.json()); + const activeConfigs = await fetch("/activeConfigs.json").then(content => content.json()); const configFetches = (activeConfigs as string[]) - .map(configPath => fetch(BASE_URL + "/" + configPath).then(content => content.json())); + .map(configPath => fetch(configPath).then(content => content.json())); LayoutService.configs = await Promise.all(configFetches); } catch (e) {