28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
import { mountInertiaRoot } from './bootstrap'
|
|
import React from 'react'
|
|
import { createInertiaApp } from '@inertiajs/react'
|
|
import ProfileShow from './Pages/Profile/ProfileShow'
|
|
import ProfileGallery from './Pages/Profile/ProfileGallery'
|
|
import CollectionShow from './Pages/Collection/CollectionShow'
|
|
import CollectionSeriesShow from './Pages/Collection/CollectionSeriesShow'
|
|
import CollectionManage from './Pages/Collection/CollectionManage'
|
|
import CollectionFeaturedIndex from './Pages/Collection/CollectionFeaturedIndex'
|
|
import SavedCollections from './Pages/Collection/SavedCollections'
|
|
|
|
const pages = {
|
|
'Profile/ProfileShow': ProfileShow,
|
|
'Profile/ProfileGallery': ProfileGallery,
|
|
'Collection/CollectionShow': CollectionShow,
|
|
'Collection/CollectionSeriesShow': CollectionSeriesShow,
|
|
'Collection/CollectionManage': CollectionManage,
|
|
'Collection/CollectionFeaturedIndex': CollectionFeaturedIndex,
|
|
'Collection/SavedCollections': SavedCollections,
|
|
}
|
|
|
|
createInertiaApp({
|
|
resolve: (name) => pages[name],
|
|
setup({ el, App, props }) {
|
|
mountInertiaRoot(el, App, props)
|
|
},
|
|
})
|