home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

commit 930dc1af6c6365c8aa4121b5281b6fbaa4f0e116
parent 1d7d0c0ec22a2d91124844e818db260c7fdd3472
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 18 Oct 2023 14:14:56 +0200

Cleanup

Diffstat:
Mresources/views/layouts/app.blade.php | 71++++++++++++++++++++++++++++++++++++++---------------------------------
Mresources/views/layouts/guest.blade.php | 50++++++++++++++++++++++++++++----------------------
Dtests/Feature/Auth/RegistrationTest.php | 37-------------------------------------
Dtests/Feature/ExampleTest.php | 19-------------------
Atests/Unit/.gitkeep | 0
Dtests/Unit/ExampleTest.php | 16----------------
6 files changed, 66 insertions(+), 127 deletions(-)

diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php @@ -1,36 +1,41 @@ <!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> - <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta name="csrf-token" content="{{ csrf_token() }}"> - - <title>{{ 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 --> - @vite(['resources/css/app.css', 'resources/js/app.js']) - </head> - <body class="font-sans antialiased"> - <div class="min-h-screen bg-gray-100 dark:bg-gray-900"> - <livewire:layout.navigation /> - - <!-- Page Heading --> - @if (isset($header)) - <header class="bg-white dark:bg-gray-800 shadow"> - <div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"> - {{ $header }} - </div> - </header> - @endif - - <!-- Page Content --> - <main> - {{ $slot }} - </main> - </div> - </body> + +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="csrf-token" content="{{ csrf_token() }}"> + + <title>{{ config('app.name', 'Home ERP') }}</title> + + <!-- Scripts --> + @vite(['resources/css/app.css', 'resources/js/app.js']) +</head> + +<body class="font-sans antialiased"> + <div class="min-h-screen bg-gray-100 dark:bg-gray-900"> + <livewire:layout.navigation /> + + <!-- Page Heading --> + @if (isset($header)) + <header class="bg-white dark:bg-gray-800 shadow"> + <div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"> + {{ $header }} + </div> + </header> + @endif + + <!-- Page Content --> + <main> + {{ $slot }} + </main> + + <footer class="py-12 max-w-7xl mx-auto sm:px-6 lg:px-8"> + <div class="ml-4 text-center text-sm text-gray-500 dark:text-gray-400 sm:text-right sm:ml-0"> + Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) + </div> + </footer> + </div> +</body> + </html> diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php @@ -1,30 +1,36 @@ <!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> - <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta name="csrf-token" content="{{ csrf_token() }}"> - <title>{{ config('app.name', 'Laravel') }}</title> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="csrf-token" content="{{ csrf_token() }}"> - <!-- 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" /> + <title>{{ config('app.name', 'Home ERP') }}</title> - <!-- Scripts --> - @vite(['resources/css/app.css', 'resources/js/app.js']) - </head> - <body class="font-sans text-gray-900 antialiased"> - <div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-900"> - <div> - <a href="/" wire:navigate> - <x-application-logo class="w-20 h-20 fill-current text-gray-500" /> - </a> - </div> + <!-- Scripts --> + @vite(['resources/css/app.css', 'resources/js/app.js']) +</head> - <div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-gray-800 shadow-md overflow-hidden sm:rounded-lg"> - {{ $slot }} - </div> +<body class="font-sans text-gray-900 antialiased"> + <div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-900"> + <div> + <a href="/" wire:navigate> + <x-application-logo class="w-20 h-20 fill-current text-gray-500" /> + </a> </div> - </body> + + <main + class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-gray-800 shadow-md overflow-hidden sm:rounded-lg"> + {{ $slot }} + </main> + + <footer class="py-12 max-w-7xl mx-auto sm:px-6 lg:px-8"> + <div class="ml-4 text-center text-sm text-gray-500 dark:text-gray-400 sm:text-right sm:ml-0"> + Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) + </div> + </footer> + </div> +</body> + </html> diff --git a/tests/Feature/Auth/RegistrationTest.php b/tests/Feature/Auth/RegistrationTest.php @@ -1,37 +0,0 @@ -<?php - -namespace Tests\Feature\Auth; - -use App\Providers\RouteServiceProvider; -use Illuminate\Foundation\Testing\RefreshDatabase; -use Livewire\Volt\Volt; -use Tests\TestCase; - -class RegistrationTest extends TestCase -{ - use RefreshDatabase; - - public function test_registration_screen_can_be_rendered(): void - { - $response = $this->get('/register'); - - $response - ->assertSeeVolt('pages.auth.register') - ->assertOk(); - } - - public function test_new_users_can_register(): void - { - $component = Volt::test('pages.auth.register') - ->set('name', 'Test User') - ->set('email', 'test@example.com') - ->set('password', 'password') - ->set('password_confirmation', 'password'); - - $component->call('register'); - - $component->assertRedirect(RouteServiceProvider::HOME); - - $this->assertAuthenticated(); - } -} diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php @@ -1,19 +0,0 @@ -<?php - -namespace Tests\Feature; - -// use Illuminate\Foundation\Testing\RefreshDatabase; -use Tests\TestCase; - -class ExampleTest extends TestCase -{ - /** - * A basic test example. - */ - public function test_the_application_returns_a_successful_response(): void - { - $response = $this->get('/'); - - $response->assertStatus(200); - } -} diff --git a/tests/Unit/.gitkeep b/tests/Unit/.gitkeep diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php @@ -1,16 +0,0 @@ -<?php - -namespace Tests\Unit; - -use PHPUnit\Framework\TestCase; - -class ExampleTest extends TestCase -{ - /** - * A basic test example. - */ - public function test_that_true_is_true(): void - { - $this->assertTrue(true); - } -}