forked from Ivasoft/mattermost-mobile
* skeleton in place * fix ts error * creating base option component * Added all options except reaction * moved options under /component/options * added destructive styling * skeleton - need polishing now * default emojis for quick reaction * rename files and small refactor * Properly close bottom sheet * redid reaction component * canSave, isSaved * canAddReaction condition * fix aligment * code clean up * fix opening on tablet * undo comment on local reaction action * undo needless formatting * clean up comment * shows selected reaction * fix marginTop and added title for Tablet * code clean up * investigating navigation * fixed navigation * Post options bottomSheet and renamed DrawerItem to MenuItem * renamed optionType to testID * update navigation_close_modal to close_bottom * removed context in favor of Pressable * Apply suggestions from code review Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * removed theme prop from PickReaction * en.json and code fixes * removed post_options from screen/index * removed post_options from screens constant * Revert "removed post_options from screen/index" This reverts commit24caa9773f. * Revert "removed post_options from screens constant" This reverts commit863e2faaf7. * fix theme import * remove useless margin * disabled post_options * queries - work in progress * queries - work in progress * queries - work in progress * minor fix * queries - work in progress * queries - work in progress * queries - work in progress * queries - work in progress * queries - work in progress * fix query * queries - work in progress * reaction query fixed * queries - work in progress * queries - canReaction option * queries - canDelete option * queries - canReply option * queries - canPin, canSave, canCopyPermalink option * queries - options - wip * queries - options - wip * queries - options - wip * fix location * removed logs * undo post_draft changes Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
185 lines
6.8 KiB
TypeScript
185 lines
6.8 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
const Preferences: Record<string, any> = {
|
|
CATEGORY_CHANNEL_OPEN_TIME: 'channel_open_time',
|
|
CATEGORY_CHANNEL_APPROXIMATE_VIEW_TIME: 'channel_approximate_view_time',
|
|
CATEGORY_DIRECT_CHANNEL_SHOW: 'direct_channel_show',
|
|
CATEGORY_GROUP_CHANNEL_SHOW: 'group_channel_show',
|
|
CATEGORY_EMOJI: 'emoji',
|
|
CATEGORY_SAVED_POST: 'flagged_post',
|
|
CATEGORY_FAVORITE_CHANNEL: 'favorite_channel',
|
|
CATEGORY_AUTO_RESET_MANUAL_STATUS: 'auto_reset_manual_status',
|
|
CATEGORY_NOTIFICATIONS: 'notifications',
|
|
COMMENTS: 'comments',
|
|
COMMENTS_ANY: 'any',
|
|
COMMENTS_ROOT: 'root',
|
|
COMMENTS_NEVER: 'never',
|
|
EMAIL: 'email',
|
|
EMAIL_INTERVAL: 'email_interval',
|
|
INTERVAL_FIFTEEN_MINUTES: 15 * 60,
|
|
INTERVAL_HOUR: 60 * 60,
|
|
INTERVAL_IMMEDIATE: 30,
|
|
|
|
// "immediate" is a 30 second interval
|
|
INTERVAL_NEVER: 0,
|
|
INTERVAL_NOT_SET: -1,
|
|
CATEGORY_DISPLAY_SETTINGS: 'display_settings',
|
|
NAME_NAME_FORMAT: 'name_format',
|
|
DISPLAY_PREFER_NICKNAME: 'nickname_full_name',
|
|
DISPLAY_PREFER_FULL_NAME: 'full_name',
|
|
DISPLAY_PREFER_USERNAME: 'username',
|
|
EMOJI_SKINTONE: 'emoji_skintone',
|
|
MENTION_KEYS: 'mention_keys',
|
|
USE_MILITARY_TIME: 'use_military_time',
|
|
CATEGORY_SIDEBAR_SETTINGS: 'sidebar_settings',
|
|
CHANNEL_SIDEBAR_ORGANIZATION: 'channel_sidebar_organization',
|
|
CHANNEL_SIDEBAR_AUTOCLOSE_DMS: 'close_unused_direct_messages',
|
|
AUTOCLOSE_DMS_ENABLED: 'after_seven_days',
|
|
CATEGORY_ADVANCED_SETTINGS: 'advanced_settings',
|
|
ADVANCED_FILTER_JOIN_LEAVE: 'join_leave',
|
|
ADVANCED_CODE_BLOCK_ON_CTRL_ENTER: 'code_block_ctrl_enter',
|
|
ADVANCED_SEND_ON_CTRL_ENTER: 'send_on_ctrl_enter',
|
|
CATEGORY_THEME: 'theme',
|
|
TEAMS_ORDER: 'teams_order',
|
|
THEMES: {
|
|
denim: {
|
|
type: 'Denim',
|
|
sidebarBg: '#1e325c',
|
|
sidebarText: '#ffffff',
|
|
sidebarUnreadText: '#ffffff',
|
|
sidebarTextHoverBg: '#28427b',
|
|
sidebarTextActiveBorder: '#579eff',
|
|
sidebarTextActiveColor: '#5d89ea',
|
|
sidebarHeaderBg: '#192a4d',
|
|
sidebarHeaderTextColor: '#ffffff',
|
|
sidebarTeamBarBg: '#14213e',
|
|
onlineIndicator: '#3db887',
|
|
awayIndicator: '#ffbc1f',
|
|
dndIndicator: '#d24b4e',
|
|
mentionBg: '#ffffff',
|
|
mentionColor: '#1e325c',
|
|
centerChannelBg: '#ffffff',
|
|
centerChannelColor: '#3f4350',
|
|
newMessageSeparator: '#cc8f00',
|
|
linkColor: '#386fe5',
|
|
buttonBg: '#1c58d9',
|
|
buttonColor: '#ffffff',
|
|
errorTextColor: '#d24b4e',
|
|
mentionHighlightBg: '#ffd470',
|
|
mentionHighlightLink: '#1b1d22',
|
|
codeTheme: 'github',
|
|
},
|
|
sapphire: {
|
|
type: 'Sapphire',
|
|
sidebarBg: '#174ab5',
|
|
sidebarText: '#ffffff',
|
|
sidebarUnreadText: '#ffffff',
|
|
sidebarTextHoverBg: '#2a58ba',
|
|
sidebarTextActiveBorder: '#57b5f0',
|
|
sidebarTextActiveColor: '#ffffff',
|
|
sidebarHeaderBg: '#1542a2',
|
|
sidebarHeaderTextColor: '#ffffff',
|
|
sidebarTeamBarBg: '#133a91',
|
|
onlineIndicator: '#3db887',
|
|
awayIndicator: '#ffbc1f',
|
|
dndIndicator: '#d24b4e',
|
|
mentionBg: '#ffffff',
|
|
mentionColor: '#174ab5',
|
|
centerChannelBg: '#ffffff',
|
|
centerChannelColor: '#3f4350',
|
|
newMessageSeparator: '#15b7b7',
|
|
linkColor: '#1c58d9',
|
|
buttonBg: '#1c58d9',
|
|
buttonColor: '#ffffff',
|
|
errorTextColor: '#d24b4e',
|
|
mentionHighlightBg: '#7ff0f0',
|
|
mentionHighlightLink: '#0d6e6e',
|
|
codeTheme: 'github',
|
|
},
|
|
quartz: {
|
|
type: 'Quartz',
|
|
sidebarBg: '#f4f4f6',
|
|
sidebarText: '#090a0b',
|
|
sidebarUnreadText: '#2d3039',
|
|
sidebarTextHoverBg: '#ebebed',
|
|
sidebarTextActiveBorder: '#32a4ec',
|
|
sidebarTextActiveColor: '#2d3039',
|
|
sidebarHeaderBg: '#e8e9ed',
|
|
sidebarHeaderTextColor: '#2d3039',
|
|
sidebarTeamBarBg: '#dddfe4',
|
|
onlineIndicator: '#3db887',
|
|
awayIndicator: '#f5ab07',
|
|
dndIndicator: '#d24b4e',
|
|
mentionBg: '#1c58d9',
|
|
mentionColor: '#ffffff',
|
|
centerChannelBg: '#ffffff',
|
|
centerChannelColor: '#3f4350',
|
|
newMessageSeparator: '#15b7b7',
|
|
linkColor: '#1c58d9',
|
|
buttonBg: '#1c58d9',
|
|
buttonColor: '#ffffff',
|
|
errorTextColor: '#d24b4e',
|
|
mentionHighlightBg: '#7ff0f0',
|
|
mentionHighlightLink: '#0d6e6e',
|
|
codeTheme: 'github',
|
|
},
|
|
indigo: {
|
|
type: 'Indigo',
|
|
sidebarBg: '#0f1a2e',
|
|
sidebarText: '#ffffff',
|
|
sidebarUnreadText: '#ffffff',
|
|
sidebarTextHoverBg: '#222c3f',
|
|
sidebarTextActiveBorder: '#1279ba',
|
|
sidebarTextActiveColor: '#ffffff',
|
|
sidebarHeaderBg: '#152231',
|
|
sidebarHeaderTextColor: '#dddfe4',
|
|
sidebarTeamBarBg: '#05080f',
|
|
onlineIndicator: '#3db887',
|
|
awayIndicator: '#f5ab00',
|
|
dndIndicator: '#d24b4e',
|
|
mentionBg: '#1c58d9',
|
|
mentionColor: '#ffffff',
|
|
centerChannelBg: '#0a111f',
|
|
centerChannelColor: '#dddfe4',
|
|
newMessageSeparator: '#81a3ef',
|
|
linkColor: '#5d89ea',
|
|
buttonBg: '#386fe5',
|
|
buttonColor: '#ffffff',
|
|
errorTextColor: '#d24b4e',
|
|
mentionHighlightBg: '#133a91',
|
|
mentionHighlightLink: '#a4f4f4',
|
|
codeTheme: 'github',
|
|
},
|
|
onyx: {
|
|
type: 'Onyx',
|
|
sidebarBg: '#121317',
|
|
sidebarText: '#ffffff',
|
|
sidebarUnreadText: '#ffffff',
|
|
sidebarTextHoverBg: '#25262a',
|
|
sidebarTextActiveBorder: '#1592e0',
|
|
sidebarTextActiveColor: '#ffffff',
|
|
sidebarHeaderBg: '#1b1d22',
|
|
sidebarHeaderTextColor: '#dddfe4',
|
|
sidebarTeamBarBg: '#000000',
|
|
onlineIndicator: '#3db887',
|
|
awayIndicator: '#f5ab00',
|
|
dndIndicator: '#d24b4e',
|
|
mentionBg: '#1c58d9',
|
|
mentionColor: '#ffffff',
|
|
centerChannelBg: '#090a0b',
|
|
centerChannelColor: '#dddfe4',
|
|
newMessageSeparator: '#1adbdb',
|
|
linkColor: '#5d89ea',
|
|
buttonBg: '#386fe5',
|
|
buttonColor: '#ffffff',
|
|
errorTextColor: '#da6c6e',
|
|
mentionHighlightBg: '#0d6e6e',
|
|
mentionHighlightLink: '#a4f4f4',
|
|
codeTheme: 'monokai',
|
|
},
|
|
} as Record<ThemeKey, Theme>,
|
|
};
|
|
|
|
export default Preferences;
|