HUUUGE dump of code, toast system in a svelte module, new reworked tailwing color palette, WIP cms, WIP API and probably much more that i forgot about.

This commit is contained in:
2026-06-21 19:20:59 +02:00
parent 50872d8951
commit 8682de7d17
92 changed files with 2595 additions and 719 deletions
+54
View File
@@ -0,0 +1,54 @@
<script lang="ts">
import { Plus, Search, SquarePen } from '@lucide/svelte';
import Button from '../../../modules/Button.svelte';
import UsersTable from '../../../modules/panel/users/UsersTable.svelte';
function log2() {
console.log('test');
}
let searchPrompt = $state();
$inspect(searchPrompt);
function log(newValue: any) {
console.log(newValue);
}
</script>
<!-- <ContextMenu items={[{ label: 'test123', action: log2 }]} onClose={() => {}}></ContextMenu> -->
<div class="mb-4 flex flex-row justify-between">
<div
class="
flex flex-row items-center justify-between
overflow-clip rounded-md border border-border
bg-surface-1 has-focus:border-focus-ring
"
>
<input
type="text"
class=" w-full px-3 py-2 outline-none placeholder:text-muted"
placeholder="Search..."
bind:value={searchPrompt}
/>
<Search strokeWidth={2} size={20} class="mx-3"></Search>
</div>
<Button class="flex flex-row items-center bg-primary text-text-on-primary">
<Plus class="ml-1" size={20}></Plus>
<span class="mx-2">Add User</span>
</Button>
</div>
<div style="grid-template-areas: 'a b';" class=" grid-cols-[2fr 1fr] grid size-full shadow-subtle">
<div style="grid-area: a;" class=" size-full">
<UsersTable></UsersTable>
</div>
<div style="grid-area: b;" class=" p-4">
<div class="bg-bg-dark rounded-2xl">
<div class="flex h-full flex-col items-center justify-center">
<SquarePen size={128} strokeWidth={1} class="text-gray-800" />
<p class="text-2xl font-bold text-gray-800">Nothing here but us chickens...</p>
</div>
</div>
</div>
</div>
<div class="w-full"></div>