From 2db05b7885f276723494ef08bfc1795e0dca6f03 Mon Sep 17 00:00:00 2001 From: Marcos Spessatto Defendi Date: Fri, 15 Feb 2019 21:56:23 -0200 Subject: [PATCH] Remove unused files and code in rc-lib - step 1 (#13416) * Remove some dependencies inside rocketchat-lib/client (#13210) * Move function to rc-utils * Change import from to export directly * Removing duplicated dependency and remove old code * Import some variables to remove dependency of RC namespace * Remove some dependencies inside rocketchat-lib/lib (#13212) * Move some functions from lib to rc-ui-utils * Move some functions from lib ro rc-utils * Remove hostname from RC namespace * Import variables to remove dependency of RC namespace * Remove some dependencies inside rocketchat-lib/server/functions (#13214) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Remove some dependencies inside rocketchat-lib/server/lib (#13217) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Remove some dependencies inside rocketchat-lib/server/methods (#13218) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Remove some dependencies inside rocketchat-lib/server/startup, publications... (#13222) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings (#13223) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export functions and lib function of rc-lib but keep it inside RC namespace (#13225) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Fix missed exports and re-add some functions to RC namespace * Import variables from functions and lib to remove RC namespace dependency (#13226) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm (#13227) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search (#13231) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Remove dependency of RC namespace in meteor saml (#13233) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme (#13234) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Remove dependency of RC namespace in rc-2fa (#13235) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links (#13236) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics and rc-assets (#13237) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Rename Assets variable to avoid conflicts * Fix rename Assets * Remove dependency of RC namespace in rc-markdown, rc-autolinker and rc-autotranslate (#13240) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Remove dependency of RC namespace in rc-autolinker * Move autotranslate models to rc-models * Partial remove dependency of Rc namespace in rc-autotranslate * Remove dependency of RC namespace in rc-markdown * Finish of remotion of RC namespace in rc-autotranslate * Import Autotranslate where it has been used * Fix lint * Rename Assets variable to avoid conflicts * Fix rename Assets * Fix wrong imports * Remove dependency of RC namespace in rc-blockstack, bot-helpers and cas (#13246) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Remove dependency of RC namespace in rc-autolinker * Move autotranslate models to rc-models * Partial remove dependency of Rc namespace in rc-autotranslate * Remove dependency of RC namespace in rc-markdown * Finish of remotion of RC namespace in rc-autotranslate * Import Autotranslate where it has been used * Fix lint * Rename Assets variable to avoid conflicts * Fix rename Assets * Remove dependency of RC namespace in rc-blockstack * Remove RC dependency in bot-helpers * Remove RC dependency in rc-cas * Fix wrong imports * Remove dependency of RC namespace in rc-channel-settings (#13251) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Remove dependency of RC namespace in rc-autolinker * Move autotranslate models to rc-models * Partial remove dependency of Rc namespace in rc-autotranslate * Remove dependency of RC namespace in rc-markdown * Finish of remotion of RC namespace in rc-autotranslate * Import Autotranslate where it has been used * Fix lint * Rename Assets variable to avoid conflicts * Fix rename Assets * Remove dependency of RC namespace in rc-blockstack * Remove RC dependency in bot-helpers * Remove RC dependency in rc-cas * Move some functions from tokenpass to channel settings and models * Move some function from livestream to channel settings * Remove dependency of RC namespace in rc-channel-settings * Fix wrong imports * readd saveRoomName to RC namespace * Remove dependency of RC namespace in rc-channel-mail-messages and cloud (#13254) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Remove dependency of RC namespace in rc-autolinker * Move autotranslate models to rc-models * Partial remove dependency of Rc namespace in rc-autotranslate * Remove dependency of RC namespace in rc-markdown * Finish of remotion of RC namespace in rc-autotranslate * Import Autotranslate where it has been used * Fix lint * Rename Assets variable to avoid conflicts * Fix rename Assets * Remove dependency of RC namespace in rc-blockstack * Remove RC dependency in bot-helpers * Remove RC dependency in rc-cas * Move some functions from tokenpass to channel settings and models * Move some function from livestream to channel settings * Remove dependency of RC namespace in rc-channel-settings * Fix wrong imports * Remove dependency of RC namespace in rc-channel-mail-messages * Remove dependency of RC namespace in rc-cloud * Remove dependency of RC namespace in rc-colors, cors, crowd and dolphin (#13255) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Remove dependency of RC namespace in rc-autolinker * Move autotranslate models to rc-models * Partial remove dependency of Rc namespace in rc-autotranslate * Remove dependency of RC namespace in rc-markdown * Finish of remotion of RC namespace in rc-autotranslate * Import Autotranslate where it has been used * Fix lint * Rename Assets variable to avoid conflicts * Fix rename Assets * Remove dependency of RC namespace in rc-blockstack * Remove RC dependency in bot-helpers * Remove RC dependency in rc-cas * Move some functions from tokenpass to channel settings and models * Move some function from livestream to channel settings * Remove dependency of RC namespace in rc-channel-settings * Fix wrong imports * Remove dependency of RC namespace in rc-channel-mail-messages * Remove dependency of RC namespace in rc-cloud * Remove dependency of RC namespace in rc-colors * Remove dependency of RC namespace in rc-cors * Remove dependency of RC namespace in rc-crowd * Remove dependency of RC namespace in rc-dolphin * Remove dependency of RC namespace in rc-emoji-custom and drupal (#13256) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Remove dependency of RC namespace in rc-autolinker * Move autotranslate models to rc-models * Partial remove dependency of Rc namespace in rc-autotranslate * Remove dependency of RC namespace in rc-markdown * Finish of remotion of RC namespace in rc-autotranslate * Import Autotranslate where it has been used * Fix lint * Rename Assets variable to avoid conflicts * Fix rename Assets * Remove dependency of RC namespace in rc-blockstack * Remove RC dependency in bot-helpers * Remove RC dependency in rc-cas * Move some functions from tokenpass to channel settings and models * Move some function from livestream to channel settings * Remove dependency of RC namespace in rc-channel-settings * Fix wrong imports * Remove dependency of RC namespace in rc-channel-mail-messages * Remove dependency of RC namespace in rc-cloud * Remove dependency of RC namespace in rc-colors * Remove dependency of RC namespace in rc-cors * Remove dependency of RC namespace in rc-crowd * Remove dependency of RC namespace in rc-dolphin * Remove dependency of RC namespace in rc-drupal * Move Emoji custom server and client models to rc-models * Remove dependency of RC namespace in rc-emoji-custom * Remove dependency of RC namespace in rc-emojione, error-handler, gh-enterprise and gitlab (#13257) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Remove dependency of RC namespace in rc-autolinker * Move autotranslate models to rc-models * Partial remove dependency of Rc namespace in rc-autotranslate * Remove dependency of RC namespace in rc-markdown * Finish of remotion of RC namespace in rc-autotranslate * Import Autotranslate where it has been used * Fix lint * Rename Assets variable to avoid conflicts * Fix rename Assets * Remove dependency of RC namespace in rc-blockstack * Remove RC dependency in bot-helpers * Remove RC dependency in rc-cas * Move some functions from tokenpass to channel settings and models * Move some function from livestream to channel settings * Remove dependency of RC namespace in rc-channel-settings * Fix wrong imports * Remove dependency of RC namespace in rc-channel-mail-messages * Remove dependency of RC namespace in rc-cloud * Remove dependency of RC namespace in rc-colors * Remove dependency of RC namespace in rc-cors * Remove dependency of RC namespace in rc-crowd * Remove dependency of RC namespace in rc-dolphin * Remove dependency of RC namespace in rc-drupal * Move Emoji custom server and client models to rc-models * Remove dependency of RC namespace in rc-emoji-custom * Remove dependency of RC namespace in rc-emojione * Remove dependency of RC namespace in rc-error-handler * Remove dependency of RC namespace in rc-gh-enterprise * Remove dependency of RC namespace in rc-gitlab * Remove dependency of RC namespace in rc-google-natural-language, grant, google-vision and highlight-words (#13258) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Remove dependency of RC namespace in rc-autolinker * Move autotranslate models to rc-models * Partial remove dependency of Rc namespace in rc-autotranslate * Remove dependency of RC namespace in rc-markdown * Finish of remotion of RC namespace in rc-autotranslate * Import Autotranslate where it has been used * Fix lint * Rename Assets variable to avoid conflicts * Fix rename Assets * Remove dependency of RC namespace in rc-blockstack * Remove RC dependency in bot-helpers * Remove RC dependency in rc-cas * Move some functions from tokenpass to channel settings and models * Move some function from livestream to channel settings * Remove dependency of RC namespace in rc-channel-settings * Fix wrong imports * Remove dependency of RC namespace in rc-channel-mail-messages * Remove dependency of RC namespace in rc-cloud * Remove dependency of RC namespace in rc-colors * Remove dependency of RC namespace in rc-cors * Remove dependency of RC namespace in rc-crowd * Remove dependency of RC namespace in rc-dolphin * Remove dependency of RC namespace in rc-drupal * Move Emoji custom server and client models to rc-models * Remove dependency of RC namespace in rc-emoji-custom * Remove dependency of RC namespace in rc-emojione * Remove dependency of RC namespace in rc-error-handler * Remove dependency of RC namespace in rc-gh-enterprise * Remove dependency of RC namespace in rc-gitlab * Remove dependency of RC namespace in rc-google-natural-language * Remove dependency of RC namespace in rc-grant * Remove dependency of RC namespace in rc-highlight-words * Remove dependency of RC namespace in rc-google-vision * Fix lint * Remove dependency of RC namespace in rc-iframe-login and all imports, except hipchat-enterprise (#13259) * Move integrations models to rc-models * Move composeMessage function to rc-utils * Move PushNotifications class to push-notifications package * Import variables to remove dependency of RC namespace * Import variables to remove RC namespace dependency inside rc-lib/server/lib * Import variables to remove RC namespace inside rc-lib/server/methods * Import variables to remove dependency with RC namespace * Remove duplicated server settings located in rc-lib * Export function and lib function of rc-lib but keep it inside RC namespace * Import variables from functions and lib to remove RC namespace dependency * Remove dependency of RC namespace in rc-sandstorm * Remove dependency of RC namespace in chatpal-search * Move CreadentialTokens model to rc-models * Move getUsernameSuggestion function and method from server/ to rc-lib * Remove dependency of RC namespace in meteor saml * Remove dependency of RC namespace in rc-theme * Move 2FA Users model to rc-models * Remove dependency of RC namespace in rc-2fa * Remove dependency of RC namespace in rc-action-links * Add action links in the RC namespace * Remove dependency of RC namespace in rc-analytics * Remove dependency of RC namespace in rc-assets * Add Assets in RC namespace * Remove dependency of RC namespace in rc-autolinker * Move autotranslate models to rc-models * Partial remove dependency of Rc namespace in rc-autotranslate * Remove dependency of RC namespace in rc-markdown * Finish of remotion of RC namespace in rc-autotranslate * Import Autotranslate where it has been used * Fix lint * Rename Assets variable to avoid conflicts * Fix rename Assets * Remove dependency of RC namespace in rc-blockstack * Remove RC dependency in bot-helpers * Remove RC dependency in rc-cas * Move some functions from tokenpass to channel settings and models * Move some function from livestream to channel settings * Remove dependency of RC namespace in rc-channel-settings * Fix wrong imports * Remove dependency of RC namespace in rc-channel-mail-messages * Remove dependency of RC namespace in rc-cloud * Remove dependency of RC namespace in rc-colors * Remove dependency of RC namespace in rc-cors * Remove dependency of RC namespace in rc-crowd * Remove dependency of RC namespace in rc-dolphin * Remove dependency of RC namespace in rc-drupal * Move Emoji custom server and client models to rc-models * Remove dependency of RC namespace in rc-emoji-custom * Remove dependency of RC namespace in rc-emojione * Remove dependency of RC namespace in rc-error-handler * Remove dependency of RC namespace in rc-gh-enterprise * Remove dependency of RC namespace in rc-gitlab * Remove dependency of RC namespace in rc-google-natural-language * Remove dependency of RC namespace in rc-grant * Remove dependency of RC namespace in rc-highlight-words * Remove dependency of RC namespace in rc-google-vision * Fix lint * Remove dependency of RC namespace in rc-iframe-login * Remove dependency of RC namespace in all importes, except hipchat-enterprise * Move RestAPI client to rc-api package * Remove dependency of RC namespace in rc-api/helpers and api.js * Remove dependency of RC namespace on half of api files * Partial Remove dependency of RC namespace in rc-api * import API where it was being used by the RC namespace * Move processWebhookMessage function to rc-lib package * Remove API from RC namespace and import missing function that was being used with namespace * Remove dependency of RC namespace in rc-graphql * Fix import from wrong package * Remove dependency of RC namespace in rc-importer * Remove dependency of RC namespace in rc-issue-links * Remove dependency of RC namespace in rc-katex * Move templateVarHandler fn to rc-utils * Remove dependency of RC namespace in rc-ldap * Remove dependency of RC namespace in rc-livestream * Remove dependency of RC namespace in rc-mail-messages * Remove dependency of RC namespace in rc-mapview * Remove dependency of RC namespace in rc-mentions * Remove dependency of RC namespace in rc-mentions-flextab * Remove depedency of RC namespace in rc-message-attachements * Remove dependdency of RC namespace in rc-message-mark-as-unread * Remove dependency of RC namespace in rc-message-pin * Fix templateVarHandler that was in wrong folder * Remove namespace in the new livechat endpoint * Remove dependency of RC namespace in rc-message-snippet * Remove dependency of RC namespace in rc-message-star * Remove dependency of RC namespace in rc-oauth2 * Remove dependency of RC namespace in rc-oembed * Remove dependency of RC namespace in rc-otr * Remove dependency of RC namespace in rc-reactions * Remove dependency of RC namespace in rc-retention-policy * Remove dependency of RC namespace in rc-earch * Remove dependency of RC namespace in rc-setup-wizard * Remove dependency of RC namespace in rc-slackbridge * Remove dependency of Rc namespace in slashcommands-asciiarts * Remove depedency of RC namespace in rc-slash-archiveroom * Remove dependency of RC namespace in rc-slash-create * Remove dependency of RC namespace in rc-slash-help * Remove dependency of RC namespace in rc-slash-hide * Remove dependency of RC namespace in rc-slash-invite * Remove dependency of RC namespace in rc-slash-inviteall * Remove dependency of RC namespace in rc-slash-join * Remove dependency of RC namespace in rc-slash-kick * Remove dependency of RC namespace in rc-slash-leave * Remove dependency of RC namespace in rc-slash-me * Remove dependency of RC namespace in rc-slash-msg * Remove dependency of RC namespace in rc-slash-mute * Remove dependency of RC namespace in rc-slash-open * Remove dependency of RC namespace in rc-slash-topic * Remove dependency of RC namespace in rc-slash-unarchiveroom * Remove dependency of RC namespace in rc-smarsh-connector * Remove dependency of RC namespace in rc-sms * Remove dependency of RC namespace in rc-spotify * Remove dependency of RC namespace in rc-statistics * Move tokenpass models methods to rc-models * Remove dependency of RC namespace in rc-tokenpass * import tokenpass inside rc-lib * Remove dependency of RC namespace in rc-ui * Move webdavAccounts models to rc-model * Remove dependency of RC namespace in rc-ui-account * Remove dependency of RC namespace in rc-ui-admin * Remove dependency of RC namespace in rc-ui-clean-history * Remove dependency of RC namespace in rc-ui-flextab * Remove dependency of RC namespace in rc-ui-login * Remove dependency of RC namespace in rc-ui-master * Remove dependency of RC namespace in rc-ui-message * REmove dependency of RC namespace in rc-user-data-download * Remove dependency of RC namespace in rc-version-check * Remove dependency of RC namespace in rc-videobridge * Remove dependency of RC namespace in rc-webdav * Remove dependency of RC namespace in rc-wordpress * Remove some RC namespace use in chatpal-search * Remove dependency of RC namespace in rc-irc * Remove dependency of RC namespace in livechat/client * Move methods in common livechat models to rc-models * Remove dependency of RC namespace in rc-livechat/server/models * Remove LIvechat global variable from RC namespace * Remove dependency of RC namespace in rc-livechat/imports, lib, server/api, server/hooks and server/lib * Remove dependency of RC namespace in rc-livechat/server/methods * Fix duplicated import * Remove unused import * Remove dependency of RC namespace in rc-livechat/server/publications * MOve rc-livechat server models to rc-models * Change imports of livechat server models to rc-models package * Remove dependency of RC namespace in rc-api/helpers and api.js (#13273) * Move RestAPI client to rc-api package * Remove dependency of RC namespace in rc-api/helpers and api.js * Remove dependency of RC namespace on half of api files (#13275) * Move RestAPI client to rc-api package * Remove dependency of RC namespace in rc-api/helpers and api.js * Remove dependency of RC namespace on half of api files * Remove dependency of RC namespace in rc-integrations * Import missed functions in rc-irc * Remove dependency of RC namespace in rc-hipchat-enterprise-importer * Partial Remove dependency of RC namespace in rc-api (#13277) * Move RestAPI client to rc-api package * Remove dependency of RC namespace in rc-api/helpers and api.js * Remove dependency of RC namespace on half of api files * Partial Remove dependency of RC namespace in rc-api * Remove dependency of RC namespace in root client folder * Remove dependency of RC namespace in imports/message-read-receipt * Remove dependency of RC namespace in imports/personal-access-tokens * Remove dependency of RC namespace in rc-api (#13278) * Move RestAPI client to rc-api package * Remove dependency of RC namespace in rc-api/helpers and api.js * Remove dependency of RC namespace on half of api files * Partial Remove dependency of RC namespace in rc-api * import API where it was being used by the RC namespace * Move processWebhookMessage function to rc-lib package * Remove API from RC namespace and import missing function that was being used with namespace * Remove namespace in the new livechat endpoint * Remove dependency of RC namespace in rc-graphql (#13279) * Move RestAPI client to rc-api package * Remove dependency of RC namespace in rc-api/helpers and api.js * Remove dependency of RC namespace on half of api files * Partial Remove dependency of RC namespace in rc-api * import API where it was being used by the RC namespace * Move processWebhookMessage function to rc-lib package * Remove API from RC namespace and import missing function that was being used with namespace * Remove dependency of RC namespace in rc-graphql * Fix import from wrong package * Remove namespace in the new livechat endpoint * Remove dependency of RC namespace in root server folder - step 1 * Remove dependency of RC namespace in rc-importer (#13280) * Move RestAPI client to rc-api package * Remove dependency of RC namespace in rc-api/helpers and api.js * Remove dependency of RC namespace on half of api files * Partial Remove dependency of RC namespace in rc-api * import API where it was being used by the RC namespace * Move processWebhookMessage function to rc-lib package * Remove API from RC namespace and import missing function that was being used with namespace * Remove dependency of RC namespace in rc-graphql * Fix import from wrong package * Remove dependency of RC namespace in rc-importer * Remove namespace in the new livechat endpoint * Remove dependency of RC namespace in rc-ldap, katex and issue-links (#13281) * Move RestAPI client to rc-api package * Remove dependency of RC namespace in rc-api/helpers and api.js * Remove dependency of RC namespace on half of api files * Partial Remove dependency of RC namespace in rc-api * import API where it was being used by the RC namespace * Move processWebhookMessage function to rc-lib package * Remove API from RC namespace and import missing function that was being used with namespace * Remove dependency of RC namespace in rc-graphql * Fix import from wrong package * Remove dependency of RC namespace in rc-importer * Remove dependency of RC namespace in rc-issue-links * Remove dependency of RC namespace in rc-katex * Move templateVarHandler fn to rc-utils * Remove dependency of RC namespace in rc-ldap * Fix templateVarHandler that was in wrong folder * Remove namespace in the new livechat endpoint * Remove dependency of RC namespace in rc-livestream and rc-mail-messages (#13320) * Move RestAPI client to rc-api package * Remove dependency of RC namespace in rc-api/helpers and api.js * Remove dependency of RC namespace on half of api files * Partial Remove dependency of RC namespace in rc-api * import API where it was being used by the RC namespace * Move processWebhookMessage function to rc-lib package * Remove API from RC namespace and import missing function that was being used with namespace * Remove dependency of RC namespace in rc-graphql * Fix import from wrong package * Remove dependency of RC namespace in rc-importer * Remove dependency of RC namespace in rc-issue-links * Remove dependency of RC namespace in rc-katex * Move templateVarHandler fn to rc-utils * Remove dependency of RC namespace in rc-ldap * Remove dependency of RC namespace in rc-livestream * Remove dependency of RC namespace in rc-mail-messages * Fix templateVarHandler that was in wrong folder * Remove namespace in the new livechat endpoint * Remove dependency of RC namespace in root server folder - step 2 * Remove dependency of RC namespace in root server folder - step 3 * Remove dependency of RC namespace in root server folder - step 4 * Remove dependency of RC namespace in root server folder - step 5 * Remove dependency of RC namespace in root server folder - step 6 * Move RestAPIClient to package rc-utils to remove cyclic dependency between lib, apps and api * Move apps model to rc-models * Convert rocketchat-apps to main module structure * Import Apps where it is being used * Remove global variable Apps from eslintrc * Import missed functions to remove dependency of RC namespace * MOve roomExit function to rc-utils * Fix lint * Fix roomExit function, put currentTracker in the window to be able to keep the function sync * Convert rocketchat-lib to main module structure * Remove unused files and code * Fix import from wrong package * Fix tests * Remove RC namespace * Remove RC namespace * Remove RC namespace --- packages/rocketchat-lib/client/AdminBox.js | 3 --- packages/rocketchat-lib/client/CustomTranslations.js | 2 -- packages/rocketchat-lib/client/MessageAction.js | 3 --- packages/rocketchat-lib/client/Notifications.js | 3 --- packages/rocketchat-lib/client/lib/ChannelSettings.js | 3 --- packages/rocketchat-lib/client/lib/CustomSounds.js | 3 --- packages/rocketchat-lib/client/lib/EmojiPicker.js | 3 --- packages/rocketchat-lib/client/lib/Layout.js | 4 ---- packages/rocketchat-lib/client/lib/RocketChatTabBar.js | 1 - packages/rocketchat-lib/client/lib/TabBar.js | 3 --- packages/rocketchat-lib/client/lib/authorization.js | 6 ------ packages/rocketchat-lib/client/lib/cachedCollection.js | 4 ---- packages/rocketchat-lib/client/lib/handleError.js | 3 --- packages/rocketchat-lib/client/lib/openRoom.js | 3 --- packages/rocketchat-lib/client/lib/roomTypes.js | 3 --- packages/rocketchat-lib/client/lib/sandstorm.js | 3 --- packages/rocketchat-lib/client/lib/tooltip.js | 3 --- packages/rocketchat-lib/client/lib/ui-buttons.js | 7 ------- .../rocketchat-lib/client/models/ChatPermissions.js | 3 --- packages/rocketchat-lib/client/models/Messages.js | 4 ---- packages/rocketchat-lib/client/models/Roles.js | 4 ---- packages/rocketchat-lib/client/models/Rooms.js | 4 ---- packages/rocketchat-lib/client/models/Subscriptions.js | 4 ---- packages/rocketchat-lib/client/models/Users.js | 4 ---- packages/rocketchat-lib/client/models/index.js | 10 ---------- packages/rocketchat-lib/lib/Markdown.js | 3 --- packages/rocketchat-lib/lib/Message.js | 3 --- packages/rocketchat-lib/lib/MessageProperties.js | 10 ---------- packages/rocketchat-lib/lib/MessageTypes.js | 2 -- packages/rocketchat-lib/lib/RoomTypeConfig.js | 8 -------- packages/rocketchat-lib/lib/RoomTypesCommon.js | 5 ----- packages/rocketchat-lib/lib/actionLinks.js | 3 --- packages/rocketchat-lib/lib/authorization.js | 1 - packages/rocketchat-lib/lib/callbacks.js | 8 -------- packages/rocketchat-lib/lib/emoji.js | 3 --- packages/rocketchat-lib/lib/fileUploadRestrictions.js | 4 ---- packages/rocketchat-lib/lib/getAvatarColor.js | 3 --- .../rocketchat-lib/lib/getDefaultSubscriptionPref.js | 3 --- packages/rocketchat-lib/lib/getURL.js | 3 --- .../lib/getUserNotificationPreference.js | 3 --- packages/rocketchat-lib/lib/getUserPreference.js | 3 --- packages/rocketchat-lib/lib/getValidRoomName.js | 3 --- packages/rocketchat-lib/lib/info.js | 3 --- packages/rocketchat-lib/lib/messageBox.js | 3 --- packages/rocketchat-lib/lib/placeholders.js | 3 --- packages/rocketchat-lib/lib/promises.js | 3 --- packages/rocketchat-lib/lib/settings.js | 3 --- packages/rocketchat-lib/lib/slashCommand.js | 3 --- packages/rocketchat-lib/lib/templateVarHandler.js | 3 --- 49 files changed, 182 deletions(-) delete mode 100644 packages/rocketchat-lib/client/AdminBox.js delete mode 100644 packages/rocketchat-lib/client/MessageAction.js delete mode 100644 packages/rocketchat-lib/client/Notifications.js delete mode 100644 packages/rocketchat-lib/client/lib/ChannelSettings.js delete mode 100644 packages/rocketchat-lib/client/lib/CustomSounds.js delete mode 100644 packages/rocketchat-lib/client/lib/EmojiPicker.js delete mode 100644 packages/rocketchat-lib/client/lib/Layout.js delete mode 100644 packages/rocketchat-lib/client/lib/RocketChatTabBar.js delete mode 100644 packages/rocketchat-lib/client/lib/TabBar.js delete mode 100644 packages/rocketchat-lib/client/lib/authorization.js delete mode 100644 packages/rocketchat-lib/client/lib/cachedCollection.js delete mode 100644 packages/rocketchat-lib/client/lib/handleError.js delete mode 100644 packages/rocketchat-lib/client/lib/openRoom.js delete mode 100644 packages/rocketchat-lib/client/lib/roomTypes.js delete mode 100644 packages/rocketchat-lib/client/lib/sandstorm.js delete mode 100644 packages/rocketchat-lib/client/lib/tooltip.js delete mode 100644 packages/rocketchat-lib/client/lib/ui-buttons.js delete mode 100644 packages/rocketchat-lib/client/models/ChatPermissions.js delete mode 100644 packages/rocketchat-lib/client/models/Messages.js delete mode 100644 packages/rocketchat-lib/client/models/Roles.js delete mode 100644 packages/rocketchat-lib/client/models/Rooms.js delete mode 100644 packages/rocketchat-lib/client/models/Subscriptions.js delete mode 100644 packages/rocketchat-lib/client/models/Users.js delete mode 100644 packages/rocketchat-lib/client/models/index.js delete mode 100644 packages/rocketchat-lib/lib/Markdown.js delete mode 100644 packages/rocketchat-lib/lib/Message.js delete mode 100644 packages/rocketchat-lib/lib/MessageProperties.js delete mode 100644 packages/rocketchat-lib/lib/RoomTypeConfig.js delete mode 100644 packages/rocketchat-lib/lib/RoomTypesCommon.js delete mode 100644 packages/rocketchat-lib/lib/actionLinks.js delete mode 100644 packages/rocketchat-lib/lib/authorization.js delete mode 100644 packages/rocketchat-lib/lib/callbacks.js delete mode 100644 packages/rocketchat-lib/lib/emoji.js delete mode 100644 packages/rocketchat-lib/lib/fileUploadRestrictions.js delete mode 100644 packages/rocketchat-lib/lib/getAvatarColor.js delete mode 100644 packages/rocketchat-lib/lib/getDefaultSubscriptionPref.js delete mode 100644 packages/rocketchat-lib/lib/getURL.js delete mode 100644 packages/rocketchat-lib/lib/getUserNotificationPreference.js delete mode 100644 packages/rocketchat-lib/lib/getUserPreference.js delete mode 100644 packages/rocketchat-lib/lib/getValidRoomName.js delete mode 100644 packages/rocketchat-lib/lib/info.js delete mode 100644 packages/rocketchat-lib/lib/messageBox.js delete mode 100644 packages/rocketchat-lib/lib/placeholders.js delete mode 100644 packages/rocketchat-lib/lib/promises.js delete mode 100644 packages/rocketchat-lib/lib/settings.js delete mode 100644 packages/rocketchat-lib/lib/slashCommand.js delete mode 100644 packages/rocketchat-lib/lib/templateVarHandler.js diff --git a/packages/rocketchat-lib/client/AdminBox.js b/packages/rocketchat-lib/client/AdminBox.js deleted file mode 100644 index 1c6be9b9a9cf..000000000000 --- a/packages/rocketchat-lib/client/AdminBox.js +++ /dev/null @@ -1,3 +0,0 @@ -import { AdminBox } from 'meteor/rocketchat:ui-utils'; - -RocketChat.AdminBox = AdminBox; diff --git a/packages/rocketchat-lib/client/CustomTranslations.js b/packages/rocketchat-lib/client/CustomTranslations.js index f3e9760d9d50..2e8ff16954cb 100644 --- a/packages/rocketchat-lib/client/CustomTranslations.js +++ b/packages/rocketchat-lib/client/CustomTranslations.js @@ -4,8 +4,6 @@ import { TAPi18n } from 'meteor/tap:i18n'; import { applyCustomTranslations } from 'meteor/rocketchat:utils'; import { Tracker } from 'meteor/tracker'; -RocketChat.applyCustomTranslations = applyCustomTranslations; - Meteor.startup(function() { Tracker.autorun(function() { // Re apply translations if tap language was changed diff --git a/packages/rocketchat-lib/client/MessageAction.js b/packages/rocketchat-lib/client/MessageAction.js deleted file mode 100644 index d317bb6b490d..000000000000 --- a/packages/rocketchat-lib/client/MessageAction.js +++ /dev/null @@ -1,3 +0,0 @@ -import { MessageAction } from 'meteor/rocketchat:ui-utils'; - -RocketChat.MessageAction = MessageAction; diff --git a/packages/rocketchat-lib/client/Notifications.js b/packages/rocketchat-lib/client/Notifications.js deleted file mode 100644 index beb33a23d219..000000000000 --- a/packages/rocketchat-lib/client/Notifications.js +++ /dev/null @@ -1,3 +0,0 @@ -import { Notifications } from 'meteor/rocketchat:notifications'; - -RocketChat.Notifications = Notifications; diff --git a/packages/rocketchat-lib/client/lib/ChannelSettings.js b/packages/rocketchat-lib/client/lib/ChannelSettings.js deleted file mode 100644 index 18d993c4ac86..000000000000 --- a/packages/rocketchat-lib/client/lib/ChannelSettings.js +++ /dev/null @@ -1,3 +0,0 @@ -import { ChannelSettings } from 'meteor/rocketchat:channel-settings'; - -RocketChat.ChannelSettings = ChannelSettings; diff --git a/packages/rocketchat-lib/client/lib/CustomSounds.js b/packages/rocketchat-lib/client/lib/CustomSounds.js deleted file mode 100644 index 38553447e4c0..000000000000 --- a/packages/rocketchat-lib/client/lib/CustomSounds.js +++ /dev/null @@ -1,3 +0,0 @@ -import { CustomSounds } from 'meteor/rocketchat:custom-sounds'; - -RocketChat.CustomSounds = CustomSounds; diff --git a/packages/rocketchat-lib/client/lib/EmojiPicker.js b/packages/rocketchat-lib/client/lib/EmojiPicker.js deleted file mode 100644 index cea3e8899b4b..000000000000 --- a/packages/rocketchat-lib/client/lib/EmojiPicker.js +++ /dev/null @@ -1,3 +0,0 @@ -import { EmojiPicker } from 'meteor/rocketchat:emoji'; - -RocketChat.EmojiPicker = EmojiPicker; diff --git a/packages/rocketchat-lib/client/lib/Layout.js b/packages/rocketchat-lib/client/lib/Layout.js deleted file mode 100644 index 3d84f446438b..000000000000 --- a/packages/rocketchat-lib/client/lib/Layout.js +++ /dev/null @@ -1,4 +0,0 @@ -import { Layout } from 'meteor/rocketchat:ui-utils'; - -RocketChat.Layout = Layout; - diff --git a/packages/rocketchat-lib/client/lib/RocketChatTabBar.js b/packages/rocketchat-lib/client/lib/RocketChatTabBar.js deleted file mode 100644 index 5956a4199343..000000000000 --- a/packages/rocketchat-lib/client/lib/RocketChatTabBar.js +++ /dev/null @@ -1 +0,0 @@ -export { RocketChatTabBar } from 'meteor/rocketchat:ui-utils'; diff --git a/packages/rocketchat-lib/client/lib/TabBar.js b/packages/rocketchat-lib/client/lib/TabBar.js deleted file mode 100644 index 6bbc9d5f09d0..000000000000 --- a/packages/rocketchat-lib/client/lib/TabBar.js +++ /dev/null @@ -1,3 +0,0 @@ -import { TabBar } from 'meteor/rocketchat:ui-utils'; - -RocketChat.TabBar = TabBar; diff --git a/packages/rocketchat-lib/client/lib/authorization.js b/packages/rocketchat-lib/client/lib/authorization.js deleted file mode 100644 index 5431070179eb..000000000000 --- a/packages/rocketchat-lib/client/lib/authorization.js +++ /dev/null @@ -1,6 +0,0 @@ -import { hasAllPermission, hasAtLeastOnePermission, hasRole } from 'meteor/rocketchat:authorization'; - -RocketChat.authz.hasAllPermission = hasAllPermission; -RocketChat.authz.hasPermission = RocketChat.authz.hasAllPermission; -RocketChat.authz.hasAtLeastOnePermission = hasAtLeastOnePermission; -RocketChat.authz.hasRole = hasRole; diff --git a/packages/rocketchat-lib/client/lib/cachedCollection.js b/packages/rocketchat-lib/client/lib/cachedCollection.js deleted file mode 100644 index 3f3a74f48ae2..000000000000 --- a/packages/rocketchat-lib/client/lib/cachedCollection.js +++ /dev/null @@ -1,4 +0,0 @@ -import { CachedCollection, CachedCollectionManager } from 'meteor/rocketchat:ui-cached-collection'; - -RocketChat.CachedCollectionManager = CachedCollectionManager; -RocketChat.CachedCollection = CachedCollection; diff --git a/packages/rocketchat-lib/client/lib/handleError.js b/packages/rocketchat-lib/client/lib/handleError.js deleted file mode 100644 index 1902d53f55b2..000000000000 --- a/packages/rocketchat-lib/client/lib/handleError.js +++ /dev/null @@ -1,3 +0,0 @@ -import { handleError as _handleError } from 'meteor/rocketchat:utils'; - -handleError = _handleError; diff --git a/packages/rocketchat-lib/client/lib/openRoom.js b/packages/rocketchat-lib/client/lib/openRoom.js deleted file mode 100644 index e44424c18a83..000000000000 --- a/packages/rocketchat-lib/client/lib/openRoom.js +++ /dev/null @@ -1,3 +0,0 @@ -import { openRoom as _openRoom } from 'meteor/rocketchat:ui-utils'; - -openRoom = _openRoom; diff --git a/packages/rocketchat-lib/client/lib/roomTypes.js b/packages/rocketchat-lib/client/lib/roomTypes.js deleted file mode 100644 index 34dc06dc507f..000000000000 --- a/packages/rocketchat-lib/client/lib/roomTypes.js +++ /dev/null @@ -1,3 +0,0 @@ -import { roomTypes } from 'meteor/rocketchat:utils'; - -RocketChat.roomTypes = roomTypes; diff --git a/packages/rocketchat-lib/client/lib/sandstorm.js b/packages/rocketchat-lib/client/lib/sandstorm.js deleted file mode 100644 index c2a9a45ee5eb..000000000000 --- a/packages/rocketchat-lib/client/lib/sandstorm.js +++ /dev/null @@ -1,3 +0,0 @@ -import { Sandstorm } from 'meteor/rocketchat:sandstorm'; - -RocketChat.Sandstorm = Sandstorm; diff --git a/packages/rocketchat-lib/client/lib/tooltip.js b/packages/rocketchat-lib/client/lib/tooltip.js deleted file mode 100644 index 15ed1c87ed50..000000000000 --- a/packages/rocketchat-lib/client/lib/tooltip.js +++ /dev/null @@ -1,3 +0,0 @@ -import { tooltip } from 'meteor/rocketchat:tooltip'; - -RocketChat.tooltip = tooltip; diff --git a/packages/rocketchat-lib/client/lib/ui-buttons.js b/packages/rocketchat-lib/client/lib/ui-buttons.js deleted file mode 100644 index cf026fe7cfc3..000000000000 --- a/packages/rocketchat-lib/client/lib/ui-buttons.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Login, Button, animationSupport, animeBack, preLoadImgs } from 'meteor/rocketchat:ui'; - -RocketChat.Login = Login; -RocketChat.Button = Button; -RocketChat.animationSupport = animationSupport; -RocketChat.animeBack = animeBack; -RocketChat.preLoadImgs = preLoadImgs; diff --git a/packages/rocketchat-lib/client/models/ChatPermissions.js b/packages/rocketchat-lib/client/models/ChatPermissions.js deleted file mode 100644 index cf1407bf678c..000000000000 --- a/packages/rocketchat-lib/client/models/ChatPermissions.js +++ /dev/null @@ -1,3 +0,0 @@ -import { AuthzCachedCollection } from 'meteor/rocketchat:models'; - -RocketChat.authz.cachedCollection = AuthzCachedCollection; diff --git a/packages/rocketchat-lib/client/models/Messages.js b/packages/rocketchat-lib/client/models/Messages.js deleted file mode 100644 index e93cab1ba1ab..000000000000 --- a/packages/rocketchat-lib/client/models/Messages.js +++ /dev/null @@ -1,4 +0,0 @@ -import { Messages } from 'meteor/rocketchat:models'; -import _ from 'underscore'; - -RocketChat.models.Messages = _.extend({}, RocketChat.models.Messages, Messages); diff --git a/packages/rocketchat-lib/client/models/Roles.js b/packages/rocketchat-lib/client/models/Roles.js deleted file mode 100644 index ab7f37e17afb..000000000000 --- a/packages/rocketchat-lib/client/models/Roles.js +++ /dev/null @@ -1,4 +0,0 @@ -import { Roles } from 'meteor/rocketchat:models'; -import _ from 'underscore'; - -RocketChat.models.Roles = _.extend({}, RocketChat.models.Roles, Roles); diff --git a/packages/rocketchat-lib/client/models/Rooms.js b/packages/rocketchat-lib/client/models/Rooms.js deleted file mode 100644 index c69ecb50558f..000000000000 --- a/packages/rocketchat-lib/client/models/Rooms.js +++ /dev/null @@ -1,4 +0,0 @@ -import { Rooms } from 'meteor/rocketchat:models'; -import _ from 'underscore'; - -RocketChat.models.Rooms = _.extend({}, RocketChat.models.Rooms, Rooms); diff --git a/packages/rocketchat-lib/client/models/Subscriptions.js b/packages/rocketchat-lib/client/models/Subscriptions.js deleted file mode 100644 index fc84237a8773..000000000000 --- a/packages/rocketchat-lib/client/models/Subscriptions.js +++ /dev/null @@ -1,4 +0,0 @@ -import { Subscriptions } from 'meteor/rocketchat:models'; -import _ from 'underscore'; - -RocketChat.models.Subscriptions = _.extend({}, RocketChat.models.Subscriptions, Subscriptions); diff --git a/packages/rocketchat-lib/client/models/Users.js b/packages/rocketchat-lib/client/models/Users.js deleted file mode 100644 index 498a132919d3..000000000000 --- a/packages/rocketchat-lib/client/models/Users.js +++ /dev/null @@ -1,4 +0,0 @@ -import { Users } from 'meteor/rocketchat:models'; -import _ from 'underscore'; - -RocketChat.models.Users = _.extend({}, RocketChat.models.Users, Users); diff --git a/packages/rocketchat-lib/client/models/index.js b/packages/rocketchat-lib/client/models/index.js deleted file mode 100644 index 9f619d8adc6a..000000000000 --- a/packages/rocketchat-lib/client/models/index.js +++ /dev/null @@ -1,10 +0,0 @@ -import { Base as _Base, Avatars, Uploads, UserDataFiles, CustomSounds, EmojiCustom } from 'meteor/rocketchat:models'; - -Object.assign(RocketChat.models, { - _Base, - Avatars, - Uploads, - UserDataFiles, - CustomSounds, - EmojiCustom, -}); diff --git a/packages/rocketchat-lib/lib/Markdown.js b/packages/rocketchat-lib/lib/Markdown.js deleted file mode 100644 index 2c41733304ae..000000000000 --- a/packages/rocketchat-lib/lib/Markdown.js +++ /dev/null @@ -1,3 +0,0 @@ -import { Markdown } from 'meteor/rocketchat:markdown'; - -RocketChat.Markdown = Markdown; diff --git a/packages/rocketchat-lib/lib/Message.js b/packages/rocketchat-lib/lib/Message.js deleted file mode 100644 index 01cffb19bb53..000000000000 --- a/packages/rocketchat-lib/lib/Message.js +++ /dev/null @@ -1,3 +0,0 @@ -import { Message } from 'meteor/rocketchat:ui-utils'; - -RocketChat.Message = Message; diff --git a/packages/rocketchat-lib/lib/MessageProperties.js b/packages/rocketchat-lib/lib/MessageProperties.js deleted file mode 100644 index 5135b59e75d9..000000000000 --- a/packages/rocketchat-lib/lib/MessageProperties.js +++ /dev/null @@ -1,10 +0,0 @@ -import { messageProperties } from 'meteor/rocketchat:ui-utils'; - -export { - messageProperties, -}; - -// check for tests -if (typeof RocketChat !== 'undefined') { - RocketChat.messageProperties = messageProperties; -} diff --git a/packages/rocketchat-lib/lib/MessageTypes.js b/packages/rocketchat-lib/lib/MessageTypes.js index 95fc06858614..71e001519209 100644 --- a/packages/rocketchat-lib/lib/MessageTypes.js +++ b/packages/rocketchat-lib/lib/MessageTypes.js @@ -2,8 +2,6 @@ import { Meteor } from 'meteor/meteor'; import { MessageTypes } from 'meteor/rocketchat:ui-utils'; import { callbacks } from 'meteor/rocketchat:callbacks'; -RocketChat.MessageTypes = MessageTypes; - Meteor.startup(function() { MessageTypes.registerType({ id: 'r', diff --git a/packages/rocketchat-lib/lib/RoomTypeConfig.js b/packages/rocketchat-lib/lib/RoomTypeConfig.js deleted file mode 100644 index c7c6cd384166..000000000000 --- a/packages/rocketchat-lib/lib/RoomTypeConfig.js +++ /dev/null @@ -1,8 +0,0 @@ -import { RoomSettingsEnum, UiTextContext, RoomTypeRouteConfig, RoomTypeConfig } from 'meteor/rocketchat:utils'; - -export { - RoomSettingsEnum, - UiTextContext, - RoomTypeRouteConfig, - RoomTypeConfig, -}; diff --git a/packages/rocketchat-lib/lib/RoomTypesCommon.js b/packages/rocketchat-lib/lib/RoomTypesCommon.js deleted file mode 100644 index 117dcf607bbc..000000000000 --- a/packages/rocketchat-lib/lib/RoomTypesCommon.js +++ /dev/null @@ -1,5 +0,0 @@ -import { RoomTypesCommon } from 'meteor/rocketchat:utils'; - -export { - RoomTypesCommon, -}; diff --git a/packages/rocketchat-lib/lib/actionLinks.js b/packages/rocketchat-lib/lib/actionLinks.js deleted file mode 100644 index 33baaddc399b..000000000000 --- a/packages/rocketchat-lib/lib/actionLinks.js +++ /dev/null @@ -1,3 +0,0 @@ -import { actionLinks } from 'meteor/rocketchat:action-links'; - -RocketChat.actionLinks = actionLinks; diff --git a/packages/rocketchat-lib/lib/authorization.js b/packages/rocketchat-lib/lib/authorization.js deleted file mode 100644 index 6445a1b8b5f0..000000000000 --- a/packages/rocketchat-lib/lib/authorization.js +++ /dev/null @@ -1 +0,0 @@ -RocketChat.authz = {}; diff --git a/packages/rocketchat-lib/lib/callbacks.js b/packages/rocketchat-lib/lib/callbacks.js deleted file mode 100644 index 0199a6f05921..000000000000 --- a/packages/rocketchat-lib/lib/callbacks.js +++ /dev/null @@ -1,8 +0,0 @@ -import { callbacks } from 'meteor/rocketchat:callbacks'; - -/* -* Callback hooks provide an easy way to add extra steps to common operations. -* @namespace RocketChat.callbacks -*/ - -RocketChat.callbacks = callbacks; diff --git a/packages/rocketchat-lib/lib/emoji.js b/packages/rocketchat-lib/lib/emoji.js deleted file mode 100644 index ff6a9f7c668a..000000000000 --- a/packages/rocketchat-lib/lib/emoji.js +++ /dev/null @@ -1,3 +0,0 @@ -import { emoji } from 'meteor/rocketchat:emoji'; - -RocketChat.emoji = emoji; diff --git a/packages/rocketchat-lib/lib/fileUploadRestrictions.js b/packages/rocketchat-lib/lib/fileUploadRestrictions.js deleted file mode 100644 index e8051c803dd1..000000000000 --- a/packages/rocketchat-lib/lib/fileUploadRestrictions.js +++ /dev/null @@ -1,4 +0,0 @@ -import { fileUploadIsValidContentType, fileUploadMediaWhiteList } from 'meteor/rocketchat:utils'; - -RocketChat.fileUploadMediaWhiteList = fileUploadMediaWhiteList; -RocketChat.fileUploadIsValidContentType = fileUploadIsValidContentType; diff --git a/packages/rocketchat-lib/lib/getAvatarColor.js b/packages/rocketchat-lib/lib/getAvatarColor.js deleted file mode 100644 index 3e29088837b3..000000000000 --- a/packages/rocketchat-lib/lib/getAvatarColor.js +++ /dev/null @@ -1,3 +0,0 @@ -import { getAvatarColor } from 'meteor/rocketchat:utils'; - -RocketChat.getAvatarColor = getAvatarColor; diff --git a/packages/rocketchat-lib/lib/getDefaultSubscriptionPref.js b/packages/rocketchat-lib/lib/getDefaultSubscriptionPref.js deleted file mode 100644 index 651cbb6435e2..000000000000 --- a/packages/rocketchat-lib/lib/getDefaultSubscriptionPref.js +++ /dev/null @@ -1,3 +0,0 @@ -import { getDefaultSubscriptionPref } from 'meteor/rocketchat:utils'; - -RocketChat.getDefaultSubscriptionPref = getDefaultSubscriptionPref; diff --git a/packages/rocketchat-lib/lib/getURL.js b/packages/rocketchat-lib/lib/getURL.js deleted file mode 100644 index 572286bd8884..000000000000 --- a/packages/rocketchat-lib/lib/getURL.js +++ /dev/null @@ -1,3 +0,0 @@ -import { getURL } from 'meteor/rocketchat:utils'; - -RocketChat.getURL = getURL; diff --git a/packages/rocketchat-lib/lib/getUserNotificationPreference.js b/packages/rocketchat-lib/lib/getUserNotificationPreference.js deleted file mode 100644 index ef4a2297fd97..000000000000 --- a/packages/rocketchat-lib/lib/getUserNotificationPreference.js +++ /dev/null @@ -1,3 +0,0 @@ -import { getUserNotificationPreference } from 'meteor/rocketchat:utils'; - -RocketChat.getUserNotificationPreference = getUserNotificationPreference; diff --git a/packages/rocketchat-lib/lib/getUserPreference.js b/packages/rocketchat-lib/lib/getUserPreference.js deleted file mode 100644 index a9c0f14e6a7a..000000000000 --- a/packages/rocketchat-lib/lib/getUserPreference.js +++ /dev/null @@ -1,3 +0,0 @@ -import { getUserPreference } from 'meteor/rocketchat:utils'; - -RocketChat.getUserPreference = getUserPreference; diff --git a/packages/rocketchat-lib/lib/getValidRoomName.js b/packages/rocketchat-lib/lib/getValidRoomName.js deleted file mode 100644 index a24b42a00719..000000000000 --- a/packages/rocketchat-lib/lib/getValidRoomName.js +++ /dev/null @@ -1,3 +0,0 @@ -import { getValidRoomName } from 'meteor/rocketchat:utils'; - -RocketChat.getValidRoomName = getValidRoomName; diff --git a/packages/rocketchat-lib/lib/info.js b/packages/rocketchat-lib/lib/info.js deleted file mode 100644 index a47217dd6d90..000000000000 --- a/packages/rocketchat-lib/lib/info.js +++ /dev/null @@ -1,3 +0,0 @@ -import { Info } from 'meteor/rocketchat:utils'; - -RocketChat.Info = Info; diff --git a/packages/rocketchat-lib/lib/messageBox.js b/packages/rocketchat-lib/lib/messageBox.js deleted file mode 100644 index b7c2c98ff35a..000000000000 --- a/packages/rocketchat-lib/lib/messageBox.js +++ /dev/null @@ -1,3 +0,0 @@ -import { messageBox } from 'meteor/rocketchat:ui-utils'; - -RocketChat.messageBox = messageBox; diff --git a/packages/rocketchat-lib/lib/placeholders.js b/packages/rocketchat-lib/lib/placeholders.js deleted file mode 100644 index ae636d79c21e..000000000000 --- a/packages/rocketchat-lib/lib/placeholders.js +++ /dev/null @@ -1,3 +0,0 @@ -import { placeholders } from 'meteor/rocketchat:utils'; - -RocketChat.placeholders = placeholders; diff --git a/packages/rocketchat-lib/lib/promises.js b/packages/rocketchat-lib/lib/promises.js deleted file mode 100644 index 875676508810..000000000000 --- a/packages/rocketchat-lib/lib/promises.js +++ /dev/null @@ -1,3 +0,0 @@ -import { promises } from 'meteor/rocketchat:promises'; - -RocketChat.promises = promises; diff --git a/packages/rocketchat-lib/lib/settings.js b/packages/rocketchat-lib/lib/settings.js deleted file mode 100644 index 7b90e489b732..000000000000 --- a/packages/rocketchat-lib/lib/settings.js +++ /dev/null @@ -1,3 +0,0 @@ -import { settings } from 'meteor/rocketchat:settings'; - -RocketChat.settings = settings; diff --git a/packages/rocketchat-lib/lib/slashCommand.js b/packages/rocketchat-lib/lib/slashCommand.js deleted file mode 100644 index f2f2e14dc620..000000000000 --- a/packages/rocketchat-lib/lib/slashCommand.js +++ /dev/null @@ -1,3 +0,0 @@ -import { slashCommands } from 'meteor/rocketchat:utils'; - -RocketChat.slashCommands = slashCommands; diff --git a/packages/rocketchat-lib/lib/templateVarHandler.js b/packages/rocketchat-lib/lib/templateVarHandler.js deleted file mode 100644 index 9359d1dd242b..000000000000 --- a/packages/rocketchat-lib/lib/templateVarHandler.js +++ /dev/null @@ -1,3 +0,0 @@ -import { templateVarHandler } from 'meteor/rocketchat:utils'; - -RocketChat.templateVarHandler = templateVarHandler;