Sha256: 307bfca54815c6ec2e317dc548982bdef16e81d278effd3de24269b52cad58f2
Contents?: true
Size: 974 Bytes
Versions: 2
Compression:
Stored size: 974 Bytes
Contents
import { createInertiaApp } from '@inertiajs/vue3' import { createApp, h } from 'vue' createInertiaApp({ // Set default page title // see https://inertia-rails.netlify.app/guide/title-and-meta // // title: title => title ? `${title} - App` : 'App', // Disable progress bar // // see https://inertia-rails.netlify.app/guide/progress-indicators // progress: false, resolve: (name) => { const pages = import.meta.glob('../pages/**/*.vue', { eager: true }) return pages[`../pages/${name}.vue`] // To use a default layout, import the Layout component // and use the following lines. // see https://inertia-rails.netlify.app/guide/pages#default-layouts // // const page = pages[`./pages/${name}.vue`] // page.default.layout ||= (page) => createElement(Layout, null, page) // return page }, setup({ el, App, props, plugin }) { createApp({ render: () => h(App, props) }) .use(plugin) .mount(el) }, })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inertia_rails-contrib-0.1.1 | lib/generators/inertia/install/templates/vue/inertia.js |
inertia_rails-contrib-0.1.0 | lib/generators/inertia/install/templates/vue/inertia.js |