added jquery and also fixed fontawsome

This commit is contained in:
Mark Gregory
2026-06-15 15:33:54 +01:00
parent 58e5f2e203
commit 0b2d7225cc
150 changed files with 8507 additions and 168 deletions
+16 -18
View File
@@ -24,7 +24,7 @@
})();
</script>
<body class="min-h-screen bg-white text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
<body class="min-h-screen bg-white font-sans text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
<style>
:root {
--wms-sidebar-width: 288px;
@@ -695,24 +695,11 @@
<div
id="wms-toast-stack"
class="fixed right-4 top-4 z-[9999] flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-3"
class="fixed right-4 top-4 z-[9999] flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-3 font-sans"
aria-live="polite"
aria-atomic="true"
></div>
@persist('toast')
<flux:toast.group>
<flux:toast />
</flux:toast.group>
@endpersist
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script>
window.jQuery = window.jQuery || window.$;
window.$ = window.$ || window.jQuery;
</script>
<script>
window.wmsToast = function (options) {
const stack = document.getElementById('wms-toast-stack');
@@ -745,7 +732,7 @@
const toast = document.createElement('div');
toast.className = [
'wms-toast pointer-events-auto rounded-2xl border px-4 py-3 shadow-2xl backdrop-blur',
'wms-toast pointer-events-auto select-none rounded-2xl border px-4 py-3 font-sans shadow-2xl backdrop-blur',
'transition duration-200 ease-out translate-y-0 opacity-100',
palette[config.type] || palette.info,
].join(' ');
@@ -820,8 +807,19 @@
@endif
}
document.addEventListener('DOMContentLoaded', showSessionToasts);
document.addEventListener('livewire:navigated', showSessionToasts);
let wmsSessionToastsShown = false;
function showSessionToastsOnce() {
if (wmsSessionToastsShown) {
return;
}
wmsSessionToastsShown = true;
showSessionToasts();
}
document.addEventListener('DOMContentLoaded', showSessionToastsOnce);
document.addEventListener('livewire:navigated', showSessionToastsOnce);
</script>
@fluxScripts