Sha256: b598e42cfc874e987c7330fd356bca33c2bfb1a25dea94cda2fdcc176aeb5bf1

Contents?: true

Size: 485 Bytes

Versions: 9

Compression:

Stored size: 485 Bytes

Contents

import Vue from 'vue'

import { app, plugin } from '@inertiajs/inertia-vue'
import { InertiaProgress } from '@inertiajs/progress'

document.addEventListener('DOMContentLoaded', () => {
  InertiaProgress.init();
  const el = document.getElementById('app')

  Vue.use(plugin)

  new Vue({
    render: h => h(app, {
      props: {
        initialPage: JSON.parse(el.dataset.page),
        resolveComponent: name => require(`../Pages/${name}`).default,
      },
    }),
  }).$mount(el)
})

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
inertia_rails-3.4.0 lib/generators/inertia_rails/install/vue/inertia.js
inertia_rails-3.3.0 lib/generators/inertia_rails/install/vue/inertia.js
inertiax_rails-2.0.0 lib/generators/inertia_rails/install/vue/inertia.js
inertia_rails-3.2.0 lib/generators/inertia_rails/install/vue/inertia.js
inertia_rails-3.1.4 lib/generators/inertia_rails/install/vue/inertia.js
inertia_rails-3.1.3 lib/generators/inertia_rails/install/vue/inertia.js
inertia_rails-3.1.2 lib/generators/inertia_rails/install/vue/inertia.js
inertia_rails-3.1.1 lib/generators/inertia_rails/install/vue/inertia.js
inertia_rails-3.1.0 lib/generators/inertia_rails/install/vue/inertia.js