Sha256: e303c50c7d0d3e73978cd7e487b4beabb3bfa29a5b612d767a8030bafc16d567

Contents?: true

Size: 372 Bytes

Versions: 9

Compression:

Stored size: 372 Bytes

Contents

import { createInertiaApp } from '@inertiajs/inertia-svelte'
import { InertiaProgress } from '@inertiajs/progress'

document.addEventListener('DOMContentLoaded', () => {
  InertiaProgress.init()

  createInertiaApp({
    id: 'app',
    resolve: name => import(`../Pages/${name}.svelte`),
    setup({ el, App, props }) {
      new App({ target: el, props })
    },
  })
})

Version data entries

9 entries across 9 versions & 2 rubygems

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