Browse Source

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

vs-deploy-test-hack
Vašek Šraier 4 years ago
parent
commit
6cde72da73
  1. 2
      frontend/public/grafik.html
  2. 2
      frontend/src/main.ts
  3. 2
      frontend/src/tasks.ts

2
frontend/public/grafik.html

@ -28,7 +28,7 @@
</head>
<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>
</div>
</body>

2
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: { }
});

2
frontend/src/tasks.ts

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