brf/client/public/routes.ts
2026-06-15 14:09:28 +02:00

113 lines
2.3 KiB
TypeScript

import Account from './components/account_page.tsx'
import Accounts from './components/accounts_page.tsx'
import Balances from './components/balances_page.tsx'
import Entries from './components/entries_page.tsx'
import Entry from './components/entry_page.tsx'
import Invoice from './components/invoice_page.tsx'
import Invoices from './components/invoices_page.tsx'
import InvoicesBySupplier from './components/invoices_by_supplier_page.tsx'
import Login from './components/login_page.tsx'
import Objects from './components/objects_page.tsx'
import Results from './components/results_page.tsx'
import Start from './components/start_page.tsx'
import Transactions from './components/transactions_page.tsx'
export default [
{
path: '/',
name: 'start',
title: 'Start',
component: Start,
auth: true,
},
{
path: '/accounts',
name: 'accounts',
title: 'Konton',
component: Accounts,
auth: true,
},
{
path: '/accounts/:number',
name: 'account',
title: 'Konto',
component: Account,
nav: false,
auth: true,
},
{
path: '/entries',
name: 'entries',
title: 'Verifikat',
component: Entries,
auth: true,
},
{
path: '/entries/:id',
name: 'entries-id',
title: 'Verifikat :id',
component: Entry,
nav: false,
auth: true,
},
{
path: '/objects',
name: 'objects',
title: 'Objekt',
component: Objects,
auth: true,
},
{
path: 'invoices',
name: 'invoices',
title: 'Fakturor',
component: Invoices,
auth: true,
},
{
path: '/invoices/:id',
name: 'invoices-id',
title: 'Faktura :id',
component: Invoice,
nav: false,
auth: true,
},
{
path: '/invoices/by-supplier/:supplier',
name: 'invoices-by-supplier',
title: 'Fakturor från leverantör',
component: InvoicesBySupplier,
nav: false,
auth: true,
},
{
path: '/balances',
name: 'balances',
title: 'Balanser',
component: Balances,
auth: true,
},
{
path: '/results',
name: 'results',
title: 'Resultat',
component: Results,
auth: true,
},
{
path: '/transactions',
name: 'transactions',
title: 'Transaktioner',
component: Transactions,
auth: true,
},
{
path: '/login',
name: 'login',
title: 'Logga in',
component: Login,
nav: false,
auth: false,
},
]