read.markets/app/static/js
Giorgio Gilestro f4d9c9f2ec settings: extract sync + import widget JS to static files
The two largest inline <script> blocks in settings.html — the cloud
sync modal/management UI (~145 lines) and the import widget wiring
(~245 lines) — moved to app/static/js/settings-sync.js and
settings-import.js respectively, included via <script src="..."
defer> at the bottom of the template.

Where the inline code referenced Jinja vars or {% if %} guards,
those values are now passed via data-* attributes on the relevant
DOM elements (or via window.cassandra* config objects for structured
data) and read in the static JS.

Smaller blocks (Stripe portal, digest prefs, language select,
invite copy) stay inline — each <40 lines and easier to follow
next to their markup. settings.html drops from 758 lines to roughly
half that.
2026-05-27 20:55:49 +02:00
..
chat.js ui: fix chat pending class, invented CSS vars, .pf-secondary scope 2026-05-27 19:19:42 +02:00
htmx.min.js initial commit — cassandra v0.1 2026-05-15 21:56:10 +01:00
portfolio-sync.js sync: detect orphaned blobs (pepper rotation) + fix AESGCM arg order 2026-05-25 12:49:11 +02:00
portfolio.js css: drop dead selectors (.app-footer, #submit-btn, .form-row, .pf-restore) 2026-05-27 19:22:35 +02:00
portfolio_edit.js portfolio-edit: form is edit-mode only; submit becomes a + glyph 2026-05-27 15:22:13 +02:00
settings-import.js settings: extract sync + import widget JS to static files 2026-05-27 20:55:49 +02:00
settings-sync.js settings: extract sync + import widget JS to static files 2026-05-27 20:55:49 +02:00