@ludo.ninja/components 2.0.10 → 2.0.11
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/build/api/graphql/index.js +3 -7
- package/build/api/server-assets/mutations/useDislikeAsset/index.js +7 -9
- package/build/api/server-assets/mutations/useLikeAsset/index.js +7 -9
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +14 -21
- package/build/api/server-assets/queries/useFetchAssets/index.js +11 -14
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +13 -15
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +11 -13
- package/build/api/server-collection/mutations/useDislikeCollection/index.js +7 -9
- package/build/api/server-collection/mutations/useLikeCollection/index.js +7 -9
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +19 -21
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +15 -20
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useCreateFavorites/index.js +5 -8
- package/build/api/server-galleries/mutations/useCreateGallery/index.js +5 -8
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +10 -12
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useEditGallery/index.js +5 -7
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +12 -15
- package/build/api/server-galleries/queries/useFetchGallery/index.js +11 -18
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +9 -12
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +11 -17
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +13 -19
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +9 -11
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +10 -16
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +10 -12
- package/build/api/server-identities/mutations/useFollowProfile/index.js +13 -15
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +7 -9
- package/build/api/server-identities/mutations/useInviteCode/index.js +9 -11
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +10 -12
- package/build/api/server-identities/mutations/useRevokeToken/index.js +5 -7
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +9 -11
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +13 -15
- package/build/api/server-identities/queries/useFetchProfile/index.js +19 -23
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +4 -6
- package/build/api/server-medias/mutations/useDeleteUserpic/index.js +7 -9
- package/build/api/server-medias/mutations/useUploadUserpic/index.js +7 -9
- package/build/api/server-medias/queries/useFetchUserPic/index.js +8 -10
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +8 -10
- package/build/api/server-opportunities/queries/useGetOpportunities.js +9 -13
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +6 -11
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +9 -13
- package/build/api/server-search/queries/useFetchAllCreations/index.js +15 -23
- package/build/api/server-search/queries/useFetchAssetsCount/index.js +2 -4
- package/build/api/server-search/queries/useFetchCollection/index.js +16 -23
- package/build/api/server-search/queries/useFetchCollections/index.js +16 -23
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +18 -24
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +16 -24
- package/build/api/server-search/queries/useFetchNetWorth/index.js +7 -9
- package/build/api/server-search/queries/useFindCreations/index.js +20 -28
- package/build/api/server-search/queries/useFindProfilesByName/index.js +14 -19
- package/build/api/server-search/queries/useFindShowcaseItems/index.js +1 -3
- package/build/api/server-search/queries/useFindUserCreations/index.js +16 -21
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +1 -3
- package/build/api/subscriptions/SubscriberInviteNotification.js +18 -22
- package/build/components/assetPage/assetLikes/index.js +25 -30
- package/build/components/assetPage/assetNft/index.js +14 -21
- package/build/components/assetPage/audioVideoPlayer/Duration.js +5 -8
- package/build/components/assetPage/audioVideoPlayer/index.js +51 -81
- package/build/components/assetPage/category/index.js +18 -25
- package/build/components/assetPage/description/index.js +17 -24
- package/build/components/assetPage/index.js +11 -25
- package/build/components/assetPage/information/index.js +43 -50
- package/build/components/assetPage/marketPlaces/index.js +26 -33
- package/build/components/assetPage/media/AssetImage/index.js +52 -80
- package/build/components/assetPage/moreDropDown/index.js +47 -77
- package/build/components/assetPage/participants/index.js +64 -71
- package/build/components/assetPage/priceRank/index.js +38 -45
- package/build/components/assetPage/properties/index.js +19 -26
- package/build/components/assetPage/slider/index.js +44 -51
- package/build/components/assetPage/slider/slideItem.js +14 -21
- package/build/components/assetPage/slider/store.js +2 -5
- package/build/components/assetPage/tittle/index.js +32 -39
- package/build/components/assetPage/viewer3D/index.js +50 -58
- package/build/components/base/Meta/index.js +6 -11
- package/build/components/base/NoSSR/index.js +4 -9
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +14 -19
- package/build/components/gallery/add/addCreationToGallery/index.js +20 -25
- package/build/components/headers/components/headerExperienceLabel/index.js +12 -17
- package/build/components/headers/components/headerUserPic/index.js +11 -16
- package/build/components/headers/header/index.js +17 -22
- package/build/components/headers/headerSearch/index.js +21 -26
- package/build/components/headers/headerSimple/index.js +14 -19
- package/build/components/linkTabs/index.js +14 -19
- package/build/components/linkTabs/linkTab/index.js +22 -27
- package/build/components/profile/profileSkeleton/index.js +10 -18
- package/build/components/search/SearchInputContainer.js +61 -91
- package/build/components/search/searchCloseMoreButtons/index.js +20 -25
- package/build/components/search/searchSimpleInput/index.js +37 -65
- package/build/components/search/searchSuggestions/index.js +32 -37
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +17 -22
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +20 -25
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +29 -34
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +28 -58
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +19 -24
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +11 -16
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +13 -18
- package/build/components/searchFiltersConnector/filters/index.js +38 -43
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +5 -10
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +12 -17
- package/build/components/searchFiltersConnector/index.js +12 -19
- package/build/components/sidebar/data.js +18 -26
- package/build/components/sidebar/index.js +59 -87
- package/build/components/sidebar/initializer.js +4 -34
- package/build/components/sidebar/sidebarFilters/index.js +8 -13
- package/build/components/sidebar/sidebarInviteCodeLabel/index.js +14 -19
- package/build/components/toTopBtn/index.js +32 -39
- package/build/dto/AssetEntity/index.js +19 -24
- package/build/dto/AssetEntity/interface.js +1 -2
- package/build/dto/AssetEntity/views/AssetAudio/index.js +11 -16
- package/build/dto/AssetEntity/views/AssetImage/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetObject/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetOther/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetVideo/index.js +11 -16
- package/build/dto/AssetEntity/views/index.js +6 -16
- package/build/dto/Collection/CollectionCreationEntity/index.js +22 -27
- package/build/dto/Collection/CollectionCreationEntity/interface.js +1 -2
- package/build/dto/Collection/CollectionEntity/index.js +5 -7
- package/build/dto/Collection/CollectionEntity/interface.js +1 -2
- package/build/dto/CreationEntity/index.js +19 -24
- package/build/dto/CreationEntity/interface.js +1 -2
- package/build/dto/GalleryEntityV2/index.js +5 -10
- package/build/dto/GalleryEntityV2/interface.js +1 -2
- package/build/dto/Theme/interface.js +1 -5
- package/build/dto/common/ItemType/data.js +26 -28
- package/build/dto/common/ItemType/index.js +5 -7
- package/build/dto/common/ItemViews/CreationAudio/index.js +11 -16
- package/build/dto/common/ItemViews/CreationImage/index.js +12 -17
- package/build/dto/common/ItemViews/CreationObject/index.js +10 -15
- package/build/dto/common/ItemViews/CreationOther/index.js +11 -16
- package/build/dto/common/ItemViews/CreationVideo/index.js +11 -16
- package/build/dto/common/Media/Audio/index.js +9 -14
- package/build/dto/common/Media/Image/index.js +10 -15
- package/build/dto/common/Media/Object/index.js +9 -14
- package/build/dto/common/Media/Other/index.js +14 -19
- package/build/dto/common/Media/Screenshot/index.js +10 -15
- package/build/dto/common/Media/Urls/index.js +23 -38
- package/build/dto/common/Media/Video/index.js +9 -14
- package/build/dto/common/Media/index.js +3 -5
- package/build/dto/common/Media/interface.js +1 -2
- package/build/entities/user/type.js +1 -2
- package/build/fonts/FontsInitializeLayout.js +13 -16
- package/build/fonts/vars.js +1 -6
- package/build/hooks/apollo/index.js +8 -11
- package/build/hooks/audio/useMultiAudio/index.js +10 -12
- package/build/hooks/extension/useExtension/index.js +8 -10
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +33 -39
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +32 -39
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +32 -39
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +26 -32
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +23 -29
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +30 -36
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +11 -13
- package/build/hooks/likes/dynamic/useGetTableLikes.js +24 -30
- package/build/hooks/likes/index.js +27 -32
- package/build/hooks/likes/useGetLikesAsset.js +20 -24
- package/build/layouts/GlobalLayout.js +24 -31
- package/build/layouts/base/LWithRegularHeader/index.js +7 -12
- package/build/layouts/base/LWithRegularHeader/type.js +1 -2
- package/build/layouts/base/LWithSearchHeader/index.js +5 -10
- package/build/layouts/base/LWithSearchHeader/type.js +1 -2
- package/build/layouts/custom/mainLayout/index.js +8 -13
- package/build/layouts/custom/styles.js +15 -21
- package/build/layouts/pageTransitionLayout.js +6 -8
- package/build/layouts/pageWithLayout.js +1 -2
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +35 -42
- package/build/modules/gallery/api/useGetFavoriteGallery.js +11 -15
- package/build/modules/gallery/store.js +10 -16
- package/build/modules/gallery/ui/AllResults.js +7 -11
- package/build/modules/gallery/ui/Description.js +24 -31
- package/build/modules/gallery/ui/EditGallery.js +15 -22
- package/build/modules/gallery/ui/GalleryDeleteIcon.js +12 -19
- package/build/modules/gallery/ui/PlaceholderItemsGallery.js +21 -28
- package/build/modules/gallery/ui/STopSections.js +10 -16
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +25 -30
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +47 -52
- package/build/modules/gallery/ui/createGalleryForm/index.js +31 -36
- package/build/modules/gallery/ui/editGalleryForm/index.js +40 -45
- package/build/modules/gallery/ui/itemsPreview/index.js +54 -61
- package/build/modules/gallery/useToGalleryAsset.js +15 -23
- package/build/modules/notifications/CreatorNotifications.js +10 -40
- package/build/modules/notifications/index.js +3 -6
- package/build/modules/opportunity/OpportunityCard.js +81 -88
- package/build/modules/opportunity/OpportunityDropDown.js +11 -18
- package/build/modules/opportunity/ShareIcon.js +2 -6
- package/build/modules/opportunity/encodeQuery.js +4 -10
- package/build/modules/opportunity/popup/CopyIcon.js +3 -5
- package/build/modules/opportunity/popup/FacebookIcon.js +3 -5
- package/build/modules/opportunity/popup/LinkedInIcon.js +3 -5
- package/build/modules/opportunity/popup/LogoXIcon.js +3 -5
- package/build/modules/opportunity/popup/OpportunityMenu.js +44 -51
- package/build/modules/opportunity/type.js +1 -2
- package/build/modules/sessionScroll/globalTabs.js +1 -4
- package/build/modules/sessionScroll/index.js +16 -23
- package/build/modules/sessionScroll/type.js +1 -2
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +12 -16
- package/build/modules/user/auth/useAuthVerification.js +10 -37
- package/build/modules/user/auth/useSignIn.js +7 -11
- package/build/modules/user/auth/useSignOut.js +11 -18
- package/build/modules/user/profileData/profileDataInitialization.js +14 -18
- package/build/modules/user/store.js +9 -12
- package/build/modules/virtuoso/VirtuosoPageBuilder.js +36 -43
- package/build/modules/virtuoso/VirtuosoToTopBtn.js +8 -13
- package/build/modules/virtuoso/types.js +1 -2
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +4 -8
- package/build/modules/virtuoso/useVirtuosoData.js +6 -10
- package/build/store/env/index.js +4 -7
- package/build/store/index.js +4 -7
- package/build/store/media/index.js +4 -7
- package/build/store/media/types.js +1 -2
- package/build/store/ui/index.js +21 -24
- package/build/store/ui/types.js +1 -2
- package/build/store/ui/utils.js +4 -8
- package/build/styles/ScreenWidth.js +3 -6
- package/build/styles/animations/index.js +3 -6
- package/build/styles/colors/index.js +1 -38
- package/build/styles/globalStyles.js +5 -7
- package/build/styles/mixins/boxShadow.js +3 -5
- package/build/styles/mixins/boxTransform.js +3 -5
- package/build/styles/mixins/z-indexes.js +10 -13
- package/build/styles/typography/index.js +1 -13
- package/build/system/ActiveLink/ActiveLink.test.js +14 -19
- package/build/system/ActiveLink/index.js +10 -38
- package/build/system/Alert/index.js +6 -11
- package/build/system/Alert/type.js +1 -8
- package/build/system/BasicOverlay/index.js +5 -10
- package/build/system/Buttons/IconButton/index.js +2 -7
- package/build/system/Buttons/IconWithButton/index.js +2 -7
- package/build/system/Buttons/MainButton/index.js +2 -7
- package/build/system/Buttons/SecondaryButton/index.js +2 -7
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +8 -13
- package/build/system/Cards/CardCheckbox/index.js +19 -24
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +11 -16
- package/build/system/Cards/CardContent/CardCategory/index.js +13 -18
- package/build/system/Cards/CardContent/CardContent.test.js +31 -36
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +11 -16
- package/build/system/Cards/CardContent/CardLikes/index.js +11 -16
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +20 -25
- package/build/system/Cards/CardContent/CardShowMore/index.js +34 -40
- package/build/system/Cards/CardContent/index.js +32 -37
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +35 -40
- package/build/system/Cards/CardMedia/CardAudio/index.js +18 -23
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +14 -19
- package/build/system/Cards/CardMedia/CardImage/index.js +8 -13
- package/build/system/Cards/CardMedia/CardVideo/index.js +17 -22
- package/build/system/Cards/CardRank/index.js +32 -37
- package/build/system/Cards/CreationCard/CardHead.js +35 -42
- package/build/system/Cards/CreationCard/index.js +45 -76
- package/build/system/Cards/MultiMediaCard/index.js +30 -35
- package/build/system/Cards/Styles/Content.js +9 -14
- package/build/system/Cards/Styles/Head.js +8 -13
- package/build/system/Cards/Styles/Headicons.js +23 -28
- package/build/system/Cards/Styles/Image.js +8 -13
- package/build/system/Cards/Styles/Likes.js +14 -19
- package/build/system/Cards/Styles/MultiHead.js +11 -16
- package/build/system/Cards/Styles/Video.js +3 -8
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +14 -19
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +10 -15
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +17 -24
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +15 -20
- package/build/system/DropDown/DropDown.test.js +14 -19
- package/build/system/DropDown/index.js +12 -17
- package/build/system/Filters/helpers.js +1 -5
- package/build/system/Filters/type.js +2 -5
- package/build/system/Forms/Checkbox/Checkbox.test.js +13 -18
- package/build/system/Forms/Checkbox/index.js +16 -21
- package/build/system/Forms/DatePicker/index.js +46 -51
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +11 -16
- package/build/system/Forms/ErrorLabel/index.js +10 -15
- package/build/system/Forms/Input/Input.test.js +13 -18
- package/build/system/Forms/Input/index.js +29 -35
- package/build/system/Forms/Input/type.js +1 -2
- package/build/system/Forms/Messages/index.js +1 -3
- package/build/system/Forms/RadioInput/index.js +12 -17
- package/build/system/Forms/Selects/DesktopSelect/index.js +41 -69
- package/build/system/Forms/Selects/DesktopSelect/type.js +1 -2
- package/build/system/Forms/Selects/MobileSelect/index.js +10 -15
- package/build/system/Forms/TextArea/TextArea.test.js +13 -18
- package/build/system/Forms/TextArea/index.js +26 -31
- package/build/system/Forms/index.js +5 -14
- package/build/system/Img/ExternalImage/index.js +11 -17
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +18 -23
- package/build/system/Img/ImageInterceptor/index.js +10 -40
- package/build/system/Img/Profilepic/index.js +12 -19
- package/build/system/Img/Userpic/UserPic.test.js +15 -20
- package/build/system/Img/Userpic/index.js +28 -33
- package/build/system/Img/index.js +3 -19
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +12 -17
- package/build/system/Labels/ExperienceLabel/index.js +27 -32
- package/build/system/Labels/InviteLabel/InviteLabel.test.js +10 -15
- package/build/system/Labels/InviteLabel/index.js +14 -19
- package/build/system/Labels/SkeletonLabel/index.js +2 -7
- package/build/system/Modals/Modal/Modal.test.js +11 -16
- package/build/system/Modals/Modal/index.js +24 -29
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +7 -37
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +11 -16
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +5 -9
- package/build/system/Modals/ModalSidebar/index.js +23 -29
- package/build/system/Overlay/Overlay.test.js +11 -16
- package/build/system/Overlay/index.js +11 -16
- package/build/system/PageLoader/index.js +2 -7
- package/build/system/Palete/index.js +2 -7
- package/build/system/ShareIconResize.js +14 -21
- package/build/system/Tabs/TabNavLink/TabNavLink.test.js +15 -20
- package/build/system/Tabs/TabNavLink/index.js +17 -23
- package/build/system/Tabs/TabsNav/TabsNav.test.js +18 -23
- package/build/system/Tabs/TabsNav/index.js +7 -13
- package/build/system/Tabs/TabsNav/type.js +1 -2
- package/build/system/Tabs/TabsPanel/TabsPanel.test.js +13 -18
- package/build/system/Tabs/TabsPanel/index.js +5 -10
- package/build/system/index.js +6 -22
- package/build/system/theme.js +1 -7
- package/build/utils/3d.js +1 -5
- package/build/utils/adaptive/check4k.js +5 -9
- package/build/utils/adaptive/scale.js +5 -9
- package/build/utils/auth/index.js +3 -7
- package/build/utils/copyBtn/index.js +23 -30
- package/build/utils/env/index.js +1 -5
- package/build/utils/extractItemIds.js +3 -9
- package/build/utils/getDimensionsImage.js +1 -5
- package/build/utils/getPageSizeAssets.js +4 -8
- package/build/utils/imageProportionsSize/index.js +1 -5
- package/build/utils/screen/index.js +24 -30
- package/build/utils/seacrhTabs.js +1 -4
- package/build/utils/ssrFunctions/index.js +9 -15
- package/build/utils/ui/index.js +1 -5
- package/package.json +1 -1
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const CreationAudio_1 = __importDefault(require("../../common/ItemViews/CreationAudio"));
|
|
11
|
-
const CreationImage_1 = __importDefault(require("../../common/ItemViews/CreationImage"));
|
|
12
|
-
const CreationObject_1 = __importDefault(require("../../common/ItemViews/CreationObject"));
|
|
13
|
-
const CreationOther_1 = __importDefault(require("../../common/ItemViews/CreationOther"));
|
|
14
|
-
const CreationVideo_1 = __importDefault(require("../../common/ItemViews/CreationVideo"));
|
|
1
|
+
import { BlockChainEntity, BlockChainKeys } from '@ludo.ninja/core';
|
|
2
|
+
import { checkGltfUrl } from '@ludo.ninja/utils';
|
|
3
|
+
import { LabelKeys } from "../../common/ItemType";
|
|
4
|
+
import labelsData from "../../common/ItemType/data";
|
|
5
|
+
import CreationAudio from "../../common/ItemViews/CreationAudio";
|
|
6
|
+
import CreationImage from "../../common/ItemViews/CreationImage";
|
|
7
|
+
import CreationObject from "../../common/ItemViews/CreationObject";
|
|
8
|
+
import CreationOther from "../../common/ItemViews/CreationOther";
|
|
9
|
+
import CreationVideo from "../../common/ItemViews/CreationVideo";
|
|
15
10
|
class CollectionCreationEntity {
|
|
16
11
|
collectionId;
|
|
17
12
|
collectionTitle;
|
|
@@ -33,7 +28,7 @@ class CollectionCreationEntity {
|
|
|
33
28
|
this.id = collectionAsset.id;
|
|
34
29
|
this.collectionTitle = collectionAsset.collectionTitle;
|
|
35
30
|
this.name = collectionAsset.name;
|
|
36
|
-
this.blockchain = new
|
|
31
|
+
this.blockchain = new BlockChainEntity(collectionAsset.blockchain);
|
|
37
32
|
this.tokenId = collectionAsset.tokenId;
|
|
38
33
|
this.address = collectionAsset.address;
|
|
39
34
|
this.creatorsAddresses = collectionAsset.creatorsAddresses;
|
|
@@ -43,7 +38,7 @@ class CollectionCreationEntity {
|
|
|
43
38
|
this.liked = collectionAsset.liked;
|
|
44
39
|
this.medias = collectionAsset.medias;
|
|
45
40
|
this.collectionCreationId = collectionAsset.assetId;
|
|
46
|
-
this.itemType = type ??
|
|
41
|
+
this.itemType = type ?? LabelKeys.asset;
|
|
47
42
|
}
|
|
48
43
|
getCreationId() {
|
|
49
44
|
return this.collectionId ? this.collectionId : '';
|
|
@@ -64,12 +59,12 @@ class CollectionCreationEntity {
|
|
|
64
59
|
return this.collectionCreationId ? this.collectionCreationId : '';
|
|
65
60
|
}
|
|
66
61
|
getCreationLink() {
|
|
67
|
-
if (this.getItemType() ===
|
|
62
|
+
if (this.getItemType() === LabelKeys.asset) {
|
|
68
63
|
const blockChainPrivateLabel = this.getBlockchain().getBlockChainPrivateLabel();
|
|
69
|
-
if (blockChainPrivateLabel ===
|
|
64
|
+
if (blockChainPrivateLabel === BlockChainKeys.elrond) {
|
|
70
65
|
return `/${this.getItemType()}/${this.getBlockchain().getBlockChainPrivateLabel()}/${this.getId()}`;
|
|
71
66
|
}
|
|
72
|
-
else if (blockChainPrivateLabel ===
|
|
67
|
+
else if (blockChainPrivateLabel === BlockChainKeys.solana) {
|
|
73
68
|
return `/${this.getItemType()}/${this.getBlockchain().getBlockChainPrivateLabel()}/${this.getTokenId()}`;
|
|
74
69
|
}
|
|
75
70
|
else {
|
|
@@ -101,7 +96,7 @@ class CollectionCreationEntity {
|
|
|
101
96
|
return null;
|
|
102
97
|
const convertedOriginalUrlsArray = [];
|
|
103
98
|
for (let i = 0; i < this.originalUrls?.length; i++) {
|
|
104
|
-
convertedOriginalUrlsArray.push(
|
|
99
|
+
convertedOriginalUrlsArray.push(checkGltfUrl(this.originalUrls[i] || ''));
|
|
105
100
|
}
|
|
106
101
|
return convertedOriginalUrlsArray;
|
|
107
102
|
}
|
|
@@ -141,12 +136,12 @@ class CollectionCreationEntity {
|
|
|
141
136
|
alt: `${this.getName()} ${this.getAddress()}`,
|
|
142
137
|
};
|
|
143
138
|
const mediaTypes = [
|
|
144
|
-
new
|
|
145
|
-
new
|
|
146
|
-
new
|
|
147
|
-
new
|
|
139
|
+
new CreationImage(mediaFields),
|
|
140
|
+
new CreationVideo(mediaFields),
|
|
141
|
+
new CreationAudio(mediaFields),
|
|
142
|
+
new CreationObject(mediaFields),
|
|
148
143
|
];
|
|
149
|
-
let currentMedia = new
|
|
144
|
+
let currentMedia = new CreationOther(mediaFields);
|
|
150
145
|
for (let i = 0; i < mediaTypes.length; i++) {
|
|
151
146
|
if (mediaTypes[i].checkOwnType()) {
|
|
152
147
|
currentMedia = mediaTypes[i];
|
|
@@ -156,7 +151,7 @@ class CollectionCreationEntity {
|
|
|
156
151
|
return currentMedia;
|
|
157
152
|
}
|
|
158
153
|
getLabel() {
|
|
159
|
-
return
|
|
154
|
+
return labelsData[this.getItemType()];
|
|
160
155
|
}
|
|
161
156
|
getCuttedSecondName(isMobileView) {
|
|
162
157
|
if (!this.name)
|
|
@@ -170,4 +165,4 @@ class CollectionCreationEntity {
|
|
|
170
165
|
: this.name;
|
|
171
166
|
}
|
|
172
167
|
}
|
|
173
|
-
|
|
168
|
+
export default CollectionCreationEntity;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@ludo.ninja/core");
|
|
1
|
+
import { BlockChainEntity, MarketPlaceEntity, ProfileEntity, } from '@ludo.ninja/core';
|
|
4
2
|
class CollectionEntity {
|
|
5
3
|
collectionTitle;
|
|
6
4
|
collectionId;
|
|
@@ -22,13 +20,13 @@ class CollectionEntity {
|
|
|
22
20
|
this.creatorsProfiles = collection.creatorsProfiles;
|
|
23
21
|
this.contractAddress = collection.contractAddress;
|
|
24
22
|
this.collectionMarkets =
|
|
25
|
-
collection.collectionMarkets?.map((market) => new
|
|
23
|
+
collection.collectionMarkets?.map((market) => new MarketPlaceEntity({
|
|
26
24
|
marketName: market?.marketName,
|
|
27
25
|
marketUrl: market?.marketUrl,
|
|
28
26
|
marketId: market?.marketUrl,
|
|
29
27
|
})) || [];
|
|
30
28
|
this.creatorsAddresses = collection.creatorsAddresses;
|
|
31
|
-
this.blockchain = new
|
|
29
|
+
this.blockchain = new BlockChainEntity(collection.blockchain);
|
|
32
30
|
this.rank = collection.rank;
|
|
33
31
|
this.likes = collection.likes;
|
|
34
32
|
this.liked = collection.liked;
|
|
@@ -46,7 +44,7 @@ class CollectionEntity {
|
|
|
46
44
|
let profiles;
|
|
47
45
|
if (this.creatorsProfiles) {
|
|
48
46
|
profiles = this.creatorsProfiles.map((profile) => {
|
|
49
|
-
return new
|
|
47
|
+
return new ProfileEntity(profile);
|
|
50
48
|
});
|
|
51
49
|
}
|
|
52
50
|
return profiles || null;
|
|
@@ -79,4 +77,4 @@ class CollectionEntity {
|
|
|
79
77
|
return this.liked;
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
|
-
|
|
80
|
+
export default CollectionEntity;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const CreationAudio_1 = __importDefault(require("../common/ItemViews/CreationAudio"));
|
|
10
|
-
const CreationImage_1 = __importDefault(require("../common/ItemViews/CreationImage"));
|
|
11
|
-
const CreationObject_1 = __importDefault(require("../common/ItemViews/CreationObject"));
|
|
12
|
-
const CreationOther_1 = __importDefault(require("../common/ItemViews/CreationOther"));
|
|
13
|
-
const CreationVideo_1 = __importDefault(require("../common/ItemViews/CreationVideo"));
|
|
1
|
+
import { BlockChainEntity, BlockChainKeys } from '@ludo.ninja/core';
|
|
2
|
+
import { LabelKeys } from "../common/ItemType";
|
|
3
|
+
import labelsData from "../common/ItemType/data";
|
|
4
|
+
import CreationAudio from "../common/ItemViews/CreationAudio";
|
|
5
|
+
import CreationImage from "../common/ItemViews/CreationImage";
|
|
6
|
+
import CreationObject from "../common/ItemViews/CreationObject";
|
|
7
|
+
import CreationOther from "../common/ItemViews/CreationOther";
|
|
8
|
+
import CreationVideo from "../common/ItemViews/CreationVideo";
|
|
14
9
|
class CreationEntity {
|
|
15
10
|
itemId;
|
|
16
11
|
itemType;
|
|
@@ -37,7 +32,7 @@ class CreationEntity {
|
|
|
37
32
|
this.itemId = creation.itemId;
|
|
38
33
|
this.id = creation.id;
|
|
39
34
|
this.itemType = creation.itemType;
|
|
40
|
-
this.blockchain = new
|
|
35
|
+
this.blockchain = new BlockChainEntity(creation.blockchain);
|
|
41
36
|
this.address = creation.address;
|
|
42
37
|
this.tokenId = creation.tokenId;
|
|
43
38
|
// this.creatorsProfiles = creation.creatorsProfiles;
|
|
@@ -87,12 +82,12 @@ class CreationEntity {
|
|
|
87
82
|
return this.isCheckboxSelected;
|
|
88
83
|
}
|
|
89
84
|
getCreationLink() {
|
|
90
|
-
if (this.getItemType() ===
|
|
85
|
+
if (this.getItemType() === LabelKeys.asset) {
|
|
91
86
|
const blockChainPrivateLabel = this.getBlockchain().getBlockChainPrivateLabel();
|
|
92
|
-
if (blockChainPrivateLabel ===
|
|
87
|
+
if (blockChainPrivateLabel === BlockChainKeys.elrond) {
|
|
93
88
|
return `/${this.getItemType()}/${this.getBlockchain().getBlockChainPrivateLabel()}/${this.getId()}`;
|
|
94
89
|
}
|
|
95
|
-
else if (blockChainPrivateLabel ===
|
|
90
|
+
else if (blockChainPrivateLabel === BlockChainKeys.solana) {
|
|
96
91
|
return `/${this.getItemType()}/${this.getBlockchain().getBlockChainPrivateLabel()}/${this.getTokenId()}`;
|
|
97
92
|
}
|
|
98
93
|
else {
|
|
@@ -102,7 +97,7 @@ class CreationEntity {
|
|
|
102
97
|
return `/${this.getItemType()}/${this.getItemId()}`;
|
|
103
98
|
}
|
|
104
99
|
getLabel() {
|
|
105
|
-
return
|
|
100
|
+
return labelsData[this.getItemType()];
|
|
106
101
|
}
|
|
107
102
|
getLikes() {
|
|
108
103
|
return this.likes ? this.likes : 0;
|
|
@@ -160,12 +155,12 @@ class CreationEntity {
|
|
|
160
155
|
alt: `${this.getName()} ${this.getAddress()}`,
|
|
161
156
|
};
|
|
162
157
|
const mediaTypes = [
|
|
163
|
-
new
|
|
164
|
-
new
|
|
165
|
-
new
|
|
166
|
-
new
|
|
158
|
+
new CreationImage(mediaFields),
|
|
159
|
+
new CreationVideo(mediaFields),
|
|
160
|
+
new CreationAudio(mediaFields),
|
|
161
|
+
new CreationObject(mediaFields),
|
|
167
162
|
];
|
|
168
|
-
let currentMedia = new
|
|
163
|
+
let currentMedia = new CreationOther(mediaFields);
|
|
169
164
|
for (let i = 0; i < mediaTypes.length; i++) {
|
|
170
165
|
if (mediaTypes[i].checkOwnType()) {
|
|
171
166
|
currentMedia = mediaTypes[i];
|
|
@@ -175,4 +170,4 @@ class CreationEntity {
|
|
|
175
170
|
return currentMedia;
|
|
176
171
|
}
|
|
177
172
|
}
|
|
178
|
-
|
|
173
|
+
export default CreationEntity;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@ludo.ninja/core");
|
|
7
|
-
const data_1 = __importDefault(require("../common/ItemType/data"));
|
|
1
|
+
import { ProfileEntity } from '@ludo.ninja/core';
|
|
2
|
+
import labelsData from '../common/ItemType/data';
|
|
8
3
|
class GalleryEntityV2 {
|
|
9
4
|
galleryId;
|
|
10
5
|
galleryType;
|
|
@@ -22,7 +17,7 @@ class GalleryEntityV2 {
|
|
|
22
17
|
this.galleryType = gallery.galleryType;
|
|
23
18
|
this.description = gallery.description;
|
|
24
19
|
this.banner = gallery.banner;
|
|
25
|
-
this.profile = new
|
|
20
|
+
this.profile = new ProfileEntity({
|
|
26
21
|
userpic: gallery.userpic,
|
|
27
22
|
username: gallery.username,
|
|
28
23
|
userId: gallery.userId,
|
|
@@ -71,7 +66,7 @@ class GalleryEntityV2 {
|
|
|
71
66
|
return this.galleryType;
|
|
72
67
|
}
|
|
73
68
|
getLabel() {
|
|
74
|
-
return
|
|
69
|
+
return labelsData[this.getGalleryType()];
|
|
75
70
|
}
|
|
76
71
|
getCreationLink() {
|
|
77
72
|
return this.getGalleryType() === 'likelist'
|
|
@@ -79,4 +74,4 @@ class GalleryEntityV2 {
|
|
|
79
74
|
: `/${this.getGalleryType()}/${this.getGalleryId()}`;
|
|
80
75
|
}
|
|
81
76
|
}
|
|
82
|
-
|
|
77
|
+
export default GalleryEntityV2;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThemeEnum = void 0;
|
|
4
|
-
var interface_1 = require("@ludo.ninja/ui/build/dto/Theme/interface");
|
|
5
|
-
Object.defineProperty(exports, "ThemeEnum", { enumerable: true, get: function () { return interface_1.ThemeEnum; } });
|
|
1
|
+
export { ThemeEnum } from '@ludo.ninja/ui/build/dto/Theme/interface';
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ItemType_1 = require("./");
|
|
1
|
+
import { LabelBackground, LabelColor, LabelKeys, LabelText, } from "./";
|
|
4
2
|
const labelsData = {
|
|
5
|
-
[
|
|
6
|
-
backgroundColor:
|
|
7
|
-
color:
|
|
8
|
-
text:
|
|
3
|
+
[LabelKeys.asset]: {
|
|
4
|
+
backgroundColor: LabelBackground.asset,
|
|
5
|
+
color: LabelColor.asset,
|
|
6
|
+
text: LabelText.asset,
|
|
9
7
|
},
|
|
10
|
-
[
|
|
11
|
-
backgroundColor:
|
|
12
|
-
color:
|
|
13
|
-
text:
|
|
8
|
+
[LabelKeys.collection]: {
|
|
9
|
+
backgroundColor: LabelBackground.collection,
|
|
10
|
+
color: LabelColor.collection,
|
|
11
|
+
text: LabelText.collection,
|
|
14
12
|
},
|
|
15
|
-
[
|
|
16
|
-
backgroundColor:
|
|
17
|
-
color:
|
|
18
|
-
text:
|
|
13
|
+
[LabelKeys.gallery]: {
|
|
14
|
+
backgroundColor: LabelBackground.gallery,
|
|
15
|
+
color: LabelColor.gallery,
|
|
16
|
+
text: LabelText.gallery,
|
|
19
17
|
},
|
|
20
|
-
[
|
|
21
|
-
backgroundColor:
|
|
22
|
-
color:
|
|
23
|
-
text:
|
|
18
|
+
[LabelKeys.favorites]: {
|
|
19
|
+
backgroundColor: LabelBackground.favorites,
|
|
20
|
+
color: LabelColor.favorites,
|
|
21
|
+
text: LabelText.favorites,
|
|
24
22
|
},
|
|
25
|
-
[
|
|
26
|
-
backgroundColor:
|
|
27
|
-
color:
|
|
28
|
-
text:
|
|
23
|
+
[LabelKeys.likelist]: {
|
|
24
|
+
backgroundColor: LabelBackground.likelist,
|
|
25
|
+
color: LabelColor.likelist,
|
|
26
|
+
text: LabelText.likelist,
|
|
29
27
|
},
|
|
30
|
-
[
|
|
31
|
-
backgroundColor:
|
|
32
|
-
color:
|
|
33
|
-
text:
|
|
28
|
+
[LabelKeys.opportunity]: {
|
|
29
|
+
backgroundColor: LabelBackground.opportunity,
|
|
30
|
+
color: LabelColor.opportunity,
|
|
31
|
+
text: LabelText.opportunity,
|
|
34
32
|
},
|
|
35
33
|
};
|
|
36
|
-
|
|
34
|
+
export default labelsData;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LabelKeys = exports.LabelColor = exports.LabelText = exports.LabelBackground = void 0;
|
|
4
1
|
var LabelKeys;
|
|
5
2
|
(function (LabelKeys) {
|
|
6
3
|
LabelKeys["asset"] = "asset";
|
|
@@ -9,7 +6,7 @@ var LabelKeys;
|
|
|
9
6
|
LabelKeys["favorites"] = "favorites";
|
|
10
7
|
LabelKeys["likelist"] = "likelist";
|
|
11
8
|
LabelKeys["opportunity"] = "opportunity";
|
|
12
|
-
})(LabelKeys || (
|
|
9
|
+
})(LabelKeys || (LabelKeys = {}));
|
|
13
10
|
var LabelBackground;
|
|
14
11
|
(function (LabelBackground) {
|
|
15
12
|
LabelBackground["asset"] = "#F3D6FD";
|
|
@@ -19,7 +16,7 @@ var LabelBackground;
|
|
|
19
16
|
LabelBackground["favorites"] = "#CDCFF8";
|
|
20
17
|
LabelBackground["likelist"] = "#CDCFF8";
|
|
21
18
|
LabelBackground["opportunity"] = "#CDF8D9";
|
|
22
|
-
})(LabelBackground || (
|
|
19
|
+
})(LabelBackground || (LabelBackground = {}));
|
|
23
20
|
var LabelColor;
|
|
24
21
|
(function (LabelColor) {
|
|
25
22
|
LabelColor["asset"] = "#9177B1";
|
|
@@ -29,7 +26,7 @@ var LabelColor;
|
|
|
29
26
|
LabelColor["favorites"] = "#7779B1";
|
|
30
27
|
LabelColor["likelist"] = "#7779B1";
|
|
31
28
|
LabelColor["opportunity"] = "#77B179";
|
|
32
|
-
})(LabelColor || (
|
|
29
|
+
})(LabelColor || (LabelColor = {}));
|
|
33
30
|
var LabelText;
|
|
34
31
|
(function (LabelText) {
|
|
35
32
|
LabelText["asset"] = "nft";
|
|
@@ -39,4 +36,5 @@ var LabelText;
|
|
|
39
36
|
LabelText["favorites"] = "favorites";
|
|
40
37
|
LabelText["likelist"] = "liked";
|
|
41
38
|
LabelText["opportunity"] = "opportunity";
|
|
42
|
-
})(LabelText || (
|
|
39
|
+
})(LabelText || (LabelText = {}));
|
|
40
|
+
export { LabelBackground, LabelText, LabelColor, LabelKeys };
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const Audio_1 = __importDefault(require("../../Media/Audio"));
|
|
8
|
-
const Urls_1 = require("../../Media/Urls");
|
|
9
|
-
const env_1 = require("../../../../store/env");
|
|
10
|
-
const CardAudio_1 = __importDefault(require("../../../../system/Cards/CardMedia/CardAudio"));
|
|
11
|
-
class CreationAudio extends Audio_1.default {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Audio from "../../Media/Audio";
|
|
3
|
+
import { isExternalMediaAudio } from "../../Media/Urls";
|
|
4
|
+
import { useEnvStore } from "../../../../store/env";
|
|
5
|
+
import CardAudio from "../../../../system/Cards/CardMedia/CardAudio";
|
|
6
|
+
class CreationAudio extends Audio {
|
|
12
7
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }) {
|
|
13
8
|
super({ nsfw, previewUrl, media, mimeType, alt, originalMime });
|
|
14
9
|
}
|
|
15
10
|
getMediaUrl() {
|
|
16
11
|
const media = this.getMedia();
|
|
17
|
-
return (getAudioENVDomain) =>
|
|
12
|
+
return (getAudioENVDomain) => isExternalMediaAudio(media, getAudioENVDomain);
|
|
18
13
|
}
|
|
19
14
|
displaySingleMedia() {
|
|
20
|
-
return ((
|
|
15
|
+
return (_jsx(DisplaySingleMedia, { getMediaUrl: this.getMediaUrl(), alt: this.getAlt() }));
|
|
21
16
|
}
|
|
22
17
|
}
|
|
23
18
|
const DisplaySingleMedia = ({ getMediaUrl, alt, }) => {
|
|
24
|
-
const getAudioENVDomain =
|
|
25
|
-
return ((
|
|
19
|
+
const getAudioENVDomain = useEnvStore((state) => state.getAudioDomain);
|
|
20
|
+
return (_jsx(CardAudio, { alt: alt, audioSrc: getMediaUrl(getAudioENVDomain), imgSrc: '/noContent/noContentAudio.svg', errorImg: '/noContent/noContentAudio.svg' }));
|
|
26
21
|
};
|
|
27
|
-
|
|
22
|
+
export default CreationAudio;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const Image_1 = __importDefault(require("../../Media/Image"));
|
|
8
|
-
const Urls_1 = require("../../Media/Urls");
|
|
9
|
-
const env_1 = require("../../../../store/env");
|
|
10
|
-
const CardImage_1 = __importDefault(require("../../../../system/Cards/CardMedia/CardImage"));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Image from "../../Media/Image";
|
|
3
|
+
import { isExternalMediaImage, mediaSizes, } from "../../Media/Urls";
|
|
4
|
+
import { useEnvStore } from "../../../../store/env";
|
|
5
|
+
import CardImage from "../../../../system/Cards/CardMedia/CardImage";
|
|
11
6
|
const DisplaySingleMedia = ({ getMediaUrl, errorImg, alt, }) => {
|
|
12
|
-
const NEXT_PUBLIC_STATIC_DOMAIN =
|
|
13
|
-
return ((
|
|
7
|
+
const NEXT_PUBLIC_STATIC_DOMAIN = useEnvStore((state) => state.NEXT_PUBLIC_STATIC_DOMAIN);
|
|
8
|
+
return (_jsx(CardImage, { alt: alt, imgSrc: getMediaUrl(NEXT_PUBLIC_STATIC_DOMAIN), errorImg: errorImg }));
|
|
14
9
|
};
|
|
15
|
-
class CreationImage extends
|
|
10
|
+
class CreationImage extends Image {
|
|
16
11
|
constructor({ media, mimeType, previewUrl, nsfw, originalUrl, alt, originalMime, }) {
|
|
17
12
|
super({
|
|
18
13
|
nsfw,
|
|
@@ -26,13 +21,13 @@ class CreationImage extends Image_1.default {
|
|
|
26
21
|
}
|
|
27
22
|
getMediaUrl() {
|
|
28
23
|
const media = this.getMedia();
|
|
29
|
-
return (NEXT_PUBLIC_STATIC_DOMAIN) =>
|
|
24
|
+
return (NEXT_PUBLIC_STATIC_DOMAIN) => isExternalMediaImage(media, mediaSizes.small, NEXT_PUBLIC_STATIC_DOMAIN);
|
|
30
25
|
}
|
|
31
26
|
displaySingleMedia() {
|
|
32
|
-
return ((
|
|
27
|
+
return (_jsx(DisplaySingleMedia, { alt: this.getAlt(), getMediaUrl: this.getMediaUrl(), errorImg: '/noContent/noContent.svg' }));
|
|
33
28
|
}
|
|
34
29
|
displayLinkedMedia() {
|
|
35
|
-
return (
|
|
30
|
+
return _jsx("div", { children: "Its linked image" });
|
|
36
31
|
}
|
|
37
32
|
}
|
|
38
|
-
|
|
33
|
+
export default CreationImage;
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const assetPage_1 = require("../../../../components/assetPage");
|
|
8
|
-
// import CardImage from '@/system/Cards/CardMedia/CardImage';
|
|
9
|
-
const Object_1 = __importDefault(require("../../Media/Object"));
|
|
10
|
-
const env_1 = require("../../../../store/env");
|
|
11
|
-
class CreationObject extends Object_1.default {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Viewer3D } from "../../../../components/assetPage";
|
|
3
|
+
// import CardImage from "../../../../system/Cards/CardMedia/CardImage";
|
|
4
|
+
import Object from "../../Media/Object";
|
|
5
|
+
import { useEnvStore } from "../../../../store/env";
|
|
6
|
+
class CreationObject extends Object {
|
|
12
7
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }) {
|
|
13
8
|
super({ nsfw, previewUrl, media, mimeType, alt, originalMime });
|
|
14
9
|
}
|
|
15
10
|
displaySingleMedia() {
|
|
16
|
-
return (
|
|
11
|
+
return _jsx(DisplaySingleMedia, { getMediaUrl: this.getMediaUrl() });
|
|
17
12
|
// return (
|
|
18
13
|
// <CardImage
|
|
19
14
|
// alt={this.getAlt()}
|
|
@@ -24,7 +19,7 @@ class CreationObject extends Object_1.default {
|
|
|
24
19
|
}
|
|
25
20
|
}
|
|
26
21
|
const DisplaySingleMedia = ({ getMediaUrl, }) => {
|
|
27
|
-
const getMediaDomain =
|
|
28
|
-
return (
|
|
22
|
+
const getMediaDomain = useEnvStore((state) => state.getMediaDomain);
|
|
23
|
+
return _jsx(Viewer3D, { file3D: getMediaUrl(getMediaDomain), file2D: 'file2D' });
|
|
29
24
|
};
|
|
30
|
-
|
|
25
|
+
export default CreationObject;
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const Other_1 = __importDefault(require("../../Media/Other"));
|
|
8
|
-
const Urls_1 = require("../../Media/Urls");
|
|
9
|
-
const env_1 = require("../../../../store/env");
|
|
10
|
-
const CardImage_1 = __importDefault(require("../../../../system/Cards/CardMedia/CardImage"));
|
|
11
|
-
class CreationOther extends Other_1.default {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Other from "../../Media/Other";
|
|
3
|
+
import { isExternalMediaImage, mediaSizes, } from "../../Media/Urls";
|
|
4
|
+
import { useEnvStore } from "../../../../store/env";
|
|
5
|
+
import CardImage from "../../../../system/Cards/CardMedia/CardImage";
|
|
6
|
+
class CreationOther extends Other {
|
|
12
7
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }) {
|
|
13
8
|
super({ nsfw, previewUrl, media, mimeType, alt, originalMime });
|
|
14
9
|
}
|
|
15
10
|
getMediaUrl() {
|
|
16
11
|
const media = this.getMedia();
|
|
17
|
-
return (NEXT_PUBLIC_STATIC_DOMAIN) =>
|
|
12
|
+
return (NEXT_PUBLIC_STATIC_DOMAIN) => isExternalMediaImage(media, mediaSizes.small, NEXT_PUBLIC_STATIC_DOMAIN);
|
|
18
13
|
}
|
|
19
14
|
displaySingleMedia() {
|
|
20
|
-
return ((
|
|
15
|
+
return (_jsx(DisplaySingleMedia, { alt: this.getAlt(), getMediaUrl: this.getMediaUrl(), errorImg: '/noContent/noContent.svg' }));
|
|
21
16
|
}
|
|
22
17
|
}
|
|
23
18
|
const DisplaySingleMedia = ({ getMediaUrl, errorImg, alt, }) => {
|
|
24
|
-
const NEXT_PUBLIC_STATIC_DOMAIN =
|
|
25
|
-
return ((
|
|
19
|
+
const NEXT_PUBLIC_STATIC_DOMAIN = useEnvStore((state) => state.NEXT_PUBLIC_STATIC_DOMAIN);
|
|
20
|
+
return (_jsx(CardImage, { alt: alt, imgSrc: getMediaUrl(NEXT_PUBLIC_STATIC_DOMAIN), errorImg: errorImg }));
|
|
26
21
|
};
|
|
27
|
-
|
|
22
|
+
export default CreationOther;
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const Urls_1 = require("../../Media/Urls");
|
|
8
|
-
const Video_1 = __importDefault(require("../../Media/Video"));
|
|
9
|
-
const env_1 = require("../../../../store/env");
|
|
10
|
-
const CardVideo_1 = __importDefault(require("../../../../system/Cards/CardMedia/CardVideo"));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { isExternalMediaVideo } from "../../Media/Urls";
|
|
3
|
+
import Video from "../../Media/Video";
|
|
4
|
+
import { useEnvStore } from "../../../../store/env";
|
|
5
|
+
import CardVideo from "../../../../system/Cards/CardMedia/CardVideo";
|
|
11
6
|
const DisplaySingleMedia = ({ getMediaUrl, errorImg, alt, }) => {
|
|
12
|
-
const getVideoDomain =
|
|
13
|
-
return ((
|
|
7
|
+
const getVideoDomain = useEnvStore((state) => state.getVideoDomain);
|
|
8
|
+
return (_jsx(CardVideo, { alt: alt, videoSrc: getMediaUrl(getVideoDomain), errorImg: errorImg }));
|
|
14
9
|
};
|
|
15
|
-
class CreationVideo extends
|
|
10
|
+
class CreationVideo extends Video {
|
|
16
11
|
constructor({ media, mimeType, previewUrl, nsfw, alt, originalMime, }) {
|
|
17
12
|
super({ nsfw, previewUrl, media, mimeType, alt, originalMime });
|
|
18
13
|
}
|
|
19
14
|
getMediaUrl() {
|
|
20
15
|
const media = this.getMedia();
|
|
21
|
-
return (getVideoENVDomain) =>
|
|
16
|
+
return (getVideoENVDomain) => isExternalMediaVideo(media, getVideoENVDomain);
|
|
22
17
|
}
|
|
23
18
|
displaySingleMedia() {
|
|
24
|
-
return ((
|
|
19
|
+
return (_jsx(DisplaySingleMedia, { alt: this.getAlt(), getMediaUrl: this.getMediaUrl(), errorImg: '/noContent/noContent.svg' }));
|
|
25
20
|
}
|
|
26
21
|
}
|
|
27
|
-
|
|
22
|
+
export default CreationVideo;
|