refactor: pretty much the whole backend module hierarchy

This commit is contained in:
Aleksi Lassila
2025-02-11 02:40:41 +02:00
parent 6969525464
commit fa27f19975
96 changed files with 1786 additions and 2033 deletions

View File

@@ -30,7 +30,7 @@
</script>
<Dialog>
<div class="header2 mb-4">
<div class="h3 mb-4">
{header}
</div>
<div class="font-medium text-secondary-300 mb-8">

View File

@@ -165,7 +165,7 @@
<Dialog class="grid" size={'dynamic'}>
<Tab {...tab} tab={Tabs.EditProfile} class="space-y-4 max-w-lg">
<h1 class="header2">
<h1 class="h3">
{createNew ? 'Create Account' : 'Edit Profile'}
</h1>
<TextField bind:value={name}>name</TextField>
@@ -236,7 +236,7 @@
detail.stopPropagation();
}}
>
<h1 class="header2 mb-6">Select Profile Picture</h1>
<h1 class="h3 mb-6">Select Profile Picture</h1>
<Container direction="grid" gridCols={3} class="grid grid-cols-3 gap-4 w-max">
<ProfileIcon
url={profilePictures.ana}

View File

@@ -21,7 +21,7 @@
/* For a11y*/
}}
>
<Panel {size} class={$$restProps.class}>
<Panel {size} class={$$restProps.class} onClose={handleClose}>
<slot close={handleClose} />
</Panel>
</div>

View File

@@ -4,6 +4,7 @@
import SelectItem from '../SelectItem.svelte';
import { modalStack } from '../Modal/modal.store';
// TODO: Add labels to the options
export let title: string = 'Select';
export let subtitle: string = '';
export let options: string[];
@@ -21,7 +22,7 @@
<Dialog>
<div class="mb-4">
<slot>
<h1 class="header1">{title}</h1>
<h1 class="h4">{title}</h1>
<p class="text-secondary-300">{subtitle}</p>
</slot>
</div>

View File

@@ -24,7 +24,7 @@
<div class="flex items-center justify-center text-secondary-500 mb-4">
<InfoCircled size={64} />
</div>
<h1 class="header2 text-center">Update Available</h1>
<h1 class="h3 text-center">Update Available</h1>
<div class="body mb-8 text-center">Reiverr {version} is now available.</div>
<Container class="space-y-4">
<Button type="primary-dark" on:clickOrSelect={dismiss}>Dismiss</Button>