From 321bad46a7d7c776fd247a70ee5a59f7f37156cc Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Wed, 25 Oct 2023 18:53:46 -0400 Subject: [PATCH] Added gateway view for unauthenticated access to secure resources. --- .../src/components/gateway/LoginForm.vue | 14 ++++++++++++ .../src/components/gateway/RegisterForm.vue | 14 ++++++++++++ onyx-web-app/src/router/index.ts | 22 +++++++++++++++++-- onyx-web-app/src/views/GatewayView.vue | 20 +++++++++++++++++ 4 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 onyx-web-app/src/components/gateway/LoginForm.vue create mode 100644 onyx-web-app/src/components/gateway/RegisterForm.vue create mode 100644 onyx-web-app/src/views/GatewayView.vue diff --git a/onyx-web-app/src/components/gateway/LoginForm.vue b/onyx-web-app/src/components/gateway/LoginForm.vue new file mode 100644 index 0000000..b2736ac --- /dev/null +++ b/onyx-web-app/src/components/gateway/LoginForm.vue @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/onyx-web-app/src/components/gateway/RegisterForm.vue b/onyx-web-app/src/components/gateway/RegisterForm.vue new file mode 100644 index 0000000..1a84ea8 --- /dev/null +++ b/onyx-web-app/src/components/gateway/RegisterForm.vue @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/onyx-web-app/src/router/index.ts b/onyx-web-app/src/router/index.ts index 1f89db2..a6af665 100644 --- a/onyx-web-app/src/router/index.ts +++ b/onyx-web-app/src/router/index.ts @@ -1,13 +1,31 @@ import {createRouter, createWebHistory} from 'vue-router' import MainView from "@/views/MainView.vue"; +import GatewayView from "@/views/GatewayView.vue"; +import LoginForm from "@/components/gateway/LoginForm.vue"; +import RegisterForm from "@/components/gateway/RegisterForm.vue"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { - path: '/', - name: 'home', + path: "/", + name: "home", component: MainView + }, + { + path: "/gateway", + name: "gateway", + component: GatewayView, + children: [ + { + path: "login", + component: LoginForm + }, + { + path: "register", + component: RegisterForm + } + ] } ] }) diff --git a/onyx-web-app/src/views/GatewayView.vue b/onyx-web-app/src/views/GatewayView.vue new file mode 100644 index 0000000..1a82541 --- /dev/null +++ b/onyx-web-app/src/views/GatewayView.vue @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file