PromptVault/resources/js/app.js

19 lines
527 B
JavaScript
Raw Normal View History

2026-10-26 20:12:16 +00:00
import { createInertiaApp } from '@inertiajs/vue3';
import { createApp } from 'vue';
import AppLayout from './Layouts/AppLayout.vue';
createInertiaApp({
id: 'app',
title: (title) => (title ? `${title} · PromptVault` : 'PromptVault'),
layout: AppLayout,
resolve: (name) => {
const pages = import.meta.glob('./Pages/**/*.vue', { eager: true });
return pages[`./Pages/${name}.vue`];
},
setup({ el, App, props, plugin }) {
createApp(App, props).use(plugin).mount(el);
},
});