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
package/src/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProviderProps } from '../ProviderProps';
|
|
3
|
-
import ModalContextProvider from '../ModalContextProvider/ModalContextProvider';
|
|
4
|
-
import { LocalDataSource } from '../../../../Data/source/local/LocalDataSource';
|
|
5
|
-
import {
|
|
6
|
-
LoginData,
|
|
7
|
-
RemoteDataSource,
|
|
8
|
-
} from '../../../../Data/source/remote/RemoteDataSource';
|
|
9
|
-
import DialogsRepository from '../../../../Data/repository/DialogsRepository';
|
|
10
|
-
import { SyncDialogsUseCase } from '../../../../Domain/use_cases/SyncDialogsUseCase';
|
|
11
|
-
import { BaseUseCase } from '../../../../Domain/use_cases/base/BaseUseCase';
|
|
12
|
-
import { QBConfig } from '../../../../QBconfig';
|
|
13
|
-
import ConnectionRepository from '../../../../Data/repository/ConnectionRepository';
|
|
14
|
-
import EventMessagesRepository from '../../../../Data/repository/EventMessagesRepository';
|
|
15
|
-
|
|
16
|
-
// import packageInfo from '../../../../../package.json';
|
|
17
|
-
|
|
18
|
-
const initialValues = {
|
|
19
|
-
LOCAL_DATA_SOURCE: new LocalDataSource(), // localstorage or session storage
|
|
20
|
-
REMOTE_DATA_SOURCE: new RemoteDataSource(), // QB instances
|
|
21
|
-
CONNECTION_REPOSITORY: new ConnectionRepository(),
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const initialEvent = {
|
|
25
|
-
EVENT_MESSAGE_REPOSITORY: new EventMessagesRepository(
|
|
26
|
-
initialValues.REMOTE_DATA_SOURCE,
|
|
27
|
-
initialValues.LOCAL_DATA_SOURCE,
|
|
28
|
-
initialValues.CONNECTION_REPOSITORY,
|
|
29
|
-
),
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
type AccountData = {
|
|
33
|
-
appId: number;
|
|
34
|
-
accountKey: string;
|
|
35
|
-
authSecret?: string;
|
|
36
|
-
authKey: string;
|
|
37
|
-
sessionToken?: string;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/*
|
|
41
|
-
{ username: string; password: string }
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
export type InitParams = {
|
|
45
|
-
maxFileSize: number;
|
|
46
|
-
accountData: AccountData;
|
|
47
|
-
qbConfig?: QBConfig;
|
|
48
|
-
loginData?: LoginData;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
type QuickBloxProviderProps = ProviderProps & InitParams;
|
|
52
|
-
|
|
53
|
-
type QBDataStorage = {
|
|
54
|
-
LOCAL_DATA_SOURCE: LocalDataSource;
|
|
55
|
-
REMOTE_DATA_SOURCE: RemoteDataSource;
|
|
56
|
-
SYNC_DIALOGS_USE_CASE: BaseUseCase<boolean, boolean>; // need Factory pattern
|
|
57
|
-
CONNECTION_REPOSITORY: ConnectionRepository;
|
|
58
|
-
EVENT_MESSAGE_REPOSITORY: EventMessagesRepository;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export type QBReactUIKitVersionInfo = {
|
|
62
|
-
version: string;
|
|
63
|
-
build: string;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export type QBDataContextType = {
|
|
67
|
-
// authProcessed: boolean;
|
|
68
|
-
storage: QBDataStorage;
|
|
69
|
-
InitParams: InitParams;
|
|
70
|
-
updateStorage: (storage: QBDataStorage) => void;
|
|
71
|
-
updateQBInitParams: (InitParams: InitParams) => void;
|
|
72
|
-
// getQBReactUIKitVersionInfo: () => QBReactUIKitVersionInfo;
|
|
73
|
-
};
|
|
74
|
-
const initDataContext: QBDataContextType = {
|
|
75
|
-
// authProcessed: false,
|
|
76
|
-
storage: {
|
|
77
|
-
LOCAL_DATA_SOURCE: initialValues.LOCAL_DATA_SOURCE, // localstorage or session storage
|
|
78
|
-
REMOTE_DATA_SOURCE: initialValues.REMOTE_DATA_SOURCE, // QB instances
|
|
79
|
-
CONNECTION_REPOSITORY: initialValues.CONNECTION_REPOSITORY,
|
|
80
|
-
EVENT_MESSAGE_REPOSITORY: initialEvent.EVENT_MESSAGE_REPOSITORY,
|
|
81
|
-
SYNC_DIALOGS_USE_CASE: new SyncDialogsUseCase(
|
|
82
|
-
new DialogsRepository(
|
|
83
|
-
initialValues.LOCAL_DATA_SOURCE,
|
|
84
|
-
initialValues.REMOTE_DATA_SOURCE,
|
|
85
|
-
),
|
|
86
|
-
initialValues.CONNECTION_REPOSITORY,
|
|
87
|
-
initialEvent.EVENT_MESSAGE_REPOSITORY,
|
|
88
|
-
),
|
|
89
|
-
},
|
|
90
|
-
InitParams: {
|
|
91
|
-
accountData: QBConfig.credentials,
|
|
92
|
-
maxFileSize: QBConfig.appConfig.maxFileSize,
|
|
93
|
-
},
|
|
94
|
-
updateQBInitParams: (InitParams: InitParams) => {
|
|
95
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
96
|
-
console.log(
|
|
97
|
-
`call function updateQBInitParams with param ${JSON.stringify(
|
|
98
|
-
InitParams,
|
|
99
|
-
)}`,
|
|
100
|
-
);
|
|
101
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
102
|
-
// @ts-ignore
|
|
103
|
-
this.InitParams = InitParams;
|
|
104
|
-
},
|
|
105
|
-
updateStorage: (storage: QBDataStorage) => {
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
107
|
-
console.log(`empty function with param ${storage}`);
|
|
108
|
-
},
|
|
109
|
-
// getQBReactUIKitVersionInfo: (): QBReactUIKitVersionInfo => {
|
|
110
|
-
// const qbReactUIKitVersionInfo: QBReactUIKitVersionInfo = {
|
|
111
|
-
// version: packageInfo.version,
|
|
112
|
-
// build: packageInfo.version,
|
|
113
|
-
// };
|
|
114
|
-
//
|
|
115
|
-
// return qbReactUIKitVersionInfo;
|
|
116
|
-
// },
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
export const qbDataContext =
|
|
120
|
-
React.createContext<QBDataContextType>(initDataContext);
|
|
121
|
-
|
|
122
|
-
const { Provider } = qbDataContext;
|
|
123
|
-
|
|
124
|
-
function QuickBloxUIKitProvider({
|
|
125
|
-
children,
|
|
126
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
127
|
-
accountData,
|
|
128
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
129
|
-
qbConfig,
|
|
130
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
131
|
-
loginData,
|
|
132
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
133
|
-
maxFileSize,
|
|
134
|
-
}: QuickBloxProviderProps) {
|
|
135
|
-
console.log(
|
|
136
|
-
'QuickBloxUIKitProvider with account data: ',
|
|
137
|
-
JSON.stringify(accountData),
|
|
138
|
-
);
|
|
139
|
-
console.log(
|
|
140
|
-
'QuickBloxUIKitProvider with login data: ',
|
|
141
|
-
JSON.stringify(loginData),
|
|
142
|
-
);
|
|
143
|
-
const initStorageState = {
|
|
144
|
-
LOCAL_DATA_SOURCE: initialValues.LOCAL_DATA_SOURCE, // localstorage or session storage
|
|
145
|
-
REMOTE_DATA_SOURCE: initialValues.REMOTE_DATA_SOURCE, // QB instances
|
|
146
|
-
CONNECTION_REPOSITORY: initialValues.CONNECTION_REPOSITORY,
|
|
147
|
-
EVENT_MESSAGE_REPOSITORY: initialEvent.EVENT_MESSAGE_REPOSITORY,
|
|
148
|
-
SYNC_DIALOGS_USE_CASE: new SyncDialogsUseCase(
|
|
149
|
-
new DialogsRepository(
|
|
150
|
-
initialValues.LOCAL_DATA_SOURCE,
|
|
151
|
-
initialValues.REMOTE_DATA_SOURCE,
|
|
152
|
-
),
|
|
153
|
-
initialValues.CONNECTION_REPOSITORY,
|
|
154
|
-
initialEvent.EVENT_MESSAGE_REPOSITORY,
|
|
155
|
-
),
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
console.log(
|
|
159
|
-
'QuickBloxUIKitProvider with storage init data: ',
|
|
160
|
-
JSON.stringify(initStorageState),
|
|
161
|
-
);
|
|
162
|
-
const [storage, setStorage] = React.useState<QBDataStorage>(initStorageState);
|
|
163
|
-
|
|
164
|
-
console.log('have storage useState completed');
|
|
165
|
-
const updateStorage = (dataStorage: QBDataStorage) => {
|
|
166
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
167
|
-
setStorage(dataStorage);
|
|
168
|
-
};
|
|
169
|
-
// todo: must use accountData if we haves
|
|
170
|
-
const [InitParams, setInitParams] = React.useState<InitParams>({
|
|
171
|
-
accountData: {
|
|
172
|
-
appId: accountData.appId,
|
|
173
|
-
accountKey: accountData.accountKey,
|
|
174
|
-
authKey: accountData.authKey,
|
|
175
|
-
authSecret: accountData.authSecret,
|
|
176
|
-
sessionToken: accountData.sessionToken,
|
|
177
|
-
},
|
|
178
|
-
loginData: {
|
|
179
|
-
userName: loginData?.userName || '',
|
|
180
|
-
password: loginData?.password || '',
|
|
181
|
-
},
|
|
182
|
-
maxFileSize,
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
console.log('have InitParams useState completed');
|
|
186
|
-
const updateQBInitParams = (initParams: InitParams) => {
|
|
187
|
-
console.log(`log updateQBInitParams ${JSON.stringify(initParams)}`);
|
|
188
|
-
setInitParams(initParams);
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
// const getQBReactUIKitVersionInfo = (): QBReactUIKitVersionInfo => {
|
|
192
|
-
// const qbReactUIKitVersionInfo: QBReactUIKitVersionInfo = {
|
|
193
|
-
// version: packageInfo.version,
|
|
194
|
-
// build: packageInfo.version,
|
|
195
|
-
// };
|
|
196
|
-
//
|
|
197
|
-
// return qbReactUIKitVersionInfo;
|
|
198
|
-
// };
|
|
199
|
-
|
|
200
|
-
// todo: temporary off, must turn on
|
|
201
|
-
// todo: cause of recycle v1
|
|
202
|
-
// storage.CONNECTION_REPOSITORY.keepALiveChatConnection();
|
|
203
|
-
// todo: temporary off, must turn on
|
|
204
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
205
|
-
// storage.SYNC_DIALOGS_USE_CASE.execute(() => {});
|
|
206
|
-
|
|
207
|
-
// todo: MUST use sessionToken or login/pass to re-init
|
|
208
|
-
// const remoteDataSourceMock: RemoteDataSource =
|
|
209
|
-
// storage.REMOTE_DATA_SOURCE as RemoteDataSource;
|
|
210
|
-
// // remoteDataSourceMock
|
|
211
|
-
// .initSDK({
|
|
212
|
-
// appIdOrToken: QBInitParams.accountData.appId,
|
|
213
|
-
// authKeyOrAppId: QBInitParams.accountData.authKey,
|
|
214
|
-
// authSecret: QBInitParams.accountData.authSecret,
|
|
215
|
-
// accountKey: QBInitParams.accountData.accountKey,
|
|
216
|
-
// })
|
|
217
|
-
// .catch(() => {
|
|
218
|
-
// console.log('EXCEPTION remoteDataSourceMock.initSDK');
|
|
219
|
-
// });
|
|
220
|
-
// console.log('!!!-3-after initSDK');
|
|
221
|
-
// // todo: temporary off, must turn on and reorganize code rows
|
|
222
|
-
// storage.CONNECTION_REPOSITORY.initializeStates();
|
|
223
|
-
// // todo: must delete it
|
|
224
|
-
// remoteDataSourceMock.setUpMockStorage();
|
|
225
|
-
// // START SYNC MOCK
|
|
226
|
-
// storage.SYNC_DIALOGS_USE_CASE.execute(() => {
|
|
227
|
-
// console.log('SYNC_DIALOGS_USE_CASE_MOCK.execute');
|
|
228
|
-
// }).catch(() => {
|
|
229
|
-
// console.log('EXCEPTION SYNC_DIALOGS_USE_CASE_MOCK.execute');
|
|
230
|
-
// });
|
|
231
|
-
|
|
232
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
233
|
-
// const [authProcessed, setAuthProcessed] = React.useState(false);
|
|
234
|
-
// const updateAuthProcessedStatus = (status: boolean) => {
|
|
235
|
-
// console.log('updateAuthProcessedStatus, set ', status);
|
|
236
|
-
// setAuthProcessed(status);
|
|
237
|
-
// };
|
|
238
|
-
|
|
239
|
-
return (
|
|
240
|
-
<Provider
|
|
241
|
-
value={{
|
|
242
|
-
InitParams,
|
|
243
|
-
updateQBInitParams,
|
|
244
|
-
// authProcessed,
|
|
245
|
-
// getQBReactUIKitVersionInfo,
|
|
246
|
-
storage,
|
|
247
|
-
updateStorage,
|
|
248
|
-
}}
|
|
249
|
-
>
|
|
250
|
-
<ModalContextProvider>{children}</ModalContextProvider>
|
|
251
|
-
</Provider>
|
|
252
|
-
);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export default QuickBloxUIKitProvider;
|
package/src/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import EventMessagesRepository from '../../../../Data/repository/EventMessagesRepository';
|
|
2
|
-
import useQbDataContext from './useQbDataContext';
|
|
3
|
-
|
|
4
|
-
const useEventMessagesRepository = (): EventMessagesRepository => {
|
|
5
|
-
const currentQbDataContext = useQbDataContext();
|
|
6
|
-
|
|
7
|
-
return currentQbDataContext.storage.EVENT_MESSAGE_REPOSITORY;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default useEventMessagesRepository;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
2
|
-
import { qbDataContext } from './QuickBloxUIKitProvider';
|
|
3
|
-
import ConnectionRepository from '../../../../Data/repository/ConnectionRepository';
|
|
4
|
-
|
|
5
|
-
type QBConnectionInfo = {
|
|
6
|
-
connectionRepository: ConnectionRepository;
|
|
7
|
-
browserOnline: boolean;
|
|
8
|
-
};
|
|
9
|
-
const useQBConnection = (): QBConnectionInfo => {
|
|
10
|
-
const currentQbDataContext = React.useContext(qbDataContext);
|
|
11
|
-
const [navigatorOnline, setNavigatorOnline] = React.useState(
|
|
12
|
-
navigator.onLine,
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
const setOnline = () => {
|
|
17
|
-
setNavigatorOnline(true);
|
|
18
|
-
};
|
|
19
|
-
const setOffline = () => {
|
|
20
|
-
setNavigatorOnline(false);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
window.addEventListener('online', setOnline);
|
|
24
|
-
window.addEventListener('offline', setOffline);
|
|
25
|
-
|
|
26
|
-
return () => {
|
|
27
|
-
window.removeEventListener('online', setOnline);
|
|
28
|
-
window.removeEventListener('offline', setOffline);
|
|
29
|
-
};
|
|
30
|
-
}, []);
|
|
31
|
-
|
|
32
|
-
return {
|
|
33
|
-
browserOnline: navigatorOnline,
|
|
34
|
-
connectionRepository: currentQbDataContext.storage.CONNECTION_REPOSITORY,
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default useQBConnection;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { qbDataContext, QBDataContextType } from './QuickBloxUIKitProvider';
|
|
3
|
-
|
|
4
|
-
const useQbDataContext = (): QBDataContextType => {
|
|
5
|
-
const currentQbDataContext = React.useContext(qbDataContext);
|
|
6
|
-
|
|
7
|
-
console.log(
|
|
8
|
-
`call useQbDataContext with init param: ${JSON.stringify(
|
|
9
|
-
currentQbDataContext.InitParams,
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
11
|
-
)}`,
|
|
12
|
-
);
|
|
13
|
-
// todo: throw exception if we have not enough data to start session or login
|
|
14
|
-
let QuickBloxVersion = '';
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
if (!window.QB) {
|
|
19
|
-
throw new Error('HAVE NO SDK');
|
|
20
|
-
} else {
|
|
21
|
-
QuickBloxVersion = `Have SDK lib: version ${QB.version} build ${QB.buildNumber}`;
|
|
22
|
-
console.log(QuickBloxVersion);
|
|
23
|
-
}
|
|
24
|
-
if (!currentQbDataContext) {
|
|
25
|
-
throw new Error('HAVE NO DATA CONTEXT');
|
|
26
|
-
}
|
|
27
|
-
if (!currentQbDataContext.InitParams) {
|
|
28
|
-
throw new Error('HAVE NO INIT SDK DATA');
|
|
29
|
-
}
|
|
30
|
-
// проверять был ли обработан логин
|
|
31
|
-
// если сведения для логина - ник, пароль или токен сессии
|
|
32
|
-
console.log(
|
|
33
|
-
'data context: update init param: ',
|
|
34
|
-
JSON.stringify(currentQbDataContext.InitParams),
|
|
35
|
-
);
|
|
36
|
-
if (
|
|
37
|
-
currentQbDataContext.InitParams.accountData.appId &&
|
|
38
|
-
currentQbDataContext.InitParams.accountData.accountKey &&
|
|
39
|
-
currentQbDataContext.InitParams.accountData.accountKey.length > 0
|
|
40
|
-
) {
|
|
41
|
-
if (
|
|
42
|
-
currentQbDataContext.InitParams.accountData.sessionToken &&
|
|
43
|
-
currentQbDataContext.InitParams.accountData.sessionToken.length > 0
|
|
44
|
-
) {
|
|
45
|
-
/* empty */
|
|
46
|
-
} else if (
|
|
47
|
-
currentQbDataContext.InitParams.accountData.authSecret &&
|
|
48
|
-
currentQbDataContext.InitParams.accountData.authSecret.length > 0
|
|
49
|
-
) {
|
|
50
|
-
// проверить был ли проинициализирован репозиторий этими данными
|
|
51
|
-
// и залогинен юзер
|
|
52
|
-
// QBInit({
|
|
53
|
-
// appIdOrToken: currentQbDataContext.QBInitParams.accountData.appId,
|
|
54
|
-
// authKeyOrAppId: currentQbDataContext.QBInitParams.accountData.authKey,
|
|
55
|
-
// authSecret: currentQbDataContext.QBInitParams.accountData.authSecret,
|
|
56
|
-
// accountKey: currentQbDataContext.QBInitParams.accountData.accountKey,
|
|
57
|
-
// });
|
|
58
|
-
// if (
|
|
59
|
-
// currentQbDataContext.InitParams.loginData &&
|
|
60
|
-
// currentQbDataContext.InitParams.loginData.userName &&
|
|
61
|
-
// currentQbDataContext.InitParams.loginData.userName.length > 0 &&
|
|
62
|
-
// currentQbDataContext.InitParams.loginData.password &&
|
|
63
|
-
// currentQbDataContext.InitParams.loginData.password.length > 0
|
|
64
|
-
// ) {
|
|
65
|
-
// QuickBloxVersion = `Init SDK was success: version ${QB.version} build ${QB.buildNumber}`;
|
|
66
|
-
// console.log(QuickBloxVersion);
|
|
67
|
-
// console.log('all data to auth is collected');
|
|
68
|
-
// // currentQbDataContext.updateAuthProcessedStatus(true);
|
|
69
|
-
// } else {
|
|
70
|
-
// throw new Error('HAVE NO AUTH USER DATA: userName or password');
|
|
71
|
-
// }
|
|
72
|
-
} else {
|
|
73
|
-
throw new Error('HAVE NO AUTH USER or WRONG authSecret');
|
|
74
|
-
}
|
|
75
|
-
} else {
|
|
76
|
-
throw new Error('HAVE NO APPID OR ACCOUNT KEY');
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return currentQbDataContext;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export default useQbDataContext;
|
package/src/QBconfig.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
const configApp = {
|
|
3
|
-
APPLICATION_ID: 75949,+
|
|
4
|
-
AUTH_KEY: "DdS7zxMEm5Q7DaS",
|
|
5
|
-
AUTH_SECRET: "g88RhdOjnDOqFkv",+
|
|
6
|
-
ACCOUNT_KEY: "uK_8uinNyz8-npTNB6tx",+
|
|
7
|
-
};
|
|
8
|
-
*/
|
|
9
|
-
export const QBConfig = {
|
|
10
|
-
credentials: {
|
|
11
|
-
appId: 0,
|
|
12
|
-
accountKey: '',
|
|
13
|
-
authKey: '',
|
|
14
|
-
authSecret: '',
|
|
15
|
-
sessionToken: '',
|
|
16
|
-
},
|
|
17
|
-
appConfig: {
|
|
18
|
-
maxFileSize: 90 * 1000000,
|
|
19
|
-
chatProtocol: {
|
|
20
|
-
active: 2,
|
|
21
|
-
},
|
|
22
|
-
debug: {
|
|
23
|
-
mode: 0,
|
|
24
|
-
file: null,
|
|
25
|
-
},
|
|
26
|
-
endpoints: {
|
|
27
|
-
api: 'api.quickblox.com',
|
|
28
|
-
chat: 'chat.quickblox.com',
|
|
29
|
-
},
|
|
30
|
-
on: {
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/require-await
|
|
32
|
-
async sessionExpired(handleResponse: any, retry: any) {
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
34
|
-
console.log(`Test sessionExpired....${handleResponse} ${retry}`);
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
streamManagement: {
|
|
38
|
-
enable: true,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
package/src/index-ui.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import './index.scss';
|
|
2
|
-
import MainButton, {
|
|
3
|
-
TypeButton,
|
|
4
|
-
} from './Presentation/components/UI/Buttons/MainButton/MainButton';
|
|
5
|
-
import MyButton from './MyButton/MyButton';
|
|
6
|
-
import MyInput from './MyInput/MyInput';
|
|
7
|
-
import QuickBloxUIKitProvider, {
|
|
8
|
-
qbDataContext,
|
|
9
|
-
} from './Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider';
|
|
10
|
-
import { LocalDataSource } from './Data/source/local/LocalDataSource';
|
|
11
|
-
import useQBConnection from './Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection';
|
|
12
|
-
import useQbDataContext from './Presentation/components/providers/QuickBloxUIKitProvider/useQbDataContext';
|
|
13
|
-
import useEventMessagesRepository from './Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository';
|
|
14
|
-
import { DialogsViewModel } from './Presentation/Views/Dialogs/DialogViewModel';
|
|
15
|
-
import useDialogsViewModelWithMockUseCase from './Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase';
|
|
16
|
-
import { SubscribeToDialogEventsUseCase } from './Domain/use_cases/SubscribeToDialogEventsUseCase';
|
|
17
|
-
import { Pagination } from './Domain/repository/Pagination';
|
|
18
|
-
import { DialogEventInfo } from './Domain/entity/DialogEventInfo';
|
|
19
|
-
import EventMessageType from './Domain/entity/EventMessageType';
|
|
20
|
-
import { NotificationTypes } from './Domain/entity/NotificationTypes';
|
|
21
|
-
import { stringifyError } from './utils/parse';
|
|
22
|
-
import DesktopLayoutForMockModels from './Presentation/components/layouts/Desktop/DesktopLayoutForMockModels';
|
|
23
|
-
import DialogsComponent from './Presentation/Views/Dialogs/Dialogs';
|
|
24
|
-
import MessagesView from './Presentation/components/UI/Dialogs/MessagesView/MessagesView';
|
|
25
|
-
import DialogInformation from './Presentation/components/UI/Dialogs/DialogInformation/DialogInformation';
|
|
26
|
-
import { DialogEntity } from './Domain/entity/DialogEntity';
|
|
27
|
-
import BaseViewModel from './Presentation/Views/Base/BaseViewModel';
|
|
28
|
-
import {
|
|
29
|
-
LoginData,
|
|
30
|
-
RemoteDataSource,
|
|
31
|
-
} from './Data/source/remote/RemoteDataSource';
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
MainButton,
|
|
35
|
-
MyButton,
|
|
36
|
-
MyInput,
|
|
37
|
-
TypeButton,
|
|
38
|
-
type LoginData,
|
|
39
|
-
QuickBloxUIKitProvider,
|
|
40
|
-
qbDataContext,
|
|
41
|
-
RemoteDataSource,
|
|
42
|
-
LocalDataSource,
|
|
43
|
-
useQBConnection,
|
|
44
|
-
useQbDataContext,
|
|
45
|
-
useEventMessagesRepository,
|
|
46
|
-
type DialogsViewModel,
|
|
47
|
-
useDialogsViewModelWithMockUseCase,
|
|
48
|
-
SubscribeToDialogEventsUseCase,
|
|
49
|
-
Pagination,
|
|
50
|
-
type DialogEventInfo,
|
|
51
|
-
EventMessageType,
|
|
52
|
-
NotificationTypes,
|
|
53
|
-
stringifyError,
|
|
54
|
-
DesktopLayoutForMockModels,
|
|
55
|
-
DialogsComponent,
|
|
56
|
-
MessagesView,
|
|
57
|
-
DialogInformation,
|
|
58
|
-
type DialogEntity,
|
|
59
|
-
BaseViewModel,
|
|
60
|
-
};
|
package/src/index.scss
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
@import "Presentation/assets/styles/reset-styles";
|
|
2
|
-
@import "Presentation/assets/styles/fonts";
|
|
3
|
-
@import "Presentation/assets/styles/theme_colors_scheme";
|
|
4
|
-
@import "Presentation/assets/styles/variables";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//start
|
|
8
|
-
* {
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
body {
|
|
13
|
-
font-family: 'Roboto';
|
|
14
|
-
color: var(--color-font);
|
|
15
|
-
background-color: var(--main-background);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
//
|
|
20
|
-
//.main-container{
|
|
21
|
-
// max-width: 1440px;
|
|
22
|
-
// display: flex;
|
|
23
|
-
// flex-flow: row nowrap;
|
|
24
|
-
// justify-content: space-between;
|
|
25
|
-
// align-items: center;
|
|
26
|
-
// margin: 0 auto;
|
|
27
|
-
//}
|
|
28
|
-
//.main-container__item{
|
|
29
|
-
// flex: 1 1 325px;
|
|
30
|
-
//}
|
|
31
|
-
//.main-container__item__center{
|
|
32
|
-
// flex: 3 2 720px;
|
|
33
|
-
//}
|
|
34
|
-
//.list-container{
|
|
35
|
-
// width: 320px;
|
|
36
|
-
// display: flex;
|
|
37
|
-
// flex-flow: column nowrap;
|
|
38
|
-
//}
|
|
39
|
-
//.header-container{
|
|
40
|
-
// display: flex;
|
|
41
|
-
// height: 64px;
|
|
42
|
-
// gap: 0 140px;
|
|
43
|
-
// padding: 16px 16px 16px 20px;
|
|
44
|
-
// border: 1px solid var(--color-divider);
|
|
45
|
-
//}
|
|
46
|
-
//.list-header-title{
|
|
47
|
-
// font-family: 'Roboto';
|
|
48
|
-
// font-style: normal;
|
|
49
|
-
// font-weight: 500;
|
|
50
|
-
// font-size: 20px;
|
|
51
|
-
// line-height: 24px;
|
|
52
|
-
// letter-spacing: 0.0015em;
|
|
53
|
-
//}
|
|
54
|
-
//.list-header-buttons{
|
|
55
|
-
// display: flex;
|
|
56
|
-
// align-items: center;
|
|
57
|
-
// gap: 29px;
|
|
58
|
-
// background: none;
|
|
59
|
-
// color: var(--primary);
|
|
60
|
-
//}
|
|
61
|
-
//
|
|
62
|
-
////end
|
|
63
|
-
//
|
|
64
|
-
//
|
|
65
|
-
//.logo-img path {
|
|
66
|
-
// fill: #49CF77;
|
|
67
|
-
//}
|
|
68
|
-
//#svg-add{
|
|
69
|
-
// fill: #FF766E;// "#3978FC"
|
|
70
|
-
//}
|
|
71
|
-
//
|
|
72
|
-
//#svg-add2{
|
|
73
|
-
// fill: #FF766E;// "#3978FC"
|
|
74
|
-
//}
|
package/src/index.tsx
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom/client';
|
|
3
|
-
import { BrowserRouter } from 'react-router-dom';
|
|
4
|
-
// import 'bootstrap/dist/css/bootstrap.css';
|
|
5
|
-
// import 'bootstrap/dist/css/bootstrap.css';
|
|
6
|
-
import './index.scss';
|
|
7
|
-
import App from './App';
|
|
8
|
-
// import reportWebVitals from './reportWebVitals';
|
|
9
|
-
|
|
10
|
-
const root = ReactDOM.createRoot(
|
|
11
|
-
document.getElementById('root') as HTMLElement,
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
root.render(
|
|
15
|
-
<React.StrictMode>
|
|
16
|
-
<BrowserRouter>
|
|
17
|
-
<App />
|
|
18
|
-
</BrowserRouter>
|
|
19
|
-
</React.StrictMode>,
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
// If you want to start measuring performance in your app, pass a function
|
|
23
|
-
// to log results (for example: reportWebVitals(console.log))
|
|
24
|
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
25
|
-
// reportWebVitals();
|
package/src/logo.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
|