Save workspace changes

This commit is contained in:
2026-04-18 17:02:56 +02:00
parent f02ea9a711
commit 87d60af5a9
4220 changed files with 1388603 additions and 1554 deletions

View File

@@ -0,0 +1,28 @@
import './bootstrap'
import React from 'react'
import { createRoot } from 'react-dom/client'
import { createInertiaApp } from '@inertiajs/react'
const pages = import.meta.glob([
'./Pages/Studio/**/*.jsx',
'!./Pages/Studio/**/__tests__/**',
'!./Pages/Studio/**/*.test.jsx',
])
function resolvePage(name) {
const path = `./Pages/${name}.jsx`
const page = pages[path]
if (!page) {
throw new Error(`Unknown studio page: ${path}`)
}
return page().then((module) => module.default)
}
createInertiaApp({
resolve: resolvePage,
setup({ el, App, props }) {
const root = createRoot(el)
root.render(<App {...props} />)
},
})