2023-09-06 12:13:16 +03:00
|
|
|
import type { mastodon } from 'masto'
|
|
|
|
|
2022-11-23 16:06:27 +03:00
|
|
|
export const APP_NAME = 'Elk'
|
2022-11-15 14:54:07 +03:00
|
|
|
|
2022-11-25 17:01:28 +03:00
|
|
|
export const DEFAULT_POST_CHARS_LIMIT = 500
|
2023-01-22 23:18:03 +03:00
|
|
|
export const DEFAULT_FONT_SIZE = '15px'
|
2022-11-23 16:06:27 +03:00
|
|
|
|
2023-02-07 01:22:56 +03:00
|
|
|
export const ELK_PAGE_LIFECYCLE_FROZEN = 'elk-frozen'
|
|
|
|
|
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'
|
2023-01-15 12:21:03 +03:00
|
|
|
export const STORAGE_KEY_NODES = 'elk-nodes'
|
2023-01-14 12:34:53 +03:00
|
|
|
export const STORAGE_KEY_CURRENT_USER_HANDLE = 'elk-current-user-handle'
|
2022-11-23 16:06:27 +03:00
|
|
|
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'
|
2023-01-06 20:39:37 +03:00
|
|
|
export const STORAGE_KEY_SETTINGS = 'elk-settings'
|
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'
|
2022-12-18 02:29:16 +03:00
|
|
|
export const STORAGE_KEY_NOTIFICATION = 'elk-notification'
|
|
|
|
export const STORAGE_KEY_NOTIFICATION_POLICY = 'elk-notification-policy'
|
2023-01-26 23:30:39 +03:00
|
|
|
export const STORAGE_KEY_PWA_HIDE_INSTALL = 'elk-pwa-hide-install'
|
2024-03-07 17:33:25 +03:00
|
|
|
export const STORAGE_KEY_LAST_ACCESSED_NOTIFICATION_ROUTE = 'elk-last-accessed-notification-route'
|
|
|
|
export const STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE = 'elk-last-accessed-explore-route'
|
2024-04-12 12:38:43 +03:00
|
|
|
export const STORAGE_KEY_BOTTOM_NAV_BUTTONS = 'elk-bottom-nav-buttons'
|
2022-12-02 01:59:08 +03:00
|
|
|
|
2024-08-16 17:52:08 +03:00
|
|
|
export const HANDLED_MASTO_URLS = /^(https?:\/\/)?([\w\-]+\.)+\w+\/(@[@\w\-.]+)(\/objects)?(\/\d+)?$/
|
2023-09-06 12:13:16 +03:00
|
|
|
|
|
|
|
export const NOTIFICATION_FILTER_TYPES: mastodon.v1.NotificationType[] = ['status', 'reblog', 'follow', 'follow_request', 'favourite', 'poll', 'update', 'admin.sign_up', 'admin.report']
|
2024-03-07 22:15:35 +03:00
|
|
|
|
|
|
|
export const THEME_COLORS = {
|
|
|
|
themeDark: '#111111',
|
|
|
|
themeLight: '#fafafa',
|
|
|
|
backgroundDark: '#fafafa',
|
|
|
|
backgroundLight: '#111111',
|
|
|
|
} as const
|