mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-16 17:54:06 +00:00
Now that the legacy v1 frontend (commit 064bdf53) is gone, the v2 directory is the only frontend and the v2 suffix is just noise. Renames resources/scripts-v2 to resources/scripts via git mv (so git records the move as renames, preserving blame and log --follow), then bulk-rewrites the 152 files that imported via @v2/... to use @/scripts/... instead. The existing @ alias (resources/) covers the new path with no extra config needed.
Drops the now-unused @v2 alias from vite.config.js and points the laravel-vite-plugin entry at resources/scripts/main.ts. Updates the only blade reference (resources/views/app.blade.php) to match. The package.json test script (eslint ./resources/scripts) automatically targets the right place after the rename without any edit.
Verified: npm run build exits clean and the Vite warning lines now reference resources/scripts/plugins/i18n.ts, confirming every import resolved through the new path. git log --follow on any moved file walks back through its scripts-v2 history.
94 lines
2.3 KiB
TypeScript
94 lines
2.3 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
/**
|
|
* The installation wizard is a multi-step flow rendered inside a single
|
|
* parent view. Individual step views are not routed independently -- they
|
|
* are controlled by the parent Installation component via dynamic
|
|
* components. This route simply mounts the wizard entry point.
|
|
*
|
|
* The individual step views are:
|
|
* 1. RequirementsView
|
|
* 2. PermissionsView
|
|
* 3. DatabaseView
|
|
* 4. DomainView
|
|
* 5. MailView
|
|
* 6. AccountView
|
|
* 7. CompanyView
|
|
* 8. PreferencesView
|
|
*/
|
|
|
|
export const installationRoutes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/installation',
|
|
name: 'installation',
|
|
component: () => import('./views/RequirementsView.vue'),
|
|
meta: {
|
|
title: 'wizard.req.system_req',
|
|
isInstallation: true,
|
|
},
|
|
},
|
|
{
|
|
path: '/installation/permissions',
|
|
name: 'installation.permissions',
|
|
component: () => import('./views/PermissionsView.vue'),
|
|
meta: {
|
|
title: 'wizard.permissions.permissions',
|
|
isInstallation: true,
|
|
},
|
|
},
|
|
{
|
|
path: '/installation/database',
|
|
name: 'installation.database',
|
|
component: () => import('./views/DatabaseView.vue'),
|
|
meta: {
|
|
title: 'wizard.database.database',
|
|
isInstallation: true,
|
|
},
|
|
},
|
|
{
|
|
path: '/installation/domain',
|
|
name: 'installation.domain',
|
|
component: () => import('./views/DomainView.vue'),
|
|
meta: {
|
|
title: 'wizard.verify_domain.title',
|
|
isInstallation: true,
|
|
},
|
|
},
|
|
{
|
|
path: '/installation/mail',
|
|
name: 'installation.mail',
|
|
component: () => import('./views/MailView.vue'),
|
|
meta: {
|
|
title: 'wizard.mail.mail_config',
|
|
isInstallation: true,
|
|
},
|
|
},
|
|
{
|
|
path: '/installation/account',
|
|
name: 'installation.account',
|
|
component: () => import('./views/AccountView.vue'),
|
|
meta: {
|
|
title: 'wizard.account_info',
|
|
isInstallation: true,
|
|
},
|
|
},
|
|
{
|
|
path: '/installation/company',
|
|
name: 'installation.company',
|
|
component: () => import('./views/CompanyView.vue'),
|
|
meta: {
|
|
title: 'wizard.company_info',
|
|
isInstallation: true,
|
|
},
|
|
},
|
|
{
|
|
path: '/installation/preferences',
|
|
name: 'installation.preferences',
|
|
component: () => import('./views/PreferencesView.vue'),
|
|
meta: {
|
|
title: 'wizard.preferences',
|
|
isInstallation: true,
|
|
},
|
|
},
|
|
]
|