Fixes
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed

Dieser Commit ist enthalten in:
Chaoscaot 2024-12-14 18:10:50 +01:00
Ursprung d4ac123654
Commit d7000c084b
16 geänderte Dateien mit 54 neuen und 54 gelöschten Zeilen

Datei anzeigen

@ -110,7 +110,7 @@
<span class="btn__text">{t("navbar.links.account")}</span> <span class="btn__text">{t("navbar.links.account")}</span>
</a> </a>
<!-- <!--
<button class="btn my-1" on:click={() => searchOpen = true}> <button class="btn my-1" onclick={() => searchOpen = true}>
<SearchOutline ariaLabel="Site Search" class="inline-block h-6"/> <SearchOutline ariaLabel="Site Search" class="inline-block h-6"/>
</button> </button>
--> -->

Datei anzeigen

@ -32,7 +32,7 @@
<Modal bind:open title={error.message}> <Modal bind:open title={error.message}>
<p>{error.stack}</p> <p>{error.stack}</p>
{#snippet footer()} {#snippet footer()}
<Button on:click={() => open = false}>Close</Button> <Button onclick={() => open = false}>Close</Button>
{/snippet} {/snippet}
</Modal> </Modal>
{/if} {/if}

Datei anzeigen

@ -48,11 +48,11 @@
</script> </script>
<Button color="light" <Button color="light"
on:click={() => open = true}>{selected === null ? 'Auswählen' : items.find(value => value.value === selected)?.name}</Button> onclick={() => open = true}>{selected === null ? 'Auswählen' : items.find(value => value.value === selected)?.name}</Button>
<Dropdown bind:open class="w-60"> <Dropdown bind:open class="w-60">
{#snippet header()} {#snippet header()}
<div class="overflow-y-auto p-3 text-sm w-60" > <div class="overflow-y-auto p-3 text-sm w-60" >
<Search bind:value={searchValue} on:focus={() => open = true} on:keydown={() => open = true}/> <Search bind:value={searchValue} onfocus={() => open = true} onkeydown={() => open = true}/>
</div> </div>
{/snippet} {/snippet}
{#each filteredItems as item (item)} {#each filteredItems as item (item)}

Datei anzeigen

@ -168,11 +168,11 @@
</div> </div>
<div> <div>
{#if selectedBranch !== "master"} {#if selectedBranch !== "master"}
<Button on:click={createFile} color="alternative" disabled={!selectedPath}>Create File <Button onclick={createFile} color="alternative" disabled={!selectedPath}>Create File
</Button> </Button>
<Button on:click={() => deleteBranch(false)} color="none">Delete Branch</Button> <Button onclick={() => deleteBranch(false)} color="none">Delete Branch</Button>
{:else} {:else}
<Button on:click={createBranch}>Create Branch</Button> <Button onclick={createBranch}>Create Branch</Button>
{/if} {/if}
</div> </div>
</div> </div>
@ -193,7 +193,7 @@
</li> </li>
{/each} {/each}
{:else} {:else}
<Button on:click={newAnnouncement}>Neue Ankündigung</Button> <Button onclick={newAnnouncement}>Neue Ankündigung</Button>
{/if} {/if}
</ul> </ul>
{:catch error} {:catch error}

Datei anzeigen

@ -36,7 +36,7 @@
Mod-Tool Mod-Tool
</span> </span>
</NavBrand> </NavBrand>
<NavHamburger on:click={toggle}/> <NavHamburger onclick={toggle}/>
<NavUl {hidden}> <NavUl {hidden}>
<NavLi href="#/edit">Edit Pages</NavLi> <NavLi href="#/edit">Edit Pages</NavLi>
<NavLi href="#/perms">Permissions</NavLi> <NavLi href="#/perms">Permissions</NavLi>
@ -51,7 +51,7 @@
<Spinner size={16}/> <Spinner size={16}/>
</div> </div>
{:then data} {:then data}
<Button class="fixed bottom-6 right-6 !p-4 z-10 shadow-lg" on:click={() => showAdd = true}> <Button class="fixed bottom-6 right-6 !p-4 z-10 shadow-lg" onclick={() => showAdd = true}>
<PlusOutline/> <PlusOutline/>
</Button> </Button>

Datei anzeigen

@ -155,14 +155,14 @@
<h1>Permissions</h1> <h1>Permissions</h1>
{#each perms.perms as perm} {#each perms.perms as perm}
<Checkbox checked={activePerms.includes(perm)} <Checkbox checked={activePerms.includes(perm)}
on:click={togglePerm(perm)}>{capitalize(perm.toLowerCase())}</Checkbox> onclick={togglePerm(perm)}>{capitalize(perm.toLowerCase())}</Checkbox>
{/each} {/each}
<div class="mt-4"> <div class="mt-4">
<Button disabled={prefixEdit === (player?.prefix.name ?? "") && activePerms === (player?.perms ?? [])} <Button disabled={prefixEdit === (player?.prefix.name ?? "") && activePerms === (player?.perms ?? [])}
on:click={save}>Save onclick={save}>Save
</Button> </Button>
{#if $me != null && $me.perms.includes("ADMINISTRATION")} {#if $me != null && $me.perms.includes("ADMINISTRATION")}
<Button on:click={() => resetPasswordModal = true}> <Button onclick={() => resetPasswordModal = true}>
Reset Password Reset Password
</Button> </Button>
@ -174,10 +174,10 @@
{#snippet footer()} {#snippet footer()}
<Button class="ml-auto mr-4" on:click={resetResetPassword}> <Button class="ml-auto mr-4" onclick={resetResetPassword}>
Cancel Cancel
</Button> </Button>
<Button disabled={resetPassword === "" || resetPassword !== resetPasswordRepeat} on:click={resetPW}> <Button disabled={resetPassword === "" || resetPassword !== resetPasswordRepeat} onclick={resetPW}>
Reset Password Reset Password
</Button> </Button>

Datei anzeigen

@ -84,10 +84,10 @@
<Toolbar class="!bg-gray-900"> <Toolbar class="!bg-gray-900">
{#snippet end()} {#snippet end()}
<ToolbarGroup > <ToolbarGroup >
<ToolbarButton on:click={deletePage}> <ToolbarButton onclick={deletePage}>
Delete Delete
</ToolbarButton> </ToolbarButton>
<ToolbarButton color="primary" on:click={savePage}> <ToolbarButton color="primary" onclick={savePage}>
Save Save
</ToolbarButton> </ToolbarButton>
</ToolbarGroup> </ToolbarGroup>

Datei anzeigen

@ -153,8 +153,8 @@
</div> </div>
<Toggle bind:checked={publicOnly} class="mt-4">Public Schematics Only</Toggle> <Toggle bind:checked={publicOnly} class="mt-4">Public Schematics Only</Toggle>
<div class="flex mt-4"> <div class="flex mt-4">
<Button disabled={!changed} on:click={update}>Update</Button> <Button disabled={!changed} onclick={update}>Update</Button>
<Button class="ml-4" color="red" on:click={() => deleteOpen = true}>Delete</Button> <Button class="ml-4" color="red" onclick={() => deleteOpen = true}>Delete</Button>
</div> </div>
</form> </form>
@ -163,8 +163,8 @@
<Modal bind:open={deleteOpen} outsideclose title="Delete {event.name}?"> <Modal bind:open={deleteOpen} outsideclose title="Delete {event.name}?">
<p>Are you sure you want to delete {event.name}?</p> <p>Are you sure you want to delete {event.name}?</p>
<div class="flex justify-end"> <div class="flex justify-end">
<Button on:click={() => deleteOpen = false}>Cancel</Button> <Button onclick={() => deleteOpen = false}>Cancel</Button>
<Button class="ml-4" color="red" on:click={del}>Delete</Button> <Button class="ml-4" color="red" onclick={del}>Delete</Button>
</div> </div>
</Modal> </Modal>

Datei anzeigen

@ -99,10 +99,10 @@
</div> </div>
{#if !hideEdit} {#if !hideEdit}
<Toolbar embedded> <Toolbar embedded>
<ToolbarButton on:click={() => editOpen = true}> <ToolbarButton onclick={() => editOpen = true}>
<EditOutline/> <EditOutline/>
</ToolbarButton> </ToolbarButton>
<ToolbarButton color="red" on:click={() => deleteOpen = true}> <ToolbarButton color="red" onclick={() => deleteOpen = true}>
<TrashBinOutline/> <TrashBinOutline/>
</ToolbarButton> </ToolbarButton>
</Toolbar> </Toolbar>
@ -116,7 +116,7 @@
<p class="mb-5"> <p class="mb-5">
Are you sure you want to delete this fight? Are you sure you want to delete this fight?
</p> </p>
<Button color="red" on:click={deleteFight}>Delete Fight</Button> <Button color="red" onclick={deleteFight}>Delete Fight</Button>
<Button color="alternative">Cancel</Button> <Button color="alternative">Cancel</Button>
</div> </div>
</Modal> </Modal>

Datei anzeigen

@ -194,27 +194,27 @@
<div class="pb-28"> <div class="pb-28">
<Toolbar class="mx-4 mt-2 w-fit"> <Toolbar class="mx-4 mt-2 w-fit">
<ToolbarGroup> <ToolbarGroup>
<Checkbox class="ml-2" checked={selectedFights.size === fights.length} on:click={cycleSelect}/> <Checkbox class="ml-2" checked={selectedFights.size === fights.length} onclick={cycleSelect}/>
<Tooltip>Select Upcoming</Tooltip> <Tooltip>Select Upcoming</Tooltip>
</ToolbarGroup> </ToolbarGroup>
<ToolbarGroup> <ToolbarGroup>
<ToolbarButton on:click={() => selectedFights.size > 0 ? changeTimeOpen = true : changeTimeOpen = false}> <ToolbarButton onclick={() => selectedFights.size > 0 ? changeTimeOpen = true : changeTimeOpen = false}>
<CalendarWeekOutline/> <CalendarWeekOutline/>
</ToolbarButton> </ToolbarButton>
<Tooltip>Reschedule Fights</Tooltip> <Tooltip>Reschedule Fights</Tooltip>
<ToolbarButton on:click={() => selectedFights.size > 0 ? spectatePortOpen = true : spectatePortOpen = false} <ToolbarButton onclick={() => selectedFights.size > 0 ? spectatePortOpen = true : spectatePortOpen = false}
disabled={changedTime === undefined}> disabled={changedTime === undefined}>
<ProfileCardOutline/> <ProfileCardOutline/>
</ToolbarButton> </ToolbarButton>
<Tooltip>Change Spectate Port</Tooltip> <Tooltip>Change Spectate Port</Tooltip>
<ToolbarButton on:click={() => selectedFights.size > 0 ? groupChangeOpen = true : groupChangeOpen = false}> <ToolbarButton onclick={() => selectedFights.size > 0 ? groupChangeOpen = true : groupChangeOpen = false}>
<UsersGroupOutline/> <UsersGroupOutline/>
</ToolbarButton> </ToolbarButton>
<Tooltip>Change Group</Tooltip> <Tooltip>Change Group</Tooltip>
</ToolbarGroup> </ToolbarGroup>
<ToolbarGroup> <ToolbarGroup>
<ToolbarButton color="red" <ToolbarButton color="red"
on:click={() => selectedFights.size > 0 ? deleteOpen = true : deleteOpen = false}> onclick={() => selectedFights.size > 0 ? deleteOpen = true : deleteOpen = false}>
<TrashBinOutline/> <TrashBinOutline/>
</ToolbarButton> </ToolbarButton>
<Tooltip>Delete</Tooltip> <Tooltip>Delete</Tooltip>
@ -223,7 +223,7 @@
{#each groupedFights as group} {#each groupedFights as group}
<div class="flex mt-4"> <div class="flex mt-4">
<Checkbox class="ml-2 text-center" checked={group.fights.every(gf => selectedFights.has(gf))} <Checkbox class="ml-2 text-center" checked={group.fights.every(gf => selectedFights.has(gf))}
on:click={() => cycleGroup(group.fights)}/> onclick={() => cycleGroup(group.fights)}/>
<h1 class="ml-4 text-2xl">{group.group ?? "Ungrouped"}</h1> <h1 class="ml-4 text-2xl">{group.group ?? "Ungrouped"}</h1>
</div> </div>
{#each group.fights.sort((a, b) => a.start - b.start) as fight, i (fight.id)} {#each group.fights.sort((a, b) => a.start - b.start) as fight, i (fight.id)}
@ -249,8 +249,8 @@
<p>Are you sure you want to delete {selectedFights.size} fights?</p> <p>Are you sure you want to delete {selectedFights.size} fights?</p>
{#snippet footer()} {#snippet footer()}
<Button color="red" class="ml-auto" on:click={deleteFights}>Delete</Button> <Button color="red" class="ml-auto" onclick={deleteFights}>Delete</Button>
<Button on:click={() => deleteOpen = false} color="alternative">Cancel</Button> <Button onclick={() => deleteOpen = false} color="alternative">Cancel</Button>
{/snippet} {/snippet}
</Modal> </Modal>
@ -262,8 +262,8 @@
</div> </div>
{#snippet footer()} {#snippet footer()}
<Button class="ml-auto" on:click={updateSpectatePort}>Change</Button> <Button class="ml-auto" onclick={updateSpectatePort}>Change</Button>
<Button on:click={() => spectatePortOpen = false} color="alternative">Cancel</Button> <Button onclick={() => spectatePortOpen = false} color="alternative">Cancel</Button>
{/snippet} {/snippet}
</Modal> </Modal>
@ -276,8 +276,8 @@
</div> </div>
{#snippet footer()} {#snippet footer()}
<Button class="ml-auto" on:click={updateGroup}>Change</Button> <Button class="ml-auto" onclick={updateGroup}>Change</Button>
<Button on:click={() => groupChangeOpen = false} color="alternative">Cancel</Button> <Button onclick={() => groupChangeOpen = false} color="alternative">Cancel</Button>
{/snippet} {/snippet}
</Modal> </Modal>
@ -295,14 +295,14 @@
:{("0" + deltaTime.minutes()).slice(-2)}</p> :{("0" + deltaTime.minutes()).slice(-2)}</p>
{#snippet footer()} {#snippet footer()}
<Button class="ml-auto" on:click={updateStartTime}>Update</Button> <Button class="ml-auto" onclick={updateStartTime}>Update</Button>
<Button on:click={() => changeTimeOpen = false} color="alternative">Cancel</Button> <Button onclick={() => changeTimeOpen = false} color="alternative">Cancel</Button>
{/snippet} {/snippet}
</Modal> </Modal>
<SpeedDial> <SpeedDial>
<SpeedDialButton name="Add" on:click={() => createOpen = true}> <SpeedDialButton name="Add" onclick={() => createOpen = true}>
<PlusOutline/> <PlusOutline/>
</SpeedDialButton> </SpeedDialButton>
<SpeedDialButton name="Generate" href="#/event/{data.event.id}/generate"> <SpeedDialButton name="Generate" href="#/event/{data.event.id}/generate">

Datei anzeigen

@ -68,7 +68,7 @@
{#each referees as referee} {#each referees as referee}
<li class="flex flex-grow justify-between"> <li class="flex flex-grow justify-between">
{referee.name} {referee.name}
<SWButton on:click={removeReferee(referee.uuid)}> <SWButton onclick={removeReferee(referee.uuid)}>
Entfernen Entfernen
</SWButton> </SWButton>
</li> </li>
@ -79,7 +79,7 @@
{/if} {/if}
</ul> </ul>
<Button class="fixed bottom-6 right-6 !p-4 z-10 shadow-lg" on:click={() => showAdd = true}> <Button class="fixed bottom-6 right-6 !p-4 z-10 shadow-lg" onclick={() => showAdd = true}>
<PlusOutline/> <PlusOutline/>
</Button> </Button>
@ -92,8 +92,8 @@
</div> </div>
{#snippet footer()} {#snippet footer()}
<div class="flex flex-grow justify-end"> <div class="flex flex-grow justify-end">
<SWButton on:click={reset} type="gray">Abbrechen</SWButton> <SWButton onclick={reset} type="gray">Abbrechen</SWButton>
<SWButton on:click={addReferee}>Hinzufügen</SWButton> <SWButton onclick={addReferee}>Hinzufügen</SWButton>
</div> </div>
{/snippet} {/snippet}
</SWModal> </SWModal>

Datei anzeigen

@ -102,8 +102,8 @@
</div> </div>
{#snippet footer()} {#snippet footer()}
<Button on:click={create} class="mr-auto" disabled={!canCreate}>Create</Button> <Button onclick={create} class="mr-auto" disabled={!canCreate}>Create</Button>
<Button color="light" on:click={() => open = false}>Cancel</Button> <Button color="light" onclick={() => open = false}>Cancel</Button>
{/snippet} {/snippet}
</Modal> </Modal>

Datei anzeigen

@ -90,8 +90,8 @@
/> />
</div> </div>
<div class="flex"> <div class="flex">
<Button on:click={save}>Save</Button> <Button onclick={save}>Save</Button>
<Button color="light" class="ml-auto" on:click={() => open = false}>Cancel</Button> <Button color="light" class="ml-auto" onclick={() => open = false}>Cancel</Button>
</div> </div>
</Modal> </Modal>

Datei anzeigen

@ -176,7 +176,7 @@
</div> </div>
<div class="flex items-center mr-4"> <div class="flex items-center mr-4">
<Button on:click={() => showAutoGrouping = true}>Automatic Grouping</Button> <Button onclick={() => showAutoGrouping = true}>Automatic Grouping</Button>
</div> </div>
</div> </div>
@ -238,7 +238,7 @@
{/each} {/each}
</div> </div>
<Button class="!p-4 fixed bottom-4 right-4" pill disabled={!generateDisabled} on:click={generateFights}> <Button class="!p-4 fixed bottom-4 right-4" pill disabled={!generateDisabled} onclick={generateFights}>
<PlusOutline/> <PlusOutline/>
</Button> </Button>
@ -248,8 +248,8 @@
{#snippet footer()} {#snippet footer()}
<Button class="ml-auto" on:click={createGroups}>Create</Button> <Button class="ml-auto" onclick={createGroups}>Create</Button>
<Button color="alternative" on:click={() => showAutoGrouping = false}>Cancel</Button> <Button color="alternative" onclick={() => showAutoGrouping = false}>Cancel</Button>
{/snippet} {/snippet}
</Modal> </Modal>

Datei anzeigen

@ -90,8 +90,8 @@
</div> </div>
{#snippet footer()} {#snippet footer()}
<Button color="alternative" on:click={() => open = false} class="mr-auto">Cancel</Button> <Button color="alternative" onclick={() => open = false} class="mr-auto">Cancel</Button>
<Button on:click={createEvent} disabled={!canSubmit}>Create</Button> <Button onclick={createEvent} disabled={!canSubmit}>Create</Button>
{/snippet} {/snippet}
</Modal> </Modal>

Datei anzeigen

@ -130,7 +130,7 @@
</tr> </tr>
{/if} {/if}
{#each pagedSchematics as schem (schem.id)} {#each pagedSchematics as schem (schem.id)}
<SchematicListTile schem={schem} players={schematics.players} on:click={schemListClick(schem.type == null, schem.id)} /> <SchematicListTile schem={schem} players={schematics.players} onclick={schemListClick(schem.type == null, schem.id)} />
{/each} {/each}
</tbody> </tbody>
</table> </table>