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