This commit is contained in:
punkfairie 2025-02-23 11:12:12 -08:00
parent 16eeeda5e9
commit c125e428be
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
7 changed files with 27 additions and 23 deletions

View file

@ -6,7 +6,7 @@
"dev": "vite" "dev": "vite"
}, },
"browserslist": [ "browserslist": [
"since 1995" "since 2000"
], ],
"devDependencies": { "devDependencies": {
"@tailwindcss/forms": "^0.5.2", "@tailwindcss/forms": "^0.5.2",

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

View file

@ -1,9 +1,7 @@
import './bootstrap'; import './bootstrap';
import Alpine from 'alpinejs'; import Alpine from 'alpinejs';
import.meta.glob([ import.meta.glob(['../images/**']);
'../images/**'
])
window.Alpine = Alpine; window.Alpine = Alpine;

View file

@ -10,4 +10,7 @@
<!-- Scripts --> <!-- Scripts -->
@vite(['resources/css/app.css', 'resources/js/app.js']) @vite(['resources/css/app.css', 'resources/js/app.js'])
<!-- polyfills -->
<script src="//polyfill.io/v3/polyfill.min.js?flags=gated&features=default,es5,es6,es7,matchMedia,IntersectionObserver,ResizeObserver,NodeList.prototype.forEach,HTMLTemplateElement,Element.prototype.closest,requestAnimationFrame,CustomEvent,URLSearchParams,queueMicrotask"></script>
</head> </head>

View file

@ -1,13 +1,3 @@
{{-- <nav> --}}
{{-- <!-- Primary Navigation Menu --> --}}
{{-- <div> --}}
{{-- <!-- Logo --> --}}
{{-- <a href="/" class="button">Home</a> --}}
{{-- <div class="py-2"> --}}
{{-- @auth --}}
{{-- <a class="button" href="{{ route('admin') }}">Admin</a> --}}
{{-- <!-- Profile --> --}} {{-- <!-- Profile --> --}}
{{-- <a class="button" href="{{ route('profile.edit') }}"> --}} {{-- <a class="button" href="{{ route('profile.edit') }}"> --}}
{{-- {{ Auth::user()->name }} --}} {{-- {{ Auth::user()->name }} --}}
@ -21,14 +11,6 @@
{{-- > --}} {{-- > --}}
{{-- @csrf --}} {{-- @csrf --}}
{{-- <button>Log Out</button> --}}
{{-- </form> --}}
{{-- @else --}}
{{-- <a href="{{ route('login') }}">Login</a> --}}
{{-- @endauth --}}
{{-- </div> --}}
{{-- </div> --}}
{{-- </nav> --}}
<div x-data="{ open: false }"> <div x-data="{ open: false }">
<nav <nav
class="window" class="window"
@ -55,7 +37,21 @@ class="window"
<hr /> <hr />
@auth @auth
<a href="{{ route('admin') }}">Admin</a> <a href="{{ route('admin') }}">
<img
src="{{ Vite::asset('resources/images/startmenu/cpanel.png') }}"
alt="control panel"
/>
Admin
</a>
<a href="{{ route('profile.edit') }}">
<img
src="{{ Vite::asset('resources/images/startmenu/userskey.png') }}"
alt="users with key"
/>
Profile
</a>
<hr /> <hr />

View file

@ -1,5 +1,6 @@
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin'; import laravel from 'laravel-vite-plugin';
import legacy from '@vitejs/plugin-legacy';
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
@ -7,7 +8,13 @@ export default defineConfig({
input: ['resources/css/app.css', 'resources/js/app.js'], input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true, refresh: true,
}), }),
legacy({
targets: ['since 2000'],
}),
], ],
build: {
target: 'es2015',
},
server: { server: {
hmr: { hmr: {
host: '10.0.1.105', host: '10.0.1.105',