From 7d11640dddd76dc93b5aae1637c3b0707472f0b5 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 13 Mar 2024 22:12:08 +0800 Subject: [PATCH] :sparkles: Sign up --- .../src/components/auth/AccountLocator.vue | 4 +- .../src/components/auth/CallbackNotify.vue | 16 ++ pkg/views/src/layouts/master.vue | 4 +- pkg/views/src/router/index.ts | 2 +- pkg/views/src/views/auth/sign-in.vue | 4 +- pkg/views/src/views/auth/sign-up.vue | 162 ++++++++++++++++++ 6 files changed, 187 insertions(+), 5 deletions(-) create mode 100644 pkg/views/src/components/auth/CallbackNotify.vue create mode 100644 pkg/views/src/views/auth/sign-up.vue diff --git a/pkg/views/src/components/auth/AccountLocator.vue b/pkg/views/src/components/auth/AccountLocator.vue index 0e6be6c..2f42cec 100644 --- a/pkg/views/src/components/auth/AccountLocator.vue +++ b/pkg/views/src/components/auth/AccountLocator.vue @@ -9,7 +9,9 @@ -
+
+ Sign up + +
+ + + You need to sign in before access that page. After you signed in, we will redirect you to:
+ {{ route.query["redirect_uri"] }} +
+
+
+ + + diff --git a/pkg/views/src/layouts/master.vue b/pkg/views/src/layouts/master.vue index e7955c7..7e3c0f9 100644 --- a/pkg/views/src/layouts/master.vue +++ b/pkg/views/src/layouts/master.vue @@ -15,8 +15,8 @@ - - + +
diff --git a/pkg/views/src/router/index.ts b/pkg/views/src/router/index.ts index d78ea4a..b476ef8 100644 --- a/pkg/views/src/router/index.ts +++ b/pkg/views/src/router/index.ts @@ -15,7 +15,7 @@ const router = createRouter({ path: "/auth", children: [ { path: "sign-in", name: "auth.sign-in", component: () => import("@/views/auth/sign-in.vue") }, - // { path: "sign-up", name: "auth.sign-up", component: () => import("@/views/auth/sign-up.vue") }, + { path: "sign-up", name: "auth.sign-up", component: () => import("@/views/auth/sign-up.vue") }, ] } ], diff --git a/pkg/views/src/views/auth/sign-in.vue b/pkg/views/src/views/auth/sign-in.vue index 81b30f0..0308d03 100644 --- a/pkg/views/src/views/auth/sign-in.vue +++ b/pkg/views/src/views/auth/sign-in.vue @@ -1,5 +1,7 @@