Give Proxy Hosts their own empty-state glyph

This commit is contained in:
marvin
2026-09-16 09:13:17 -04:00
parent e39e1c3245
commit b62f27f415
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "site-gateway",
"version": "0.11.101",
"version": "0.11.102",
"private": true,
"description": "Site Gateway: simple self-hosted website publishing, reverse proxying, and automatic HTTPS.",
"type": "module",
+1
View File
@@ -371,6 +371,7 @@ function render() {
const items = state.view === "hosted" ? state.sites : state.proxies;
$("#site-grid").innerHTML = items.map(state.view === "hosted" ? hostedCard : proxyCard).join("");
$("#empty").classList.toggle("hidden", !state.loaded || items.length > 0);
$("#empty .empty-icon").textContent = state.view === "hosted" ? "↗" : "⇌";
$("#empty h2").textContent = state.view === "hosted" ? "Publish your first site" : "Create your first proxy host";
$("#empty p").textContent = state.view === "hosted" ? "Upload a ZIP and optionally connect a domain with automatic HTTPS." : "Connect a domain to another container, application, or LAN service.";
$("#page-title").textContent = state.view === "hosted" ? "Hosted sites" : "Proxy hosts";
+1 -1
View File
@@ -370,6 +370,6 @@
<input id="replace-files" type="file" accept=".zip,.html,text/html,application/zip" hidden>
<div id="toast" class="toast" role="status"></div>
<div id="update-banner" class="update-banner hidden" role="status"><span>A new version of Site Gateway is available.</span><div class="update-banner-actions"><button id="update-banner-refresh" class="button primary">Refresh</button><button id="update-banner-dismiss" class="text-button">Dismiss</button></div></div>
<script src="/app.js?v=0.11.101" defer></script><script src="/features.js?v=0.11.100" defer></script>
<script src="/app.js?v=0.11.102" defer></script><script src="/features.js?v=0.11.100" defer></script>
</body>
</html>