Rebrand Hub+Flux
This commit is contained in:
parent
0a3e52d603
commit
9b47296cea
130 changed files with 9357 additions and 3345 deletions
|
|
@ -15,6 +15,25 @@
|
|||
<link rel="stylesheet" href="{{ asset('vendor/livewire/livewire.css') }}">
|
||||
@fluxAppearance
|
||||
|
||||
{{-- Phase 5 Anti-Flash-Bridge: siehe partials/head.blade.php. Identische
|
||||
Cookie-Logik, damit Controller+Blade Admin-Pages denselben Mechanismus
|
||||
bekommen wie Volt-Pages. --}}
|
||||
<script>
|
||||
(function () {
|
||||
if (typeof window.Flux === 'undefined') return;
|
||||
const writeCookie = () => {
|
||||
const applied = document.documentElement.classList.contains('dark') ? 'dark' : 'light';
|
||||
document.cookie = 'flux_appearance=' + applied + '; path=/; max-age=31536000; SameSite=Lax';
|
||||
};
|
||||
const original = window.Flux.applyAppearance;
|
||||
window.Flux.applyAppearance = function (appearance) {
|
||||
original.call(this, appearance);
|
||||
writeCookie();
|
||||
};
|
||||
writeCookie();
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!-- Debug: Asset-Status -->
|
||||
<script>
|
||||
console.log('Admin Head geladen');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue