From 12e7f4103f5cf439425e168e005e7101607fad8c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 7 Aug 2026 02:10:48 +0200 Subject: [PATCH] The unified page becomes the site; retire the two it replaced MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit index.html was the old landing page with a signup form, and that form can now only fail — registration is owner-only. A dead button is worse than no button, so the unified account page takes its place rather than sitting beside it. settings.html goes too: it is a strict subset of the sources section, and onboarding.html was the signup wizard. Verified against the live backend before the swap, signed in as a throwaway account created the way the owner now creates them (and deleted afterwards — the instance is back to its five real accounts): registration 403 "Only superusers can perform this action", with and without the old invite header template route 401 anonymously session survives a full page reload; the password does NOT, so the sources section re-asks for it — the intended split prefs one row, updatedAt distinct from the server cursor, and all 13 fields present including the three the page does not render, so the merge did not clobber what the app writes sources (BYOC) the browser reached the addon's /encode cross-origin, minted the prehraj.to token, built TorBox's config locally, encrypted and saved; the stored blob contains no plaintext and carries kdf=pbkdf2-sha256-210000 downloads all three platforms resolve to 1.1.6 · clean with a file token Checked rather than assumed: the Czech URL is stored with /manifest.json (matching the existing template) and the app strips it on both read and write via _stripManifest, so minting it that way is correct and not a latent 404. --- pb_hooks/web.pb.js | 11 +- pb_public/account.html | 879 ---------------------------------- pb_public/index.html | 968 +++++++++++++++++++++++++++++++++----- pb_public/onboarding.html | 295 ------------ pb_public/settings.html | 315 ------------- 5 files changed, 851 insertions(+), 1617 deletions(-) delete mode 100644 pb_public/account.html delete mode 100644 pb_public/onboarding.html delete mode 100644 pb_public/settings.html diff --git a/pb_hooks/web.pb.js b/pb_hooks/web.pb.js index 179b8f5..939d623 100644 --- a/pb_hooks/web.pb.js +++ b/pb_hooks/web.pb.js @@ -2,18 +2,23 @@ // Pretty URLs for the family-facing web surfaces. // -// One page now does what three did: `account.html` is sign-in, profiles, +// One page now does what three did: `index.html` is sign-in, profiles, // playback preferences, sources, devices and downloads behind a persisted // session. `/settings` keeps working because it is in people's muscle memory and // in older messages — it lands on the sources section of the new page. // // `/tv` is the short form of `/get/tv`, because that URL gets typed on a // television remote inside the Downloader app, one character at a time. +// +// `onboarding.html` and `settings.html` are gone rather than left lying around. +// The first offered a signup form that can now only fail — registration is +// owner-only — and a dead button is worse than no button. The second is a subset +// of the sources section. -routerAdd("GET", "/account", (e) => e.redirect(302, "/account.html")) +routerAdd("GET", "/account", (e) => e.redirect(302, "/")) // Deep-link straight to sources; the page reads the hash to pick its tab. -routerAdd("GET", "/settings", (e) => e.redirect(302, "/account.html#addons")) +routerAdd("GET", "/settings", (e) => e.redirect(302, "/#addons")) // Typing this on a remote is the actual cost being optimised. routerAdd("GET", "/tv", (e) => e.redirect(302, "/get/tv")) diff --git a/pb_public/account.html b/pb_public/account.html deleted file mode 100644 index c22af77..0000000 --- a/pb_public/account.html +++ /dev/null @@ -1,879 +0,0 @@ - - - - - - -Amber — můj účet - - - -
- - -
-
-

Amber

-

Přihlas se a spravuj svůj účet, profily a nastavení. - Přihlášení zůstane uložené, takže příště to bude rovnou tady.

- - - - - -
-

Účty zakládá Richard — registrace tu není. Když se nemůžeš - dostat dovnitř, napiš mu.

-
- -
-

Nainstalovat na televizi

-
    -
  1. Na televizi otevři aplikaci Downloader.
  2. -
  3. Zadej amber.petruzalekr.cz/tv — - stáhne se instalace.
  4. -
  5. Spusť Amber → Přihlásit z jiného zařízení a načti QR kód - telefonem. Na televizi nic nepíšeš.
  6. -
-
-
- - - -
- - - - diff --git a/pb_public/index.html b/pb_public/index.html index 2679a3f..c22af77 100644 --- a/pb_public/index.html +++ b/pb_public/index.html @@ -4,158 +4,876 @@ -Amber — filmy a seriály pro rodinu +Amber — můj účet
-
- -

Amber

-
-

Filmy, seriály a anime pro celou rodinu — česky, na televizi i na počítači.

-
-

Začínáš?

-

Průvodce ti vytvoří účet a rovnou nastaví vše potřebné. Budeš potřebovat - kód pozvánky od Richarda.

- Vytvořit účet -
- -
-

Přihlásit televizi

-
    -
  1. Na televizi nainstaluj Amber — v prohlížeči nebo v aplikaci - Downloader otevři /get/tv
  2. -
  3. Spusť Amber a zvol „Přihlásit z jiného zařízení“
  4. -
  5. Naskenuj QR kód telefonem, nebo pokračuj tlačítkem níže a opiš kód
  6. -
-
- Zadat kód z televize -
- -
-

Stáhnout do počítače

-

Přihlas se svým účtem — stažení je vázané na účet.

-
- - - - -
- + +
+
+

Amber

+

Přihlas se a spravuj svůj účet, profily a nastavení. + Přihlášení zůstane uložené, takže příště to bude rovnou tady.

+ + + + + +
+

Účty zakládá Richard — registrace tu není. Když se nemůžeš + dostat dovnitř, napiš mu.

+
+ +
+

Nainstalovat na televizi

+
    +
  1. Na televizi otevři aplikaci Downloader.
  2. +
  3. Zadej amber.petruzalekr.cz/tv — + stáhne se instalace.
  4. +
  5. Spusť Amber → Přihlásit z jiného zařízení a načti QR kód + telefonem. Na televizi nic nepíšeš.
  6. +
- -
-
Amber je soukromá rodinná aplikace.
+ +
diff --git a/pb_public/onboarding.html b/pb_public/onboarding.html deleted file mode 100644 index ce385e0..0000000 --- a/pb_public/onboarding.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - -Amber — vytvořit účet - - - -
-

Vytvořit účet

-

Za pár kroků budeš mít Amber připravený ke sledování.

- - -
- - - - - - - - - - -
- - -
- -
- - - - -
- - - - -

Heslo se použije jen ve tvém prohlížeči k zašifrování nastavení - — na server se heslo ani klíč nikdy neposílají. Nastavení odemkneš přihlášením - v aplikaci.

-
- - - - diff --git a/pb_public/settings.html b/pb_public/settings.html deleted file mode 100644 index 948e6f1..0000000 --- a/pb_public/settings.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - -Amber — nastavení účtu - - - -
-

Nastavení účtu

-

Přihlas se a uprav zdroje filmů a seriálů — - změny se do aplikace propíšou samy.

- - -
- - - - - -
- - - - -
- -

Heslo se použije jen ve tvém prohlížeči k dešifrování a opětovnému - zašifrování nastavení — na server se heslo ani klíč nikdy neposílají.

-
- - - -