mirror of
				https://github.com/anna-sara/filament_inventory
				synced 2025-10-27 06:17:13 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			672 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			672 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import '../css/app.css';
 | |
| import './bootstrap';
 | |
| 
 | |
| import { createInertiaApp } from '@inertiajs/react';
 | |
| import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
 | |
| import { createRoot } from 'react-dom/client';
 | |
| 
 | |
| const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
 | |
| 
 | |
| createInertiaApp({
 | |
|     title: (title) => `${title} - ${appName}`,
 | |
|     resolve: (name) =>
 | |
|         resolvePageComponent(
 | |
|             `./Pages/${name}.jsx`,
 | |
|             import.meta.glob('./Pages/**/*.jsx'),
 | |
|         ),
 | |
|     setup({ el, App, props }) {
 | |
|         const root = createRoot(el);
 | |
| 
 | |
|         root.render(<App {...props} />);
 | |
|     },
 | |
|     progress: {
 | |
|         color: '#4B5563',
 | |
|     },
 | |
| });
 |