From d7000c084b377480fd9a45945fb415a528bc2fb4 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 14 Dec 2024 18:10:50 +0100 Subject: [PATCH] Fixes --- src/components/Navbar.svelte | 2 +- .../admin/components/ErrorModal.svelte | 2 +- .../admin/components/TypeAheadSearch.svelte | 4 +-- src/components/admin/pages/Edit.svelte | 8 ++--- src/components/admin/pages/Home.svelte | 4 +-- src/components/admin/pages/Perms.svelte | 10 +++---- src/components/admin/pages/edit/Editor.svelte | 4 +-- .../admin/pages/event/EventEdit.svelte | 8 ++--- .../admin/pages/event/FightCard.svelte | 6 ++-- .../admin/pages/event/FightList.svelte | 30 +++++++++---------- .../admin/pages/event/RefereesList.svelte | 8 ++--- .../event/modals/CreateFightModal.svelte | 4 +-- .../pages/event/modals/FightEditModal.svelte | 4 +-- .../pages/generate/GroupGenerator.svelte | 8 ++--- .../admin/pages/home/CreateEventModal.svelte | 4 +-- src/components/dashboard/SchematicList.svelte | 2 +- 16 files changed, 54 insertions(+), 54 deletions(-) diff --git a/src/components/Navbar.svelte b/src/components/Navbar.svelte index d2ead40..3e0194c 100644 --- a/src/components/Navbar.svelte +++ b/src/components/Navbar.svelte @@ -110,7 +110,7 @@ {t("navbar.links.account")} diff --git a/src/components/admin/components/ErrorModal.svelte b/src/components/admin/components/ErrorModal.svelte index 42b1021..a9eff25 100644 --- a/src/components/admin/components/ErrorModal.svelte +++ b/src/components/admin/components/ErrorModal.svelte @@ -32,7 +32,7 @@

{error.stack}

{#snippet footer()} - + {/snippet}
{/if} diff --git a/src/components/admin/components/TypeAheadSearch.svelte b/src/components/admin/components/TypeAheadSearch.svelte index 8ab14f3..69653e8 100644 --- a/src/components/admin/components/TypeAheadSearch.svelte +++ b/src/components/admin/components/TypeAheadSearch.svelte @@ -48,11 +48,11 @@ + onclick={() => open = true}>{selected === null ? 'Auswählen' : items.find(value => value.value === selected)?.name} {#snippet header()}
- open = true} on:keydown={() => open = true}/> + open = true} onkeydown={() => open = true}/>
{/snippet} {#each filteredItems as item (item)} diff --git a/src/components/admin/pages/Edit.svelte b/src/components/admin/pages/Edit.svelte index 88fd7d8..ea45f56 100644 --- a/src/components/admin/pages/Edit.svelte +++ b/src/components/admin/pages/Edit.svelte @@ -168,11 +168,11 @@
{#if selectedBranch !== "master"} - - + {:else} - + {/if}
@@ -193,7 +193,7 @@ {/each} {:else} - + {/if} {:catch error} diff --git a/src/components/admin/pages/Home.svelte b/src/components/admin/pages/Home.svelte index 9cfec95..a105631 100644 --- a/src/components/admin/pages/Home.svelte +++ b/src/components/admin/pages/Home.svelte @@ -36,7 +36,7 @@ Mod-Tool - + Edit Pages Permissions @@ -51,7 +51,7 @@ {:then data} - diff --git a/src/components/admin/pages/Perms.svelte b/src/components/admin/pages/Perms.svelte index 8fc6ae2..2f003d6 100644 --- a/src/components/admin/pages/Perms.svelte +++ b/src/components/admin/pages/Perms.svelte @@ -155,14 +155,14 @@

Permissions

{#each perms.perms as perm} {capitalize(perm.toLowerCase())} + onclick={togglePerm(perm)}>{capitalize(perm.toLowerCase())} {/each}
{#if $me != null && $me.perms.includes("ADMINISTRATION")} - @@ -174,10 +174,10 @@ {#snippet footer()} - - diff --git a/src/components/admin/pages/edit/Editor.svelte b/src/components/admin/pages/edit/Editor.svelte index 30d0a56..a5e799e 100644 --- a/src/components/admin/pages/edit/Editor.svelte +++ b/src/components/admin/pages/edit/Editor.svelte @@ -84,10 +84,10 @@ {#snippet end()} - + Delete - + Save diff --git a/src/components/admin/pages/event/EventEdit.svelte b/src/components/admin/pages/event/EventEdit.svelte index 037d671..0595263 100644 --- a/src/components/admin/pages/event/EventEdit.svelte +++ b/src/components/admin/pages/event/EventEdit.svelte @@ -153,8 +153,8 @@
Public Schematics Only
- - + +
@@ -163,8 +163,8 @@

Are you sure you want to delete {event.name}?

- - + +
diff --git a/src/components/admin/pages/event/FightCard.svelte b/src/components/admin/pages/event/FightCard.svelte index 236b98f..f2360be 100644 --- a/src/components/admin/pages/event/FightCard.svelte +++ b/src/components/admin/pages/event/FightCard.svelte @@ -99,10 +99,10 @@ {#if !hideEdit} - editOpen = true}> + editOpen = true}> - deleteOpen = true}> + deleteOpen = true}> @@ -116,7 +116,7 @@

Are you sure you want to delete this fight?

- + diff --git a/src/components/admin/pages/event/FightList.svelte b/src/components/admin/pages/event/FightList.svelte index cb03eeb..698091b 100644 --- a/src/components/admin/pages/event/FightList.svelte +++ b/src/components/admin/pages/event/FightList.svelte @@ -194,27 +194,27 @@
- + Select Upcoming - selectedFights.size > 0 ? changeTimeOpen = true : changeTimeOpen = false}> + selectedFights.size > 0 ? changeTimeOpen = true : changeTimeOpen = false}> Reschedule Fights - selectedFights.size > 0 ? spectatePortOpen = true : spectatePortOpen = false} + selectedFights.size > 0 ? spectatePortOpen = true : spectatePortOpen = false} disabled={changedTime === undefined}> Change Spectate Port - selectedFights.size > 0 ? groupChangeOpen = true : groupChangeOpen = false}> + selectedFights.size > 0 ? groupChangeOpen = true : groupChangeOpen = false}> Change Group selectedFights.size > 0 ? deleteOpen = true : deleteOpen = false}> + onclick={() => selectedFights.size > 0 ? deleteOpen = true : deleteOpen = false}> Delete @@ -223,7 +223,7 @@ {#each groupedFights as group}
selectedFights.has(gf))} - on:click={() => cycleGroup(group.fights)}/> + onclick={() => cycleGroup(group.fights)}/>

