Standa Lukeš
4 years ago
2 changed files with 17 additions and 0 deletions
@ -0,0 +1 @@ |
|||
../../tasks.json |
@ -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<TasksFile> { |
|||
const r = await fetch("/tasks.json") |
|||
return await r.json() |
|||
} |
Reference in new issue