feat(dashboard): add price dashboard with Zonneplan integration

This commit is contained in:
2026-08-01 19:53:18 +02:00
parent 49919fef32
commit 1cd905ca4a
29 changed files with 1701 additions and 28 deletions
+19
View File
@@ -1,4 +1,5 @@
import { createInertiaApp } from '@inertiajs/vue3';
import { DefineComponent } from 'vue';
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
@@ -7,4 +8,22 @@ createInertiaApp({
progress: {
color: '#4B5563',
},
resolve(name) {
const pages = import.meta.glob<DefineComponent>(
['./features/*/pages/*.vue', './pages/*.vue'],
{
eager: true,
},
);
if (name.includes('::')) {
const n = name.split('::');
const domain = n[0];
const page = n[1][0].toUpperCase() + n[1].slice(1).toLowerCase();
return pages[`./features/${domain}/pages/${page}.vue`];
}
return pages[`./pages/${name}.vue`];
},
});