mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 17:24:10 +00:00
customers, items, invoices, estimates, shared document form 77 files, 14451 lines. Typed layouts (CompanyLayout, AuthLayout, header, sidebar, company switcher), auth views (login, register, forgot/reset password), admin feature (dashboard, companies, users, settings with typed store), company features (dashboard with chart/ stats, customers CRUD, items CRUD, invoices CRUD with full store, estimates CRUD with full store), and shared document form components (items table, item row, totals, notes, tax popup, template select, exchange rate converter, calculation composable). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
114 lines
3.0 KiB
TypeScript
114 lines
3.0 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
const CompanyLayout = () => import('../../layouts/CompanyLayout.vue')
|
|
const AdminDashboardView = () => import('./views/AdminDashboardView.vue')
|
|
const AdminCompaniesView = () => import('./views/AdminCompaniesView.vue')
|
|
const AdminCompanyEditView = () => import('./views/AdminCompanyEditView.vue')
|
|
const AdminUsersView = () => import('./views/AdminUsersView.vue')
|
|
const AdminUserEditView = () => import('./views/AdminUserEditView.vue')
|
|
const AdminSettingsView = () => import('./views/AdminSettingsView.vue')
|
|
|
|
export const adminRoutes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/admin/administration',
|
|
component: CompanyLayout,
|
|
meta: {
|
|
requiresAuth: true,
|
|
isSuperAdmin: true,
|
|
},
|
|
children: [
|
|
{
|
|
path: 'dashboard',
|
|
name: 'admin.dashboard',
|
|
component: AdminDashboardView,
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'companies',
|
|
name: 'admin.companies.index',
|
|
component: AdminCompaniesView,
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'companies/:id/edit',
|
|
name: 'admin.companies.edit',
|
|
component: AdminCompanyEditView,
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'users',
|
|
name: 'admin.users.index',
|
|
component: AdminUsersView,
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'users/:id/edit',
|
|
name: 'admin.users.edit',
|
|
component: AdminUserEditView,
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'settings',
|
|
name: 'admin.settings',
|
|
component: AdminSettingsView,
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
children: [
|
|
{
|
|
path: 'mail-configuration',
|
|
name: 'admin.settings.mail',
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
// Loaded by settings sub-routes
|
|
component: { template: '<router-view />' },
|
|
},
|
|
{
|
|
path: 'pdf-generation',
|
|
name: 'admin.settings.pdf',
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
component: { template: '<router-view />' },
|
|
},
|
|
{
|
|
path: 'backup',
|
|
name: 'admin.settings.backup',
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
component: { template: '<router-view />' },
|
|
},
|
|
{
|
|
path: 'file-disk',
|
|
name: 'admin.settings.disk',
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
component: { template: '<router-view />' },
|
|
},
|
|
{
|
|
path: 'update-app',
|
|
name: 'admin.settings.update',
|
|
meta: {
|
|
isSuperAdmin: true,
|
|
},
|
|
component: { template: '<router-view />' },
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
]
|