mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-13 23:56:47 +00:00
- Added Laravel Boost Guidelines for structured development practices. - Introduced Spanish translations for `auth`, `passwords`, and additional JSON keys. - Configured markdown highlighting with Shiki in `config/markdown.php`. - Updated sidebar layout for improved interactivity and styling. - Enhanced user feedback with a copy-to-clipboard directive and toast notifications in Flux.
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
|
|
<head>
|
|
@include('partials.head')
|
|
</head>
|
|
<body class="min-h-screen bg-white antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
|
|
<flux:toast.group>
|
|
<flux:toast/>
|
|
</flux:toast.group>
|
|
{{ $slot }}
|
|
@fluxScripts
|
|
<script>
|
|
if (!localStorage.getItem('flux.appearance')) {
|
|
localStorage.setItem('flux.appearance', 'dark');
|
|
}
|
|
document.addEventListener('alpine:init', () => {
|
|
Alpine.directive('copy-to-clipboard', (el, {expression}, {evaluate}) => {
|
|
el.addEventListener('click', () => {
|
|
const text = evaluate(expression);
|
|
console.log(text);
|
|
|
|
navigator.clipboard.writeText(text).then(() => {
|
|
Flux.toast({
|
|
heading: '{{ __('Success!') }}',
|
|
text: '{{ __('Copied into clipboard') }}',
|
|
variant: 'success',
|
|
duration: 3000
|
|
});
|
|
}).catch(err => console.error(err));
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|