Compare commits
3 Commits
8dc9675d84
...
a34cf50ace
| Author | SHA1 | Date | |
|---|---|---|---|
| a34cf50ace | |||
| 5a506768ab | |||
| 36c2789304 |
@ -108,10 +108,9 @@
|
||||
name = "Formula11";
|
||||
|
||||
packages = with pkgs; [
|
||||
f1python
|
||||
nodejs_23
|
||||
pocketbase
|
||||
|
||||
nodejs_23
|
||||
# nodePackages.autoprefixer
|
||||
# nodePackages.postcss
|
||||
# nodePackages.postcss-cli
|
||||
@ -119,7 +118,8 @@
|
||||
# nodePackages.svelte-check
|
||||
# nodePackages.tailwindcss
|
||||
|
||||
sqlitebrowser
|
||||
# f1python
|
||||
# sqlitebrowser
|
||||
];
|
||||
|
||||
# Use $1 for positional args
|
||||
|
||||
@ -132,7 +132,7 @@
|
||||
disabled={disable_inputs}
|
||||
required={require_inputs}
|
||||
>
|
||||
<svelte:fragment slot="message"><b>Upload Headshot</b></svelte:fragment>
|
||||
<svelte:fragment slot="message"><span class="font-bold">Upload Headshot</span></svelte:fragment>
|
||||
</FileDropzone>
|
||||
|
||||
<!-- Save/Delete buttons -->
|
||||
|
||||
@ -169,7 +169,7 @@
|
||||
disabled={disable_inputs}
|
||||
required={require_inputs}
|
||||
>
|
||||
<svelte:fragment slot="message"><b>Upload Pictogram</b></svelte:fragment>
|
||||
<svelte:fragment slot="message"><span class="font-bold">Upload Pictogram</span></svelte:fragment>
|
||||
</FileDropzone>
|
||||
|
||||
<!-- Save/Delete buttons -->
|
||||
|
||||
@ -108,7 +108,7 @@
|
||||
disabled={disable_inputs}
|
||||
required={require_inputs}
|
||||
>
|
||||
<svelte:fragment slot="message"><b>Upload Banner</b></svelte:fragment>
|
||||
<svelte:fragment slot="message"><span class="font-bold">Upload Banner</span></svelte:fragment>
|
||||
</FileDropzone>
|
||||
|
||||
<!-- Logo upload -->
|
||||
@ -123,7 +123,7 @@
|
||||
>
|
||||
<svelte:fragment slot="message">
|
||||
<div class="inline-flex flex-nowrap items-center gap-2">
|
||||
<b>Upload Logo</b>
|
||||
<span class="font-bold">Upload Logo</span>
|
||||
<LazyImage
|
||||
src={team?.logo_url ?? logo_template}
|
||||
id="update_team_logo_preview_{team?.id ?? 'create'}"
|
||||
|
||||
@ -36,6 +36,9 @@
|
||||
|
||||
/** Should the button have a shadow? */
|
||||
shadow?: boolean;
|
||||
|
||||
/** Additional classes to insert */
|
||||
extraclass?: string;
|
||||
}
|
||||
|
||||
let {
|
||||
@ -48,6 +51,7 @@
|
||||
activate_href = false,
|
||||
trigger_popup = { event: "click", target: "invalid" },
|
||||
shadow = false,
|
||||
extraclass = "",
|
||||
...restProps
|
||||
}: ButtonProps = $props();
|
||||
</script>
|
||||
@ -61,7 +65,7 @@
|
||||
? `variant-filled-${color}`
|
||||
: ''} {width} {activate ? 'btn-hover' : ''} {activate_href && is_at_path(href)
|
||||
? 'btn-hover'
|
||||
: ''} {shadow ? 'shadow' : ''}"
|
||||
: ''} {shadow ? 'shadow' : ''} {extraclass}"
|
||||
draggable="false"
|
||||
{...restProps}>{@render children()}</button
|
||||
>
|
||||
@ -71,7 +75,7 @@
|
||||
type={submit ? "submit" : "button"}
|
||||
class="btn select-none px-2 py-2 {color ? `variant-filled-${color}` : ''} {width} {activate
|
||||
? 'btn-hover'
|
||||
: ''} {shadow ? 'shadow' : ''}"
|
||||
: ''} {shadow ? 'shadow' : ''} {extraclass}"
|
||||
draggable="false"
|
||||
use:popup={trigger_popup}
|
||||
{...restProps}>{@render children()}</button
|
||||
|
||||
@ -225,7 +225,7 @@
|
||||
name="avatar"
|
||||
onchange={get_avatar_preview_event_handler("user_avatar_preview")}
|
||||
>
|
||||
<svelte:fragment slot="message"><b>Upload Avatar</b></svelte:fragment>
|
||||
<svelte:fragment slot="message"><span class="font-bold">Upload Avatar</span></svelte:fragment>
|
||||
</FileDropzone>
|
||||
<div class="flex justify-end gap-2">
|
||||
<Button
|
||||
|
||||
@ -101,7 +101,7 @@
|
||||
|
||||
<div class="pb-2">
|
||||
<Button width="w-full" color="tertiary" onclick={create_driver_handler}>
|
||||
<b>Create New Driver</b>
|
||||
<span class="font-bold">Create New Driver</span>
|
||||
</Button>
|
||||
</div>
|
||||
{#await data.drivers then drivers}
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
|
||||
<div class="pb-2">
|
||||
<Button width="w-full" color="tertiary" onclick={create_race_handler}>
|
||||
<b>Create New Race</b>
|
||||
<span class="font-bold">Create New Race</span>
|
||||
</Button>
|
||||
</div>
|
||||
{#await data.races then races}
|
||||
|
||||
@ -130,7 +130,7 @@
|
||||
|
||||
<div class="pb-2">
|
||||
<Button width="w-full" color="tertiary" onclick={create_substitution_handler}>
|
||||
<b>Create New Substitution</b>
|
||||
<span class="font-bold">Create New Substitution</span>
|
||||
</Button>
|
||||
</div>
|
||||
{#await data.substitutions then substitutions}
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
|
||||
<div class="pb-2">
|
||||
<Button width="w-full" color="tertiary" onclick={create_team_handler}>
|
||||
<b>Create New Team</b>
|
||||
<span class="font-bold">Create New Team</span>
|
||||
</Button>
|
||||
</div>
|
||||
<Table data={data.teams} columns={teams_columns} handler={teams_handler} />
|
||||
|
||||
Reference in New Issue
Block a user