2d541f2e32
And disable eslint when building in prod mode Signed-off-by: Thomas Citharel <tcit@tcit.fr>
35 lines
997 B
TypeScript
35 lines
997 B
TypeScript
import { RouteConfig } from "vue-router";
|
|
import { EsModuleComponent } from "vue/types/options";
|
|
|
|
export enum ActorRouteName {
|
|
GROUP = "Group",
|
|
CREATE_GROUP = "CreateGroup",
|
|
PROFILE = "Profile",
|
|
MY_GROUPS = "MY_GROUPS",
|
|
}
|
|
|
|
export const actorRoutes: RouteConfig[] = [
|
|
{
|
|
path: "/groups/create",
|
|
name: ActorRouteName.CREATE_GROUP,
|
|
component: (): Promise<EsModuleComponent> =>
|
|
import(/* webpackChunkName: "CreateGroup" */ "@/views/Group/Create.vue"),
|
|
meta: { requiredAuth: true },
|
|
},
|
|
{
|
|
path: "/@:preferredUsername",
|
|
name: ActorRouteName.GROUP,
|
|
component: (): Promise<EsModuleComponent> =>
|
|
import(/* webpackChunkName: "Group" */ "@/views/Group/Group.vue"),
|
|
props: true,
|
|
meta: { requiredAuth: false },
|
|
},
|
|
{
|
|
path: "/groups/me",
|
|
name: ActorRouteName.MY_GROUPS,
|
|
component: (): Promise<EsModuleComponent> =>
|
|
import(/* webpackChunkName: "MyGroups" */ "@/views/Group/MyGroups.vue"),
|
|
meta: { requiredAuth: true },
|
|
},
|
|
];
|