feature/nav-tab-general-catalog

This commit is contained in:
hreyes
2026-02-05 16:29:18 -06:00
parent 4cc613d1df
commit d3d42bb0fa
96 changed files with 322 additions and 508 deletions

View File

@@ -7,6 +7,8 @@
import * as Card from '$lib/components/ui/card';
import { Button } from '$lib/components/ui/button';
import type { PageData } from './$types';
import { useShortcuts } from '$lib/hooks/use-shortcuts';
import { obtenerAtajosLista } from '$lib/config/shortcuts/dashboard/reference_data/code_pedimento_regimens/list';
import { browser } from '$app/environment';
import { Plus, RefreshCw } from 'lucide-svelte';
@@ -16,6 +18,15 @@
// Estado para el diálogo de crear
let showCreateDialog = $state(false);
// Atajos
useShortcuts(
'Lista Códigos',
obtenerAtajosLista({
manejarNuevo: () => (showCreateDialog = true),
manejarActualizar: handleRefresh
})
);
// Sincronizar token de cookies a localStorage al montar el componente
onMount(() => {
if (browser) {