mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-11 02:50:29 +00:00
4c81e20529
Adds a "API Tokens" settings page so an authenticated user can create and revoke Sanctum personal access tokens for the new authenticated write endpoints — using the official Sanctum API ($user->createToken() / tokens()). - New Volt component settings/api-tokens (create token, one-time plain-text reveal with copy-to-clipboard, list + revoke own tokens). - Registered route settings.api-tokens (country-prefixed, auth group) and added a nav entry in the settings layout. - SEO definition for the new page. - Pest feature tests (create/reveal-once, validation, revoke, ownership scoping) and a Pest browser screenshot test.
22 lines
1.2 KiB
PHP
22 lines
1.2 KiB
PHP
<div class="flex items-start max-md:flex-col">
|
|
<div class="me-10 w-full pb-4 md:w-[220px]">
|
|
<flux:navlist>
|
|
<flux:navlist.item :href="route('settings.profile', ['country' => str(session('lang_country', 'de'))->after('-')->lower()])" wire:navigate>{{ __('Profile') }}</flux:navlist.item>
|
|
{{--<flux:navlist.item :href="route('settings.password')" wire:navigate>{{ __('Password') }}</flux:navlist.item>--}}
|
|
<flux:navlist.item :href="route('settings.appearance', ['country' => str(session('lang_country', 'de'))->after('-')->lower()])" wire:navigate>{{ __('Appearance') }}</flux:navlist.item>
|
|
<flux:navlist.item :href="route('settings.api-tokens', ['country' => str(session('lang_country', 'de'))->after('-')->lower()])" wire:navigate>{{ __('API Tokens') }}</flux:navlist.item>
|
|
</flux:navlist>
|
|
</div>
|
|
|
|
<flux:separator class="md:hidden" />
|
|
|
|
<div class="flex-1 self-stretch max-md:pt-6">
|
|
<flux:heading>{{ $heading ?? '' }}</flux:heading>
|
|
<flux:subheading>{{ $subheading ?? '' }}</flux:subheading>
|
|
|
|
<div class="mt-5 w-full max-w-lg">
|
|
{{ $slot }}
|
|
</div>
|
|
</div>
|
|
</div>
|