{group.group ?? "Ungrouped"}

{#each group.fights.sort((a, b) => a.start - b.start) as fight, i (fight.id)} @@ -249,8 +249,8 @@

Are you sure you want to delete {selectedFights.size} fights?

{#snippet footer()} - - + + {/snippet} @@ -262,8 +262,8 @@
{#snippet footer()} - - + + {/snippet} @@ -276,8 +276,8 @@ {#snippet footer()} - - + + {/snippet} @@ -295,14 +295,14 @@ :{("0" + deltaTime.minutes()).slice(-2)}

{#snippet footer()} - - + + {/snippet} - createOpen = true}> + createOpen = true}> diff --git a/src/components/admin/pages/event/RefereesList.svelte b/src/components/admin/pages/event/RefereesList.svelte index 2aadd6a..0369ccb 100644 --- a/src/components/admin/pages/event/RefereesList.svelte +++ b/src/components/admin/pages/event/RefereesList.svelte @@ -68,7 +68,7 @@ {#each referees as referee}
  • {referee.name} - + Entfernen
  • @@ -79,7 +79,7 @@ {/if} - @@ -92,8 +92,8 @@ {#snippet footer()}
    - Abbrechen - Hinzufügen + Abbrechen + Hinzufügen
    {/snippet} diff --git a/src/components/admin/pages/event/modals/CreateFightModal.svelte b/src/components/admin/pages/event/modals/CreateFightModal.svelte index eb76e81..95be9c2 100644 --- a/src/components/admin/pages/event/modals/CreateFightModal.svelte +++ b/src/components/admin/pages/event/modals/CreateFightModal.svelte @@ -102,8 +102,8 @@ {#snippet footer()} - - + + {/snippet} diff --git a/src/components/admin/pages/event/modals/FightEditModal.svelte b/src/components/admin/pages/event/modals/FightEditModal.svelte index 4540f86..9649b89 100644 --- a/src/components/admin/pages/event/modals/FightEditModal.svelte +++ b/src/components/admin/pages/event/modals/FightEditModal.svelte @@ -90,8 +90,8 @@ />
    - - + +
    diff --git a/src/components/admin/pages/generate/GroupGenerator.svelte b/src/components/admin/pages/generate/GroupGenerator.svelte index 0118fdf..06991f4 100644 --- a/src/components/admin/pages/generate/GroupGenerator.svelte +++ b/src/components/admin/pages/generate/GroupGenerator.svelte @@ -176,7 +176,7 @@
    - +
    @@ -238,7 +238,7 @@ {/each} - @@ -248,8 +248,8 @@ {#snippet footer()} - - + + {/snippet} diff --git a/src/components/admin/pages/home/CreateEventModal.svelte b/src/components/admin/pages/home/CreateEventModal.svelte index 920ad94..f8f8488 100644 --- a/src/components/admin/pages/home/CreateEventModal.svelte +++ b/src/components/admin/pages/home/CreateEventModal.svelte @@ -90,8 +90,8 @@ {#snippet footer()} - - + + {/snippet} diff --git a/src/components/dashboard/SchematicList.svelte b/src/components/dashboard/SchematicList.svelte index 2187e92..f8ae7e7 100644 --- a/src/components/dashboard/SchematicList.svelte +++ b/src/components/dashboard/SchematicList.svelte @@ -130,7 +130,7 @@ {/if} {#each pagedSchematics as schem (schem.id)} - + {/each}