feat(LRL App): init V0

This commit is contained in:
2025-10-22 17:09:48 +02:00
parent d3303fee95
commit 0924da3cda
475 changed files with 44862 additions and 7 deletions

21
resources/js/app.jsx Normal file
View File

@@ -0,0 +1,21 @@
import './bootstrap';
import '../css/app.css';
import { createRoot } from "react-dom/client";
import { createInertiaApp} from "@inertiajs/react";
import Home from "./Pages/Home";
const appName = import.meta.env.VITE_APP_NAME;
createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: name => {
const pages = import.meta.glob('./Pages/**/*.jsx', {eager: true})
return pages[`./Pages/${name}.jsx`]
},
setup({el, App, props}) {
const root = createRoot(el)
root.render(<App {...props} />)
},
}).then(r =>
console.log(r)
);