This commit is contained in:
@ -75,9 +75,7 @@
|
|||||||
|
|
||||||
<style lang="postcss">
|
<style lang="postcss">
|
||||||
input {
|
input {
|
||||||
@apply border-2 rounded-md p-2 shadow-2xl w-80
|
@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;
|
||||||
dark:bg-neutral-800
|
|
||||||
focus:outline-none focus:ring-2 focus:ring-neutral-500 focus:border-transparent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
|
|||||||
@ -50,7 +50,7 @@
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
let b64 = btoa(String.fromCharCode.apply(null, new Uint8Array(content)));
|
let b64 = btoa(String.fromCharCode.apply(null, new Uint8Array(content)));
|
||||||
|
|
||||||
await $schemRepo.uploadSchematic(name, b64);
|
let response = await $schemRepo.uploadSchematic(name, b64);
|
||||||
|
|
||||||
open = false;
|
open = false;
|
||||||
value = "";
|
value = "";
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
import {fetchWithToken, tokenStore} from "./repo.ts";
|
import {fetchWithToken, tokenStore} from "./repo.ts";
|
||||||
import {type Schematic, SchematicSchema} from "@type/schem.ts";
|
import {type Schematic, SchematicSchema} from "@type/schem.ts";
|
||||||
import {derived} from "svelte/store";
|
import {derived} from "svelte/store";
|
||||||
|
import {ResponseErrorSchema} from "@type/data.ts";
|
||||||
|
|
||||||
export class SchematicRepo {
|
export class SchematicRepo {
|
||||||
constructor(private token: string) {
|
constructor(private token: string) {
|
||||||
@ -40,7 +41,7 @@ export class SchematicRepo {
|
|||||||
name,
|
name,
|
||||||
content,
|
content,
|
||||||
}),
|
}),
|
||||||
});
|
}).then(value => value.json()).then(SchematicSchema.or(ResponseErrorSchema).parse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,3 +50,10 @@ export const ServerSchema = z.object({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export type Server = z.infer<typeof ServerSchema>;
|
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>;
|
||||||
|
|||||||
20
src/content/announcements/de/eventplan-2025.md
Normal file
20
src/content/announcements/de/eventplan-2025.md
Normal 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.
|
||||||
BIN
src/images/jAHRESPLAN-gro-4.png
Normal file
BIN
src/images/jAHRESPLAN-gro-4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Reference in New Issue
Block a user