-
Notifications
You must be signed in to change notification settings - Fork 0
feat!: update module to be compatible with saucebase 2.0 #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e50e67e
feat(auth): implement authentication features including login, regist…
roble 4b04ef0
fix: update translation keys to use namespaced format for auth messages
roble c2570ac
feat(auth): add getNavigationGroupSort method to AuthPlugin
roble edb5c45
feat(auth): add db:seed task to seed the Auth module database
roble 5ab1114
Merge pull request #38 from saucebase-dev/feat/internachi-modular
roble 9633430
feat(auth): restructure authentication module with new Vue components…
roble 6897477
feat: implement react new authentication pages and components includi…
roble f7ebd41
feat(auth): update CLAUDE.md to include frontend dual-framework guide…
roble 487b09d
feat(auth): update test workflow to include support for both Vue and …
roble 5a1bc23
fix(auth): adjust layout styles for AuthCardLayout component
roble 32ed030
refactor(auth): improve code formatting and organization across multi…
roble de4aa4b
Merge pull request #39 from saucebase-dev/feat/fe-multi-framework
roble 44057a6
Potential fix for pull request finding
roble 2d8be00
Potential fix for pull request finding
roble File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,18 @@ | ||
| <?php | ||
|
|
||
| namespace Modules\Auth\Database\Seeders; | ||
|
|
||
| use Illuminate\Database\Seeder; | ||
|
|
||
| class DatabaseSeeder extends Seeder | ||
| { | ||
| public function run(): void | ||
| { | ||
| if (! app()->environment(['local', 'testing'])) { | ||
| return; | ||
| } | ||
|
|
||
| $this->call(AuthDatabaseSeeder::class); | ||
| } | ||
| } | ||
| } | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,55 +1 @@ | ||
| import { useDialog } from '@/composables/useDialog'; | ||
| import { registerGlobalComponent } from '@/lib/globalComponents'; | ||
| import { registerAction, registerIcon } from '@/lib/navigation'; | ||
| import { router } from '@inertiajs/vue3'; | ||
| import { trans } from 'laravel-vue-i18n'; | ||
| import { LogOut } from 'lucide-vue-next'; | ||
| import IconLogOut from '~icons/lucide/log-out'; | ||
| import ImpersonationAlert from './components/ImpersonationAlert.vue'; | ||
|
|
||
| import '../css/style.css'; | ||
|
|
||
| /** | ||
| * Auth module setup | ||
| * Called during app initialization before mounting | ||
| */ | ||
| export function setup() { | ||
| registerIcon('logout', IconLogOut); | ||
| registerAuthActions(); | ||
| registerGlobalComponent('top', ImpersonationAlert); | ||
| } | ||
|
|
||
| /** | ||
| * Register auth-related navigation actions | ||
| */ | ||
| function registerAuthActions() { | ||
| // Logout action | ||
| registerAction('logout', async (event: MouseEvent) => { | ||
| event.preventDefault(); | ||
|
|
||
| const { confirm } = useDialog(); | ||
| if ( | ||
| await confirm({ | ||
| title: trans('Log out'), | ||
| description: trans( | ||
| 'Are you sure you want to log out? You will need to sign in again.', | ||
| ), | ||
| confirmLabel: trans('Log out'), | ||
| cancelLabel: trans('Cancel'), | ||
| variant: 'destructive', | ||
| icon: LogOut, | ||
| align: 'left', | ||
| }) | ||
| ) { | ||
| router.post(route('logout')); | ||
| } | ||
| }); | ||
| } | ||
|
|
||
| /** | ||
| * Auth module after mount logic | ||
| * Called after the app has been mounted | ||
| */ | ||
| export function afterMount() { | ||
| console.debug('Auth module after mount logic executed'); | ||
| } | ||
| export * from './vue/app'; |
This file contains hidden or 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,39 @@ | ||
| import { confirm } from '@/hooks/useDialog'; | ||
| import { registerGlobalComponent } from '@/lib/globalComponents'; | ||
| import { registerAction, registerIcon } from '@/lib/navigation'; | ||
| import { router } from '@inertiajs/react'; | ||
| import '@modules/auth/resources/css/style.css'; | ||
| import { LogOut } from 'lucide-react'; | ||
| import IconLogOut from '~icons/lucide/log-out'; | ||
| import ImpersonationAlert from './components/ImpersonationAlert'; | ||
|
|
||
| export function setup() { | ||
| registerIcon('logout', IconLogOut); | ||
| registerAuthActions(); | ||
| registerGlobalComponent('top', ImpersonationAlert); | ||
| } | ||
|
|
||
| function registerAuthActions() { | ||
| registerAction('logout', async (event: MouseEvent) => { | ||
| event.preventDefault(); | ||
|
|
||
| const confirmed = await confirm({ | ||
| title: 'Log out', | ||
| description: | ||
| 'Are you sure you want to log out? You will need to sign in again.', | ||
| confirmLabel: 'Log out', | ||
| cancelLabel: 'Cancel', | ||
| variant: 'destructive', | ||
| icon: LogOut, | ||
| align: 'left', | ||
| }); | ||
|
|
||
| if (confirmed) { | ||
| router.post(route('logout')); | ||
| } | ||
| }); | ||
| } | ||
|
|
||
| export function afterMount() { | ||
| console.debug('Auth module after mount logic executed'); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.