build: initialize RetroHub with Laravel, Inertia, Vue, and Horizon
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title inertia>{{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
|
||||
|
||||
<!-- Scripts -->
|
||||
@routes
|
||||
@php
|
||||
$component = $page['component'];
|
||||
if (str_contains($component, '/')) {
|
||||
$feature = \Illuminate\Support\Str::beforeLast($component, '/');
|
||||
$pageName = \Illuminate\Support\Str::afterLast($component, '/');
|
||||
$vuePath = $feature === 'Pages'
|
||||
? "resources/js/Features/Pages/{$pageName}.vue"
|
||||
: "resources/js/Features/{$feature}/Pages/{$pageName}.vue";
|
||||
} else {
|
||||
$vuePath = "resources/js/Features/{$component}.vue";
|
||||
}
|
||||
@endphp
|
||||
@vite(['resources/js/app.ts', $vuePath])
|
||||
@inertiaHead
|
||||
</head>
|
||||
<body class="font-sans antialiased">
|
||||
@inertia
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user