refactor: Refactor frontend views and components
This commit is contained in:
parent
9c763c4b3b
commit
517f79c9f9
8 changed files with 104 additions and 169 deletions
|
@ -1,29 +1,25 @@
|
|||
import Vue from "vue";
|
||||
import VueRouter, { RouteConfig } from "vue-router";
|
||||
import MainPage from "../views/MainPage.vue";
|
||||
import LoginView from "../views/Login.vue";
|
||||
import UserView from "../views/User.vue";
|
||||
|
||||
Vue.use(VueRouter);
|
||||
|
||||
const routes: Array<RouteConfig> = [
|
||||
{
|
||||
path: "/",
|
||||
name: "home",
|
||||
component: MainPage,
|
||||
name: "index",
|
||||
component: UserView,
|
||||
},
|
||||
{
|
||||
path: "/login",
|
||||
name: "login",
|
||||
component: MainPage,
|
||||
component: LoginView,
|
||||
},
|
||||
{
|
||||
path: "/signup",
|
||||
name: "signup",
|
||||
component: MainPage,
|
||||
},
|
||||
{
|
||||
path: "/confirm/:uid/:token",
|
||||
name: "confirm",
|
||||
component: MainPage,
|
||||
component: LoginView,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Reference in a new issue