-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding updates to pages if auth config is not published
- Loading branch information
Showing
7 changed files
with
146 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
resources/views/components/setup/config-notification.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<div class="relative w-full rounded-lg border border-transparent bg-yellow-500 p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] [&: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 class="relative w-full rounded-lg border border-yellow-300 mb-8 bg-yellow-50 p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-11 text-yellow-600"> | ||
<svg class="absolute 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.5 font-medium tracking-tight leading-none">Auth configurations have not been published</h5> | ||
<div class="text-sm"> | ||
<span class="opacity-80">You need to</span> <a href="https://github.com/thedevdojo/auth#auth-config" target="_blank" class="underline opacity-100 cursor-pointer">publish the authentication configs</a> <span class="opacity-80">in order to change setup configurations.</span> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
use function Laravel\Folio\name; | ||
use Livewire\Volt\Component; | ||
use Livewire\Attributes\Validate; | ||
use Devdojo\Auth\Helper; | ||
use Winter\LaravelConfigWriter\ArrayFile; | ||
name('auth.setup.language'); | ||
new class extends Component | ||
{ | ||
}; | ||
?> | ||
|
||
<x-auth::layouts.setup> | ||
|
||
@volt('auth.setup.language') | ||
<section class="relative px-4 py-5 mx-auto w-full max-w-screen-lg"> | ||
<x-auth::setup.full-screen-loader wire:target="update" /> | ||
<x-auth::setup.heading title="Language" description="Update the text copy on your login, registration, and other authentication pages" /> | ||
<div class="relative w-full"> | ||
@if(!file_exists(base_path('config/devdojo/auth/language.php'))) | ||
<x-auth::setup.config-notification /> | ||
@else | ||
<div class="mt-10"> | ||
addl language stuff here | ||
</div> | ||
@endif | ||
</div> | ||
</section> | ||
@endvolt | ||
|
||
</x-auth::layouts.setup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters