feat: migrate Alpine to CSP build, eliminate unsafe-eval from CSP
- Replace alpinejs standard build with @alpinejs/csp v3.15.8 (done in previous session — file already swapped) - Create src/ts/alpine-components.ts: registers tabSwitcher, newRepoForm, and settingsPage components during alpine:init using function references instead of inline expressions — required by CSP build - Add import in app.ts and declare Window.Alpine in musehub.ts - issue_detail.html: x-data="tabSwitcher", method refs (setCliTab etc.), getter refs (showCli/showMcp/showRest, cliClass/mcpClass/restClass) - new_repo.html: collapse x-data to x-data="newRepoForm" (showBranch only); replace Alpine topics widget with TS-managed container + hidden input - new-repo.ts: read topics from #tags-hidden hidden input instead of _x_dataStack (Alpine internal) - settings.html: x-data="settingsPage" with data-initial-section; unroll Jinja nav loop into static links with data-section attrs; replace all inline expressions with method/getter refs (setSection, openArchive, closeArchive, showGeneral, generalNavClass, etc.) - main.py CSP: remove 'unsafe-eval' from script-src
0 comments
muse hub commit comment sha256:e09a52a9e00efe297ae9a18c64380f0ef351ad62685ce5f93c9decf8972e8286 --body "your comment"
No comments yet. Be the first to start the discussion.