You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import './bootstrap';
|
|
|
|
import '../css/app.css';
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import { render } from 'react-dom';
|
|
|
|
import { createInertiaApp } from '@inertiajs/react';
|
|
|
|
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
|
|
|
|
import 'react-toastify/dist/ReactToastify.css'
|
|
|
|
|
|
|
|
const appName = window.document.getElementsByTagName('title')[0]?.innerText || 'Laravel';
|
|
|
|
|
|
|
|
createInertiaApp({
|
|
|
|
title: (title) => `${title} - ${appName}`,
|
|
|
|
resolve: (name) => resolvePageComponent(`./Pages/${name}.jsx`, import.meta.glob('./Pages/**/*.jsx')),
|
|
|
|
setup({ el, App, props }) {
|
|
|
|
return render(<App {...props} />, el);
|
|
|
|
},
|
|
|
|
progress: {
|
|
|
|
color: '#4B5563',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|