Compare commits

..
2 Commits
Author SHA1 Message Date
harry 390c4fb4ea fix admin tabs 2026-09-12 21:31:48 +05:00
harry 1e91de5a0e skip seeds for now 2026-09-12 21:30:29 +05:00
2 changed files with 4 additions and 9 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
-- Seed data for AvtoAmbor. Prices are in dirams (1 TJS = 100 dirams).
/* -- Seed data for AvtoAmbor. Prices are in dirams (1 TJS = 100 dirams).
-- Names are biased toward Lada / Daewoo Nexia / Opel / Toyota, which are
-- common in Tajikistan.
@@ -188,3 +188,4 @@ VALUES
INSERT INTO stock_movements (part_id, movement_type, quantity, unit_price, supplier_id, reference, notes)
SELECT id, 'in', quantity_on_hand, cost_price, 1, 'OPENING', 'Initial seeded stock'
FROM parts WHERE quantity_on_hand > 0;
*/
+2 -8
View File
@@ -4,21 +4,15 @@
const tabs = [
{ href: '/admin/reports', key: 'admin.tabs.reports' },
{ href: '/admin/categories', key: 'admin.tabs.categories' },
{ href: '/admin/backups', key: 'admin.tabs.backups' }
{ href: '/admin/categories', key: 'admin.tabs.categories' }
];
$: current = $page.url.pathname;
function isActive(href) {
return current === href || current.startsWith(href + '/');
}
</script>
<h1>{$t('admin.title')}</h1>
<nav class="tabs" aria-label="Admin sections">
{#each tabs as tab}
<a href={tab.href} class:active={isActive(tab.href)} aria-current={isActive(tab.href) ? 'page' : undefined}>
<a href={tab.href}>
{$t(tab.key)}
</a>
{/each}