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

@ -75,9 +75,7 @@
<style lang="postcss">
input {
@apply border-2 rounded-md p-2 shadow-2xl w-80
dark:bg-neutral-800
focus:outline-none focus:ring-2 focus:ring-neutral-500 focus:border-transparent;
@apply border-2 rounded-md p-2 shadow-2xl w-80 dark:bg-neutral-800 focus:outline-none focus:ring-2 focus:ring-neutral-500 focus:border-transparent text-black;
}
label {

View File

@ -50,7 +50,7 @@
// @ts-ignore
let b64 = btoa(String.fromCharCode.apply(null, new Uint8Array(content)));
await $schemRepo.uploadSchematic(name, b64);
let response = await $schemRepo.uploadSchematic(name, b64);
open = false;
value = "";

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);
}
}

View File

@ -50,3 +50,10 @@ export const ServerSchema = z.object({
});
export type Server = z.infer<typeof ServerSchema>;
export const ResponseErrorSchema = z.object({
error: z.string(),
code: z.string(),
});
export type ResponseError = z.infer<typeof ResponseErrorSchema>;

View File

@ -0,0 +1,20 @@
---
title: Eventplan 2025
key: eventplan-2025
description: Der Eventplan für das Jahr 2025.
created: 2025-01-20
tags:
- event
image: ../../../images/jAHRESPLAN-gro-4.png
---
2025 wird ein Jahr voller spannender Events. Hier findet ihr eine Übersicht über die geplanten Events.
Highlights sind:
- **WargearSeason 2025**
- **SteamWar Arcade**
- **WarGear mit SFA**
- **MiniWarGear Liga**
- **SpaceShip**
aber auch viele mehr.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB