2020-04-24 04:17:27 +01:00
|
|
|
import classNames from 'classnames/bind'
|
|
|
|
export const CX = classNames.bind(_s)
|
|
|
|
|
2020-05-01 06:50:27 +01:00
|
|
|
export const APP_NAME = 'Gab Social'
|
2020-02-22 23:26:23 +00:00
|
|
|
|
2020-04-29 23:32:49 +01:00
|
|
|
export const DEFAULT_REL = 'noopener noreferrer'
|
|
|
|
|
2020-03-25 03:08:43 +00:00
|
|
|
export const BREAKPOINT_EXTRA_LARGE = 1480
|
|
|
|
export const BREAKPOINT_LARGE = 1280
|
|
|
|
export const BREAKPOINT_MEDIUM = 1160
|
|
|
|
export const BREAKPOINT_SMALL = 1080
|
2020-04-24 04:17:27 +01:00
|
|
|
export const BREAKPOINT_EXTRA_SMALL = 992
|
|
|
|
|
|
|
|
export const ALLOWED_AROUND_SHORT_CODE = '><\u0085\u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\u0009\u000a\u000b\u000c\u000d'
|
|
|
|
export const MAX_POST_CHARACTER_COUNT = 3000
|
|
|
|
|
2020-04-29 23:32:49 +01:00
|
|
|
export const URL_DISSENTER_SHOP = 'https://shop.dissenter.com'
|
2020-07-02 02:38:10 +01:00
|
|
|
export const URL_DISSENTER_SHOP_DONATIONS = 'https://shop.dissenter.com/category/donations'
|
2020-05-14 07:03:22 +01:00
|
|
|
export const URL_GAB_PRO = 'https://pro.gab.com'
|
2020-04-29 23:32:49 +01:00
|
|
|
|
2020-04-28 06:33:58 +01:00
|
|
|
export const PLACEHOLDER_MISSING_HEADER_SRC = '/original/missing.png'
|
2020-04-24 04:17:27 +01:00
|
|
|
|
2020-05-27 06:15:10 +01:00
|
|
|
export const POPOVER_COMMENT_SORTING_OPTIONS = 'COMMENT_SORTING_OPTIONS'
|
2020-04-28 06:33:58 +01:00
|
|
|
export const POPOVER_DATE_PICKER = 'DATE_PICKER'
|
|
|
|
export const POPOVER_EMOJI_PICKER = 'EMOJI_PICKER'
|
2020-07-25 03:41:05 +01:00
|
|
|
export const POPOVER_GROUP_LIST_SORT_OPTIONS = 'GROUP_LIST_SORT_OPTIONS'
|
2020-06-11 04:27:03 +01:00
|
|
|
export const POPOVER_GROUP_MEMBER_OPTIONS = 'GROUP_MEMBER_OPTIONS'
|
2020-05-07 06:55:24 +01:00
|
|
|
export const POPOVER_GROUP_OPTIONS = 'GROUP_OPTIONS'
|
2020-08-06 04:59:12 +01:00
|
|
|
export const POPOVER_GROUP_TIMELINE_SORT_OPTIONS = 'GROUP_TIMELINE_SORT_OPTIONS'
|
|
|
|
export const POPOVER_GROUP_TIMELINE_SORT_TOP_OPTIONS = 'GROUP_TIMELINE_SORT_TOP_OPTIONS'
|
2020-05-15 04:17:31 +01:00
|
|
|
export const POPOVER_NAV_SETTINGS = 'NAV_SETTINGS'
|
2020-04-24 04:17:27 +01:00
|
|
|
export const POPOVER_PROFILE_OPTIONS = 'PROFILE_OPTIONS'
|
2020-04-28 06:33:58 +01:00
|
|
|
export const POPOVER_SIDEBAR_MORE = 'SIDEBAR_MORE'
|
|
|
|
export const POPOVER_STATUS_OPTIONS = 'STATUS_OPTIONS'
|
2020-07-25 01:05:31 +01:00
|
|
|
export const POPOVER_STATUS_EXPIRATION_OPTIONS = 'STATUS_EXPIRATION_OPTIONS'
|
2020-10-24 20:17:21 +01:00
|
|
|
export const POPOVER_STATUS_SHARE = 'STATUS_SHARE'
|
2020-04-28 06:33:58 +01:00
|
|
|
export const POPOVER_STATUS_VISIBILITY = 'STATUS_VISIBILITY'
|
2020-09-14 17:40:42 +01:00
|
|
|
export const POPOVER_TIMELINE_INJECTION_OPTIONS = 'TIMELINE_INJECTION_OPTIONS'
|
2020-04-28 06:33:58 +01:00
|
|
|
export const POPOVER_USER_INFO = 'USER_INFO'
|
2020-06-09 00:48:31 +01:00
|
|
|
export const POPOVER_VIDEO_STATS = 'VIDEO_STATS'
|
2020-04-28 06:33:58 +01:00
|
|
|
|
|
|
|
export const MODAL_BLOCK_ACCOUNT = 'BLOCK_ACCOUNT'
|
|
|
|
export const MODAL_BOOST = 'BOOST'
|
|
|
|
export const MODAL_COMMUNITY_TIMELINE_SETTINGS = 'COMMUNITY_TIMELINE_SETTINGS'
|
|
|
|
export const MODAL_COMPOSE = 'COMPOSE'
|
|
|
|
export const MODAL_CONFIRM = 'CONFIRM'
|
|
|
|
export const MODAL_DISPLAY_OPTIONS = 'DISPLAY_OPTIONS'
|
|
|
|
export const MODAL_EDIT_PROFILE = 'EDIT_PROFILE'
|
2020-07-22 04:24:26 +01:00
|
|
|
export const MODAL_EDIT_SHORTCUTS = 'EDIT_SHORTCUTS'
|
2020-10-16 22:25:37 +01:00
|
|
|
export const MODAL_EMAIL_CONFIRMATION_REMINDER = 'EMAIL_CONFIRMATION_REMINDER'
|
2020-04-28 06:33:58 +01:00
|
|
|
export const MODAL_EMBED = 'EMBED'
|
|
|
|
export const MODAL_GROUP_CREATE = 'GROUP_CREATE'
|
|
|
|
export const MODAL_GROUP_DELETE = 'GROUP_DELETE'
|
2020-09-11 23:27:00 +01:00
|
|
|
export const MODAL_GROUP_PASSWORD = 'GROUP_PASSWORD'
|
2020-04-28 06:33:58 +01:00
|
|
|
export const MODAL_HASHTAG_TIMELINE_SETTINGS = 'HASHTAG_TIMELINE_SETTINGS'
|
|
|
|
export const MODAL_HOME_TIMELINE_SETTINGS = 'HOME_TIMELINE_SETTINGS'
|
|
|
|
export const MODAL_HOTKEYS = 'HOTKEYS'
|
2020-06-16 03:38:56 +01:00
|
|
|
export const MODAL_LIST_ADD_USER = 'LIST_ADD_USER'
|
2020-04-28 06:33:58 +01:00
|
|
|
export const MODAL_LIST_CREATE = 'LIST_CREATE'
|
|
|
|
export const MODAL_LIST_DELETE = 'LIST_DELETE'
|
|
|
|
export const MODAL_LIST_EDITOR = 'LIST_EDITOR'
|
|
|
|
export const MODAL_LIST_TIMELINE_SETTINGS = 'LIST_TIMELINE_SETTINGS'
|
|
|
|
export const MODAL_MEDIA = 'MEDIA'
|
|
|
|
export const MODAL_MUTE = 'MUTE'
|
|
|
|
export const MODAL_PRO_UPGRADE = 'PRO_UPGRADE'
|
|
|
|
export const MODAL_REPORT = 'REPORT'
|
2020-05-03 06:22:49 +01:00
|
|
|
export const MODAL_STATUS_LIKES = 'STATUS_LIKES'
|
|
|
|
export const MODAL_STATUS_REPOSTS = 'STATUS_REPOSTS'
|
2020-04-28 06:33:58 +01:00
|
|
|
export const MODAL_STATUS_REVISIONS = 'STATUS_REVISIONS'
|
|
|
|
export const MODAL_UNAUTHORIZED = 'UNAUTHORIZED'
|
|
|
|
export const MODAL_UNFOLLOW = 'UNFOLLOW'
|
|
|
|
export const MODAL_VIDEO = 'VIDEO'
|
2020-04-30 05:34:50 +01:00
|
|
|
|
2020-05-27 06:15:10 +01:00
|
|
|
export const COMMENT_SORTING_TYPE_NEWEST = 'newest'
|
|
|
|
export const COMMENT_SORTING_TYPE_OLDEST = 'oldest'
|
|
|
|
export const COMMENT_SORTING_TYPE_TOP = 'most-liked'
|
|
|
|
|
2020-07-25 03:41:05 +01:00
|
|
|
export const GROUP_LIST_SORTING_TYPE_ALPHABETICAL = 'abc'
|
|
|
|
export const GROUP_LIST_SORTING_TYPE_MOST_POPULAR = 'member-desc'
|
|
|
|
|
2020-07-02 02:37:10 +01:00
|
|
|
export const SUGGESTION_TYPE_VERIFIED = 'verified'
|
|
|
|
export const SUGGESTION_TYPE_RELATED = 'related'
|
|
|
|
|
2020-04-30 05:34:50 +01:00
|
|
|
export const FONT_SIZES_EXTRA_SMALL = '12px'
|
|
|
|
export const FONT_SIZES_SMALL = '13px'
|
|
|
|
export const FONT_SIZES_NORMAL = '14px'
|
|
|
|
export const FONT_SIZES_MEDIUM = '15px'
|
|
|
|
export const FONT_SIZES_LARGE = '16px'
|
|
|
|
export const FONT_SIZES_EXTRA_LARGE = '17px'
|
|
|
|
|
|
|
|
export const FONT_SIZES = {
|
2020-05-03 06:22:49 +01:00
|
|
|
'extra-small': '12px',
|
|
|
|
small: '13px',
|
|
|
|
normal: '14px',
|
|
|
|
medium: '15px',
|
|
|
|
large: '16px',
|
|
|
|
'extra-large': '17px',
|
2020-04-30 05:34:50 +01:00
|
|
|
}
|
2020-05-03 06:22:49 +01:00
|
|
|
|
2020-04-30 05:34:50 +01:00
|
|
|
export const THEMES = [
|
2020-11-03 21:12:24 +00:00
|
|
|
'white',
|
2020-04-30 05:34:50 +01:00
|
|
|
'light',
|
|
|
|
'muted',
|
|
|
|
'black',
|
|
|
|
]
|
|
|
|
|
2020-11-03 23:13:00 +00:00
|
|
|
export const DEFAULT_THEME = 'white'
|
2020-05-21 23:03:35 +01:00
|
|
|
export const DEFAULT_FONT_SIZE = 'normal'
|
|
|
|
|
|
|
|
export const NOTIFICATION_FILTERS = [
|
|
|
|
'all',
|
|
|
|
'mention',
|
|
|
|
'favourite',
|
|
|
|
'reblog',
|
|
|
|
'follow',
|
2020-06-07 18:27:08 +01:00
|
|
|
'poll',
|
|
|
|
'follow_requests',
|
2020-07-14 06:20:59 +01:00
|
|
|
]
|
|
|
|
|
2020-07-15 04:31:54 +01:00
|
|
|
export const GAB_COM_INTRODUCE_YOURSELF_GROUP_ID = '12'
|
|
|
|
|
2020-07-25 01:05:31 +01:00
|
|
|
export const MIN_ACCOUNT_CREATED_AT_ONBOARDING = 1594789200000 // 2020-07-15
|
|
|
|
|
|
|
|
export const STATUS_EXPIRATION_OPTION_5_MINUTES = '5-minutes'
|
|
|
|
export const STATUS_EXPIRATION_OPTION_60_MINUTES = '60-minutes'
|
|
|
|
export const STATUS_EXPIRATION_OPTION_6_HOURS = '6-hours'
|
|
|
|
export const STATUS_EXPIRATION_OPTION_24_HOURS = '24-hours'
|
|
|
|
export const STATUS_EXPIRATION_OPTION_3_DAYS = '3-days'
|
2020-08-06 04:59:12 +01:00
|
|
|
export const STATUS_EXPIRATION_OPTION_7_DAYS = '7-days'
|
|
|
|
|
2020-08-11 04:16:08 +01:00
|
|
|
export const GROUP_TIMELINE_SORTING_TYPE_HOT = 'hot'
|
2020-08-06 04:59:12 +01:00
|
|
|
export const GROUP_TIMELINE_SORTING_TYPE_NEWEST = 'newest'
|
|
|
|
export const GROUP_TIMELINE_SORTING_TYPE_RECENT_ACTIVITY = 'recent'
|
|
|
|
export const GROUP_TIMELINE_SORTING_TYPE_TOP = 'top'
|
|
|
|
|
|
|
|
export const GROUP_TIMELINE_SORTING_TYPE_TOP_OPTION_TODAY = 'today'
|
|
|
|
export const GROUP_TIMELINE_SORTING_TYPE_TOP_OPTION_WEEKLY = 'weekly'
|
|
|
|
export const GROUP_TIMELINE_SORTING_TYPE_TOP_OPTION_MONTHLY = 'monthly'
|
|
|
|
export const GROUP_TIMELINE_SORTING_TYPE_TOP_OPTION_YEARLY = 'yearly'
|
2020-08-07 05:06:39 +01:00
|
|
|
export const GROUP_TIMELINE_SORTING_TYPE_TOP_OPTION_ALL_TIME = 'all_time'
|
2020-08-06 05:25:53 +01:00
|
|
|
|
|
|
|
export const TOAST_TYPE_ERROR = 'error'
|
2020-09-14 17:40:42 +01:00
|
|
|
export const TOAST_TYPE_SUCCESS = 'success'
|
|
|
|
|
|
|
|
export const TIMELINE_INJECTION_FEATURED_GROUPS = 'TI_FEATURED_GROUPS'
|
|
|
|
export const TIMELINE_INJECTION_GROUP_CATEGORIES = 'TI_GROUP_CATEGORIES'
|
2020-10-13 16:30:14 +01:00
|
|
|
export const TIMELINE_INJECTION_PROGRESS = 'TI_PROGRESS'
|
2020-09-14 17:40:42 +01:00
|
|
|
export const TIMELINE_INJECTION_PRO_UPGRADE = 'TI_PRO_UPGRADE'
|
|
|
|
export const TIMELINE_INJECTION_PWA = 'TI_PWA'
|
|
|
|
export const TIMELINE_INJECTION_SHOP = 'TI_SHOP'
|
|
|
|
export const TIMELINE_INJECTION_USER_SUGGESTIONS = 'TI_USER_SUGGESTIONS'
|
|
|
|
|
|
|
|
export const TIMELINE_INJECTION_WEIGHT_DEFAULT = 1
|
|
|
|
export const TIMELINE_INJECTION_WEIGHT_MULTIPLIER = 100
|
|
|
|
export const TIMELINE_INJECTION_WEIGHT_SUBTRACTOR = 0.005
|
2020-11-07 05:22:20 +00:00
|
|
|
export const TIMELINE_INJECTION_WEIGHT_MIN = 0.01
|
|
|
|
|
|
|
|
export const TRENDS_RSS_SOURCES = [
|
|
|
|
{"id":"5daf64b18e955e2433b0f5ce","title":"Breitbart"},
|
|
|
|
{"id":"5daf66772fea4d3ba000883b","title":"Gateway Pundit"},
|
|
|
|
{"id":"5dafa767300c0e2601330386","title":"RT"},
|
|
|
|
{"id":"5dafa7d8786f593d02078cff","title":"Dailymail"},
|
|
|
|
{"id":"5dafa88b786f593d02078d35","title":"ABC News"},
|
|
|
|
{"id":"5e1e0a479d78d445de6a32bd","title":"Aljazeera"},
|
|
|
|
{"id":"5e1e0a7dc46f1d5487be1806","title":"Yahoo News"},
|
|
|
|
{"id":"5e1e0ae5c46f1d5487be1902","title":"NBC"},
|
|
|
|
{"id":"5e1e0b619d78d445de6a3564","title":"Reuters"},
|
|
|
|
{"id":"5e1e0b849d78d445de6a35c7","title":"LA Times"},
|
|
|
|
{"id":"5e5037159e35822b6afb0f77","title":"CBN"},
|
|
|
|
{"id":"5e52dfc91f94b1111db105ed","title":"National File"},
|
|
|
|
{"id":"5e56dcff1f94b1111db95a75","title":"WND"},
|
|
|
|
{"id":"5e6423d39f964d7a761997f8","title":"Mediaite"},
|
|
|
|
{"id":"5e715fa4a994095d6ca9b7a4","title":"AP"},
|
|
|
|
{"id":"5e715fbaa994095d6ca9b7ef","title":"Washington Post"},
|
|
|
|
{"id":"5e716016a994095d6ca9b907","title":"CNBC"},
|
|
|
|
{"id":"5e7160cb40c78e3a4af7a5bb","title":"FiveThirtyEight"},
|
|
|
|
{"id":"5e7160f7a994095d6ca9bbee","title":"Redstate"},
|
|
|
|
{"id":"5e71613ca994095d6ca9bcbb","title":"Vice"},
|
|
|
|
{"id":"5e716155a994095d6ca9bd03","title":"Politico"},
|
|
|
|
{"id":"5e7161f3a994095d6ca9bea6","title":"TMZ"},
|
|
|
|
{"id":"5e8275900d86876052a853ae","title":"CD Media"},
|
|
|
|
{"id":"5f97577c9b4a496b7e810354","title":"Infowars"}
|
|
|
|
]
|