diff --git a/components.d.ts b/components.d.ts index 58cac2b..8dd1ffd 100644 --- a/components.d.ts +++ b/components.d.ts @@ -12,6 +12,7 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { + BackButton: typeof import('./src/components/back-button.vue')['default'] IonApp: typeof import('@ionic/vue')['IonApp'] IonButton: typeof import('@ionic/vue')['IonButton'] IonContent: typeof import('@ionic/vue')['IonContent'] @@ -33,6 +34,7 @@ declare module 'vue' { // For TSX support declare global { + const BackButton: typeof import('./src/components/back-button.vue')['default'] const IonApp: typeof import('@ionic/vue')['IonApp'] const IonButton: typeof import('@ionic/vue')['IonButton'] const IonContent: typeof import('@ionic/vue')['IonContent'] diff --git a/src/components/back-button.vue b/src/components/back-button.vue new file mode 100644 index 0000000..88f3952 --- /dev/null +++ b/src/components/back-button.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/src/router/auth.ts b/src/router/auth.ts index d103fc0..50fa1fd 100644 --- a/src/router/auth.ts +++ b/src/router/auth.ts @@ -3,11 +3,11 @@ import type { RouteRecordRaw } from "vue-router"; const routes: Array = [ { path: "/auth/login", - component: () => import("@/views/auth/login/index.vue"), + component: () => import("@/views/auth/login.vue"), }, { path: "/auth/signup", - component: () => import("@/views/auth/signup/index.vue"), + component: () => import("@/views/auth/signup.vue"), }, { path: "/auth/term", diff --git a/src/router/index.ts b/src/router/index.ts index cfb54c6..1ba8c3d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -12,7 +12,7 @@ const routes: Array = [ path: "/:pathMatch(.*)*", redirect: "/layout/home", }, - // ...authRoutes, + ...authRoutes, { path: "/layout", component: () => import("@/components/layout/default.vue"), diff --git a/src/views/auth/login.vue b/src/views/auth/login.vue new file mode 100644 index 0000000..b6b92d8 --- /dev/null +++ b/src/views/auth/login.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/src/views/auth/signup.vue b/src/views/auth/signup.vue new file mode 100644 index 0000000..30445f3 --- /dev/null +++ b/src/views/auth/signup.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/src/views/auth/term.vue b/src/views/auth/term.vue new file mode 100644 index 0000000..4316a1d --- /dev/null +++ b/src/views/auth/term.vue @@ -0,0 +1,62 @@ + + + + +