Rocket.Chat.ReactNative/app/containers/CustomIcon/mappedIcons.js

222 lines
4.8 KiB
JavaScript
Raw Normal View History

export const mappedIcons = {
feat: new audio player (#5160) * feat: media auto-download view * media auto download view completed and saving the settings in mmkv * audio download preference * audio auto download when the user who sent the audio is the same logged on mobile * creation of isAutoDownloadEnabled, evaluate hist hook, Image Full Size preload done * minor tweak audio show play button after download * refactor audioFile to handleMediaDownload and fixed the audio download * desestructured params to download too * image download and autoDownload, algo fix the formatAttachmentUrl to show the image from local * add the possibility to cancel image download and clear local images * refactor blur component * video download and auto download, also keeped the behavior to download unsuportted videos to the gallery * add the possibility to start downloading a video, then exit the room, back again to room and cancel the video previously downloading * remove the custom hook for autoDownload * remove blurcomponent, fix the blur style in image.tsx, minor tweak video function name * send messageId to video * introducing the reducer to keep the downloads in progress * create a media download selector * remove all the redux stuff and do the same as file upload * video download behavior * done for image and audio * fix the try catch download media * clean up * image container uiKit * fix lint * change rn-fetch-blob to expo-filesystem * add pt-br * pass the correct message id when there is an attachment on reply * refactor some changes requested * fix audio and move the netInfo from autoDownloadPreference to redux * variable isAutoDownloadEnable name and handleMediaDownload getExtension * message/Image refactored, change the component to show the image from FastImage to Image * refactor handleMediaDownload and deleteMedia * minor tweak * refactor audio * refactor video * fix the type on the messagesView(the view of files) * minor tweak * fix the name of searchMediaFIleAsync's result * minor tweak, add the default behavior, add the OFF as label * minor tweaks * verify if the media auto download exists on settings view * fix media auto download view layout and minor tweak wifi * avoid auto download from reply * minor tweak at comment * tweak list.section * change the name to netInfoState and Local_document_directory * remove mediaType and refactor audio and image * separate blurview * thumbnail video and video behavior * add Audio to i18n and minor tweak * set the blur as always dark and add the possibility to overlay * don't need to controle the filepath in the view * fix the loading in image and video at begin * save the file with a similar filename as expected * removed the necessity of messageId or id * minor tweak * switch useLayoutEffect to useEffect * avoid onpress do some edge case because of cached at video * minor tweak * tweak at audio comment extension * minor tweak type userpreferences * remove test id from mediaAutoDownloadView * change action's name to SET_NET_INFO_STATE * caching and deleting video's thumbnails * remove generate thumbnail * minor tweak in image * update camera-roll and save the file from local url * remove local_cache_directory and deleteThumbnail * update blur to fix error on android * first commit * fix togglePlayPause * separate audio to a folder inside components and minor tweak attachment * created the slider with text * play/pause button, currentTime equal the sound, can change the slider and reflect to the sound * play/pause, track is working and onEnd * update the icons with play-shaped-filled, pause-shape-filled, loading * start the tweaks on layout * can play multiple audios, pausing the previous to execute the new one * loading animated * added the audio rate * layout fixed * removed the sound manipulation from Slider to manipulate only in the index * fix time margin horizontal * fix play 2 audios and play/pause properly * change the way we treat the audio * remove audio copy * minor tweak * fix rate state * remove the PAUSE_AUDIO * fix unloadAll, add hit slop to slider, show the duration on the first render * refactor colors to be the same as figmas name * change the class' name and add the method pauseCurrentAudio * pause audio when unmount a RoomView and unloadAll when focusing at RoomsListView * pause audio when entering a thread * fix where call the pauseCurrentAudio * moved the player from messageAudio to audioPlayer * refactor audio component * remove loading * update snapshot * fix colors name * pauseAudio when roomview is blur * moved audio from message/component/audio to message/Audio * add navigation focus to AudioPlayer component and fix the jest * add the { androidImplementation: 'MediaPlayer' } * fix action sheet swipe 02-room * fix action sheet swipe 05-threads * tweak touchable * remove react.memo from playbutton * hitSlop * speed playback from array * textinputprops * tweak at names * minor tweak at onEnd * minor tweak at names * update styles * thumb seek size * change marginBottom * add the clamp, adjust the thumb position, remove the necessity of OnEndGestureHandler * change the utils to constants * change to audioState * fix the seek for android * TDownloadState * speed array * pause audio from messagesView when open the files * update test * minor tweak * change the time after ony one click, fixes the thumb to move sync with the click * Fix seek * minor tweak Sound to Audio.Sound * name of Icon * enable PlaybackSpeed only when playing the audio * playbackSpeed to mmkv * mock implementation * create native button * minor tweak * minor tweaks * playbackSpeed after loadAudio * avoid show the error when try to setRate without audio * add messageID to differ audios inside a quote/forward from original one * unloadRoomAudios instead of unloadAllAudios inside the roomsListView * minor tweak --------- Co-authored-by: Diego Mello <diegolmello@gmail.com> Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2023-11-20 14:13:15 +00:00
'play-shape-filled': 59842,
'pause-shape-filled': 59843,
'loading': 59844,
'add': 59872,
2022-07-13 17:09:15 +00:00
'administration': 59662,
'adobe-reader-monochromatic': 59663,
'airplane': 59815,
2022-07-13 17:09:15 +00:00
'all-contacts-in-channels': 59664,
'all-contacts-in-queue': 59665,
'apple-monochromatic': 59666,
'apps': 59667,
'arrow-back': 59668,
'arrow-collapse': 59669,
'arrow-decrease': 59670,
'arrow-down': 59673,
2022-07-13 17:09:15 +00:00
'arrow-down-box': 59671,
'arrow-down-circle': 59672,
'arrow-expand': 59674,
'arrow-forward': 59841,
2022-07-13 17:09:15 +00:00
'arrow-increase': 59675,
'arrow-looping': 59677,
'arrow-return': 59678,
'arrow-right': 59838,
2022-07-13 17:09:15 +00:00
'arrow-up': 59680,
'arrow-up-box': 59679,
'attach': 59676,
'audio': 59683,
2022-07-13 17:09:15 +00:00
'audio-disabled': 59681,
'audio-unavailable': 59682,
'auditing': 59684,
'auth': 59685,
'avatar': 59686,
'backspace': 59687,
'basketball': 59776,
2022-07-13 17:09:15 +00:00
'bold': 59688,
'book': 59689,
'burger': 59813,
2022-07-13 17:09:15 +00:00
'business': 59690,
'calendar': 59691,
'camera': 59696,
2022-07-13 17:09:15 +00:00
'camera-disabled': 59692,
'camera-filled': 59693,
'camera-photo': 59694,
'camera-unavailable': 59695,
'canned-response': 59697,
'card': 59698,
'channel-auto-join': 59746,
'channel-move-to-team': 59747,
2022-07-13 17:09:15 +00:00
'channel-private': 59699,
'channel-public': 59700,
'chat-close': 59701,
'chat-forward': 59702,
'check': 59703,
'checkbox-checked': 59654,
'checkbox-unchecked': 59653,
2022-07-13 17:09:15 +00:00
'chevron-down': 59704,
'chevron-left': 59706,
'chevron-left-big': 59705,
2022-07-13 17:09:15 +00:00
'chevron-right': 59707,
'chevron-up': 59708,
'circle-check': 59709,
'clipboard': 59710,
'clock': 59711,
'close': 59712,
'cloud-connectivity': 59713,
'code': 59714,
'code-block': 59840,
2022-07-13 17:09:15 +00:00
'contacts': 59715,
'copy': 59716,
'create': 59717,
'dashboard': 59718,
'delete': 59719,
'desktop': 59720,
'dialpad': 59721,
'directory': 59648,
'directory-disabled': 59649,
'directory-error': 59650,
2022-07-13 17:09:15 +00:00
'discussions': 59722,
'document': 59723,
'donner': 59724,
'download': 59725,
'edit': 59726,
'emoji': 59729,
2022-07-13 17:09:15 +00:00
'emoji-bad-mood': 59727,
'emoji-neutral-mood': 59728,
'encrypted': 59730,
'engagement-dashboard': 59731,
'enterprise-feature': 59732,
'facebook-monochromatic': 59733,
'federation': 59652,
'federation-disabled': 59651,
2022-07-13 17:09:15 +00:00
'file-document': 59734,
'file-sheet': 59735,
'filter': 59736,
'fingerprint': 59737,
'flag': 59738,
'folder': 59739,
'game': 59753,
'giphy-monochromatic': 59754,
'github-monochromatic': 59655,
'gitlab-monochromatic': 59656,
'glasses': 59812,
'google-drive-monochromatic': 59756,
'google-monochromatic': 59657,
'group-by-type': 59757,
2022-07-13 17:09:15 +00:00
'hamburguer': 59758,
'history': 59759,
'home': 59760,
'ignore': 59740,
2022-07-13 17:09:15 +00:00
'image': 59761,
'info': 59762,
'input-clear': 59763,
2022-07-13 17:09:15 +00:00
'instance': 59764,
'italic': 59765,
'jump-backward': 59766,
'jump-forward': 59767,
'jump-to-message': 59768,
2022-07-13 17:09:15 +00:00
'kebab': 59769,
'keyboard': 59770,
'lamp-bulb': 59836,
2022-07-13 17:09:15 +00:00
'language': 59771,
'leaf': 59814,
'link': 59752,
'linkedin-monochromatic': 59658,
2022-07-13 17:09:15 +00:00
'live': 59774,
'live-streaming': 59773,
'livechat-monochromatic': 59775,
'lock-filled': 59748,
'locker': 59749,
'log-view': 59778,
2022-07-13 17:09:15 +00:00
'login': 59779,
'logout': 59780,
'mail': 59781,
'marketplace': 59782,
'meatballs': 59783,
'mention': 59784,
'message': 59786,
'message-disabled': 59785,
'meteor-monochromatic': 59659,
2022-07-13 17:09:15 +00:00
'microphone': 59788,
'microphone-disabled': 59787,
2022-07-13 17:09:15 +00:00
'mobile': 59789,
'moon': 59790,
'move-to-the-queue': 59791,
'musical-note': 59792,
'new-window': 59793,
2022-07-13 17:09:15 +00:00
'notification': 59795,
'notification-disabled': 59794,
2022-07-13 17:09:15 +00:00
'omnichannel': 59796,
'order': 59797,
'ordering-ascending': 59798,
'ordering-descending': 59800,
2022-07-13 17:09:15 +00:00
'pause': 59803,
'pause-filled': 59802,
'percentage': 59777,
'phone': 59806,
'phone-disabled': 59804,
'phone-end': 59805,
'phone-in': 59809,
'phone-issue': 59835,
2022-07-13 17:09:15 +00:00
'pin': 59808,
'pin-map': 59807,
2022-07-13 17:09:15 +00:00
'play': 59811,
'play-filled': 59810,
2022-07-13 17:09:15 +00:00
'prune': 59817,
'queue': 59818,
'quote': 59819,
'reaction-add': 59820,
2022-07-13 17:09:15 +00:00
'record': 59821,
'refresh': 59822,
'rocket': 59816,
2022-07-13 17:09:15 +00:00
'search': 59823,
'send': 59825,
'send-filled': 59824,
2022-07-13 17:09:15 +00:00
'settings': 59826,
'share': 59827,
'shield': 59661,
'shield-alt': 59829,
'shield-check': 59828,
2022-07-13 17:09:15 +00:00
'signal': 59830,
'sms': 59772,
2022-07-13 17:09:15 +00:00
'sort': 59832,
'sort-az': 59831,
2022-07-13 17:09:15 +00:00
'star': 59834,
'star-filled': 59833,
'status-away': 59741,
'status-busy': 59742,
'status-disabled': 59837,
'status-loading': 59743,
'status-offline': 59744,
'status-online': 59745,
2022-07-13 17:09:15 +00:00
'strike': 59846,
'sun': 59847,
'support': 59848,
'team': 59849,
'teams': 59751,
'teams-private': 59750,
'text-format': 59839,
2022-07-13 17:09:15 +00:00
'threads': 59850,
'total': 59851,
'transcript': 59852,
'twitter-monochromatic': 59660,
2022-07-13 17:09:15 +00:00
'underline': 59853,
'undo': 59854,
'unread-on-top': 59857,
'unread-on-top-disabled': 59856,
2022-07-13 17:09:15 +00:00
'upload': 59858,
'user': 59861,
'user-add': 59859,
'user-forward': 59860,
'view-condensed': 59862,
'view-extended': 59863,
'view-medium': 59864,
'waiting-on-me': 59865,
2022-07-13 17:09:15 +00:00
'warning': 59866,
'whatsapp-monochromatic': 59868,
2022-07-13 17:09:15 +00:00
'wordpress-monochromatic': 59755,
'workspaces': 59870,
'zip': 59871
};