mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-17 00:46:46 +00:00
✨ Add Laravel guidelines, Spanish translations, and configuration updates
- 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.
This commit is contained in:
@@ -13,6 +13,23 @@
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user