mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-25 14:14:08 +00:00
Phase 4a: Feature modules — layouts, auth, admin, dashboard,
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>
This commit is contained in:
52
resources/scripts-v2/features/auth/routes.ts
Normal file
52
resources/scripts-v2/features/auth/routes.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
|
||||
const AuthLayout = () => import('../../layouts/AuthLayout.vue')
|
||||
const LoginView = () => import('./views/LoginView.vue')
|
||||
const ForgotPasswordView = () => import('./views/ForgotPasswordView.vue')
|
||||
const ResetPasswordView = () => import('./views/ResetPasswordView.vue')
|
||||
const RegisterWithInvitationView = () => import('./views/RegisterWithInvitationView.vue')
|
||||
|
||||
export const authRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/login',
|
||||
component: AuthLayout,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'login',
|
||||
component: LoginView,
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
title: 'Login',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/forgot-password',
|
||||
name: 'forgot-password',
|
||||
component: ForgotPasswordView,
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
title: 'Forgot Password',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/reset-password/:token',
|
||||
name: 'reset-password',
|
||||
component: ResetPasswordView,
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
title: 'Reset Password',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/register',
|
||||
name: 'register-with-invitation',
|
||||
component: RegisterWithInvitationView,
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
title: 'Register',
|
||||
},
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user