feat: Add event collection and event page structure
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
- Introduced a new events collection in config.ts with schema validation. - Created a new event markdown file for the WarGear event. - Updated German translations to include new event-related strings. - Modified PageLayout to support a wide layout option. - Enhanced announcements page to improve tag filtering and post rendering. - Implemented dynamic event pages with detailed event information and fight plans. - Added an index page for events to list all upcoming events.
This commit is contained in:
@@ -38,6 +38,11 @@
|
||||
|
||||
duplicateOpen = false;
|
||||
}
|
||||
|
||||
async function handleDelete() {
|
||||
await $fightRepo.deleteFight(data.event.id, fight.id);
|
||||
refresh();
|
||||
}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
@@ -55,6 +60,7 @@
|
||||
<FightEdit {fight} {data} onSave={handleSave}>
|
||||
{#snippet actions(dirty, submit)}
|
||||
<DialogFooter>
|
||||
<Button variant="destructive" onclick={handleDelete}>Löschen</Button>
|
||||
<Button disabled={!dirty} onclick={submit}>Speichern</Button>
|
||||
</DialogFooter>
|
||||
{/snippet}
|
||||
|
||||
Reference in New Issue
Block a user