elk/constants/index.ts

30 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-11-23 16:06:27 +03:00
export const APP_NAME = 'Elk'
2022-11-15 14:54:07 +03:00
export const DEFAULT_POST_CHARS_LIMIT = 500
2022-11-15 18:48:23 +03:00
export const DEFAULT_SERVER = 'mas.to'
2022-12-29 23:08:50 +03:00
export const DEFAULT_FONT_SIZE = 'md'
2022-11-23 16:06:27 +03:00
export const STORAGE_KEY_DRAFTS = 'elk-drafts'
export const STORAGE_KEY_USERS = 'elk-users'
2022-11-25 17:21:07 +03:00
export const STORAGE_KEY_SERVERS = 'elk-servers'
2022-11-23 16:06:27 +03:00
export const STORAGE_KEY_CURRENT_USER = 'elk-current-user'
export const STORAGE_KEY_NOTIFY_TAB = 'elk-notify-tab'
2022-11-24 05:38:14 +03:00
export const STORAGE_KEY_FIRST_VISIT = 'elk-first-visit'
2022-11-24 07:21:30 +03:00
export const STORAGE_KEY_ZEN_MODE = 'elk-zenmode'
2022-11-28 10:12:13 +03:00
export const STORAGE_KEY_LANG = 'elk-lang'
2022-11-29 01:57:27 +03:00
export const STORAGE_KEY_FEATURE_FLAGS = 'elk-feature-flags'
2022-12-24 01:56:16 +03:00
export const STORAGE_KEY_CUSTOM_EMOJIS = 'elk-custom-emojis'
2022-12-11 13:52:36 +03:00
export const STORAGE_KEY_HIDE_EXPLORE_POSTS_TIPS = 'elk-hide-explore-posts-tips'
export const STORAGE_KEY_HIDE_EXPLORE_NEWS_TIPS = 'elk-hide-explore-news-tips'
export const STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS = 'elk-hide-explore-tags-tips'
export const STORAGE_KEY_NOTIFICATION = 'elk-notification'
export const STORAGE_KEY_NOTIFICATION_POLICY = 'elk-notification-policy'
2022-12-28 04:28:17 +03:00
export const COOKIE_MAX_AGE = 10 * 365 * 24 * 60 * 60 * 1000
export const COOKIE_KEY_FONT_SIZE = 'elk-font-size'
export const COOKIE_KEY_COLOR_MODE = 'elk-color-mode'
2022-12-28 04:28:17 +03:00
export const COOKIE_KEY_LOCALE = 'elk-locale'
export const HANDLED_MASTO_URLS = /^(https?:\/\/)?([\w\d-]+\.)+\w+\/(@[@\w\d-\.]+)(\/objects)?(\/\d+)?$/