@selfcommunity/react-core
Version:
React Core Components useful for integrating UI Community components (react-ui).
93 lines (92 loc) • 6.69 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultRoutes = exports.LIVESTREAM_ROUTE_NAME = exports.EVENTS_HIGHLIGHT_ROUTE_NAME = exports.EVENTS_SUBSCRIBED_ROUTE_NAME = exports.EVENTS_SUGGESTED_ROUTE_NAME = exports.EVENTS_ROUTE_NAME = exports.EVENT_ROUTE_NAME = exports.GROUPS_SUBSCRIBED_ROUTE_NAME = exports.GROUPS_ROUTE_NAME = exports.GROUP_MESSAGES_ROUTE_NAME = exports.GROUP_MEMBERS_ROUTE_NAME = exports.GROUP_ROUTE_NAME = exports.LEGAL_PAGES_ROUTE_NAME = exports.CUSTOM_PAGES_ROUTE_NAME = exports.RECOVER_ROUTE_NAME = exports.SIGNUP_ROUTE_NAME = exports.SIGNIN_ROUTE_NAME = exports.INCUBATOR_ROUTE_NAME = exports.LOYALTY_ROUTE_NAME = exports.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME = exports.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME = exports.USER_PROFILE_CATEGORIES_ROUTE_NAME = exports.USER_PROFILE_CONNECTIONS_REQUESTS_SENT_ROUTE_NAME = exports.USER_PROFILE_CONNECTIONS_REQUESTS_ROUTE_NAME = exports.USER_PROFILE_CONNECTIONS_ROUTE_NAME = exports.USER_PROFILE_FOLLOWERS_ROUTE_NAME = exports.USER_PROFILE_FOLLOWINGS_ROUTE_NAME = exports.USER_PRIVATE_MESSAGES_ROUTE_NAME = exports.USER_NOTIFICATIONS_ROUTE_NAME = exports.USER_PROFILE_SETTINGS_ROUTE_NAME = exports.USER_PROFILE_ROUTE_NAME = exports.CATEGORIES_LIST_ROUTE_NAME = exports.CATEGORY_TRENDING_FEED_ROUTE_NAME = exports.CATEGORY_ROUTE_NAME = exports.COMMENT_ROUTE_NAME = exports.STATUS_ROUTE_NAME = exports.DISCUSSION_ROUTE_NAME = exports.POST_ROUTE_NAME = exports.EXPLORE_ROUTE_NAME = exports.HOME_ROUTE_NAME = exports.ROUTER_OPTION = exports.PORTAL_OPTION = void 0;
exports.PORTAL_OPTION = 'portal';
exports.ROUTER_OPTION = 'router';
/**
* Routes name
*/
exports.HOME_ROUTE_NAME = 'home';
exports.EXPLORE_ROUTE_NAME = 'explore';
exports.POST_ROUTE_NAME = 'post';
exports.DISCUSSION_ROUTE_NAME = 'discussion';
exports.STATUS_ROUTE_NAME = 'status';
exports.COMMENT_ROUTE_NAME = 'comment';
exports.CATEGORY_ROUTE_NAME = 'category';
exports.CATEGORY_TRENDING_FEED_ROUTE_NAME = 'category_trending_feed';
exports.CATEGORIES_LIST_ROUTE_NAME = 'categories';
exports.USER_PROFILE_ROUTE_NAME = 'user_profile';
exports.USER_PROFILE_SETTINGS_ROUTE_NAME = 'user_profile_settings';
exports.USER_NOTIFICATIONS_ROUTE_NAME = 'user_notifications';
exports.USER_PRIVATE_MESSAGES_ROUTE_NAME = 'user_messages';
exports.USER_PROFILE_FOLLOWINGS_ROUTE_NAME = 'user_followings';
exports.USER_PROFILE_FOLLOWERS_ROUTE_NAME = 'user_followers';
exports.USER_PROFILE_CONNECTIONS_ROUTE_NAME = 'user_connections';
exports.USER_PROFILE_CONNECTIONS_REQUESTS_ROUTE_NAME = 'user_connections_requests';
exports.USER_PROFILE_CONNECTIONS_REQUESTS_SENT_ROUTE_NAME = 'user_connections_requests_sent';
exports.USER_PROFILE_CATEGORIES_ROUTE_NAME = 'user_categories';
exports.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME = 'user_followed_posts';
exports.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME = 'user_followed_discussions';
exports.LOYALTY_ROUTE_NAME = 'loyalty';
exports.INCUBATOR_ROUTE_NAME = 'incubator';
exports.SIGNIN_ROUTE_NAME = 'signin';
exports.SIGNUP_ROUTE_NAME = 'signup';
exports.RECOVER_ROUTE_NAME = 'recover';
exports.CUSTOM_PAGES_ROUTE_NAME = 'custom_pages';
exports.LEGAL_PAGES_ROUTE_NAME = 'legal_pages';
exports.GROUP_ROUTE_NAME = 'group';
exports.GROUP_MEMBERS_ROUTE_NAME = 'group_members';
exports.GROUP_MESSAGES_ROUTE_NAME = 'group_messages';
exports.GROUPS_ROUTE_NAME = 'groups';
exports.GROUPS_SUBSCRIBED_ROUTE_NAME = 'groups_subscribed';
exports.EVENT_ROUTE_NAME = 'event';
exports.EVENTS_ROUTE_NAME = 'events';
exports.EVENTS_SUGGESTED_ROUTE_NAME = 'events_suggested';
exports.EVENTS_SUBSCRIBED_ROUTE_NAME = 'events_subscribed';
exports.EVENTS_HIGHLIGHT_ROUTE_NAME = 'events_highlight';
exports.LIVESTREAM_ROUTE_NAME = 'live';
/**
* Default Routes
* @type {{[p: string]: string, '[POST_ROUTE_NAME]': string, '[INCUBATOR_ROUTE_NAME]': string, '[LOYALTY_ROUTE_NAME]': string, '[USER_NOTIFICATION_ROUTE_NAME]': string, '[USER_PRIVATE_MESSAGES_ROUTE_NAME]': string, '[COMMENT_ROUTE_NAME]': string, '[DISCUSSION_ROUTE_NAME]': string, '[CATEGORIES_ROUTE_NAME]': string, '[USER_PROFILE_ROUTE_NAME]': string, '[CATEGORY_ROUTE_NAME]': string, '[USER_PROFILE_SETTINGS_ROUTE_NAME]': string, '[STATUS_ROUTE_NAME]': string}}
*/
exports.defaultRoutes = {
[ ]: '/',
[ ]: '/explore/',
[ ]: '/post/:id/',
[ ]: '/discussion/:id/',
[ ]: '/status/:id/',
[ ]: '/:contribution_type/:contribution_id/comment/:id/',
[ ]: '/category/:id/:slug/',
[ ]: '/category/:id/:slug/trending/',
[ ]: '/categories/',
[ ]: '/user/:id/',
[ ]: '/user/:id/edit/',
[ ]: '/notification/',
[ ]: '/messages/:id/',
[ ]: '/user/:id/followed/',
[ ]: '/user/:id/followers/',
[ ]: '/user/:id/connections/',
[ ]: '/user/:id/connections/requests/',
[ ]: '/user/:id/connections/requests/sent/',
[ ]: '/user/:id/categories/',
[ ]: '/user/:id/posts/followed/',
[ ]: '/user/:id/discussions/followed/',
[ ]: '/loyalty/',
[ ]: '/incubator/:id/',
[ ]: '/signin/',
[ ]: '/signup/',
[ ]: '/recover/',
[ ]: '/:id/:slug/',
[ ]: '/legal/:policy/',
[ ]: '/group/:id/:slug/',
[ ]: '/group/:id/:slug/members/',
[ ]: '/group/:id/:slug/messages/',
[ ]: '/groups/',
[ ]: '/groups/subscribed/',
[ ]: '/events/',
[ ]: '/events/suggested',
[ ]: '/event/:id/:slug/',
[ ]: '/events/subscribed/',
[ ]: '/events/highlight/',
[ ]: '/live/:slug/',
};