refactor(frontend): use db for files & displays

Co-Authored-By: E44 <129310925+programmer-44@users.noreply.github.com>
This commit is contained in:
2025-12-29 16:28:26 +01:00
parent 880725a105
commit c6b0c1cf31
30 changed files with 1258 additions and 1089 deletions
@@ -16,7 +16,7 @@
menu_class = 'right-0',
div_class = '',
children
} = $props<{
}: {
className?: string;
bg?: string;
hover_bg?: string;
@@ -28,7 +28,7 @@
menu_class?: string;
div_class?: string;
children?: any;
}>();
} = $props();
let menu_shown = $state(false);
let button_element: HTMLButtonElement;
@@ -166,8 +166,8 @@
? 'text-stone-500 cursor-not-allowed'
: 'hover:bg-white/35 active:bg-white/60 cursor-pointer ' +
option.class} rounded-lg p-2 transition-colors duration-200 select-none flex flex-row gap-2 items-center"
onclick={(e) => {
if (option.on_select) option.on_select();
onclick={async (e) => {
if (option.on_select) await option.on_select();
close_menu();
}}
>