Fix Login Page and add Jahresplan
All checks were successful
SteamWarCI Build successful

This commit is contained in:
2025-01-20 19:21:21 +01:00
parent 0a6c61bd88
commit 628599f019
6 changed files with 31 additions and 5 deletions

View File

@@ -20,6 +20,7 @@
import {fetchWithToken, tokenStore} from "./repo.ts";
import {type Schematic, SchematicSchema} from "@type/schem.ts";
import {derived} from "svelte/store";
import {ResponseErrorSchema} from "@type/data.ts";
export class SchematicRepo {
constructor(private token: string) {
@@ -40,7 +41,7 @@ export class SchematicRepo {
name,
content,
}),
});
}).then(value => value.json()).then(SchematicSchema.or(ResponseErrorSchema).parse);
}
}