read.markets/app/static
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
..
css css: drop dead selectors (.app-footer, #submit-btn, .form-row, .pf-restore) 2026-05-27 19:22:35 +02:00
images landing: add product screenshots — hero shot, feature thumbnails, lightbox 2026-05-26 00:27:02 +02:00
js settings: extract sync + import widget JS to static files 2026-05-27 20:55:49 +02:00