Upgrade types for Vue async component in router
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
6a68198867
commit
6c0e503319
@ -1,5 +1,5 @@
|
|||||||
import { RouteConfig } from "vue-router";
|
import { RouteConfig } from "vue-router";
|
||||||
import { EsModuleComponent } from "vue/types/options";
|
import { ImportedComponent } from "vue/types/options";
|
||||||
|
|
||||||
export enum ActorRouteName {
|
export enum ActorRouteName {
|
||||||
GROUP = "Group",
|
GROUP = "Group",
|
||||||
@ -12,14 +12,14 @@ export const actorRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/groups/create",
|
path: "/groups/create",
|
||||||
name: ActorRouteName.CREATE_GROUP,
|
name: ActorRouteName.CREATE_GROUP,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "CreateGroup" */ "@/views/Group/Create.vue"),
|
import(/* webpackChunkName: "CreateGroup" */ "@/views/Group/Create.vue"),
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/@:preferredUsername",
|
path: "/@:preferredUsername",
|
||||||
name: ActorRouteName.GROUP,
|
name: ActorRouteName.GROUP,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "Group" */ "@/views/Group/Group.vue"),
|
import(/* webpackChunkName: "Group" */ "@/views/Group/Group.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
@ -27,7 +27,7 @@ export const actorRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/groups/me",
|
path: "/groups/me",
|
||||||
name: ActorRouteName.MY_GROUPS,
|
name: ActorRouteName.MY_GROUPS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "MyGroups" */ "@/views/Group/MyGroups.vue"),
|
import(/* webpackChunkName: "MyGroups" */ "@/views/Group/MyGroups.vue"),
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { RouteConfig } from "vue-router";
|
import { RouteConfig } from "vue-router";
|
||||||
import { EsModuleComponent } from "vue/types/options";
|
import { ImportedComponent } from "vue/types/options";
|
||||||
|
|
||||||
export enum DiscussionRouteName {
|
export enum DiscussionRouteName {
|
||||||
DISCUSSION_LIST = "DISCUSSION_LIST",
|
DISCUSSION_LIST = "DISCUSSION_LIST",
|
||||||
@ -11,7 +11,7 @@ export const discussionRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/@:preferredUsername/discussions",
|
path: "/@:preferredUsername/discussions",
|
||||||
name: DiscussionRouteName.DISCUSSION_LIST,
|
name: DiscussionRouteName.DISCUSSION_LIST,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "DiscussionsList" */ "@/views/Discussions/DiscussionsList.vue"
|
/* webpackChunkName: "DiscussionsList" */ "@/views/Discussions/DiscussionsList.vue"
|
||||||
),
|
),
|
||||||
@ -21,7 +21,7 @@ export const discussionRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/@:preferredUsername/discussions/new",
|
path: "/@:preferredUsername/discussions/new",
|
||||||
name: DiscussionRouteName.CREATE_DISCUSSION,
|
name: DiscussionRouteName.CREATE_DISCUSSION,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "CreateDiscussion" */ "@/views/Discussions/Create.vue"
|
/* webpackChunkName: "CreateDiscussion" */ "@/views/Discussions/Create.vue"
|
||||||
),
|
),
|
||||||
@ -31,7 +31,7 @@ export const discussionRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/@:preferredUsername/c/:slug/:comment_id?",
|
path: "/@:preferredUsername/c/:slug/:comment_id?",
|
||||||
name: DiscussionRouteName.DISCUSSION,
|
name: DiscussionRouteName.DISCUSSION,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "Discussion" */ "@/views/Discussions/Discussion.vue"
|
/* webpackChunkName: "Discussion" */ "@/views/Discussions/Discussion.vue"
|
||||||
),
|
),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { RouteConfig } from "vue-router";
|
import { RouteConfig } from "vue-router";
|
||||||
import { EsModuleComponent } from "vue/types/options";
|
import { ImportedComponent } from "vue/types/options";
|
||||||
|
|
||||||
export enum ErrorRouteName {
|
export enum ErrorRouteName {
|
||||||
ERROR = "Error",
|
ERROR = "Error",
|
||||||
@ -9,7 +9,7 @@ export const errorRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/error",
|
path: "/error",
|
||||||
name: ErrorRouteName.ERROR,
|
name: ErrorRouteName.ERROR,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "Error" */ "../views/Error.vue"),
|
import(/* webpackChunkName: "Error" */ "../views/Error.vue"),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
import { RouteConfig, Route } from "vue-router";
|
import { RouteConfig, Route } from "vue-router";
|
||||||
import { EsModuleComponent } from "vue/types/options";
|
import { ImportedComponent } from "vue/types/options";
|
||||||
|
|
||||||
const participations = (): Promise<EsModuleComponent> =>
|
const participations = (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "participations" */ "@/views/Event/Participants.vue"
|
/* webpackChunkName: "participations" */ "@/views/Event/Participants.vue"
|
||||||
);
|
);
|
||||||
const editEvent = (): Promise<EsModuleComponent> =>
|
const editEvent = (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "edit-event" */ "@/views/Event/Edit.vue");
|
import(/* webpackChunkName: "edit-event" */ "@/views/Event/Edit.vue");
|
||||||
const event = (): Promise<EsModuleComponent> =>
|
const event = (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "event" */ "@/views/Event/Event.vue");
|
import(/* webpackChunkName: "event" */ "@/views/Event/Event.vue");
|
||||||
const myEvents = (): Promise<EsModuleComponent> =>
|
const myEvents = (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "my-events" */ "@/views/Event/MyEvents.vue");
|
import(/* webpackChunkName: "my-events" */ "@/views/Event/MyEvents.vue");
|
||||||
|
|
||||||
export enum EventRouteName {
|
export enum EventRouteName {
|
||||||
@ -31,7 +31,7 @@ export const eventRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/events/list/:location?",
|
path: "/events/list/:location?",
|
||||||
name: EventRouteName.EVENT_LIST,
|
name: EventRouteName.EVENT_LIST,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "EventList" */ "@/views/Event/EventList.vue"),
|
import(/* webpackChunkName: "EventList" */ "@/views/Event/EventList.vue"),
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
},
|
},
|
||||||
@ -83,35 +83,35 @@ export const eventRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/events/:uuid/participate",
|
path: "/events/:uuid/participate",
|
||||||
name: EventRouteName.EVENT_PARTICIPATE_LOGGED_OUT,
|
name: EventRouteName.EVENT_PARTICIPATE_LOGGED_OUT,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("../components/Participation/UnloggedParticipation.vue"),
|
import("../components/Participation/UnloggedParticipation.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/events/:uuid/participate/with-account",
|
path: "/events/:uuid/participate/with-account",
|
||||||
name: EventRouteName.EVENT_PARTICIPATE_WITH_ACCOUNT,
|
name: EventRouteName.EVENT_PARTICIPATE_WITH_ACCOUNT,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("../components/Participation/ParticipationWithAccount.vue"),
|
import("../components/Participation/ParticipationWithAccount.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/events/:uuid/participate/without-account",
|
path: "/events/:uuid/participate/without-account",
|
||||||
name: EventRouteName.EVENT_PARTICIPATE_WITHOUT_ACCOUNT,
|
name: EventRouteName.EVENT_PARTICIPATE_WITHOUT_ACCOUNT,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("../components/Participation/ParticipationWithoutAccount.vue"),
|
import("../components/Participation/ParticipationWithoutAccount.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/participation/email/confirm/:token",
|
path: "/participation/email/confirm/:token",
|
||||||
name: EventRouteName.EVENT_PARTICIPATE_CONFIRM,
|
name: EventRouteName.EVENT_PARTICIPATE_CONFIRM,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("../components/Participation/ConfirmParticipation.vue"),
|
import("../components/Participation/ConfirmParticipation.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/tag/:tag",
|
path: "/tag/:tag",
|
||||||
name: EventRouteName.TAG,
|
name: EventRouteName.TAG,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "Search" */ "@/views/Search.vue"),
|
import(/* webpackChunkName: "Search" */ "@/views/Search.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { RouteConfig, Route } from "vue-router";
|
import { RouteConfig, Route } from "vue-router";
|
||||||
import { EsModuleComponent } from "vue/types/options";
|
import { ImportedComponent } from "vue/types/options";
|
||||||
|
|
||||||
export enum GroupsRouteName {
|
export enum GroupsRouteName {
|
||||||
TODO_LISTS = "TODO_LISTS",
|
TODO_LISTS = "TODO_LISTS",
|
||||||
@ -21,16 +21,16 @@ export enum GroupsRouteName {
|
|||||||
TIMELINE = "TIMELINE",
|
TIMELINE = "TIMELINE",
|
||||||
}
|
}
|
||||||
|
|
||||||
const resourceFolder = (): Promise<EsModuleComponent> =>
|
const resourceFolder = (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Resources/ResourceFolder.vue");
|
import("@/views/Resources/ResourceFolder.vue");
|
||||||
const groupEvents = (): Promise<EsModuleComponent> =>
|
const groupEvents = (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "groupEvents" */ "@/views/Event/GroupEvents.vue");
|
import(/* webpackChunkName: "groupEvents" */ "@/views/Event/GroupEvents.vue");
|
||||||
|
|
||||||
export const groupsRoutes: RouteConfig[] = [
|
export const groupsRoutes: RouteConfig[] = [
|
||||||
{
|
{
|
||||||
path: "/@:preferredUsername/todo-lists",
|
path: "/@:preferredUsername/todo-lists",
|
||||||
name: GroupsRouteName.TODO_LISTS,
|
name: GroupsRouteName.TODO_LISTS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Todos/TodoLists.vue"),
|
import("@/views/Todos/TodoLists.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
@ -38,7 +38,7 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/todo-lists/:id",
|
path: "/todo-lists/:id",
|
||||||
name: GroupsRouteName.TODO_LIST,
|
name: GroupsRouteName.TODO_LIST,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Todos/TodoList.vue"),
|
import("@/views/Todos/TodoList.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
@ -46,7 +46,7 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/todo/:todoId",
|
path: "/todo/:todoId",
|
||||||
name: GroupsRouteName.TODO,
|
name: GroupsRouteName.TODO,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Todos/Todo.vue"),
|
import("@/views/Todos/Todo.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
@ -67,7 +67,7 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/@:preferredUsername/settings",
|
path: "/@:preferredUsername/settings",
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Group/Settings.vue"),
|
import("@/views/Group/Settings.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
@ -77,20 +77,20 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "public",
|
path: "public",
|
||||||
name: GroupsRouteName.GROUP_PUBLIC_SETTINGS,
|
name: GroupsRouteName.GROUP_PUBLIC_SETTINGS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("../views/Group/GroupSettings.vue"),
|
import("../views/Group/GroupSettings.vue"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "members",
|
path: "members",
|
||||||
name: GroupsRouteName.GROUP_MEMBERS_SETTINGS,
|
name: GroupsRouteName.GROUP_MEMBERS_SETTINGS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("../views/Group/GroupMembers.vue"),
|
import("../views/Group/GroupMembers.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "followers",
|
path: "followers",
|
||||||
name: GroupsRouteName.GROUP_FOLLOWERS_SETTINGS,
|
name: GroupsRouteName.GROUP_FOLLOWERS_SETTINGS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("../views/Group/GroupFollowers.vue"),
|
import("../views/Group/GroupFollowers.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
},
|
},
|
||||||
@ -98,7 +98,7 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/@:preferredUsername/p/new",
|
path: "/@:preferredUsername/p/new",
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Posts/Edit.vue"),
|
import("@/views/Posts/Edit.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
name: GroupsRouteName.POST_CREATE,
|
name: GroupsRouteName.POST_CREATE,
|
||||||
@ -106,7 +106,7 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/p/:slug/edit",
|
path: "/p/:slug/edit",
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Posts/Edit.vue"),
|
import("@/views/Posts/Edit.vue"),
|
||||||
props: (route: Route): Record<string, unknown> => ({
|
props: (route: Route): Record<string, unknown> => ({
|
||||||
...route.params,
|
...route.params,
|
||||||
@ -117,7 +117,7 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/p/:slug",
|
path: "/p/:slug",
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Posts/Post.vue"),
|
import("@/views/Posts/Post.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
name: GroupsRouteName.POST,
|
name: GroupsRouteName.POST,
|
||||||
@ -125,7 +125,7 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/@:preferredUsername/p",
|
path: "/@:preferredUsername/p",
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Posts/List.vue"),
|
import("@/views/Posts/List.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
name: GroupsRouteName.POSTS,
|
name: GroupsRouteName.POSTS,
|
||||||
@ -140,7 +140,7 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/@:preferredUsername/join",
|
path: "/@:preferredUsername/join",
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/components/Group/JoinGroupWithAccount.vue"),
|
import("@/components/Group/JoinGroupWithAccount.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
name: GroupsRouteName.GROUP_JOIN,
|
name: GroupsRouteName.GROUP_JOIN,
|
||||||
@ -149,7 +149,7 @@ export const groupsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/@:preferredUsername/timeline",
|
path: "/@:preferredUsername/timeline",
|
||||||
name: GroupsRouteName.TIMELINE,
|
name: GroupsRouteName.TIMELINE,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import("@/views/Group/Timeline.vue"),
|
import("@/views/Group/Timeline.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
|
@ -2,7 +2,7 @@ import Vue from "vue";
|
|||||||
import Router, { Route } from "vue-router";
|
import Router, { Route } from "vue-router";
|
||||||
import VueScrollTo from "vue-scrollto";
|
import VueScrollTo from "vue-scrollto";
|
||||||
import { PositionResult } from "vue-router/types/router.d";
|
import { PositionResult } from "vue-router/types/router.d";
|
||||||
import { EsModuleComponent } from "vue/types/options";
|
import { ImportedComponent } from "vue/types/options";
|
||||||
import Home from "../views/Home.vue";
|
import Home from "../views/Home.vue";
|
||||||
import { eventRoutes } from "./event";
|
import { eventRoutes } from "./event";
|
||||||
import { actorRoutes } from "./actor";
|
import { actorRoutes } from "./actor";
|
||||||
@ -46,7 +46,7 @@ export const routes = [
|
|||||||
{
|
{
|
||||||
path: "/search",
|
path: "/search",
|
||||||
name: RouteName.SEARCH,
|
name: RouteName.SEARCH,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "Search" */ "@/views/Search.vue"),
|
import(/* webpackChunkName: "Search" */ "@/views/Search.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
@ -60,7 +60,7 @@ export const routes = [
|
|||||||
{
|
{
|
||||||
path: "/about",
|
path: "/about",
|
||||||
name: RouteName.ABOUT,
|
name: RouteName.ABOUT,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "about" */ "@/views/About.vue"),
|
import(/* webpackChunkName: "about" */ "@/views/About.vue"),
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
redirect: { name: RouteName.ABOUT_INSTANCE },
|
redirect: { name: RouteName.ABOUT_INSTANCE },
|
||||||
@ -68,7 +68,7 @@ export const routes = [
|
|||||||
{
|
{
|
||||||
path: "instance",
|
path: "instance",
|
||||||
name: RouteName.ABOUT_INSTANCE,
|
name: RouteName.ABOUT_INSTANCE,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "about" */ "@/views/About/AboutInstance.vue"
|
/* webpackChunkName: "about" */ "@/views/About/AboutInstance.vue"
|
||||||
),
|
),
|
||||||
@ -76,28 +76,28 @@ export const routes = [
|
|||||||
{
|
{
|
||||||
path: "/terms",
|
path: "/terms",
|
||||||
name: RouteName.TERMS,
|
name: RouteName.TERMS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "cookies" */ "@/views/About/Terms.vue"),
|
import(/* webpackChunkName: "cookies" */ "@/views/About/Terms.vue"),
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/privacy",
|
path: "/privacy",
|
||||||
name: RouteName.PRIVACY,
|
name: RouteName.PRIVACY,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "cookies" */ "@/views/About/Privacy.vue"),
|
import(/* webpackChunkName: "cookies" */ "@/views/About/Privacy.vue"),
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/rules",
|
path: "/rules",
|
||||||
name: RouteName.RULES,
|
name: RouteName.RULES,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "cookies" */ "@/views/About/Rules.vue"),
|
import(/* webpackChunkName: "cookies" */ "@/views/About/Rules.vue"),
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/glossary",
|
path: "/glossary",
|
||||||
name: RouteName.GLOSSARY,
|
name: RouteName.GLOSSARY,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "cookies" */ "@/views/About/Glossary.vue"
|
/* webpackChunkName: "cookies" */ "@/views/About/Glossary.vue"
|
||||||
),
|
),
|
||||||
@ -108,14 +108,14 @@ export const routes = [
|
|||||||
{
|
{
|
||||||
path: "/interact",
|
path: "/interact",
|
||||||
name: RouteName.INTERACT,
|
name: RouteName.INTERACT,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "interact" */ "@/views/Interact.vue"),
|
import(/* webpackChunkName: "interact" */ "@/views/Interact.vue"),
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/auth/:provider/callback",
|
path: "/auth/:provider/callback",
|
||||||
name: "auth-callback",
|
name: "auth-callback",
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "ProviderValidation" */ "@/views/User/ProviderValidation.vue"
|
/* webpackChunkName: "ProviderValidation" */ "@/views/User/ProviderValidation.vue"
|
||||||
),
|
),
|
||||||
@ -123,7 +123,7 @@ export const routes = [
|
|||||||
{
|
{
|
||||||
path: "/welcome/:step?",
|
path: "/welcome/:step?",
|
||||||
name: RouteName.WELCOME_SCREEN,
|
name: RouteName.WELCOME_SCREEN,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "WelcomeScreen" */ "@/views/User/SettingsOnboard.vue"
|
/* webpackChunkName: "WelcomeScreen" */ "@/views/User/SettingsOnboard.vue"
|
||||||
),
|
),
|
||||||
@ -139,7 +139,7 @@ export const routes = [
|
|||||||
{
|
{
|
||||||
path: "/404",
|
path: "/404",
|
||||||
name: RouteName.PAGE_NOT_FOUND,
|
name: RouteName.PAGE_NOT_FOUND,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "PageNotFound" */ "../views/PageNotFound.vue"
|
/* webpackChunkName: "PageNotFound" */ "../views/PageNotFound.vue"
|
||||||
),
|
),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Route, RouteConfig } from "vue-router";
|
import { Route, RouteConfig } from "vue-router";
|
||||||
import { EsModuleComponent } from "vue/types/options";
|
import { ImportedComponent } from "vue/types/options";
|
||||||
|
|
||||||
export enum SettingsRouteName {
|
export enum SettingsRouteName {
|
||||||
SETTINGS = "SETTINGS",
|
SETTINGS = "SETTINGS",
|
||||||
@ -31,7 +31,7 @@ export enum SettingsRouteName {
|
|||||||
export const settingsRoutes: RouteConfig[] = [
|
export const settingsRoutes: RouteConfig[] = [
|
||||||
{
|
{
|
||||||
path: "/settings",
|
path: "/settings",
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "Settings" */ "@/views/Settings.vue"),
|
import(/* webpackChunkName: "Settings" */ "@/views/Settings.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
@ -47,7 +47,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "account/general",
|
path: "account/general",
|
||||||
name: SettingsRouteName.ACCOUNT_SETTINGS_GENERAL,
|
name: SettingsRouteName.ACCOUNT_SETTINGS_GENERAL,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "AccountSettings" */ "@/views/Settings/AccountSettings.vue"
|
/* webpackChunkName: "AccountSettings" */ "@/views/Settings/AccountSettings.vue"
|
||||||
),
|
),
|
||||||
@ -57,7 +57,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "preferences",
|
path: "preferences",
|
||||||
name: SettingsRouteName.PREFERENCES,
|
name: SettingsRouteName.PREFERENCES,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "Preferences" */ "@/views/Settings/Preferences.vue"
|
/* webpackChunkName: "Preferences" */ "@/views/Settings/Preferences.vue"
|
||||||
),
|
),
|
||||||
@ -67,7 +67,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "notifications",
|
path: "notifications",
|
||||||
name: SettingsRouteName.NOTIFICATIONS,
|
name: SettingsRouteName.NOTIFICATIONS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "Notifications" */ "@/views/Settings/Notifications.vue"
|
/* webpackChunkName: "Notifications" */ "@/views/Settings/Notifications.vue"
|
||||||
),
|
),
|
||||||
@ -83,7 +83,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "admin/dashboard",
|
path: "admin/dashboard",
|
||||||
name: SettingsRouteName.ADMIN_DASHBOARD,
|
name: SettingsRouteName.ADMIN_DASHBOARD,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "Dashboard" */ "@/views/Admin/Dashboard.vue"
|
/* webpackChunkName: "Dashboard" */ "@/views/Admin/Dashboard.vue"
|
||||||
),
|
),
|
||||||
@ -92,7 +92,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "admin/settings",
|
path: "admin/settings",
|
||||||
name: SettingsRouteName.ADMIN_SETTINGS,
|
name: SettingsRouteName.ADMIN_SETTINGS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "AdminSettings" */ "@/views/Admin/Settings.vue"
|
/* webpackChunkName: "AdminSettings" */ "@/views/Admin/Settings.vue"
|
||||||
),
|
),
|
||||||
@ -102,7 +102,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "admin/users",
|
path: "admin/users",
|
||||||
name: SettingsRouteName.USERS,
|
name: SettingsRouteName.USERS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "Users" */ "@/views/Admin/Users.vue"),
|
import(/* webpackChunkName: "Users" */ "@/views/Admin/Users.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
@ -110,7 +110,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "admin/users/:id",
|
path: "admin/users/:id",
|
||||||
name: SettingsRouteName.ADMIN_USER_PROFILE,
|
name: SettingsRouteName.ADMIN_USER_PROFILE,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "AdminUserProfile" */ "@/views/Admin/AdminUserProfile.vue"
|
/* webpackChunkName: "AdminUserProfile" */ "@/views/Admin/AdminUserProfile.vue"
|
||||||
),
|
),
|
||||||
@ -120,7 +120,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "admin/profiles",
|
path: "admin/profiles",
|
||||||
name: SettingsRouteName.PROFILES,
|
name: SettingsRouteName.PROFILES,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "AdminProfiles" */ "@/views/Admin/Profiles.vue"
|
/* webpackChunkName: "AdminProfiles" */ "@/views/Admin/Profiles.vue"
|
||||||
),
|
),
|
||||||
@ -130,7 +130,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "admin/profiles/:id",
|
path: "admin/profiles/:id",
|
||||||
name: SettingsRouteName.ADMIN_PROFILE,
|
name: SettingsRouteName.ADMIN_PROFILE,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "AdminProfile" */ "@/views/Admin/AdminProfile.vue"
|
/* webpackChunkName: "AdminProfile" */ "@/views/Admin/AdminProfile.vue"
|
||||||
),
|
),
|
||||||
@ -140,7 +140,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "admin/groups",
|
path: "admin/groups",
|
||||||
name: SettingsRouteName.ADMIN_GROUPS,
|
name: SettingsRouteName.ADMIN_GROUPS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "GroupProfiles" */ "@/views/Admin/GroupProfiles.vue"
|
/* webpackChunkName: "GroupProfiles" */ "@/views/Admin/GroupProfiles.vue"
|
||||||
),
|
),
|
||||||
@ -150,7 +150,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "admin/groups/:id",
|
path: "admin/groups/:id",
|
||||||
name: SettingsRouteName.ADMIN_GROUP_PROFILE,
|
name: SettingsRouteName.ADMIN_GROUP_PROFILE,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "AdminGroupProfile" */ "@/views/Admin/AdminGroupProfile.vue"
|
/* webpackChunkName: "AdminGroupProfile" */ "@/views/Admin/AdminGroupProfile.vue"
|
||||||
),
|
),
|
||||||
@ -161,14 +161,14 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
path: "admin/relays",
|
path: "admin/relays",
|
||||||
name: SettingsRouteName.RELAYS,
|
name: SettingsRouteName.RELAYS,
|
||||||
redirect: { name: SettingsRouteName.RELAY_FOLLOWINGS },
|
redirect: { name: SettingsRouteName.RELAY_FOLLOWINGS },
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "Follows" */ "@/views/Admin/Follows.vue"),
|
import(/* webpackChunkName: "Follows" */ "@/views/Admin/Follows.vue"),
|
||||||
meta: { requiredAuth: true },
|
meta: { requiredAuth: true },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "followings",
|
path: "followings",
|
||||||
name: SettingsRouteName.RELAY_FOLLOWINGS,
|
name: SettingsRouteName.RELAY_FOLLOWINGS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "Followings" */ "@/components/Admin/Followings.vue"
|
/* webpackChunkName: "Followings" */ "@/components/Admin/Followings.vue"
|
||||||
),
|
),
|
||||||
@ -177,7 +177,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "followers",
|
path: "followers",
|
||||||
name: SettingsRouteName.RELAY_FOLLOWERS,
|
name: SettingsRouteName.RELAY_FOLLOWERS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "Followers" */ "@/components/Admin/Followers.vue"
|
/* webpackChunkName: "Followers" */ "@/components/Admin/Followers.vue"
|
||||||
),
|
),
|
||||||
@ -195,7 +195,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/moderation/reports/:filter?",
|
path: "/moderation/reports/:filter?",
|
||||||
name: SettingsRouteName.REPORTS,
|
name: SettingsRouteName.REPORTS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "ReportList" */ "@/views/Moderation/ReportList.vue"
|
/* webpackChunkName: "ReportList" */ "@/views/Moderation/ReportList.vue"
|
||||||
),
|
),
|
||||||
@ -205,7 +205,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/moderation/report/:reportId",
|
path: "/moderation/report/:reportId",
|
||||||
name: SettingsRouteName.REPORT,
|
name: SettingsRouteName.REPORT,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "Report" */ "@/views/Moderation/Report.vue"
|
/* webpackChunkName: "Report" */ "@/views/Moderation/Report.vue"
|
||||||
),
|
),
|
||||||
@ -215,7 +215,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/moderation/logs",
|
path: "/moderation/logs",
|
||||||
name: SettingsRouteName.REPORT_LOGS,
|
name: SettingsRouteName.REPORT_LOGS,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "ModerationLogs" */ "@/views/Moderation/Logs.vue"
|
/* webpackChunkName: "ModerationLogs" */ "@/views/Moderation/Logs.vue"
|
||||||
),
|
),
|
||||||
@ -231,7 +231,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/identity/create",
|
path: "/identity/create",
|
||||||
name: SettingsRouteName.CREATE_IDENTITY,
|
name: SettingsRouteName.CREATE_IDENTITY,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "EditIdentity" */ "@/views/Account/children/EditIdentity.vue"
|
/* webpackChunkName: "EditIdentity" */ "@/views/Account/children/EditIdentity.vue"
|
||||||
),
|
),
|
||||||
@ -244,7 +244,7 @@ export const settingsRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/identity/update/:identityName?",
|
path: "/identity/update/:identityName?",
|
||||||
name: SettingsRouteName.UPDATE_IDENTITY,
|
name: SettingsRouteName.UPDATE_IDENTITY,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "EditIdentity" */ "@/views/Account/children/EditIdentity.vue"
|
/* webpackChunkName: "EditIdentity" */ "@/views/Account/children/EditIdentity.vue"
|
||||||
),
|
),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { beforeRegisterGuard } from "@/router/guards/register-guard";
|
import { beforeRegisterGuard } from "@/router/guards/register-guard";
|
||||||
import { Route, RouteConfig } from "vue-router";
|
import { Route, RouteConfig } from "vue-router";
|
||||||
import { EsModuleComponent } from "vue/types/options";
|
import { ImportedComponent } from "vue/types/options";
|
||||||
|
|
||||||
export enum UserRouteName {
|
export enum UserRouteName {
|
||||||
REGISTER = "Register",
|
REGISTER = "Register",
|
||||||
@ -17,7 +17,7 @@ export const userRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/register/user",
|
path: "/register/user",
|
||||||
name: UserRouteName.REGISTER,
|
name: UserRouteName.REGISTER,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "RegisterUser" */ "@/views/User/Register.vue"
|
/* webpackChunkName: "RegisterUser" */ "@/views/User/Register.vue"
|
||||||
),
|
),
|
||||||
@ -28,7 +28,7 @@ export const userRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/register/profile",
|
path: "/register/profile",
|
||||||
name: UserRouteName.REGISTER_PROFILE,
|
name: UserRouteName.REGISTER_PROFILE,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "RegisterProfile" */ "@/views/Account/Register.vue"
|
/* webpackChunkName: "RegisterProfile" */ "@/views/Account/Register.vue"
|
||||||
),
|
),
|
||||||
@ -42,7 +42,7 @@ export const userRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/resend-instructions",
|
path: "/resend-instructions",
|
||||||
name: UserRouteName.RESEND_CONFIRMATION,
|
name: UserRouteName.RESEND_CONFIRMATION,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "ResendConfirmation" */ "@/views/User/ResendConfirmation.vue"
|
/* webpackChunkName: "ResendConfirmation" */ "@/views/User/ResendConfirmation.vue"
|
||||||
),
|
),
|
||||||
@ -52,7 +52,7 @@ export const userRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/password-reset/send",
|
path: "/password-reset/send",
|
||||||
name: UserRouteName.SEND_PASSWORD_RESET,
|
name: UserRouteName.SEND_PASSWORD_RESET,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "SendPasswordReset" */ "@/views/User/SendPasswordReset.vue"
|
/* webpackChunkName: "SendPasswordReset" */ "@/views/User/SendPasswordReset.vue"
|
||||||
),
|
),
|
||||||
@ -62,7 +62,7 @@ export const userRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/password-reset/:token",
|
path: "/password-reset/:token",
|
||||||
name: UserRouteName.PASSWORD_RESET,
|
name: UserRouteName.PASSWORD_RESET,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "PasswordReset" */ "@/views/User/PasswordReset.vue"
|
/* webpackChunkName: "PasswordReset" */ "@/views/User/PasswordReset.vue"
|
||||||
),
|
),
|
||||||
@ -72,7 +72,7 @@ export const userRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/validate/email/:token",
|
path: "/validate/email/:token",
|
||||||
name: UserRouteName.EMAIL_VALIDATE,
|
name: UserRouteName.EMAIL_VALIDATE,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(
|
import(
|
||||||
/* webpackChunkName: "EmailValidate" */ "@/views/User/EmailValidate.vue"
|
/* webpackChunkName: "EmailValidate" */ "@/views/User/EmailValidate.vue"
|
||||||
),
|
),
|
||||||
@ -82,7 +82,7 @@ export const userRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/validate/:token",
|
path: "/validate/:token",
|
||||||
name: UserRouteName.VALIDATE,
|
name: UserRouteName.VALIDATE,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "Validate" */ "@/views/User/Validate.vue"),
|
import(/* webpackChunkName: "Validate" */ "@/views/User/Validate.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiresAuth: false },
|
meta: { requiresAuth: false },
|
||||||
@ -90,7 +90,7 @@ export const userRoutes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: "/login",
|
path: "/login",
|
||||||
name: UserRouteName.LOGIN,
|
name: UserRouteName.LOGIN,
|
||||||
component: (): Promise<EsModuleComponent> =>
|
component: (): Promise<ImportedComponent> =>
|
||||||
import(/* webpackChunkName: "Login" */ "@/views/User/Login.vue"),
|
import(/* webpackChunkName: "Login" */ "@/views/User/Login.vue"),
|
||||||
props: true,
|
props: true,
|
||||||
meta: { requiredAuth: false },
|
meta: { requiredAuth: false },
|
||||||
|
Loading…
Reference in New Issue
Block a user