|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <link rel="icon" type="image/svg+xml" href="/favicon.png" /> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 | + <title>ZWA2 - Device Toolbox</title> |
| 8 | + <script type="module" src="../src/pages/zwa2-install-poe.ts"></script> |
| 9 | + <script type="module" src="../src/components/app-header.ts"></script> |
| 10 | + <script |
| 11 | + type="module" |
| 12 | + src="../src/components/troubleshooting-poe.ts" |
| 13 | + ></script> |
| 14 | + <script type="module" src="../src/utils/dark-mode.ts"></script> |
| 15 | + <script |
| 16 | + type="module" |
| 17 | + src="https://home-assistant.github.io/zwa2-toolbox/standalone/install-esp-bridge-firmware.js" |
| 18 | + ></script> |
| 19 | + <link |
| 20 | + rel="stylesheet" |
| 21 | + href="https://early.webawesome.com/webawesome@3.0.0-beta.6/dist/styles/webawesome.css" |
| 22 | + /> |
| 23 | + <style> |
| 24 | + @import url('../src/styles/shoelace.css'); |
| 25 | + @import url('../src/styles/theme.css'); |
| 26 | + body { |
| 27 | + margin: 0; |
| 28 | + font-family: |
| 29 | + -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
| 30 | + --color-blue-600: #03a9f4; |
| 31 | + --color-blue-500: #0288d1; |
| 32 | + } |
| 33 | + .installer-wrapper { |
| 34 | + max-width: 1200px; |
| 35 | + margin: 0 auto; |
| 36 | + } |
| 37 | + |
| 38 | + .installer-card { |
| 39 | + background: var(--app-bg-card); |
| 40 | + border-radius: 16px; |
| 41 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| 42 | + margin: 20px 0; |
| 43 | + } |
| 44 | + |
| 45 | + .installer-card install-esphome-firmware { |
| 46 | + width: 100%; |
| 47 | + border: none; |
| 48 | + min-height: 600px; |
| 49 | + border-radius: 16px; |
| 50 | + } |
| 51 | + |
| 52 | + warning-card::part(container) { |
| 53 | + margin: 10px 20px 20px; |
| 54 | + } |
| 55 | + |
| 56 | + install-esphome-firmware .min-h-screen { |
| 57 | + min-height: auto !important; |
| 58 | + } |
| 59 | + |
| 60 | + a { |
| 61 | + color: #03a9f4; |
| 62 | + text-decoration: none; |
| 63 | + } |
| 64 | + |
| 65 | + a:hover { |
| 66 | + text-decoration: underline; |
| 67 | + } |
| 68 | + |
| 69 | + @media (max-width: 1200px) { |
| 70 | + .installer-wrapper { |
| 71 | + padding: 0 20px; |
| 72 | + } |
| 73 | + } |
| 74 | + </style> |
| 75 | + </head> |
| 76 | + <body class="wa-palette-shoelace wa-theme-shoelace"> |
| 77 | + <app-header></app-header> |
| 78 | + <zwa2-install-poe></zwa2-install-poe> |
| 79 | + <div class="installer-wrapper" id="installer-container"> |
| 80 | + <div class="installer-card" id="installer"> |
| 81 | + <install-esp-bridge-firmware |
| 82 | + manifest="https://firmware.esphome.io/ha-connect-zwa-2/home-assistant-zwa-2-poe/manifest.json" |
| 83 | + device_name="Waveshare PoE" |
| 84 | + serialport_label="W4v3" |
| 85 | + ></install-esp-bridge-firmware> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + <script type="module"> |
| 89 | + import '../src/components/warning-card.js'; |
| 90 | + import { isSerialUnavailable } from '../src/utils/const.ts'; |
| 91 | + |
| 92 | + if (isSerialUnavailable) { |
| 93 | + const installerContainer = document.getElementById( |
| 94 | + 'installer-container' |
| 95 | + ); |
| 96 | + installerContainer.className = ''; |
| 97 | + installerContainer.innerHTML = ''; |
| 98 | + |
| 99 | + const warningCard = document.createElement('warning-card'); |
| 100 | + installerContainer.appendChild(warningCard); |
| 101 | + } |
| 102 | + </script> |
| 103 | + <troubleshooting-poe></troubleshooting-poe> |
| 104 | + </body> |
| 105 | +</html> |
0 commit comments