From f6fc423d489bb65235c0fa964e216a5a66316e58 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Thu, 18 Dec 2025 18:53:11 -0300 Subject: [PATCH] chore: remove Alpine.js references - Delete alpinejs.min.js from ui/suite/js/vendor/ - Delete alpinejs.min.js from ui/minimal/js/vendor/ - Remove script tag from default.gbui - Remove [x-cloak] CSS rule from global.css - Update PROMPT.md to remove Alpine.js documentation --- PROMPT.md | 6 ++---- ui/minimal/js/vendor/alpinejs.min.js | 5 ----- ui/suite/css/global.css | 4 ---- ui/suite/default.gbui | 1 - ui/suite/js/vendor/alpinejs.min.js | 5 ----- 5 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 ui/minimal/js/vendor/alpinejs.min.js delete mode 100644 ui/suite/js/vendor/alpinejs.min.js diff --git a/PROMPT.md b/PROMPT.md index 52f3d15..5e980ec 100644 --- a/PROMPT.md +++ b/PROMPT.md @@ -30,7 +30,7 @@ 4. **Frontend Asset Updates** ```bash # Check vendor libs in ui/suite/js/vendor/ - # Compare with latest versions of htmx, alpine, etc. + # Compare with latest versions of htmx, gsap, etc. ``` ### Packages to Watch @@ -39,7 +39,6 @@ |------|-------------------|---------| | HTTP Client | `reqwest` | Consolidate HTTP handling | | Templates | `askama` | Efficient HTML templates | -| State Mgmt | `alpine.js` | Minimal JS reactivity | | Animations | `gsap` | Replace CSS animations | --- @@ -198,7 +197,7 @@ botbook/ # Documentation ``` - Keep it minimal - one function per concern - No frameworks (React, Vue, etc.) - vanilla JS only -- Use vendor libs sparingly (htmx, marked, gsap, alpine) +- Use vendor libs sparingly (htmx, marked, gsap) - All JS must work with HTMX lifecycle (htmx:afterSwap, etc.) - Prefer CSS for animations when possible ``` @@ -214,7 +213,6 @@ ui/suite/js/vendor/ ├── htmx-json-enc.js # JSON encoding ├── marked.min.js # Markdown parser ├── gsap.min.js # Animation (minimal use) -├── alpinejs.min.js # Alpine.js (minimal use) └── livekit-client.umd.min.js # LiveKit video ui/minimal/js/vendor/ diff --git a/ui/minimal/js/vendor/alpinejs.min.js b/ui/minimal/js/vendor/alpinejs.min.js deleted file mode 100644 index af7df64..0000000 --- a/ui/minimal/js/vendor/alpinejs.min.js +++ /dev/null @@ -1,5 +0,0 @@ -(()=>{var tt=!1,rt=!1,V=[],nt=-1;function Vt(e){Sn(e)}function Sn(e){V.includes(e)||V.push(e),An()}function Ee(e){let t=V.indexOf(e);t!==-1&&t>nt&&V.splice(t,1)}function An(){!rt&&!tt&&(tt=!0,queueMicrotask(On))}function On(){tt=!1,rt=!0;for(let e=0;ee.effect(t,{scheduler:r=>{it?Vt(r):r()}}),ot=e.raw}function st(e){k=e}function Wt(e){let t=()=>{};return[n=>{let i=k(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),$(i))},i},()=>{t()}]}function q(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function O(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>O(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)O(n,t,!1),n=n.nextElementSibling}function v(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Gt=!1;function Jt(){Gt&&v("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Gt=!0,document.body||v("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's ` - diff --git a/ui/suite/js/vendor/alpinejs.min.js b/ui/suite/js/vendor/alpinejs.min.js deleted file mode 100644 index af7df64..0000000 --- a/ui/suite/js/vendor/alpinejs.min.js +++ /dev/null @@ -1,5 +0,0 @@ -(()=>{var tt=!1,rt=!1,V=[],nt=-1;function Vt(e){Sn(e)}function Sn(e){V.includes(e)||V.push(e),An()}function Ee(e){let t=V.indexOf(e);t!==-1&&t>nt&&V.splice(t,1)}function An(){!rt&&!tt&&(tt=!0,queueMicrotask(On))}function On(){tt=!1,rt=!0;for(let e=0;ee.effect(t,{scheduler:r=>{it?Vt(r):r()}}),ot=e.raw}function st(e){k=e}function Wt(e){let t=()=>{};return[n=>{let i=k(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),$(i))},i},()=>{t()}]}function q(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function O(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>O(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)O(n,t,!1),n=n.nextElementSibling}function v(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Gt=!1;function Jt(){Gt&&v("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Gt=!0,document.body||v("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `