From 7abdc362865c8fcf72a53ff32dc1748cf5610c51 Mon Sep 17 00:00:00 2001 From: Valentin Sickert <17144397+Lapotor@users.noreply.github.com> Date: Tue, 12 Dec 2023 02:56:56 +0100 Subject: [PATCH 1/3] chore: remove not used files, add 404 response on `/` Signed-off-by: Valentin Sickert <17144397+Lapotor@users.noreply.github.com> --- resources/{css/app.css => .gitkeep} | 0 resources/js/app.js | 1 - resources/js/bootstrap.js | 32 ------- resources/views/welcome.blade.php | 140 ---------------------------- routes/web.php | 7 +- tests/Feature/ExampleTest.php | 4 +- 6 files changed, 7 insertions(+), 177 deletions(-) rename resources/{css/app.css => .gitkeep} (100%) delete mode 100644 resources/js/app.js delete mode 100644 resources/js/bootstrap.js delete mode 100644 resources/views/welcome.blade.php diff --git a/resources/css/app.css b/resources/.gitkeep similarity index 100% rename from resources/css/app.css rename to resources/.gitkeep 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/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 - -
-
- - - -
- - - -
- - -
- Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) -
-
-
-
- - diff --git a/routes/web.php b/routes/web.php index d259f33e..2e7b0a60 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,6 +1,9 @@ get('/'); - $response->assertStatus(200); + $response->assertStatus(404); } } From b9eb270c59d4257347b2889e572e4cab1340dada Mon Sep 17 00:00:00 2001 From: Valentin Sickert <17144397+Lapotor@users.noreply.github.com> Date: Tue, 12 Dec 2023 03:14:01 +0100 Subject: [PATCH 2/3] remove package.json Signed-off-by: Valentin Sickert <17144397+Lapotor@users.noreply.github.com> --- package.json | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 package.json diff --git a/package.json b/package.json deleted file mode 100644 index fcc5b537..00000000 --- a/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "private": true, - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build" - }, - "devDependencies": { - "axios": "1.6.2", - "laravel-vite-plugin": "0.8.1", - "vite": "4.5.1" - } -} From 512cb1e58aff1f0ba1658ab72650ccf06b32d044 Mon Sep 17 00:00:00 2001 From: Valentin Sickert <17144397+Lapotor@users.noreply.github.com> Date: Tue, 12 Dec 2023 03:15:54 +0100 Subject: [PATCH 3/3] remove vite file Signed-off-by: Valentin Sickert <17144397+Lapotor@users.noreply.github.com> --- vite.config.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 vite.config.js 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, - }), - ], -});