From 5fd59c5b05fa5759c2e8f320453a2b01f6c08f65 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 26 Oct 2024 14:04:34 +0100 Subject: [PATCH] Cachet doesn't need assets --- resources/js/app.js | 1 - resources/js/bootstrap.js | 32 ----- resources/{css/app.css => views/.gitkeep} | 0 resources/views/welcome.blade.php | 140 ---------------------- storage/pail/.gitignore | 2 + vite.config.js | 11 -- 6 files changed, 2 insertions(+), 184 deletions(-) delete mode 100644 resources/js/app.js delete mode 100644 resources/js/bootstrap.js rename resources/{css/app.css => views/.gitkeep} (100%) delete mode 100644 resources/views/welcome.blade.php create mode 100644 storage/pail/.gitignore delete mode 100644 vite.config.js diff --git a/resources/js/app.js b/resources/js/app.js deleted file mode 100644 index e59d6a0a..00000000 --- a/resources/js/app.js +++ /dev/null @@ -1 +0,0 @@ -import './bootstrap'; diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js deleted file mode 100644 index 846d3505..00000000 --- a/resources/js/bootstrap.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * We'll load the axios HTTP library which allows us to easily issue requests - * to our Laravel back-end. This library automatically handles sending the - * CSRF token as a header based on the value of the "XSRF" token cookie. - */ - -import axios from 'axios'; -window.axios = axios; - -window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; - -/** - * Echo exposes an expressive API for subscribing to channels and listening - * for events that are broadcast by Laravel. Echo and event broadcasting - * allows your team to easily build robust real-time web applications. - */ - -// import Echo from 'laravel-echo'; - -// import Pusher from 'pusher-js'; -// window.Pusher = Pusher; - -// window.Echo = new Echo({ -// broadcaster: 'pusher', -// key: import.meta.env.VITE_PUSHER_APP_KEY, -// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', -// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, -// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, -// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, -// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', -// enabledTransports: ['ws', 'wss'], -// }); diff --git a/resources/css/app.css b/resources/views/.gitkeep similarity index 100% rename from resources/css/app.css rename to resources/views/.gitkeep diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php deleted file mode 100644 index 638ec960..00000000 --- a/resources/views/welcome.blade.php +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - - Laravel - - - - - - - - - -
- @if (Route::has('login')) -
- @auth - Home - @else - Log in - - @if (Route::has('register')) - Register - @endif - @endauth -
- @endif - - -
- - diff --git a/storage/pail/.gitignore b/storage/pail/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/storage/pail/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/vite.config.js b/vite.config.js deleted file mode 100644 index 421b5695..00000000 --- a/vite.config.js +++ /dev/null @@ -1,11 +0,0 @@ -import { defineConfig } from 'vite'; -import laravel from 'laravel-vite-plugin'; - -export default defineConfig({ - plugins: [ - laravel({ - input: ['resources/css/app.css', 'resources/js/app.js'], - refresh: true, - }), - ], -});