- Remove apps/dispatch/ (100% replaced by ops dispatch module, unmaintained) - Commit services/targo-hub/lib/ (24 modules, 6290 lines — was never tracked) - Commit services/docuseal + services/legacy-db docker-compose configs - Extract client app composables: useOTP, useAddressSearch, catalog data, format utils - Refactor CartPage.vue 630→175 lines, CatalogPage.vue 375→95 lines - Clean hardcoded credentials from config.js fallback values - Add client portal: catalog, cart, checkout, OTP verification, address search - Add ops: NetworkPage, AgentFlowsPage, ConversationPanel, UnifiedCreateModal - Add ops composables: useBestTech, useConversations, usePermissions, useScanner - Add field app: scanner composable, docker/nginx configs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
1.3 KiB
JavaScript
26 lines
1.3 KiB
JavaScript
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
component: () => import('layouts/PortalLayout.vue'),
|
|
children: [
|
|
{ path: '', name: 'dashboard', component: () => import('pages/DashboardPage.vue') },
|
|
{ path: 'invoices', name: 'invoices', component: () => import('pages/InvoicesPage.vue') },
|
|
{ path: 'invoices/:name', name: 'invoice-detail', component: () => import('pages/InvoiceDetailPage.vue') },
|
|
{ path: 'tickets', name: 'tickets', component: () => import('pages/TicketsPage.vue') },
|
|
{ path: 'tickets/:name', name: 'ticket-detail', component: () => import('pages/TicketDetailPage.vue') },
|
|
{ path: 'messages', name: 'messages', component: () => import('pages/MessagesPage.vue') },
|
|
{ path: 'me', name: 'account', component: () => import('pages/AccountPage.vue') },
|
|
{ path: 'catalogue', name: 'catalog', component: () => import('pages/CatalogPage.vue') },
|
|
{ path: 'panier', name: 'cart', component: () => import('pages/CartPage.vue') },
|
|
{ path: 'commande/confirmation', name: 'order-success', component: () => import('pages/OrderSuccessPage.vue') },
|
|
],
|
|
},
|
|
]
|
|
|
|
export default createRouter({
|
|
history: createWebHashHistory(process.env.VUE_ROUTER_BASE),
|
|
routes,
|
|
})
|