Commit workspace changes

This commit is contained in:
2026-04-05 19:42:33 +02:00
parent 148a3bbe43
commit 08ad757bcb
312 changed files with 35149 additions and 399 deletions

View File

@@ -2,36 +2,25 @@ import './bootstrap'
import React from 'react'
import { createRoot } from 'react-dom/client'
import { createInertiaApp } from '@inertiajs/react'
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'
import CollectionStaffSurfaces from './Pages/Collection/CollectionStaffSurfaces'
import CollectionStaffProgramming from './Pages/Collection/CollectionStaffProgramming'
import CollectionDashboard from './Pages/Collection/CollectionDashboard'
import CollectionAnalytics from './Pages/Collection/CollectionAnalytics'
import CollectionHistory from './Pages/Collection/CollectionHistory'
import NovaCardsAdminIndex from './Pages/Collection/NovaCardsAdminIndex'
import NovaCardsTemplateAdmin from './Pages/Collection/NovaCardsTemplateAdmin'
const pages = {
'Collection/CollectionShow': CollectionShow,
'Collection/CollectionSeriesShow': CollectionSeriesShow,
'Collection/CollectionManage': CollectionManage,
'Collection/CollectionFeaturedIndex': CollectionFeaturedIndex,
'Collection/SavedCollections': SavedCollections,
'Collection/CollectionStaffSurfaces': CollectionStaffSurfaces,
'Collection/CollectionStaffProgramming': CollectionStaffProgramming,
'Collection/CollectionDashboard': CollectionDashboard,
'Collection/CollectionAnalytics': CollectionAnalytics,
'Collection/CollectionHistory': CollectionHistory,
'Collection/NovaCardsAdminIndex': NovaCardsAdminIndex,
'Collection/NovaCardsTemplateAdmin': NovaCardsTemplateAdmin,
...import.meta.glob('./Pages/Help/**/*.jsx'),
...import.meta.glob('./Pages/Collection/**/*.jsx'),
...import.meta.glob('./Pages/Group/**/*.jsx'),
}
function resolvePage(name) {
const path = `./Pages/${name}.jsx`
const page = pages[path]
if (!page) {
throw new Error(`Unknown collections page: ${path}`)
}
return page().then((module) => module.default)
}
createInertiaApp({
resolve: (name) => pages[name],
resolve: resolvePage,
setup({ el, App, props }) {
const root = createRoot(el)
root.render(<App {...props} />)