quickblox-react-ui-kit 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +288 -255
- package/dist/Presentation/Views/Dialogs/Dialogs.d.ts +3 -0
- package/dist/Presentation/Views/Dialogs/useDialogsViewModel.d.ts +3 -1
- package/dist/Presentation/{components/UI → assets}/ DefaultThemes/DefaultTheme.d.ts +2 -2
- package/dist/Presentation/assets/DarkTheme.d.ts +2 -2
- package/dist/Presentation/assets/LightTheme.d.ts +2 -2
- package/dist/Presentation/assets/{Theme.d.ts → UiKitTheme.d.ts} +1 -1
- package/dist/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.d.ts +2 -2
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesView.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/{useMessagesViewModelWithMockUseCase.d.ts → useMessagesViewModel.d.ts} +1 -1
- package/dist/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.d.ts +2 -2
- package/dist/Presentation/components/layouts/Desktop/{DesktopLayoutForMockModels.d.ts → DesktopLayout.d.ts} +2 -2
- package/dist/Presentation/components/layouts/Desktop/QuickBloxUIKitDesktopLayout.d.ts +7 -0
- package/dist/index-ui.d.ts +6 -5
- package/dist/index-ui.js +49 -93
- package/package.json +9 -2
- package/.prettierignore +0 -4
- package/.prettierrc +0 -8
- package/dist/MyButton/MyButton.d.ts +0 -9
- package/dist/MyInput/MyInput.d.ts +0 -10
- package/dist/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.d.ts +0 -4
- package/dist/Presentation/components/layouts/Desktop/Desktop.d.ts +0 -4
- package/dist/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.d.ts +0 -3
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -47
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/quickblox.js +0 -54609
- package/public/robots.txt +0 -3
- package/src/App.scss +0 -0
- package/src/App.tsx +0 -230
- package/src/CommonTypes/FunctionResult.ts +0 -4
- package/src/Data/Stubs.ts +0 -1131
- package/src/Data/dto/dialog/LocalDialogDTO.ts +0 -42
- package/src/Data/dto/dialog/LocalDialogsDTO.ts +0 -21
- package/src/Data/dto/dialog/RemoteDialogDTO.ts +0 -58
- package/src/Data/dto/dialog/RemoteDialogsDTO.ts +0 -21
- package/src/Data/dto/file/LocalFileDTO.ts +0 -26
- package/src/Data/dto/file/RemoteFileDTO.ts +0 -26
- package/src/Data/dto/message/LocalMessageDTO.ts +0 -51
- package/src/Data/dto/message/LocalMessagesDTO.ts +0 -21
- package/src/Data/dto/message/RemoteMessageDTO.ts +0 -51
- package/src/Data/dto/message/RemoteMessagesDTO.ts +0 -21
- package/src/Data/dto/user/LocalUserDTO.ts +0 -37
- package/src/Data/dto/user/LocalUsersDTO.ts +0 -23
- package/src/Data/dto/user/RemoteUserDTO.ts +0 -37
- package/src/Data/dto/user/RemoteUsersDTO.ts +0 -21
- package/src/Data/mapper/DialogLocalDTOMapper.ts +0 -742
- package/src/Data/mapper/DialogRemoteDTOMapper.ts +0 -776
- package/src/Data/mapper/FileLocalDTOMapper.ts +0 -253
- package/src/Data/mapper/FileRemoteDTOMapper.ts +0 -265
- package/src/Data/mapper/IMapper.ts +0 -14
- package/src/Data/mapper/MessageLocalDTOMapper.ts +0 -425
- package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -430
- package/src/Data/mapper/UserLocalDTOMapper.ts +0 -381
- package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -393
- package/src/Data/repository/ConnectionRepository.ts +0 -128
- package/src/Data/repository/DialogsRepository.ts +0 -422
- package/src/Data/repository/EventMessagesRepository.ts +0 -291
- package/src/Data/repository/FileRepository.ts +0 -110
- package/src/Data/repository/MessagesRepository.ts +0 -288
- package/src/Data/repository/UsersRepository.ts +0 -324
- package/src/Data/source/exception/LocalDataSourceException.ts +0 -17
- package/src/Data/source/exception/MapperDTOException.ts +0 -19
- package/src/Data/source/exception/RemoteDataSourceException.ts +0 -28
- package/src/Data/source/exception/RepositoryException.ts +0 -27
- package/src/Data/source/local/ChatLocalStorageDataSource.ts +0 -262
- package/src/Data/source/local/ILocalDataSource.ts +0 -45
- package/src/Data/source/local/ILocalFileDataSource.ts +0 -11
- package/src/Data/source/local/LocalDataSource.ts +0 -377
- package/src/Data/source/local/LocalFileDataSource.ts +0 -22
- package/src/Data/source/remote/IRemoteDataSource.ts +0 -112
- package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -401
- package/src/Data/source/remote/Mapper/FileDTOMapper.ts +0 -276
- package/src/Data/source/remote/Mapper/IDTOMapper.ts +0 -4
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +0 -399
- package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
- package/src/Data/source/remote/RemoteDataSource.ts +0 -1278
- package/src/Domain/entity/Chat.ts +0 -4
- package/src/Domain/entity/ChatMessageAttachmentEntity.ts +0 -15
- package/src/Domain/entity/CustomDataEntity.ts +0 -3
- package/src/Domain/entity/DialogEntity.ts +0 -15
- package/src/Domain/entity/DialogEventInfo.ts +0 -15
- package/src/Domain/entity/DialogTypes.ts +0 -7
- package/src/Domain/entity/EventMessageType.ts +0 -7
- package/src/Domain/entity/FileEntity.ts +0 -11
- package/src/Domain/entity/FileTypes.ts +0 -9
- package/src/Domain/entity/GroupDialogEntity.ts +0 -54
- package/src/Domain/entity/LastMessageEntity.ts +0 -5
- package/src/Domain/entity/MessageEntity.ts +0 -25
- package/src/Domain/entity/NotificationTypes.ts +0 -7
- package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
- package/src/Domain/entity/PublicDialogEntity.ts +0 -72
- package/src/Domain/entity/UserEntity.ts +0 -22
- package/src/Domain/exception/domain/DomainExecption.ts +0 -5
- package/src/Domain/repository/IDialogsRepository.ts +0 -40
- package/src/Domain/repository/IFileRepository.ts +0 -9
- package/src/Domain/repository/IMessagesRepository.ts +0 -28
- package/src/Domain/repository/IUsersRepository.ts +0 -13
- package/src/Domain/repository/Pagination.ts +0 -48
- package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -73
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -45
- package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -61
- package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -34
- package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -28
- package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -22
- package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -109
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -103
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -26
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -141
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -69
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +0 -61
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -246
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -65
- package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -51
- package/src/Domain/use_cases/base/BaseUseCase.ts +0 -77
- package/src/Domain/use_cases/base/IUseCase.ts +0 -5
- package/src/Domain/use_cases/base/Subscribable/ISubscribable.ts +0 -6
- package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -143
- package/src/MyButton/MyButton.scss +0 -11
- package/src/MyButton/MyButton.tsx +0 -25
- package/src/MyInput/MyInput.scss +0 -9
- package/src/MyInput/MyInput.tsx +0 -36
- package/src/Presentation/.gitkeep +0 -0
- package/src/Presentation/Views/Base/BaseViewModel.ts +0 -66
- package/src/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -187
- package/src/Presentation/Views/Dialogs/DialogViewModel.ts +0 -23
- package/src/Presentation/Views/Dialogs/Dialogs.scss +0 -66
- package/src/Presentation/Views/Dialogs/Dialogs.tsx +0 -372
- package/src/Presentation/Views/Dialogs/useDialogsViewModel.ts +0 -136
- package/src/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.ts +0 -345
- package/src/Presentation/Views/Navigation/More.svg +0 -7
- package/src/Presentation/assets/DarkTheme.ts +0 -58
- package/src/Presentation/assets/LightTheme.ts +0 -58
- package/src/Presentation/assets/Theme.ts +0 -143
- package/src/Presentation/assets/ThemeScheme.ts +0 -83
- package/src/Presentation/assets/fonts/.gitkeep +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/src/Presentation/assets/img/Artem_Koltunov_Selfi.png +0 -0
- package/src/Presentation/assets/img/bee-img.png +0 -0
- package/src/Presentation/assets/styles/_fonts.scss +0 -32
- package/src/Presentation/assets/styles/_reset-styles.scss +0 -435
- package/src/Presentation/assets/styles/_theme_colors_scheme.scss +0 -56
- package/src/Presentation/assets/styles/_theme_dark.scss +0 -33
- package/src/Presentation/assets/styles/_theme_light.scss +0 -33
- package/src/Presentation/assets/styles/_variables.scss +0 -2
- package/src/Presentation/components/Button.js +0 -5
- package/src/Presentation/components/Navbar.tsx +0 -45
- package/src/Presentation/components/TextInput.js +0 -10
- package/src/Presentation/components/UI/ DefaultThemes/CustomTheme.ts +0 -13
- package/src/Presentation/components/UI/ DefaultThemes/DefaultTheme.ts +0 -58
- package/src/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.tsx +0 -40
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.scss +0 -0
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.tsx +0 -30
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.scss +0 -127
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +0 -62
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.scss +0 -45
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.tsx +0 -77
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.scss +0 -429
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.tsx +0 -646
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.scss +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.tsx +0 -26
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.scss +0 -95
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.tsx +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.scss +0 -60
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.tsx +0 -65
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersListViewModel.ts +0 -13
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/useUsersListViewModel.ts +0 -81
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.scss +0 -183
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.tsx +0 -262
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.scss +0 -32
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.tsx +0 -59
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.scss +0 -67
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.tsx +0 -112
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.scss +0 -146
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.tsx +0 -374
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembersViewModel.ts +0 -18
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +0 -113
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +0 -87
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersResultViewModel.ts +0 -12
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.scss +0 -37
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.tsx +0 -22
- package/src/Presentation/components/UI/Dialogs/InviteMembers/useInviteMembersViewModel.ts +0 -116
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.scss +0 -128
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.tsx +0 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.tsx +0 -27
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss +0 -133
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx +0 -137
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.scss +0 -11
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.tsx +0 -25
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.scss +0 -327
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.tsx +0 -794
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.ts +0 -20
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.tsx +0 -33
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.tsx +0 -86
- package/src/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModelWithMockUseCase.ts +0 -452
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.scss +0 -100
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.tsx +0 -405
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.ts +0 -42
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.tsx +0 -89
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.scss +0 -61
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.tsx +0 -48
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -74
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.tsx +0 -72
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +0 -21
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +0 -41
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +0 -3
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +0 -41
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/Add.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/Add contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/Archive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/Copy.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/Delete.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/Download.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/Edit.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/EditDots.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/Emoji.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/Forward filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/Hungup.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/Income call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/Like.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/New chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/Outcome call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/Phone.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/Phone filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/Remove.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/Remove2.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/Reply filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/Send.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/Share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/Swap camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/Unarchive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/Video.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/Voice.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/Broadcast.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/Chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/Chat filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/Conference.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/Contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/Contact filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/Group chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/Notifications.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/Private chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/Public channel.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.tsx +0 -67
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/Stream.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/Stream filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/User.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/IconsCommonTypes.ts +0 -6
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/Attachment.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/Audio file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/Broken file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/Camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/GIF file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/Image.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/File.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/Image filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/Link.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/Location.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/Text document.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/Video file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/Admin.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/Banned.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/Freeze.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/Moderations.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/Muted.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/Arrow left.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/Arrow right.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/Back.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/Close.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/Down.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/Leave.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/More.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/Next.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/Plus.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/Refresh.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/Search.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/Settings.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/Settings filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/Error.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/Help.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/Information.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/Loader.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/Mention.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/Sent.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/Viewed_Delivered.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/Camera off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/Camera on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/Check off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/Check on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.tsx +0 -24
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/Favourite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/Favourite filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/Full screen.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/Hide.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/Play.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/Louder.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/Mic off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/Mic on.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/Minimize.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/Notify off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/Notify on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/Pause.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/Quite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/Record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/Screenshare.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/Show.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/Speaker.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/Speaker off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/Stop record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/Stop share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.tsx +0 -22
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +0 -6
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +0 -24
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +0 -45
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +0 -95
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +0 -45
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +0 -97
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +0 -46
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +0 -97
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +0 -46
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -85
- package/src/Presentation/components/layouts/Desktop/Desktop.tsx +0 -103
- package/src/Presentation/components/layouts/Desktop/DesktopLayout.scss +0 -31
- package/src/Presentation/components/layouts/Desktop/DesktopLayoutForMockModels.tsx +0 -31
- package/src/Presentation/components/layouts/LayoutCommonTypes.ts +0 -7
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.scss +0 -71
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.tsx +0 -116
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.scss +0 -24
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.tsx +0 -1109
- package/src/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.tsx +0 -209
- package/src/Presentation/components/providers/ModalContextProvider/Modal.scss +0 -71
- package/src/Presentation/components/providers/ModalContextProvider/Modal.tsx +0 -131
- package/src/Presentation/components/providers/ModalContextProvider/ModalContextProvider.tsx +0 -38
- package/src/Presentation/components/providers/ModalContextProvider/useModal.ts +0 -39
- package/src/Presentation/components/providers/ProviderProps.ts +0 -5
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +0 -255
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +0 -10
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection.ts +0 -38
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbDataContext.ts +0 -82
- package/src/QBconfig.ts +0 -41
- package/src/index-ui.ts +0 -60
- package/src/index.scss +0 -74
- package/src/index.tsx +0 -25
- package/src/logo.svg +0 -1
- package/src/qb-api-calls/index.ts +0 -543
- package/src/react-app-env.d.ts +0 -1
- package/src/setupTests.ts +0 -5
- package/src/utils/DateTimeFormatter.ts +0 -35
- package/src/utils/parse.ts +0 -74
- package/tsconfig.json +0 -33
- package/typedoc.json +0 -4
- package/webpack.config.js +0 -56
- /package/dist/Presentation/{components/UI → assets}/ DefaultThemes/CustomTheme.d.ts +0 -0
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import { InviteMembersViewModel } from './InviteMembersViewModel';
|
|
3
|
-
import {
|
|
4
|
-
PaginatedResult,
|
|
5
|
-
Pagination,
|
|
6
|
-
} from '../../../../../Domain/repository/Pagination';
|
|
7
|
-
import { UserEntity } from '../../../../../Domain/entity/UserEntity';
|
|
8
|
-
import { GetAllUsersUseCase } from '../../../../../Domain/use_cases/GetAllUsersUseCase';
|
|
9
|
-
import UsersRepository from '../../../../../Data/repository/UsersRepository';
|
|
10
|
-
import useQbDataContext from '../../../providers/QuickBloxUIKitProvider/useQbDataContext';
|
|
11
|
-
import { Stubs } from '../../../../../Data/Stubs';
|
|
12
|
-
import { stringifyError } from '../../../../../utils/parse';
|
|
13
|
-
import {
|
|
14
|
-
NOT_FOUND_REMOTE_DATASOURCE_EXCEPTION_CODE,
|
|
15
|
-
RemoteDataSourceException,
|
|
16
|
-
} from '../../../../../Data/source/exception/RemoteDataSourceException';
|
|
17
|
-
|
|
18
|
-
export default function useInviteMembersViewModel(): InviteMembersViewModel {
|
|
19
|
-
// initPagination?: Pagination,
|
|
20
|
-
console.log('create useUsersListViewModel');
|
|
21
|
-
const currentContext = useQbDataContext();
|
|
22
|
-
const [loading, setLoading] = useState(false);
|
|
23
|
-
const [error, setError] = useState('error with getting user list');
|
|
24
|
-
|
|
25
|
-
const startPagination: Pagination = new Pagination(0, 0);
|
|
26
|
-
const [pagination, setPagination] = useState<Pagination>(startPagination);
|
|
27
|
-
const [users, setUsers] = useState<UserEntity[]>([]);
|
|
28
|
-
const [filter, setFilter] = useState<string>('');
|
|
29
|
-
|
|
30
|
-
function updateFilter(newFilter: string) {
|
|
31
|
-
setFilter(newFilter);
|
|
32
|
-
setPagination(startPagination);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
async function getUsers(currentPagination: Pagination) {
|
|
36
|
-
console.log('call getUsers in useInviteMembersViewModel');
|
|
37
|
-
console.log('currentPagination: ', JSON.stringify(currentPagination));
|
|
38
|
-
console.log('pagination: ', JSON.stringify(pagination));
|
|
39
|
-
|
|
40
|
-
console.log('after return call getUsers');
|
|
41
|
-
setLoading(true);
|
|
42
|
-
const allUsersUseCase: GetAllUsersUseCase = new GetAllUsersUseCase(
|
|
43
|
-
new UsersRepository(
|
|
44
|
-
currentContext.storage.LOCAL_DATA_SOURCE,
|
|
45
|
-
currentContext.storage.REMOTE_DATA_SOURCE,
|
|
46
|
-
),
|
|
47
|
-
currentPagination,
|
|
48
|
-
filter,
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
52
|
-
await allUsersUseCase
|
|
53
|
-
.execute()
|
|
54
|
-
// eslint-disable-next-line promise/always-return
|
|
55
|
-
.then((data: PaginatedResult<UserEntity>) => {
|
|
56
|
-
console.log('HAVE PAGINATED RESULT:', JSON.stringify(data.ResultData));
|
|
57
|
-
setError('');
|
|
58
|
-
setLoading(false);
|
|
59
|
-
setPagination(data.CurrentPagination);
|
|
60
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
61
|
-
setUsers((prevState) => {
|
|
62
|
-
const newItems =
|
|
63
|
-
currentPagination.getCurrentPage() === 0
|
|
64
|
-
? [...data.ResultData]
|
|
65
|
-
: [...prevState, ...data.ResultData];
|
|
66
|
-
|
|
67
|
-
return newItems;
|
|
68
|
-
});
|
|
69
|
-
})
|
|
70
|
-
.catch((e) => {
|
|
71
|
-
console.log('have ERROR get all users :', JSON.stringify(e));
|
|
72
|
-
if (
|
|
73
|
-
(e as RemoteDataSourceException).code ===
|
|
74
|
-
NOT_FOUND_REMOTE_DATASOURCE_EXCEPTION_CODE
|
|
75
|
-
) {
|
|
76
|
-
setError('');
|
|
77
|
-
} else {
|
|
78
|
-
setError(stringifyError(e));
|
|
79
|
-
}
|
|
80
|
-
setLoading(false);
|
|
81
|
-
setUsers([]);
|
|
82
|
-
});
|
|
83
|
-
console.log('EXECUTE USE CASES getUsers');
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const release = () => {
|
|
87
|
-
console.log('call release in useUsersListViewModel');
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
return {
|
|
91
|
-
get entity(): UserEntity {
|
|
92
|
-
return Stubs.createUserEntityWithParams(
|
|
93
|
-
0,
|
|
94
|
-
'',
|
|
95
|
-
'',
|
|
96
|
-
'',
|
|
97
|
-
'',
|
|
98
|
-
'',
|
|
99
|
-
'',
|
|
100
|
-
'',
|
|
101
|
-
'',
|
|
102
|
-
);
|
|
103
|
-
},
|
|
104
|
-
// id: Date.now(),
|
|
105
|
-
// name: '',
|
|
106
|
-
users,
|
|
107
|
-
loading,
|
|
108
|
-
error,
|
|
109
|
-
pagination,
|
|
110
|
-
filter,
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
112
|
-
getUsers,
|
|
113
|
-
release,
|
|
114
|
-
updateFilter,
|
|
115
|
-
};
|
|
116
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
$members-list-container-height: 800px;
|
|
2
|
-
|
|
3
|
-
.members-container {
|
|
4
|
-
min-height: $members-list-container-height;
|
|
5
|
-
max-height: $members-list-container-height;
|
|
6
|
-
height: $members-list-container-height;
|
|
7
|
-
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
|
|
11
|
-
// border: 3px solid green;
|
|
12
|
-
|
|
13
|
-
&--members-information-wrapper {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
flex-wrap: nowrap;
|
|
17
|
-
margin: 0 0 0 0;
|
|
18
|
-
height: 64px;
|
|
19
|
-
min-height: 64px;
|
|
20
|
-
max-height: 64px;
|
|
21
|
-
|
|
22
|
-
// border: 1px solid red;
|
|
23
|
-
|
|
24
|
-
&__members-information {
|
|
25
|
-
font-family: 'Roboto';
|
|
26
|
-
font-style: normal;
|
|
27
|
-
font-weight: 500;
|
|
28
|
-
font-size: 20px;
|
|
29
|
-
line-height: 24px;
|
|
30
|
-
letter-spacing: 0.0015em;
|
|
31
|
-
height: 24px;
|
|
32
|
-
margin-left: 24px;
|
|
33
|
-
margin-top: 20px;
|
|
34
|
-
margin-bottom: 20px;
|
|
35
|
-
|
|
36
|
-
// border: 1px solid orange;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__members-information-count{
|
|
40
|
-
height: 20px;
|
|
41
|
-
margin: 22px 130px 22px 8px;
|
|
42
|
-
align-items: center;
|
|
43
|
-
padding: 2px 6px;
|
|
44
|
-
gap: 10px;
|
|
45
|
-
background: var(--disabled-elements);
|
|
46
|
-
border-radius: 30px;
|
|
47
|
-
|
|
48
|
-
font-family: 'Roboto';
|
|
49
|
-
font-style: normal;
|
|
50
|
-
font-weight: 500;
|
|
51
|
-
font-size: 12px;
|
|
52
|
-
line-height: 16px;
|
|
53
|
-
text-align: center;
|
|
54
|
-
letter-spacing: 0.5px;
|
|
55
|
-
color: var(--main-background);
|
|
56
|
-
}
|
|
57
|
-
&__members-close {
|
|
58
|
-
margin-top: 16px;
|
|
59
|
-
margin-right: 16px;
|
|
60
|
-
margin-bottom: 16px;
|
|
61
|
-
|
|
62
|
-
max-height: 50px;
|
|
63
|
-
|
|
64
|
-
// border: 1px solid purple;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
&--members-search-wrapper{
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: row;
|
|
72
|
-
flex-wrap: nowrap;
|
|
73
|
-
margin: 0 0 0 0;
|
|
74
|
-
height: 76px;
|
|
75
|
-
min-height: 76px;
|
|
76
|
-
max-height: 76px;
|
|
77
|
-
|
|
78
|
-
// border: 1px solid red;
|
|
79
|
-
|
|
80
|
-
&__search-member-input{
|
|
81
|
-
margin: 16px;
|
|
82
|
-
max-width: 288px;
|
|
83
|
-
width: 288px;
|
|
84
|
-
//padding-right: 6px;
|
|
85
|
-
|
|
86
|
-
box-sizing: border-box;
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: row;
|
|
89
|
-
justify-content: flex-start;
|
|
90
|
-
|
|
91
|
-
align-items: center;
|
|
92
|
-
text-align: center;
|
|
93
|
-
align-content: center;
|
|
94
|
-
|
|
95
|
-
width: 320px;
|
|
96
|
-
height: 44px;
|
|
97
|
-
|
|
98
|
-
border: 1px solid #90979F;
|
|
99
|
-
border-radius: 4px;
|
|
100
|
-
|
|
101
|
-
background-color: var(--main-background);
|
|
102
|
-
color: var(--secondary-text);
|
|
103
|
-
|
|
104
|
-
input {
|
|
105
|
-
color: var(--secondary-text);
|
|
106
|
-
background-color: var(--main-background);
|
|
107
|
-
|
|
108
|
-
font-family: 'Roboto';
|
|
109
|
-
font-style: normal;
|
|
110
|
-
font-weight: 400;
|
|
111
|
-
font-size: 16px;
|
|
112
|
-
line-height: 24px;
|
|
113
|
-
|
|
114
|
-
display: flex;
|
|
115
|
-
align-items: center;
|
|
116
|
-
letter-spacing: 0.15px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&--members-list-wrapper{
|
|
122
|
-
//border: 3px solid firebrick;
|
|
123
|
-
display: flex;
|
|
124
|
-
max-height: 660px;
|
|
125
|
-
height: 660px;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import './MembersList.scss';
|
|
3
|
-
import ColumnContainer from '../../../containers/ColumnContainer/ColumnContainer';
|
|
4
|
-
import ActiveSvg from '../../svgs/ActiveSvg/ActiveSvg';
|
|
5
|
-
import Close from '../../svgs/Icons/Navigation/Close';
|
|
6
|
-
import { FunctionTypeVoidToVoid } from '../../../../Views/Base/BaseViewModel';
|
|
7
|
-
import { UserEntity } from '../../../../../Domain/entity/UserEntity';
|
|
8
|
-
import Search from '../../svgs/Icons/Navigation/Search';
|
|
9
|
-
import UsersList from '../DialogInformation/UsersList/UsersList';
|
|
10
|
-
|
|
11
|
-
type MembersListProps = {
|
|
12
|
-
closeInformationHandler: FunctionTypeVoidToVoid;
|
|
13
|
-
members: UserEntity[];
|
|
14
|
-
};
|
|
15
|
-
// eslint-disable-next-line react/function-component-definition
|
|
16
|
-
const MembersList: React.FC<MembersListProps> = ({
|
|
17
|
-
closeInformationHandler,
|
|
18
|
-
members,
|
|
19
|
-
}: MembersListProps) => {
|
|
20
|
-
const [userNameForFilter, setUserNameForFilter] = useState<string>('');
|
|
21
|
-
const [membersListFilter, setMembersListFilter] = useState<UserEntity[]>([
|
|
22
|
-
...members,
|
|
23
|
-
]);
|
|
24
|
-
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
if (userNameForFilter.length > 0) {
|
|
27
|
-
const newFilteredMembers = members.filter((item) =>
|
|
28
|
-
item.full_name ? item.full_name.includes(userNameForFilter, 0) : false,
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
setMembersListFilter([...newFilteredMembers]);
|
|
32
|
-
} else {
|
|
33
|
-
setMembersListFilter([...members]);
|
|
34
|
-
}
|
|
35
|
-
}, [userNameForFilter]);
|
|
36
|
-
|
|
37
|
-
return (
|
|
38
|
-
<div className="members-container">
|
|
39
|
-
<ColumnContainer>
|
|
40
|
-
<div className="members-container--members-information-wrapper">
|
|
41
|
-
<div className="members-container--members-information-wrapper__members-information">
|
|
42
|
-
Members
|
|
43
|
-
</div>
|
|
44
|
-
<div className="members-container--members-information-wrapper__members-information-count">
|
|
45
|
-
{members.length}
|
|
46
|
-
</div>
|
|
47
|
-
<div className="members-container--members-information-wrapper__members-close">
|
|
48
|
-
<ActiveSvg
|
|
49
|
-
content={<Close applyZoom color="var(--secondary-elements)" />}
|
|
50
|
-
clickAction={() => {
|
|
51
|
-
if (closeInformationHandler) {
|
|
52
|
-
closeInformationHandler();
|
|
53
|
-
}
|
|
54
|
-
}}
|
|
55
|
-
/>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
<div className="members-container--members-search-wrapper">
|
|
59
|
-
<div className="members-container--members-search-wrapper__search-member-input">
|
|
60
|
-
<Search
|
|
61
|
-
applyZoom
|
|
62
|
-
width="24"
|
|
63
|
-
height="24"
|
|
64
|
-
color="var(--tertiary-elements)"
|
|
65
|
-
/>
|
|
66
|
-
<input
|
|
67
|
-
type="text"
|
|
68
|
-
style={{ width: '280px' }}
|
|
69
|
-
value={userNameForFilter}
|
|
70
|
-
onChange={(event) => {
|
|
71
|
-
setUserNameForFilter(event.target.value);
|
|
72
|
-
}}
|
|
73
|
-
placeholder="Search"
|
|
74
|
-
/>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
<div className="members-container--members-list-wrapper">
|
|
78
|
-
<UsersList
|
|
79
|
-
usersFirstPageToView={[...membersListFilter]}
|
|
80
|
-
allUsers={[...membersListFilter]}
|
|
81
|
-
usersInDialogCount={membersListFilter.length}
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
84
|
-
</ColumnContainer>
|
|
85
|
-
</div>
|
|
86
|
-
);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export default MembersList;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './AudioAttachmentComponent.scss';
|
|
3
|
-
import { FileEntity } from '../../../../../../Domain/entity/FileEntity';
|
|
4
|
-
|
|
5
|
-
type AudioAttachmentComponentProps = {
|
|
6
|
-
audioFile: FileEntity;
|
|
7
|
-
};
|
|
8
|
-
// eslint-disable-next-line react/function-component-definition
|
|
9
|
-
const AudioAttachmentComponent: React.FC<AudioAttachmentComponentProps> = ({
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11
|
-
audioFile,
|
|
12
|
-
}: AudioAttachmentComponentProps) => {
|
|
13
|
-
return (
|
|
14
|
-
<div>
|
|
15
|
-
<audio className="audio-body" controls preload="auto">
|
|
16
|
-
<source src={audioFile.url} type={audioFile?.type?.toString()} />
|
|
17
|
-
<source src={audioFile.url} type="audio/mpeg" />
|
|
18
|
-
<source src={audioFile.url} type="audio/ogg" />
|
|
19
|
-
</audio>
|
|
20
|
-
<a href={audioFile.url} download>
|
|
21
|
-
Download
|
|
22
|
-
</a>
|
|
23
|
-
</div>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default AudioAttachmentComponent;
|
package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
$dialog-information-container-height: 64px;
|
|
2
|
-
$dialog-information-container-width: 720px;
|
|
3
|
-
$dialog-information-container-dialog-information-height: 64px;
|
|
4
|
-
|
|
5
|
-
.message-header-container {
|
|
6
|
-
border-bottom: 1px solid var(--divider);
|
|
7
|
-
min-height: $dialog-information-container-height;
|
|
8
|
-
max-height: $dialog-information-container-height;
|
|
9
|
-
height: $dialog-information-container-height;
|
|
10
|
-
|
|
11
|
-
// todo: delete this comment
|
|
12
|
-
// min-width: $dialog-information-container-width; // !!!
|
|
13
|
-
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
//align-items: center;
|
|
17
|
-
padding: 0px;
|
|
18
|
-
|
|
19
|
-
//position: absolute;
|
|
20
|
-
//width: 720px;
|
|
21
|
-
//height: 64px;
|
|
22
|
-
//left: 0px;
|
|
23
|
-
//top: 0px;
|
|
24
|
-
|
|
25
|
-
// border: 1px solid green;
|
|
26
|
-
|
|
27
|
-
&--info-wrapper{
|
|
28
|
-
min-height: $dialog-information-container-dialog-information-height;
|
|
29
|
-
width: 100%;
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: row;
|
|
32
|
-
flex-wrap: nowrap;
|
|
33
|
-
justify-content: space-between;
|
|
34
|
-
|
|
35
|
-
margin: 0px;
|
|
36
|
-
//padding: 0px;
|
|
37
|
-
|
|
38
|
-
//align-items: center;
|
|
39
|
-
//gap: 16px;
|
|
40
|
-
|
|
41
|
-
// border: 1px solid orange;
|
|
42
|
-
|
|
43
|
-
&__dialog-icon{
|
|
44
|
-
flex: 1 1 40px;
|
|
45
|
-
min-height: 40px;
|
|
46
|
-
min-width: 40px;
|
|
47
|
-
max-width: 40px;
|
|
48
|
-
margin-left: 20px;
|
|
49
|
-
margin-top: 12px;
|
|
50
|
-
margin-bottom: 12px;
|
|
51
|
-
display: flex;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
align-items: center;
|
|
54
|
-
background-color: var(--disabled-elements);
|
|
55
|
-
border-radius: 50%;
|
|
56
|
-
|
|
57
|
-
// border: 1px solid red;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&__detail{
|
|
61
|
-
flex: 2 3;
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: flex-start;
|
|
65
|
-
padding: 0px;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
min-height: 40px;
|
|
69
|
-
// border: 1px solid orange;
|
|
70
|
-
|
|
71
|
-
&__dialog-name{
|
|
72
|
-
margin-top: 12px;
|
|
73
|
-
//margin-bottom: 28px;
|
|
74
|
-
margin-left: 8px;
|
|
75
|
-
|
|
76
|
-
max-width: 250px;
|
|
77
|
-
text-overflow: ellipsis;
|
|
78
|
-
white-space: nowrap;
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
|
|
81
|
-
font-family: 'Roboto';
|
|
82
|
-
font-style: normal;
|
|
83
|
-
font-weight: 500;
|
|
84
|
-
font-size: 16px;
|
|
85
|
-
line-height: 24px;
|
|
86
|
-
letter-spacing: 0.15px;
|
|
87
|
-
color: var(--main-text);
|
|
88
|
-
|
|
89
|
-
// border: 1px solid blue;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&__dialog-members{
|
|
93
|
-
margin-left: 8px;
|
|
94
|
-
|
|
95
|
-
font-family: 'Roboto';
|
|
96
|
-
font-style: normal;
|
|
97
|
-
font-weight: 500;
|
|
98
|
-
font-size: 11px;
|
|
99
|
-
line-height: 16px;
|
|
100
|
-
letter-spacing: 0.5px;
|
|
101
|
-
color: var(--secondary-text)
|
|
102
|
-
// border: 1px solid green;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&__detail-button{
|
|
107
|
-
flex: 1 1 80px;
|
|
108
|
-
min-width: 80px;
|
|
109
|
-
max-width: 80px;
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-direction: row;
|
|
112
|
-
//justify-content: flex-end;
|
|
113
|
-
align-items: flex-end;
|
|
114
|
-
padding: 0px;
|
|
115
|
-
gap: 16px;
|
|
116
|
-
|
|
117
|
-
min-height: 32px;
|
|
118
|
-
min-width: 80px;
|
|
119
|
-
margin: 16px 16px 16px 0px;
|
|
120
|
-
// flex: 1 1 40px;
|
|
121
|
-
|
|
122
|
-
// border: 1px solid green;
|
|
123
|
-
|
|
124
|
-
&__call {
|
|
125
|
-
// border: 1px solid orange;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&__info {
|
|
129
|
-
// border: 1px solid blue;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import './HeaderMessages.scss';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { FunctionTypeVoidToVoid } from '../../../../../Views/Base/BaseViewModel';
|
|
4
|
-
import { DialogEntity } from '../../../../../../Domain/entity/DialogEntity';
|
|
5
|
-
import GroupChat from '../../../svgs/Icons/Contents/GroupChat';
|
|
6
|
-
import Phone from '../../../svgs/Icons/Actions/Phone';
|
|
7
|
-
import InformationFill from '../../../svgs/Icons/Status/InformationFill';
|
|
8
|
-
import ActiveSvg from '../../../svgs/ActiveSvg/ActiveSvg';
|
|
9
|
-
import { DialogType } from '../../../../../../Domain/entity/DialogTypes';
|
|
10
|
-
import { GroupDialogEntity } from '../../../../../../Domain/entity/GroupDialogEntity';
|
|
11
|
-
import UserAvatar from '../../EditDialog/UserAvatar/UserAvatar';
|
|
12
|
-
import User from '../../../svgs/Icons/Contents/User';
|
|
13
|
-
import { PublicDialogEntity } from '../../../../../../Domain/entity/PublicDialogEntity';
|
|
14
|
-
import PublicChannel from '../../../svgs/Icons/Contents/PublicChannel';
|
|
15
|
-
|
|
16
|
-
type HeaderMessagesProps = {
|
|
17
|
-
dialog: DialogEntity;
|
|
18
|
-
countMembers?: number;
|
|
19
|
-
InformationHandler?: FunctionTypeVoidToVoid;
|
|
20
|
-
CallHandler?: FunctionTypeVoidToVoid;
|
|
21
|
-
};
|
|
22
|
-
// eslint-disable-next-line react/function-component-definition
|
|
23
|
-
const HeaderMessages: React.FC<HeaderMessagesProps> = ({
|
|
24
|
-
dialog,
|
|
25
|
-
countMembers = 0,
|
|
26
|
-
InformationHandler,
|
|
27
|
-
CallHandler,
|
|
28
|
-
}: HeaderMessagesProps) => {
|
|
29
|
-
// TODO: check showDialogInformation, add handler for close DialogInformation
|
|
30
|
-
const [showDialogInformation, setShowDialogInformation] =
|
|
31
|
-
React.useState(false);
|
|
32
|
-
|
|
33
|
-
// eslint-disable-next-line consistent-return
|
|
34
|
-
const renderIconForTypeDialog = (dialogEntity: DialogEntity) => {
|
|
35
|
-
if (dialogEntity.type === DialogType.group) {
|
|
36
|
-
const groupDialogEntity = dialogEntity as GroupDialogEntity;
|
|
37
|
-
|
|
38
|
-
if (groupDialogEntity.photo) {
|
|
39
|
-
return (
|
|
40
|
-
<UserAvatar
|
|
41
|
-
urlAvatar={groupDialogEntity.photo}
|
|
42
|
-
iconTheme={{ width: '40px', height: '40px' }}
|
|
43
|
-
/>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<GroupChat
|
|
49
|
-
width="24"
|
|
50
|
-
height="24"
|
|
51
|
-
applyZoom
|
|
52
|
-
color="var(--secondary-text)"
|
|
53
|
-
/>
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
if (dialogEntity.type === DialogType.private) {
|
|
57
|
-
return (
|
|
58
|
-
<User width="24" height="24" applyZoom color="var(--secondary-text)" />
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
if (dialogEntity.type === DialogType.public) {
|
|
62
|
-
const publicDialogEntity = dialogEntity as PublicDialogEntity;
|
|
63
|
-
|
|
64
|
-
if (publicDialogEntity.photo) {
|
|
65
|
-
return (
|
|
66
|
-
<UserAvatar
|
|
67
|
-
urlAvatar={publicDialogEntity.photo}
|
|
68
|
-
iconTheme={{ width: '40px', height: '40px' }}
|
|
69
|
-
/>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return (
|
|
74
|
-
<PublicChannel
|
|
75
|
-
width="24"
|
|
76
|
-
height="24"
|
|
77
|
-
applyZoom
|
|
78
|
-
color="var(--secondary-text)"
|
|
79
|
-
/>
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
return (
|
|
85
|
-
<div className="message-header-container">
|
|
86
|
-
<div className="message-header-container--info-wrapper">
|
|
87
|
-
<div className="message-header-container--info-wrapper__dialog-icon">
|
|
88
|
-
{renderIconForTypeDialog(dialog)}
|
|
89
|
-
{/* <GroupChat width="40" height="40" applyZoom color="#636D78" /> */}
|
|
90
|
-
</div>
|
|
91
|
-
<div className="message-header-container--info-wrapper__detail">
|
|
92
|
-
<div className="message-header-container--info-wrapper__detail__dialog-name">
|
|
93
|
-
{dialog?.name || 'Dialog name'}
|
|
94
|
-
</div>
|
|
95
|
-
<div className="message-header-container--info-wrapper__detail__dialog-members">
|
|
96
|
-
{countMembers || 0} members
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
<div className="message-header-container--info-wrapper__detail-button">
|
|
100
|
-
<div className="message-header-container--info-wrapper__detail-button__call">
|
|
101
|
-
<ActiveSvg
|
|
102
|
-
content={<Phone width="32" height="32" applyZoom />}
|
|
103
|
-
clickAction={() => {
|
|
104
|
-
if (CallHandler) CallHandler();
|
|
105
|
-
}}
|
|
106
|
-
touchAction={() => {
|
|
107
|
-
if (CallHandler) CallHandler();
|
|
108
|
-
}}
|
|
109
|
-
/>
|
|
110
|
-
</div>
|
|
111
|
-
<div className="message-header-container--info-wrapper__detail-button__info">
|
|
112
|
-
<ActiveSvg
|
|
113
|
-
content={
|
|
114
|
-
<InformationFill
|
|
115
|
-
width="32"
|
|
116
|
-
height="32"
|
|
117
|
-
applyZoom
|
|
118
|
-
color="var(--secondary-background)"
|
|
119
|
-
/>
|
|
120
|
-
}
|
|
121
|
-
clickAction={() => {
|
|
122
|
-
setShowDialogInformation(!showDialogInformation);
|
|
123
|
-
if (InformationHandler) InformationHandler();
|
|
124
|
-
}}
|
|
125
|
-
touchAction={() => {
|
|
126
|
-
setShowDialogInformation(!showDialogInformation);
|
|
127
|
-
if (InformationHandler) InformationHandler();
|
|
128
|
-
}}
|
|
129
|
-
/>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
);
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
export default HeaderMessages;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ImageAttachmentComponent.scss';
|
|
3
|
-
import { FileEntity } from '../../../../../../Domain/entity/FileEntity';
|
|
4
|
-
|
|
5
|
-
type ImageAttachmentComponentProps = {
|
|
6
|
-
imageFile: FileEntity;
|
|
7
|
-
};
|
|
8
|
-
// eslint-disable-next-line react/function-component-definition
|
|
9
|
-
const ImageAttachmentComponent: React.FC<ImageAttachmentComponentProps> = ({
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11
|
-
imageFile,
|
|
12
|
-
}: ImageAttachmentComponentProps) => {
|
|
13
|
-
return (
|
|
14
|
-
<div>
|
|
15
|
-
<img
|
|
16
|
-
className="image-body"
|
|
17
|
-
key={imageFile.id}
|
|
18
|
-
src={imageFile.url}
|
|
19
|
-
alt={imageFile.name || 'attached image'}
|
|
20
|
-
/>
|
|
21
|
-
</div>
|
|
22
|
-
);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export default ImageAttachmentComponent;
|