cat / goq
clone

turns a linux box into a private steam streaming appliance: plug in, tap your key, play from another computer

Merge pull request #144 from FelineStateMachine/fix/hero-release-note

FelineStateMachine committed 69f5839
fix(website): the hero shows a download button and a link, nothing else
commit
69f58398b0d7f3657d82e4c5d7e6e16cce452142
parent
7ad5cad3939a1ec21c43915db3a28cb8e1aa4cb1
parent
95470b2ccdcf8092a3f7089189624854b554cf1f
author
FelineStateMachine <dami.etoile@gmail.com>
2 files changed, +5 -22
Mwebsite/dither.js23+++--------------------
Mwebsite/index.html4++--
M website/dither.js +3 -20
@@ -380,8 +380,6 @@
380380 "windows-x86": null,381381 };382382 var ARCH_NAMES = { arm: "arm64", x86: "x86_64" };383- var portalManifestStatus = "loading";384- var portalManifestReason = "checking the signed release manifest";385383 386384 function portalBuildFromManifest(manifest) {387385 if (!manifest || manifest.format !== 1 || manifest.product !== "portal-client" ||
@@ -393,7 +391,6 @@
393391 if (build.available !== false || typeof build.reason !== "string" || !build.reason.trim()) {394392 throw new Error("invalid unavailable Portal release entry");395393 }396- portalManifestReason = build.reason.trim();397394 return null;398395 }399396 var version = build.version;
@@ -410,7 +407,6 @@
410407 return {411408 href: build.download_url,412409 label: "download Portal " + version + " · macOS arm64",413- note: "Portal " + version + " · macOS arm64 · not notarized: macOS will block the first launch until you allow it in System Settings › Privacy & Security. Verify the SHA-256 before opening.",414410 };415411 }416412
@@ -419,39 +415,29 @@
419415 return el ? el.value : null;420416 }421417 418+ // The button label already carries the state. The hero does not repeat it as419+ // prose, so nothing writes release notes into the panel.422420 function updatePortalDownload() {423421 var button = document.getElementById("portal-download");424- var note = document.getElementById("portal-release-status");425422 var os = pickedPortalValue("portal-os");426423 var arch = pickedPortalValue("portal-arch");427- if (!button || !note || !os || !arch) return;424+ if (!button || !os || !arch) return;428425 var build = PORTAL_BUILDS[os + "-" + arch];429426 if (build) {430427 button.classList.remove("disabled");431428 button.removeAttribute("aria-disabled");432429 button.setAttribute("href", build.href);433430 button.textContent = build.label;434- note.textContent = build.note;435431 } else {436432 button.classList.add("disabled");437433 button.setAttribute("aria-disabled", "true");438434 button.removeAttribute("href"); // href-less anchor: unfocusable, unclickable439435 button.textContent = "no " + os + " " + ARCH_NAMES[arch] + " build yet";440- if (os === "macos" && arch === "arm" && portalManifestStatus !== "loaded") {441- note.textContent = portalManifestReason + " · no download offered";442- } else if (os === "macos" && arch === "arm" && portalManifestReason) {443- note.textContent = portalManifestReason;444- } else {445- note.textContent = "portal for " + os + "/" + ARCH_NAMES[arch] +446- " is not released yet · macos arm64 comes first";447- }448436 }449437 }450438 451439 function loadPortalReleaseManifest() {452440 if (typeof window.fetch !== "function") {453- portalManifestStatus = "failed";454- portalManifestReason = "signed release manifest could not be loaded";455441 updatePortalDownload();456442 return;457443 }
@@ -464,11 +450,8 @@
464450 return response.json();465451 }).then(function (manifest) {466452 PORTAL_BUILDS["macos-arm"] = portalBuildFromManifest(manifest);467- portalManifestStatus = "loaded";468453 }).catch(function () {469454 PORTAL_BUILDS["macos-arm"] = null;470- portalManifestStatus = "failed";471- portalManifestReason = "signed release manifest is unavailable or invalid";472455 }).then(updatePortalDownload);473456 }474457
M website/index.html +2 -2