refactor(dashboard,history): replace ViewModels with Pinia stores and improve backend

This commit is contained in:
2026-08-05 09:23:18 +02:00
parent a0387126de
commit 90930cd223
29 changed files with 1372 additions and 237 deletions
+3
View File
@@ -1,10 +1,12 @@
import { createInertiaApp } from '@inertiajs/vue3';
import I18NextVue from 'i18next-vue';
import { createPinia } from 'pinia';
import type { DefineComponent } from 'vue';
import i18next from './lang/init';
import Layout from './layouts/Layout.vue';
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
const pinia = createPinia();
createInertiaApp({
title: (title) => (title ? `${title} - ${appName}` : appName),
@@ -33,6 +35,7 @@ createInertiaApp({
return pages[`./pages/${name}.vue`];
},
withApp(app, options) {
app.use(pinia);
app.use(I18NextVue, {
i18next,
...options,