Skip to content

Commit

Permalink
Adding updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed May 5, 2024
1 parent 6a952a2 commit 589f861
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="relative w-full rounded-lg border border-transparent bg-yellow-500 p-4 [&amp;>svg]:absolute [&amp;>svg]:text-foreground [&amp;>svg]:left-4 [&amp;>svg]:top-4 [&amp;>svg+div]:translate-y-[-3px] [&amp;:has(svg)]:pl-11 text-white">
<svg class="w-5 h-5 -translate-y-0.5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"></path></svg>
<h5 class="mb-1 font-medium tracking-tight leading-none">Auth configurations have not been published</h5>
<div class="text-sm opacity-80">This is the subtext for your alert message, providing important information or instructions.</div>
</div>
7 changes: 4 additions & 3 deletions resources/views/livewire/setup/background.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class="max-w-xl">
<div class="pb-5 mb-5 border-b border-zinc-200">
<div class="pb-3 w-full">
<label class="block text-sm font-medium leading-6 text-gray-900">Background Image</label>
<p class="text-sm leading-6 text-gray-400">The background image will be positioned behind the background color element.</p>
<p class="text-sm leading-6 text-gray-400">Choose a nice background image to use as your authentication background.</p>
</div>
<div class="w-full h-auto">
@if(isset($image) && $image != '')
Expand Down Expand Up @@ -48,6 +48,7 @@ class="max-w-xl">
<div class="pb-5 mb-5 border-b border-zinc-200">
<div class="pb-3 w-full">
<label class="block text-sm font-medium leading-6 text-gray-900">Image Overlay Color</label>
<p class="text-sm leading-6 text-gray-400">If you use a background image you can specify a color overlay here.</p>
</div>
<div class="w-full h-auto">
<input type="color" value="#000000" wire:model.live="image_overlay_color" />
Expand All @@ -56,8 +57,8 @@ class="max-w-xl">

<div class="pb-5 mb-5 border-b border-zinc-200">
<div class="pb-3 w-full">
<label class="block text-sm font-medium leading-6 text-gray-900">Background Color Opacity</label>
<p class="text-sm leading-6 text-gray-400">You'll want to set the opacity to less than 100% if you include an image.</p>
<label class="block text-sm font-medium leading-6 text-gray-900">Image Overlay Opacity</label>
<p class="text-sm leading-6 text-gray-400">The opacity of the image overlay color. Set to 0 for no overlay</p>
</div>
<div class="w-full h-auto">
<p class="font-bold" x-text="image_overlay_opacity + '%'"></p>
Expand Down
1 change: 1 addition & 0 deletions resources/views/pages/auth/setup/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

@volt('auth.setup')
<section class="px-4 py-14 mx-auto max-w-screen-lg">
<x-auth::setup.config-notification />
<div class="mb-10">
<h2 class="mb-2 text-2xl font-bold text-left">Authentication Setup</h2>
<p class="text-sm text-left text-gray-600">Welcome to your authentication setup. Below you will find sections to help you configure and customize the auth in your application.</p>
Expand Down
10 changes: 10 additions & 0 deletions tests/Datasets/Urls.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

dataset('urls', [
'/auth/login',
'/auth/register',
'/auth/verify',
'/auth/password/reset',
'/auth/password/confirm',
'/auth/password/SomeReallyLongtoken'
]);
13 changes: 0 additions & 13 deletions tests/Feature/ExampleTest.php

This file was deleted.

17 changes: 17 additions & 0 deletions tests/Feature/UrlTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

// uses(\Illuminate\Support\Facades\Artisan::class);

beforeAll(function () {
// \Artisan::call('view:clear');
// echo 'what cool!';
});

// beforeEach(function () {
// echo 'ww';
// });


test('that authentication URLs return a 200', function ($url) {
$this->get($url)->assertOK();
})->with('urls');
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

uses(
Tests\TestCase::class,
Tests\TestCase::class
// Illuminate\Foundation\Testing\RefreshDatabase::class,
)->in('Feature');

Expand Down
8 changes: 7 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
namespace Tests;

use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Illuminate\Support\Facades\Artisan;

abstract class TestCase extends BaseTestCase
{
//
protected function setUp(): void
{
parent::setUp();
Artisan::call('view:clear');

}
}

0 comments on commit 589f861

Please sign in to comment.