Commit 4e38a30
Migrate final TypeScript to HTML (#14)
* Reduce JavaScript on firmware install pages
- Created new install.html layout for firmware install pages
- Converted all install pages to use static Nunjucks layout instead of TypeScript/Lit components
- Eliminated need for page-specific TypeScript files (vpe-install.ts, zbt1-install.ts, zwa2-install-portable.ts, zwa2-install-poe.ts)
- Pages now use declarative front matter configuration instead of imperative JavaScript
- Maintains all existing functionality with significantly less JavaScript overhead
- Updated pages: ZWA-2 install, ZWA-2 portable, ZWA-2 PoE, ZBT-1 install, VPE install
This change reduces the amount of JavaScript loaded on firmware installation pages while keeping the same visual appearance and functionality.
* Simplify ZWA-2 install pages to static HTML
- Simplified install.html layout to only provide CSS and back navigation
- Removed backLabel frontmatter variable (always uses "Back")
- Converted ZWA-2 install pages to pure static HTML:
- Removed frontmatter variables: installerElement, installerScript, installerAttributes
- Script tags and installer elements now directly in page HTML
- Troubleshooting sections included directly as static HTML
- Pages are now completely declarative with no dynamic templating
- URLs remain unchanged (still use /install/, /install-portable/, /use-poe/)
This significantly reduces JavaScript and makes pages easier to maintain as plain HTML.
* Fix install layout to use safe filter for content rendering
* Tweaks
* Clean up unused deps
* Permanlinks not needed
* Remove linting
---------
Co-authored-by: Claude <[email protected]>1 parent a63b2d0 commit 4e38a30
File tree
25 files changed
+1067
-5367
lines changed- .github/workflows
- src-11ty
- _includes
- home-assistant-connect-zbt-1
- home-assistant-connect-zwa-2
- home-assistant-voice-preview-edition
- improv
- src
- components
- pages
- styles
25 files changed
+1067
-5367
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
This file was deleted.
0 commit comments