* Add hitSlop to navigation header right buttons * Fix channel_item info muted style * Fix team switch when global threads * Wrap WS channel events in try/catch * Group Box component and Animated Group Box * SlideUpPanelItem style * Fix return value of setCurrentTeamAndChannelId * Add observeChannelSettings and include channel settings in prepareDeleteChannel * update OPTIONS_HEIGHT reference in find channels quick options * Fix DM limit in channel list * Fix category header style and translate default categories * Add snackbar for unmute/favorite/unfavorite * Add toggleFavoriteChannel remote action * Add makeDirectChannelVisible remote action * Use makeDirectChannelVisible in switchToChannelById and update toggleMuteChannel snackbar * Add channel actions common components * Update channel intro to use channel action common components * Rename ChannelDetails screen to ChannelInfo * Add channel quick actions * Update localization strings * Fix addChannelToDefaultCategory * Leave channel * Add localization strings * Fix snackBar screen event listener * Feedback review
126 lines
3.3 KiB
TypeScript
126 lines
3.3 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
export const ABOUT = 'About';
|
|
export const ACCOUNT = 'Account';
|
|
export const APPS_FORM = 'AppForm';
|
|
export const BOTTOM_SHEET = 'BottomSheet';
|
|
export const BROWSE_CHANNELS = 'BrowseChannels';
|
|
export const CHANNEL = 'Channel';
|
|
export const CHANNEL_ADD_PEOPLE = 'ChannelAddPeople';
|
|
export const CHANNEL_INFO = 'ChannelInfo';
|
|
export const CHANNEL_EDIT = 'ChannelEdit';
|
|
export const CODE = 'Code';
|
|
export const CREATE_DIRECT_MESSAGE = 'CreateDirectMessage';
|
|
export const CREATE_OR_EDIT_CHANNEL = 'CreateOrEditChannel';
|
|
export const CREATE_TEAM = 'CreateTeam';
|
|
export const CUSTOM_STATUS = 'CustomStatus';
|
|
export const CUSTOM_STATUS_CLEAR_AFTER = 'CustomStatusClearAfter';
|
|
export const DISPLAY_SETTINGS = 'DisplaySettings';
|
|
export const EDIT_POST = 'EditPost';
|
|
export const EDIT_PROFILE = 'EditProfile';
|
|
export const EDIT_SERVER = 'EditServer';
|
|
export const EMOJI_PICKER = 'EmojiPicker';
|
|
export const FIND_CHANNELS = 'FindChannels';
|
|
export const FORGOT_PASSWORD = 'ForgotPassword';
|
|
export const GALLERY = 'Gallery';
|
|
export const GLOBAL_THREADS = 'GlobalThreads';
|
|
export const HOME = 'Home';
|
|
export const INTEGRATION_SELECTOR = 'IntegrationSelector';
|
|
export const INTERACTIVE_DIALOG = 'InteractiveDialog';
|
|
export const IN_APP_NOTIFICATION = 'InAppNotification';
|
|
export const LATEX = 'Latex';
|
|
export const LOGIN = 'Login';
|
|
export const MENTIONS = 'Mentions';
|
|
export const MFA = 'MFA';
|
|
export const NOTIFICATION_SETTINGS = 'NotificationSettings';
|
|
export const PERMALINK = 'Permalink';
|
|
export const POST_OPTIONS = 'PostOptions';
|
|
export const REACTIONS = 'Reactions';
|
|
export const SAVED_POSTS = 'SavedPosts';
|
|
export const SEARCH = 'Search';
|
|
export const SELECT_TEAM = 'SelectTeam';
|
|
export const SERVER = 'Server';
|
|
export const SETTINGS = 'Settings';
|
|
export const SNACK_BAR = 'SnackBar';
|
|
export const SSO = 'SSO';
|
|
export const THREAD = 'Thread';
|
|
export const THREAD_FOLLOW_BUTTON = 'ThreadFollowButton';
|
|
export const THREAD_OPTIONS = 'ThreadOptions';
|
|
export const USER_PROFILE = 'UserProfile';
|
|
|
|
export default {
|
|
ABOUT,
|
|
ACCOUNT,
|
|
APPS_FORM,
|
|
BOTTOM_SHEET,
|
|
BROWSE_CHANNELS,
|
|
CHANNEL,
|
|
CHANNEL_ADD_PEOPLE,
|
|
CHANNEL_EDIT,
|
|
CHANNEL_INFO,
|
|
CODE,
|
|
CREATE_DIRECT_MESSAGE,
|
|
CREATE_OR_EDIT_CHANNEL,
|
|
CREATE_TEAM,
|
|
CUSTOM_STATUS,
|
|
CUSTOM_STATUS_CLEAR_AFTER,
|
|
DISPLAY_SETTINGS,
|
|
EDIT_POST,
|
|
EDIT_PROFILE,
|
|
EDIT_SERVER,
|
|
EMOJI_PICKER,
|
|
FIND_CHANNELS,
|
|
FORGOT_PASSWORD,
|
|
GALLERY,
|
|
GLOBAL_THREADS,
|
|
HOME,
|
|
INTEGRATION_SELECTOR,
|
|
INTERACTIVE_DIALOG,
|
|
IN_APP_NOTIFICATION,
|
|
LATEX,
|
|
LOGIN,
|
|
MENTIONS,
|
|
MFA,
|
|
NOTIFICATION_SETTINGS,
|
|
PERMALINK,
|
|
POST_OPTIONS,
|
|
REACTIONS,
|
|
SAVED_POSTS,
|
|
SEARCH,
|
|
SELECT_TEAM,
|
|
SERVER,
|
|
SETTINGS,
|
|
SNACK_BAR,
|
|
SSO,
|
|
THREAD,
|
|
THREAD_FOLLOW_BUTTON,
|
|
THREAD_OPTIONS,
|
|
USER_PROFILE,
|
|
};
|
|
|
|
export const MODAL_SCREENS_WITHOUT_BACK = [
|
|
BROWSE_CHANNELS,
|
|
CHANNEL_INFO,
|
|
CREATE_DIRECT_MESSAGE,
|
|
CREATE_TEAM,
|
|
CUSTOM_STATUS,
|
|
EDIT_POST,
|
|
EDIT_PROFILE,
|
|
EDIT_SERVER,
|
|
EMOJI_PICKER,
|
|
FIND_CHANNELS,
|
|
GALLERY,
|
|
PERMALINK,
|
|
REACTIONS,
|
|
SAVED_POSTS,
|
|
];
|
|
|
|
export const NOT_READY = [
|
|
CHANNEL_ADD_PEOPLE,
|
|
CHANNEL_INFO,
|
|
CREATE_TEAM,
|
|
INTEGRATION_SELECTOR,
|
|
INTERACTIVE_DIALOG,
|
|
USER_PROFILE,
|
|
];
|