mobilizon.chapril.org-mobil.../js/src/router/name.ts
Thomas Citharel ee20e03cc2
Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-11 16:46:31 +02:00

36 lines
895 B
TypeScript

import { EventRouteName } from "./event";
import { ActorRouteName } from "./actor";
import { ErrorRouteName } from "./error";
import { SettingsRouteName } from "./settings";
import { GroupsRouteName } from "./groups";
import { DiscussionRouteName } from "./discussion";
import { UserRouteName } from "./user";
enum GlobalRouteName {
HOME = "HOME",
ABOUT = "ABOUT",
CATEGORIES = "CATEGORIES",
ABOUT_INSTANCE = "ABOUT_INSTANCE",
PAGE_NOT_FOUND = "PageNotFound",
SEARCH = "SEARCH",
TERMS = "TERMS",
PRIVACY = "PRIVACY",
GLOSSARY = "GLOSSARY",
INTERACT = "INTERACT",
RULES = "RULES",
WELCOME_SCREEN = "WELCOME_SCREEN",
}
// Hack to merge enums
// tslint:disable:variable-name
export default {
...GlobalRouteName,
...UserRouteName,
...EventRouteName,
...ActorRouteName,
...SettingsRouteName,
...GroupsRouteName,
...DiscussionRouteName,
...ErrorRouteName,
};