build: switch from yarn to npm to manage js dependencies and move js contents to root
yarn v1 is being deprecated and starts to have some issues Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
37
src/router/name.ts
Normal file
37
src/router/name.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
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 { ConversationRouteName } from "./conversation";
|
||||
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,
|
||||
...ConversationRouteName,
|
||||
...ErrorRouteName,
|
||||
};
|
||||
Reference in New Issue
Block a user