diff options
| author | Leitwolf11 | 2026-08-30 17:22:39 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-08-30 17:22:39 +0300 |
| commit | 6420aa30d09cb0815bdf7c140ebeca6218053870 (patch) | |
| tree | d2db8c3737bae8c1cc4e195669f4352a49bdd7f1 /frontend | |
| parent | f520a23ef0066c3d1021393f1e41a49af311e109 (diff) | |
| download | website-6420aa30d09cb0815bdf7c140ebeca6218053870.tar.gz | |
Separate ViGet catalogs from Progmasoft account ownership. Move login, registration, recovery, and dashboard navigation to account.progmasoft.com, document the canonical account.progmasoft.com/<Account>/dashboard route, and define each ViGet Publisher as that exact Progmasoft Account identity. Redirect legacy ViGet account routes to the account service and expose only the exact registry status endpoint while closing the retired standalone authentication and token API surface.
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/public/scripts/auth-flow.v3.js | 6 | ||||
| -rw-r--r-- | frontend/public/scripts/dashboard.v1.js | 6 | ||||
| -rw-r--r-- | frontend/src/components/AuthPanel.astro | 8 | ||||
| -rw-r--r-- | frontend/src/components/RepositoryHeader.astro | 6 | ||||
| -rw-r--r-- | frontend/src/pages/repo/dashboard/index.astro | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/frontend/public/scripts/auth-flow.v3.js b/frontend/public/scripts/auth-flow.v3.js index 6c16437..5570e8b 100644 --- a/frontend/public/scripts/auth-flow.v3.js +++ b/frontend/public/scripts/auth-flow.v3.js @@ -133,7 +133,7 @@ form?.addEventListener("submit", async (event) => { } const response = await request("login", { email, password }); if (!response.ok) return explainFailure(response); - window.location.assign("https://viget.progmasoft.com/dashboard/"); + window.location.assign("https://account.progmasoft.com/"); return; } @@ -165,7 +165,7 @@ form?.addEventListener("submit", async (event) => { } const response = await request("verify-email", { email, code, publisherName }); if (!response.ok) return explainFailure(response); - window.location.assign("https://viget.progmasoft.com/dashboard/"); + window.location.assign("https://account.progmasoft.com/"); return; } @@ -176,7 +176,7 @@ form?.addEventListener("submit", async (event) => { } const response = await request("recovery/complete", { email, code: recoveryCode, password }); if (!response.ok) return explainFailure(response); - window.location.assign("https://viget.progmasoft.com/dashboard/"); + window.location.assign("https://account.progmasoft.com/"); }); initializeGoogleVerification(); diff --git a/frontend/public/scripts/dashboard.v1.js b/frontend/public/scripts/dashboard.v1.js index 3337df3..9b3ce97 100644 --- a/frontend/public/scripts/dashboard.v1.js +++ b/frontend/public/scripts/dashboard.v1.js @@ -67,7 +67,7 @@ async function revokeToken(id) { async function initialize() { const response = await fetch("/api/v1/auth/me", { credentials: "include" }); if (response.status === 401) { - window.location.replace("https://viget.progmasoft.com/login/"); + window.location.replace("https://account.progmasoft.com/login"); return; } if (!response.ok) return showAlert("Account information could not be loaded.", true); @@ -90,7 +90,7 @@ async function initialize() { root?.querySelector("[data-signout]")?.addEventListener("click", async () => { await fetch("/api/v1/auth/logout", { method: "POST", credentials: "include" }); - window.location.assign("https://viget.progmasoft.com/login/"); + window.location.assign("https://account.progmasoft.com/login"); }); root?.querySelector("[data-token-open]")?.addEventListener("click", () => dialog?.showModal()); dialog?.querySelector("[data-token-close]")?.addEventListener("click", () => dialog?.close()); @@ -122,7 +122,7 @@ deleteForm?.addEventListener("submit", async (event) => { showAlert("The account could not be deleted.", true); return; } - window.location.replace("https://viget.progmasoft.com/?account=deleted"); + window.location.replace("https://account.progmasoft.com/?account=deleted"); }); tokenForm?.addEventListener("submit", async (event) => { diff --git a/frontend/src/components/AuthPanel.astro b/frontend/src/components/AuthPanel.astro index 96ad487..dd7f46f 100644 --- a/frontend/src/components/AuthPanel.astro +++ b/frontend/src/components/AuthPanel.astro @@ -14,7 +14,7 @@ const copy = { submit: "Next", switchText: "New to the registry?", switchLabel: "Create an account", - switchHref: "https://viget.progmasoft.com/register/", + switchHref: "https://account.progmasoft.com/register", }, register: { title: "Create account", @@ -22,7 +22,7 @@ const copy = { submit: "Next", switchText: "Already have an account?", switchLabel: "Sign in", - switchHref: "https://viget.progmasoft.com/login/", + switchHref: "https://account.progmasoft.com/login", }, recover: { title: "Recover account", @@ -30,7 +30,7 @@ const copy = { submit: "Send code", switchText: "Remembered your password?", switchLabel: "Sign in", - switchHref: "https://viget.progmasoft.com/login/", + switchHref: "https://account.progmasoft.com/login", }, } as const; const content = copy[mode]; @@ -99,7 +99,7 @@ const content = copy[mode]; <button class="auth-submit" type="submit">{mode === "register" ? "Create account" : "Sign in"}</button> { mode === "login" && ( - <a class="auth-recovery" href="https://viget.progmasoft.com/recover/">Forgot password?</a> + <a class="auth-recovery" href="https://account.progmasoft.com/recover">Forgot password?</a> ) } </div> diff --git a/frontend/src/components/RepositoryHeader.astro b/frontend/src/components/RepositoryHeader.astro index 4732ca4..625bf2c 100644 --- a/frontend/src/components/RepositoryHeader.astro +++ b/frontend/src/components/RepositoryHeader.astro @@ -22,11 +22,11 @@ const { authenticated = false } = Astro.props; <a href="https://viget.progmasoft.com/dslplugins/">DSL plugins</a> { authenticated ? ( - <a href="https://viget.progmasoft.com/dashboard/">Dashboard</a> + <a href="https://account.progmasoft.com/">Account</a> ) : ( <> - <a href="https://viget.progmasoft.com/login/">Log in</a> - <a class="repository-register" href="https://viget.progmasoft.com/register/">Register</a> + <a href="https://account.progmasoft.com/login">Log in</a> + <a class="repository-register" href="https://account.progmasoft.com/register">Register</a> </> ) } diff --git a/frontend/src/pages/repo/dashboard/index.astro b/frontend/src/pages/repo/dashboard/index.astro index a004b92..1c8a09f 100644 --- a/frontend/src/pages/repo/dashboard/index.astro +++ b/frontend/src/pages/repo/dashboard/index.astro @@ -106,7 +106,7 @@ import SiteLayout from "../../../layouts/SiteLayout.astro"; <strong>Password</strong> <span>Change your password through a verified recovery email.</span> </div> - <a class="button secondary glass-panel" href="https://viget.progmasoft.com/recover/">Reset password</a> + <a class="button secondary glass-panel" href="https://account.progmasoft.com/recover">Reset password</a> </div> </section> </div> |