From 6cde72da736a02be7a1018e8e65267264bb8260f Mon Sep 17 00:00:00 2001 From: Vasek Sraier Date: Mon, 30 Nov 2020 00:35:05 +0100 Subject: [PATCH] frontend: hackfixes trying to make the frontend work with the rest of KSP infra --- frontend/public/grafik.html | 2 +- frontend/src/main.ts | 2 +- frontend/src/tasks.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/public/grafik.html b/frontend/public/grafik.html index 794bcea..10f86b6 100644 --- a/frontend/public/grafik.html +++ b/frontend/public/grafik.html @@ -28,7 +28,7 @@ -
+
diff --git a/frontend/src/main.ts b/frontend/src/main.ts index b6e5acc..f89291c 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -1,7 +1,7 @@ import App from './App.svelte'; const app = new App({ - target: document.getElementById("svelte-root")!, + target: document.getElementById("page")!, props: { } }); diff --git a/frontend/src/tasks.ts b/frontend/src/tasks.ts index 4a246ea..68ea929 100644 --- a/frontend/src/tasks.ts +++ b/frontend/src/tasks.ts @@ -50,7 +50,7 @@ export function createEdges(nodes: TaskDescriptor[]): TaskEdge[] { } export async function loadTasks(): Promise { - const r = await fetch("/tasks.json") + const r = await fetch("/kurz/tasks.json") const j = await r.json() return j }