feat(dashboard): add price history, caching, and i18n
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { createInertiaApp } from '@inertiajs/vue3';
|
||||
import { DefineComponent } from 'vue';
|
||||
import Layout from './layouts/Layout.vue';
|
||||
import { init } from './lang/init.js';
|
||||
|
||||
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
|
||||
|
||||
@@ -8,6 +10,9 @@ createInertiaApp({
|
||||
progress: {
|
||||
color: '#4B5563',
|
||||
},
|
||||
layout(name, page) {
|
||||
return Layout;
|
||||
},
|
||||
resolve(name) {
|
||||
const pages = import.meta.glob<DefineComponent>(
|
||||
['./features/*/pages/*.vue', './pages/*.vue'],
|
||||
@@ -26,4 +31,7 @@ createInertiaApp({
|
||||
|
||||
return pages[`./pages/${name}.vue`];
|
||||
},
|
||||
async withApp(app, options) {
|
||||
await init;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user