diff --git a/frontend/public/tasks.json b/frontend/public/tasks.json new file mode 120000 index 0000000..6c078a2 --- /dev/null +++ b/frontend/public/tasks.json @@ -0,0 +1 @@ +../../tasks.json \ No newline at end of file diff --git a/frontend/src/task-loader.ts b/frontend/src/task-loader.ts new file mode 100644 index 0000000..1ed9ae0 --- /dev/null +++ b/frontend/src/task-loader.ts @@ -0,0 +1,16 @@ +export type TaskDescriptor = { + id: string + requires: [] + comment?: string +} + + +export type TasksFile = { + tasks: TaskDescriptor[] + clusters: { [name: string]: string[] } +} + +export async function loadTasks(): Promise { + const r = await fetch("/tasks.json") + return await r.json() +}