Commit c618191
feat: serve all web-UI assets locally so the interface works offline
The management page pulled jQuery, jQuery-UI, Bootstrap (JS+CSS), jstree
(+themes), bootstrap-slider, Font Awesome and the Google fonts from public
CDNs. With no/slow internet (every cold boot, AP mode) the browser hung for
~2 minutes on those requests and showed an untranslated, empty page (i18next
itself came from a CDN, so no text appeared).
All of these are now vendored under html/ and served gzipped straight from
flash via the existing WWWData route mechanism, exactly like the locale
files already were. management.html references only local /js, /css,
/fonts, /webfonts and /jstree paths now; accesspoint.html was already
CDN-free. Google fonts (Orbitron/Rajdhani/Share Tech Mono) are self-hosted
as woff2 (latin + latin-ext) with a local @font-face stylesheet.
processHtml.py changes:
- read truly-binary assets (woff2/png/gif) as raw bytes instead of utf-8
(the old code would have crashed on them),
- emit font/woff2 and image/svg+xml MIME types,
- derive header symbol names from the full asset path so files that share a
basename stem across dirs/extensions (bootstrap.*, the two themes'
style.min.css / 32px.png) no longer collide.
Web.cpp: the two direct symbol references updated to the new naming
(management_html_BIN / accesspoint_html_BIN).
Flash usage grows from ~45% to ~56% of the app partition.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 07877f7 commit c618191
36 files changed
Lines changed: 407 additions & 31 deletions
File tree
- html
- css
- fonts
- jstree
- default-dark
- default
- js
- webfonts
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments