frontend: hackfixes trying to make the frontend work with the rest of KSP infra

This commit is contained in:
Vašek Šraier 2020-11-30 00:35:05 +01:00
parent 103e471436
commit 6cde72da73
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@
</head> </head>
<body style="padding: 0"> <body style="padding: 0">
<div id="svelte-root" style="position: relative;"> <div id="page" style="position: relative;">
<noscript>Interaktivní grafy bez Javascriptu neumím</noscript> <noscript>Interaktivní grafy bez Javascriptu neumím</noscript>
</div> </div>
</body> </body>

View file

@ -1,7 +1,7 @@
import App from './App.svelte'; import App from './App.svelte';
const app = new App({ const app = new App({
target: document.getElementById("svelte-root")!, target: document.getElementById("page")!,
props: { } props: { }
}); });

View file

@ -50,7 +50,7 @@ export function createEdges(nodes: TaskDescriptor[]): TaskEdge[] {
} }
export async function loadTasks(): Promise<TasksFile> { export async function loadTasks(): Promise<TasksFile> {
const r = await fetch("/tasks.json") const r = await fetch("/kurz/tasks.json")
const j = await r.json() const j = await r.json()
return j return j
} }