frontend: hackfixes trying to make the frontend work with the rest of KSP infra
This commit is contained in:
parent
103e471436
commit
6cde72da73
3 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||||
|
|
|
@ -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: { }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue