From ba8c0016acd3934137b8d4817588ccc189fedf35 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 17 Apr 2026 17:48:18 +0000 Subject: [PATCH] Add sigup page...again Had it previously, but broke it for the single-page app migration. --- html/template/sync/signup.html | 2 +- ts/AppSync.vue | 20 +-- ts/router.ts | 8 +- ts/view/Authenticated.vue | 19 ++- ts/view/Signup.vue | 231 +++++++++++++++++++++++++++++++++ 5 files changed, 257 insertions(+), 23 deletions(-) create mode 100644 ts/view/Signup.vue diff --git a/html/template/sync/signup.html b/html/template/sync/signup.html index 8e71e36d..25665d3f 100644 --- a/html/template/sync/signup.html +++ b/html/template/sync/signup.html @@ -41,7 +41,7 @@

Join us today to get started

-
+
diff --git a/ts/AppSync.vue b/ts/AppSync.vue index 6d0dee43..a8579379 100644 --- a/ts/AppSync.vue +++ b/ts/AppSync.vue @@ -2,22 +2,4 @@ - + diff --git a/ts/router.ts b/ts/router.ts index 6933f818..191d42a7 100644 --- a/ts/router.ts +++ b/ts/router.ts @@ -30,6 +30,7 @@ import ReviewRoot from "@/view/review/Root.vue"; import ReviewSite from "@/view/review/Site.vue"; import Signin from "@/view/Signin.vue"; import Signout from "@/view/Signout.vue"; +import Signup from "@/view/Signup.vue"; import Sudo from "@/view/Sudo.vue"; import { apiClient } from "@/client"; @@ -182,6 +183,11 @@ const routes: RouteRecordRaw[] = [ name: "Signout", path: "/signout", }, + { + component: Signup, + name: "Signup", + path: "/signup", + }, // Catch-all route - must be last { path: "/:pathMatch(.*)*", @@ -197,7 +203,7 @@ export const router = createRouter({ // Global navigation guard router.beforeEach(async (to, from) => { - if (to.fullPath == "/signin") { + if (to.fullPath == "/signin" || to.fullPath == "/signup") { return; } const storeSession = useSessionStore(); diff --git a/ts/view/Authenticated.vue b/ts/view/Authenticated.vue index 774fc273..7f3afb3e 100644 --- a/ts/view/Authenticated.vue +++ b/ts/view/Authenticated.vue @@ -19,9 +19,24 @@
diff --git a/ts/view/Signup.vue b/ts/view/Signup.vue new file mode 100644 index 00000000..dd20955f --- /dev/null +++ b/ts/view/Signup.vue @@ -0,0 +1,231 @@ + + +