@ludo.ninja/components 1.9.4 → 1.9.5
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/dist/components/CreationCard/{CardHead.jsx → CardHead.js} +15 -22
- package/dist/components/CreationCard/{index.jsx → index.js} +24 -19
- package/dist/components/addWalletsRedirectPage/{index.jsx → index.js} +11 -18
- package/dist/components/banner/{index.jsx → index.js} +17 -23
- package/dist/components/base/Meta/index.js +60 -0
- package/dist/components/base/NoSSR/{index.jsx → index.js} +1 -1
- package/dist/components/collectionPage/collectionLike/{index.jsx → index.js} +5 -9
- package/dist/components/deleteDialog/{index.jsx → index.js} +14 -19
- package/dist/components/favoriteList/add/addAssetToFavoriteList/{index.jsx → index.js} +2 -4
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/{index.jsx → index.js} +1 -3
- package/dist/components/favoriteList/add/addCreationToFavoriteList/{index.jsx → index.js} +2 -4
- package/dist/components/filters/applyResetBtns/{index.jsx → index.js} +5 -8
- package/dist/components/filters/galleriesFiltersForm/{index.jsx → index.js} +5 -14
- package/dist/components/filters/{index.jsx → index.js} +27 -35
- package/dist/components/filters/mobileFilters/{index.jsx → index.js} +1 -1
- package/dist/components/filters/setsFiltersForm/{index.jsx → index.js} +4 -11
- package/dist/components/forms/form/{index.jsx → index.js} +35 -45
- package/dist/components/forms/formsNavigation/{index.jsx → index.js} +6 -14
- package/dist/components/forms/formsTemplate/{index.jsx → index.js} +3 -4
- package/dist/components/gallery/add/addAssetToGallery/{index.jsx → index.js} +2 -4
- package/dist/components/gallery/add/addCreationToGallery/{index.jsx → index.js} +7 -8
- package/dist/components/gradientLabel/{index.jsx → index.js} +1 -1
- package/dist/components/headers/components/headerExperienceLabel/{index.jsx → index.js} +2 -3
- package/dist/components/headers/components/headerUserPic/{index.jsx → index.js} +2 -3
- package/dist/components/headers/header/{index.jsx → index.js} +6 -6
- package/dist/components/headers/headerSearch/{index.jsx → index.js} +7 -7
- package/dist/components/headers/headerSimple/{index.jsx → index.js} +4 -6
- package/dist/components/inviteCodesForms/getEarlyAccessForm/{index.jsx → index.js} +17 -27
- package/dist/components/inviteCodesForms/joinWaitListForm/{index.jsx → index.js} +11 -22
- package/dist/components/inviteCodesPage/components/inviteCodes/{index.jsx → index.js} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/{index.jsx → index.js} +3 -4
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/{index.jsx → index.js} +6 -7
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/{index.jsx → index.js} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/{index.jsx → index.js} +1 -1
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/{index.jsx → index.js} +4 -9
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/{index.jsx → index.js} +1 -3
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/{index.jsx → index.js} +17 -27
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +17 -0
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/{index.jsx → index.js} +4 -6
- package/dist/components/inviteCodesPage/wrappers/usedCodes/{index.jsx → index.js} +6 -9
- package/dist/components/linkTabs/{index.jsx → index.js} +1 -3
- package/dist/components/linkTabs/linkTab/{index.jsx → index.js} +4 -6
- package/dist/components/myWallets/{index.jsx → index.js} +4 -5
- package/dist/components/myWallets/myWalletItem/{index.jsx → index.js} +22 -29
- package/dist/components/navigation/{index.jsx → index.js} +11 -29
- package/dist/components/profile/MultiversXAudit/{MultiversXAudit.jsx → MultiversXAudit.js} +10 -15
- package/dist/components/profile/{ProfileTabs.jsx → ProfileTabs.js} +20 -22
- package/dist/components/profile/aboutText/{index.jsx → index.js} +16 -25
- package/dist/components/profile/addToGalleryBtns/{index.jsx → index.js} +6 -9
- package/dist/components/profile/followersSocial/followers/{index.jsx → index.js} +3 -4
- package/dist/components/profile/followersSocial/{index.jsx → index.js} +6 -7
- package/dist/components/profile/followersSocial/social/{index.jsx → index.js} +7 -9
- package/dist/components/profile/info/{index.jsx → index.js} +8 -11
- package/dist/components/profile/interests/{index.jsx → index.js} +14 -29
- package/dist/components/profile/pageHead/index.js +51 -0
- package/dist/components/profile/profileSkeleton/{index.jsx → index.js} +9 -15
- package/dist/components/profile/profileUserCards/{index.jsx → index.js} +1 -1
- package/dist/components/profile/profileUserCards/profileUserCard/{index.jsx → index.js} +21 -26
- package/dist/components/profile/rank/{index.jsx → index.js} +7 -15
- package/dist/components/profile/stats/{index.jsx → index.js} +4 -12
- package/dist/components/profile/wallets/{index.jsx → index.js} +20 -28
- package/dist/components/profile/wrapper/{index.jsx → index.js} +4 -12
- package/dist/components/registrationPage/registrationSelectBox/{index.jsx → index.js} +2 -3
- package/dist/components/registrationPage/registrationSelection/{index.jsx → index.js} +15 -29
- package/dist/components/rewards/FAQ/{index.jsx → index.js} +12 -20
- package/dist/components/rewards/clarifications/{index.jsx → index.js} +15 -25
- package/dist/components/rewards/logoBottom/{index.jsx → index.js} +5 -6
- package/dist/components/rewards/prograssBar/{index.jsx → index.js} +3 -5
- package/dist/components/rewards/seasonBanner/{index.jsx → index.js} +2 -3
- package/dist/components/rewards/taskExpTab/{index.jsx → index.js} +19 -31
- package/dist/components/rewards/tasksGrid/{index.jsx → index.js} +3 -6
- package/dist/components/rewards/userExp/{index.jsx → index.js} +23 -29
- package/dist/components/search/{SearchInputContainer.jsx → SearchInputContainer.js} +96 -98
- package/dist/components/search/{index.jsx → index.js} +10 -12
- package/dist/components/search/searchCategories/{index.jsx → index.js} +6 -10
- package/dist/components/search/searchCloseMoreButtons/{index.jsx → index.js} +12 -15
- package/dist/components/search/searchResultCaption/{index.jsx → index.js} +3 -6
- package/dist/components/search/searchSelectsGalleries/{index.jsx → index.js} +14 -30
- package/dist/components/search/searchSelectsSets/{index.jsx → index.js} +14 -27
- package/dist/components/search/searchSimpleInput/{index.jsx → index.js} +9 -11
- package/dist/components/search/searchSuggestions/index.js +117 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/{index.jsx → index.js} +3 -4
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/{index.jsx → index.js} +6 -7
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/{index.jsx → index.js} +11 -18
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/{index.jsx → index.js} +7 -14
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/{index.jsx → index.js} +5 -3
- package/dist/components/shareDialog/index.js +73 -0
- package/dist/components/showcaseAssets/showcaseSort/{index.jsx → index.js} +4 -6
- package/dist/components/sidebar/{data.jsx → data.js} +8 -8
- package/dist/components/sidebar/{index.jsx → index.js} +16 -23
- package/dist/components/sidebar/{initializer.jsx → initializer.js} +1 -1
- package/dist/components/sidebar/sidebarFilters/{index.jsx → index.js} +6 -9
- package/dist/components/sidebar/sidebarInviteCodeLabel/{index.jsx → index.js} +3 -4
- package/dist/components/socialButtons/{data.jsx → data.js} +6 -6
- package/dist/components/socialButtons/icons/discord.js +7 -0
- package/dist/components/socialButtons/icons/facebook.js +8 -0
- package/dist/components/socialButtons/icons/instagram.js +9 -0
- package/dist/components/socialButtons/icons/medium.js +7 -0
- package/dist/components/socialButtons/icons/telegram.js +7 -0
- package/dist/components/socialButtons/icons/twitter.js +7 -0
- package/dist/components/socialButtons/{index.jsx → index.js} +5 -8
- package/dist/components/tabs/icons/bell.js +9 -0
- package/dist/components/tabs/icons/profile.js +9 -0
- package/dist/components/tabs/icons/secure.js +8 -0
- package/dist/components/tabs/{index.jsx → index.js} +10 -13
- package/dist/components/toTopBtn/{index.jsx → index.js} +5 -7
- package/dist/dto/AssetEntity/views/AssetAudio/{index.jsx → index.js} +1 -1
- package/dist/dto/AssetEntity/views/AssetImage/{index.jsx → index.js} +2 -2
- package/dist/dto/AssetEntity/views/AssetObject/{index.jsx → index.js} +3 -3
- package/dist/dto/AssetEntity/views/AssetOther/{index.jsx → index.js} +3 -3
- package/dist/dto/AssetEntity/views/AssetScreenshot/{index.jsx → index.js} +2 -2
- package/dist/dto/AssetEntity/views/AssetVideo/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationAudio/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationImage/{index.jsx → index.js} +2 -2
- package/dist/dto/common/ItemViews/CreationObject/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationOther/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationVideo/{index.jsx → index.js} +1 -1
- package/dist/dto/common/Media/Audio/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Image/{index.jsx → index.js} +4 -4
- package/dist/dto/common/Media/Object/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Other/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Screenshot/{index.jsx → index.js} +4 -4
- package/dist/dto/common/Media/Video/{index.jsx → index.js} +3 -3
- package/dist/fonts/{FontsInitializeLayout.jsx → FontsInitializeLayout.js} +1 -4
- package/dist/hooks/searchFiltersConnector/{index.jsx → index.js} +33 -35
- package/dist/hooks/useToGalleryAsset/{index.jsx → index.js} +1 -1
- package/dist/layouts/{GlobalLayout.jsx → GlobalLayout.js} +15 -16
- package/dist/layouts/base/LWithRegularHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithSearchHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithSimpleHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithoutHeader/{index.jsx → index.js} +3 -4
- package/dist/layouts/custom/accountLayout/{index.jsx → index.js} +6 -11
- package/dist/layouts/custom/formsLayout/{index.jsx → index.js} +3 -5
- package/dist/layouts/custom/mainLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/custom/searchLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/custom/simpleLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/pageTransitionLayout.js +24 -0
- package/dist/modules/notifications/{CreatorNotifications.jsx → CreatorNotifications.js} +1 -3
- package/dist/modules/user/profileData/{profileDataInitialization.jsx → profileDataInitialization.js} +1 -1
- package/dist/modules/virtuoso/{VirtuosoPageBuilder.jsx → VirtuosoPageBuilder.js} +18 -23
- package/dist/modules/virtuoso/{VirtuosoToTopBtn.jsx → VirtuosoToTopBtn.js} +1 -1
- package/dist/pages/index.js +16 -0
- package/dist/system/ActiveLink/{index.jsx → index.js} +14 -5
- package/dist/system/Alert/{index.jsx → index.js} +1 -1
- package/dist/system/BasicOverlay/{index.jsx → index.js} +1 -1
- package/dist/system/Cards/CardCheckbox/{index.jsx → index.js} +4 -6
- package/dist/system/Cards/CardContent/CardCategory/{index.jsx → index.js} +3 -5
- package/dist/system/Cards/CardContent/CardLikes/{index.jsx → index.js} +7 -11
- package/dist/system/Cards/CardContent/CardShowMore/{index.jsx → index.js} +5 -8
- package/dist/system/Cards/CardContent/{index.jsx → index.js} +16 -30
- package/dist/system/Cards/CardHeadIcons/{index.jsx → index.js} +15 -22
- package/dist/system/Cards/CardMedia/CardAudio/{index.jsx → index.js} +4 -5
- package/dist/system/Cards/CardMedia/CardImage/{index.jsx → index.js} +4 -5
- package/dist/system/Cards/CardMedia/CardVideo/{index.jsx → index.js} +9 -11
- package/dist/system/Cards/CardRank/{index.jsx → index.js} +6 -12
- package/dist/system/Cards/CardsGrid/{index.jsx → index.js} +8 -13
- package/dist/system/Cards/HideLink/index.js +27 -0
- package/dist/system/Cards/MultiMediaCard/{index.jsx → index.js} +11 -17
- package/dist/system/Cards/RegularCard/{index.jsx → index.js} +11 -17
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/{index.jsx → index.js} +3 -6
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/{index.jsx → index.js} +3 -4
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/{index.jsx → index.js} +9 -15
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/{index.jsx → index.js} +4 -8
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/{index.jsx → index.js} +2 -3
- package/dist/system/CardsHolderWithSkeleton/{index.jsx → index.js} +3 -6
- package/dist/system/DropDown/{DropDown.test.jsx → DropDown.test.js} +7 -11
- package/dist/system/DropDown/{index.jsx → index.js} +10 -13
- package/dist/system/Forms/Checkbox/{Checkbox.test.jsx → Checkbox.test.js} +13 -2
- package/dist/system/Forms/Checkbox/{index.jsx → index.js} +23 -15
- package/dist/system/Forms/DatePicker/{index.jsx → index.js} +6 -7
- package/dist/system/Forms/ErrorLabel/{ErrorLabel.test.jsx → ErrorLabel.test.js} +2 -2
- package/dist/system/Forms/ErrorLabel/{index.jsx → index.js} +1 -1
- package/dist/system/Forms/Input/{Input.test.jsx → Input.test.js} +2 -2
- package/dist/system/Forms/Input/{index.jsx → index.js} +15 -5
- package/dist/system/Forms/RadioInput/{index.jsx → index.js} +16 -6
- package/dist/system/Forms/Selects/DesktopSelect/{index.jsx → index.js} +21 -11
- package/dist/system/Forms/Selects/MobileSelect/{index.jsx → index.js} +1 -3
- package/dist/system/Forms/TextArea/{index.jsx → index.js} +15 -5
- package/dist/system/Img/ExternalImage/{index.jsx → index.js} +12 -1
- package/dist/system/Img/ImageInterceptor/{ImageInterceptor.test.jsx → ImageInterceptor.test.js} +10 -14
- package/dist/system/Img/ImageInterceptor/{index.jsx → index.js} +4 -5
- package/dist/system/Img/Profilepic/{index.jsx → index.js} +8 -9
- package/dist/system/Img/Userpic/{UserPic.test.jsx → UserPic.test.js} +6 -8
- package/dist/system/Img/Userpic/{index.jsx → index.js} +10 -13
- package/dist/system/Labels/ExperienceLabel/{ExperienceLabel.test.jsx → ExperienceLabel.test.js} +16 -6
- package/dist/system/Labels/ExperienceLabel/{index.jsx → index.js} +6 -5
- package/dist/system/Labels/InviteLabel/{InviteLabel.test.jsx → InviteLabel.test.js} +15 -5
- package/dist/system/Labels/InviteLabel/{index.jsx → index.js} +3 -4
- package/dist/system/Modals/Modal/{Modal.test.jsx → Modal.test.js} +2 -2
- package/dist/system/Modals/Modal/{index.jsx → index.js} +3 -4
- package/dist/system/Modals/ModalSidebar/{CreatorModalSidebarPortal.jsx → CreatorModalSidebarPortal.js} +1 -1
- package/dist/system/Modals/ModalSidebar/{ModalSidebar.test.jsx → ModalSidebar.test.js} +2 -2
- package/dist/system/Modals/ModalSidebar/{ModalSidebarPortal.jsx → ModalSidebarPortal.js} +4 -6
- package/dist/system/Modals/ModalSidebar/{index.jsx → index.js} +3 -4
- package/dist/system/Overlay/{Overlay.test.jsx → Overlay.test.js} +2 -3
- package/dist/system/Overlay/{index.jsx → index.js} +2 -3
- package/dist/system/{ShareIconResize.jsx → ShareIconResize.js} +5 -6
- package/dist/system/Tabs/TabNavLink/{TabNavLink.test.jsx → TabNavLink.test.js} +3 -3
- package/dist/system/Tabs/TabNavLink/{index.jsx → index.js} +1 -3
- package/dist/system/Tabs/TabsNav/{TabsNav.test.jsx → TabsNav.test.js} +4 -4
- package/dist/system/Tabs/TabsNav/{index.jsx → index.js} +2 -2
- package/dist/system/Tabs/TabsPanel/{TabsPanel.test.jsx → TabsPanel.test.js} +8 -12
- package/dist/system/Tabs/TabsPanel/{index.jsx → index.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/copyBtn/{index.jsx → index.js} +4 -7
- package/package.json +1 -1
- package/dist/components/base/Meta/index.jsx +0 -64
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.jsx +0 -18
- package/dist/components/profile/pageHead/index.jsx +0 -52
- package/dist/components/search/searchSuggestions/index.jsx +0 -124
- package/dist/components/shareDialog/index.jsx +0 -91
- package/dist/components/socialButtons/icons/discord.jsx +0 -8
- package/dist/components/socialButtons/icons/facebook.jsx +0 -9
- package/dist/components/socialButtons/icons/instagram.jsx +0 -10
- package/dist/components/socialButtons/icons/medium.jsx +0 -8
- package/dist/components/socialButtons/icons/telegram.jsx +0 -8
- package/dist/components/socialButtons/icons/twitter.jsx +0 -8
- package/dist/components/tabs/icons/bell.jsx +0 -10
- package/dist/components/tabs/icons/profile.jsx +0 -10
- package/dist/components/tabs/icons/secure.jsx +0 -9
- package/dist/layouts/pageTransitionLayout.jsx +0 -27
- package/dist/pages/index.jsx +0 -18
- package/dist/system/Cards/HideLink/index.jsx +0 -22
- /package/dist/components/headers/components/MobileToggle/{index.jsx → index.js} +0 -0
- /package/dist/components/inviteCodesPage/components/{index.jsx → index.js} +0 -0
- /package/dist/components/inviteCodesPage/wrappers/{index.jsx → index.js} +0 -0
- /package/dist/components/profile/jsonLd/{index.jsx → index.js} +0 -0
- /package/dist/components/registrationPage/{index.jsx → index.js} +0 -0
- /package/dist/components/rewards/rewardsButton/{index.jsx → index.js} +0 -0
- /package/dist/dto/common/ItemType/{index.jsx → index.js} +0 -0
- /package/dist/dto/common/Media/{index.jsx → index.js} +0 -0
- /package/dist/hooks/apollo/{index.jsx → index.js} +0 -0
- /package/dist/hooks/audio/useMultiAudio/{index.jsx → index.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCollectionsAndLikes.jsx → useFindCollectionsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCreationsAndLikes.jsx → useFindCreationsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCollectionInfoAndLikes.jsx → useGetCollectionInfoAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikes.jsx → useGetCreationsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikesByType.jsx → useGetCreationsAndLikesByType.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetMixedLikesFavoriteList.jsx → useGetMixedLikesFavoriteList.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetTableLikes.jsx → useGetTableLikes.js} +0 -0
- /package/dist/modules/notifications/{index.jsx → index.js} +0 -0
- /package/dist/modules/user/{store.jsx → store.js} +0 -0
- /package/dist/styles/animations/{index.jsx → index.js} +0 -0
- /package/dist/styles/{globalStyles.jsx → globalStyles.js} +0 -0
- /package/dist/styles/mixins/{boxShadow.jsx → boxShadow.js} +0 -0
- /package/dist/styles/mixins/{boxTransform.jsx → boxTransform.js} +0 -0
- /package/dist/styles/mixins/{z-indexes.jsx → z-indexes.js} +0 -0
- /package/dist/styles/typography/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/IconButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/IconWithButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/MainButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/SecondaryButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Flex/{index.jsx → index.js} +0 -0
- /package/dist/system/Labels/SkeletonLabel/{index.jsx → index.js} +0 -0
- /package/dist/system/PageLoader/{index.jsx → index.js} +0 -0
- /package/dist/system/Palete/{index.jsx → index.js} +0 -0
- /package/dist/system/Text/{index.jsx → index.js} +0 -0
- /package/dist/utils/extractItemIds/{index.jsx → index.js} +0 -0
- /package/dist/utils/imageProportionsSize/{index.jsx → index.js} +0 -0
- /package/dist/utils/ui/{index.jsx → index.js} +0 -0
|
@@ -98,13 +98,10 @@ var CopyButton = function (_a) {
|
|
|
98
98
|
}); };
|
|
99
99
|
var windowDimensions = (0, screen_1.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
100
100
|
if (!value)
|
|
101
|
-
return
|
|
102
|
-
return (
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
{!isCopied ? (<copy_icon_new_svg_1.default width={20} height={20} style={(0, scale_1.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 })}/>) : (<copied_svg_1.default width={20} height={20} style={(0, scale_1.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 })}/>)}
|
|
106
|
-
</SWrapperIcon>
|
|
107
|
-
</_system_1.Flex>);
|
|
101
|
+
return react_1.default.createElement(_system_1.H5, { color: colors_1.BlackColor }, "Unknown");
|
|
102
|
+
return (react_1.default.createElement(_system_1.Flex, { alignItems: "center", onClick: handleCopy, style: style },
|
|
103
|
+
children,
|
|
104
|
+
react_1.default.createElement(SWrapperIcon, null, !isCopied ? (react_1.default.createElement(copy_icon_new_svg_1.default, { width: 20, height: 20, style: (0, scale_1.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 }) })) : (react_1.default.createElement(copied_svg_1.default, { width: 20, height: 20, style: (0, scale_1.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 }) })))));
|
|
108
105
|
};
|
|
109
106
|
exports.CopyButton = CopyButton;
|
|
110
107
|
var templateObject_1;
|
package/package.json
CHANGED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var head_1 = __importDefault(require("next/head"));
|
|
7
|
-
var process_1 = __importDefault(require("process"));
|
|
8
|
-
var core_1 = require("@ludo.ninja/core");
|
|
9
|
-
// Component
|
|
10
|
-
var DEFAULT_SEO = {
|
|
11
|
-
title: 'Ludo | The Reputation-Driven Discovery Engine',
|
|
12
|
-
description: 'Ludo is super-cool. Share it with your friends',
|
|
13
|
-
openGraph: {
|
|
14
|
-
type: 'website',
|
|
15
|
-
locale: 'en_US',
|
|
16
|
-
url: "https://".concat(process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN),
|
|
17
|
-
title: 'Ludo - NFT server-search engine',
|
|
18
|
-
description: 'Ludo is super-cool. Share it with your friends',
|
|
19
|
-
image: "https://".concat(process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN, "/favicon.png"),
|
|
20
|
-
site_name: process_1.default.env.NEXT_PUBLIC_ENV_DOMAIN,
|
|
21
|
-
imageWidth: '512',
|
|
22
|
-
imageHeight: '512',
|
|
23
|
-
},
|
|
24
|
-
twitter: {
|
|
25
|
-
handle: '@ludo',
|
|
26
|
-
cardType: 'summary_large_image',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
var Meta = function () { return (<>
|
|
30
|
-
<head_1.default>
|
|
31
|
-
<title>{DEFAULT_SEO.title}</title>
|
|
32
|
-
|
|
33
|
-
<link rel="preconnect" href={(0, core_1.getMediaDomain)({ ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN })}/>
|
|
34
|
-
<link rel="preconnect" href={(0, core_1.getStaticDomain)({ ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN })}/>
|
|
35
|
-
<link rel="dns-prefetch" href={(0, core_1.getMediaDomain)({ ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN })}/>
|
|
36
|
-
<link rel="dns-prefetch" href={(0, core_1.getStaticDomain)({ ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN })}/>
|
|
37
|
-
<link rel="icon" type="image/svg+xml" href={"".concat((0, core_1.getStaticDomain)({
|
|
38
|
-
ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN,
|
|
39
|
-
}), "/favicon/favicon.svg")} sizes="any"/>
|
|
40
|
-
<link rel="icon" type="image/x-icon" href={"".concat((0, core_1.getStaticDomain)({
|
|
41
|
-
ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN,
|
|
42
|
-
}), "/favicon/fav64.ico")} sizes="any"/>
|
|
43
|
-
<link rel="apple-touch-icon" href={"".concat((0, core_1.getStaticDomain)({
|
|
44
|
-
ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN,
|
|
45
|
-
}), "/favicon/favicon128.png")}/>
|
|
46
|
-
<meta key="description" name="description" content={DEFAULT_SEO.description}/>
|
|
47
|
-
<meta key="twitter:card" name="twitter:card" content={DEFAULT_SEO.twitter.cardType}/>
|
|
48
|
-
<meta key="twitter:site" name="twitter:site" content={DEFAULT_SEO.twitter.handle}/>
|
|
49
|
-
<meta key="og:url" property="og:url" content={DEFAULT_SEO.openGraph.url}/>
|
|
50
|
-
<meta key="og:type" property="og:type" content={DEFAULT_SEO.openGraph.type}/>
|
|
51
|
-
<meta key="og:title" property="og:title" content={DEFAULT_SEO.openGraph.title}/>
|
|
52
|
-
<meta key="og:description" property="og:description" content={DEFAULT_SEO.openGraph.description}/>
|
|
53
|
-
<meta key="og:image" property="og:image" content={DEFAULT_SEO.openGraph.image}/>
|
|
54
|
-
<meta key="og:image:width" property="og:image:width" content={DEFAULT_SEO.openGraph.imageWidth}/>
|
|
55
|
-
<meta key="og:image:height" property="og:image:height" content={DEFAULT_SEO.openGraph.imageHeight}/>
|
|
56
|
-
<meta key="og:locale" property="og:locale" content={DEFAULT_SEO.openGraph.locale}/>
|
|
57
|
-
|
|
58
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
59
|
-
<meta charSet="utf-8"/>
|
|
60
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
|
|
61
|
-
</head_1.default>
|
|
62
|
-
</>); };
|
|
63
|
-
// Export
|
|
64
|
-
exports.default = Meta;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
8
|
-
// Component
|
|
9
|
-
var ResumeCodesLoader = function () {
|
|
10
|
-
return (<>
|
|
11
|
-
<react_loading_skeleton_1.default style={{ borderRadius: '8px', padding: '24px 32px' }} height="100px"/>
|
|
12
|
-
<react_loading_skeleton_1.default style={{ borderRadius: '8px', marginTop: '24px' }} height="30px"/>
|
|
13
|
-
<react_loading_skeleton_1.default style={{ borderRadius: '8px', marginTop: '12px' }} height="20px"/>
|
|
14
|
-
<react_loading_skeleton_1.default style={{ borderRadius: '8px', marginTop: '12px' }} height="20px"/>
|
|
15
|
-
</>);
|
|
16
|
-
};
|
|
17
|
-
// Export
|
|
18
|
-
exports.default = ResumeCodesLoader;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ProfilePageHead = void 0;
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var head_1 = __importDefault(require("next/head"));
|
|
9
|
-
// Private
|
|
10
|
-
var seo = function (title, about, url, image) {
|
|
11
|
-
return {
|
|
12
|
-
title: title,
|
|
13
|
-
about: about,
|
|
14
|
-
openGraph: {
|
|
15
|
-
type: 'website',
|
|
16
|
-
locale: 'en_US',
|
|
17
|
-
url: url,
|
|
18
|
-
title: title,
|
|
19
|
-
about: about,
|
|
20
|
-
image: image,
|
|
21
|
-
site_name: process.env.NEXT_PUBLIC_ENV_DOMAIN,
|
|
22
|
-
imageWidth: '512',
|
|
23
|
-
imageHeight: '512',
|
|
24
|
-
},
|
|
25
|
-
twitter: {
|
|
26
|
-
handle: '@ludo',
|
|
27
|
-
cardType: 'summary_large_image',
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
// Components
|
|
32
|
-
var ProfilePageHead = function (_a) {
|
|
33
|
-
var userUrl = _a.userUrl, profile = _a.profile;
|
|
34
|
-
var seoValues = seo(profile.getName() || '', profile.getAbout(), userUrl, ''
|
|
35
|
-
// profilePic
|
|
36
|
-
);
|
|
37
|
-
return (<head_1.default>
|
|
38
|
-
{seoValues.title && <title key="title">{seoValues.title}</title>}
|
|
39
|
-
{seoValues.about && (<meta key="description" name="description" content={seoValues.about}/>)}
|
|
40
|
-
{seoValues.twitter.cardType && (<meta key="twitter:card" name="twitter:card" content={seoValues.twitter.cardType}/>)}
|
|
41
|
-
{seoValues.twitter.handle && (<meta key="twitter:site" name="twitter:site" content={seoValues.twitter.handle}/>)}
|
|
42
|
-
{seoValues.openGraph.url && (<meta key="og:url" property="og:url" content={seoValues.openGraph.url}/>)}
|
|
43
|
-
{seoValues.openGraph.type && (<meta key="og:type" property="og:type" content={seoValues.openGraph.type}/>)}
|
|
44
|
-
{seoValues.openGraph.title && (<meta key="og:title" property="og:title" content={seoValues.openGraph.title}/>)}
|
|
45
|
-
{seoValues.openGraph.about && (<meta key="og:description" property="og:description" content={seoValues.openGraph.about}/>)}
|
|
46
|
-
{seoValues.openGraph.image && (<meta key="og:image" property="og:image" content={seoValues.openGraph.image}/>)}
|
|
47
|
-
{seoValues.openGraph.imageWidth && (<meta key="og:image:width" property="og:image:width" content={seoValues.openGraph.imageWidth}/>)}
|
|
48
|
-
{seoValues.openGraph.imageHeight && (<meta key="og:image:height" property="og:image:height" content={seoValues.openGraph.imageHeight}/>)}
|
|
49
|
-
{seoValues.openGraph.locale && (<meta key="og:locale" property="og:locale" content={seoValues.openGraph.locale}/>)}
|
|
50
|
-
</head_1.default>);
|
|
51
|
-
};
|
|
52
|
-
exports.ProfilePageHead = ProfilePageHead;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
7
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
8
|
-
if (ar || !(i in from)) {
|
|
9
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
10
|
-
ar[i] = from[i];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
14
|
-
};
|
|
15
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
var react_1 = __importDefault(require("react"));
|
|
20
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
21
|
-
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
22
|
-
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
23
|
-
var searchSuggestionsCaption_1 = __importDefault(require("@/components/search/searchSuggestions/searchSuggestionsCaption"));
|
|
24
|
-
var searchSuggestionsFooter_1 = __importDefault(require("@/components/search/searchSuggestions/searchSuggestionsFooter"));
|
|
25
|
-
var searchSuggestionsItem_1 = __importDefault(require("@/components/search/searchSuggestions/searchSuggestionsItem"));
|
|
26
|
-
var searchSuggestionsItemSkeleton_1 = require("@/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton");
|
|
27
|
-
var searchSuggestionsNotFound_1 = __importDefault(require("@/components/search/searchSuggestions/searchSuggestionsNotFound"));
|
|
28
|
-
var _3d_1 = require("@/utils/3d");
|
|
29
|
-
var env_1 = require("@/utils/env");
|
|
30
|
-
var Urls_1 = require("@/dto/common/Media/Urls");
|
|
31
|
-
// Styles
|
|
32
|
-
var StyledSearchSuggestions = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n z-index: 1;\n width: 100%;\n background-color: ", ";\n\n border-bottom-left-radius: 28px;\n border-bottom-right-radius: 28px;\n\n .content {\n position: relative;\n height: 100%;\n padding: 0 44px;\n display: flex;\n background-color: ", ";\n\n flex-direction: column;\n border-bottom-right-radius: 20px;\n border-bottom-left-radius: 20px;\n\n @media (max-width: 767px) {\n background-color: unset;\n padding: 16px 0;\n }\n }\n\n @media (min-width: 768px) {\n .scroller {\n max-height: calc(var(--app-height) - 40px - 24px - 10px - 24px - 44px);\n padding-left: 20px;\n padding-right: 20px;\n overflow-y: auto;\n overflow-x: hidden;\n margin-left: -20px;\n margin-right: -20px;\n width: calc(100% + 40px);\n }\n }\n\n ", " {\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n .content {\n padding: 0 ", ";\n border-bottom-right-radius: ", ";\n border-bottom-left-radius: ", ";\n }\n }\n"], ["\n position: relative;\n z-index: 1;\n width: 100%;\n background-color: ", ";\n\n border-bottom-left-radius: 28px;\n border-bottom-right-radius: 28px;\n\n .content {\n position: relative;\n height: 100%;\n padding: 0 44px;\n display: flex;\n background-color: ", ";\n\n flex-direction: column;\n border-bottom-right-radius: 20px;\n border-bottom-left-radius: 20px;\n\n @media (max-width: 767px) {\n background-color: unset;\n padding: 16px 0;\n }\n }\n\n @media (min-width: 768px) {\n .scroller {\n max-height: calc(var(--app-height) - 40px - 24px - 10px - 24px - 44px);\n padding-left: 20px;\n padding-right: 20px;\n overflow-y: auto;\n overflow-x: hidden;\n margin-left: -20px;\n margin-right: -20px;\n width: calc(100% + 40px);\n }\n }\n\n ", " {\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n .content {\n padding: 0 ", ";\n border-bottom-right-radius: ", ";\n border-bottom-left-radius: ", ";\n }\n }\n"])), function (_a) {
|
|
33
|
-
var theme = _a.theme;
|
|
34
|
-
return theme.colors.sidebarBg;
|
|
35
|
-
}, function (_a) {
|
|
36
|
-
var theme = _a.theme;
|
|
37
|
-
return theme.colors.thirdBg;
|
|
38
|
-
}, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(28), (0, _4k_1.adaptiveValueCalc)(28), (0, _4k_1.adaptiveValueCalc)(44), (0, _4k_1.adaptiveValueCalc)(20), (0, _4k_1.adaptiveValueCalc)(20));
|
|
39
|
-
// Components
|
|
40
|
-
var SearchSuggestions = function (_a) {
|
|
41
|
-
var searchTerm = _a.searchTerm, assets = _a.assets, profiles = _a.profiles, collections = _a.collections, isLoading = _a.isLoading;
|
|
42
|
-
var isNotFound = !(assets === null || assets === void 0 ? void 0 : assets.length) && !(profiles === null || profiles === void 0 ? void 0 : profiles.length) && !(collections === null || collections === void 0 ? void 0 : collections.length);
|
|
43
|
-
return (<StyledSearchSuggestions>
|
|
44
|
-
<div className={'content'}>
|
|
45
|
-
{isLoading && <searchSuggestionsItemSkeleton_1.SearchSuggestionsItemsSkeleton />}
|
|
46
|
-
{!isLoading &&
|
|
47
|
-
(isNotFound ? (<searchSuggestionsNotFound_1.default notFoundText={searchTerm}/>) : (<>
|
|
48
|
-
<div className="scroller">
|
|
49
|
-
{__spreadArray(__spreadArray(__spreadArray([], ((assets === null || assets === void 0 ? void 0 : assets.length)
|
|
50
|
-
? [
|
|
51
|
-
{
|
|
52
|
-
caption: 'NFTs',
|
|
53
|
-
children: assets.map(function (asset) {
|
|
54
|
-
// if (
|
|
55
|
-
// asset?.getName()?.toLowerCase() ===
|
|
56
|
-
// 'Concerto Para Piano e Pandemia May 5, 2021 at 3pm GMT +1'.toLowerCase()
|
|
57
|
-
// ) {
|
|
58
|
-
// console.log(
|
|
59
|
-
// 'asset?.getAssetMedias()',
|
|
60
|
-
// asset?.getAssetMedias()
|
|
61
|
-
// );
|
|
62
|
-
// console.log('asset', asset);
|
|
63
|
-
// }
|
|
64
|
-
var currentMedia = asset === null || asset === void 0 ? void 0 : asset.getAssetMedias()[0];
|
|
65
|
-
// console.log('currentMedia', currentMedia);
|
|
66
|
-
var miniatureUrl = '';
|
|
67
|
-
var mimeType = currentMedia === null || currentMedia === void 0 ? void 0 : currentMedia.mimeType;
|
|
68
|
-
if (mimeType === null || mimeType === void 0 ? void 0 : mimeType.includes('video')) {
|
|
69
|
-
miniatureUrl = (0, Urls_1.isExternalMediaVideo)((currentMedia === null || currentMedia === void 0 ? void 0 : currentMedia.previewUrl) || null);
|
|
70
|
-
}
|
|
71
|
-
if (mimeType === null || mimeType === void 0 ? void 0 : mimeType.includes('audio')) {
|
|
72
|
-
miniatureUrl = (0, Urls_1.isExternalMediaAudio)((currentMedia === null || currentMedia === void 0 ? void 0 : currentMedia.previewUrl) || null);
|
|
73
|
-
}
|
|
74
|
-
if ((0, _3d_1.isObject3D)({
|
|
75
|
-
media: currentMedia === null || currentMedia === void 0 ? void 0 : currentMedia.url,
|
|
76
|
-
mimeType: currentMedia === null || currentMedia === void 0 ? void 0 : currentMedia.mimeType,
|
|
77
|
-
})) {
|
|
78
|
-
// todo: add for 3d preview
|
|
79
|
-
// miniatureUrl = isExternalMediaAudio(
|
|
80
|
-
// currentMedia?.previewUrl || null
|
|
81
|
-
// );
|
|
82
|
-
miniatureUrl = '/noContent/noContentObject.svg';
|
|
83
|
-
}
|
|
84
|
-
if (!miniatureUrl) {
|
|
85
|
-
// image and screenshots
|
|
86
|
-
miniatureUrl = (0, Urls_1.getAssetImage)(currentMedia === null || currentMedia === void 0 ? void 0 : currentMedia.url, '/noContent/noContent.svg', Urls_1.mediaSizes.small);
|
|
87
|
-
}
|
|
88
|
-
return (<searchSuggestionsItem_1.default key={"".concat(asset === null || asset === void 0 ? void 0 : asset.getAssetId(), ".").concat(Math.random())} name={asset === null || asset === void 0 ? void 0 : asset.getName()} link={asset.getAssetLink()} imgUrl={miniatureUrl} searchTerm={searchTerm}/>);
|
|
89
|
-
}),
|
|
90
|
-
},
|
|
91
|
-
]
|
|
92
|
-
: []), true), ((collections === null || collections === void 0 ? void 0 : collections.length)
|
|
93
|
-
? [
|
|
94
|
-
{
|
|
95
|
-
caption: 'Collections',
|
|
96
|
-
children: collections.map(function (collection) { return (<searchSuggestionsItem_1.default key={"".concat(collection === null || collection === void 0 ? void 0 : collection.collectionId, ".").concat(Math.random())} name={collection === null || collection === void 0 ? void 0 : collection.collectionTitle} link={"/collection/".concat(collection === null || collection === void 0 ? void 0 : collection.collectionId)} imgUrl={'/noContent/noContent.svg'} searchTerm={searchTerm}/>); }),
|
|
97
|
-
},
|
|
98
|
-
]
|
|
99
|
-
: []), true), ((profiles === null || profiles === void 0 ? void 0 : profiles.length)
|
|
100
|
-
? [
|
|
101
|
-
{
|
|
102
|
-
caption: 'Profiles',
|
|
103
|
-
children: profiles.map(function (profile) { return (<searchSuggestionsItem_1.default key={profile.getUserId()} borderRadius name={profile.getName() || ''} link={"/profile/".concat(profile.getUserId(), "/nfts")} imgUrl={profile.getUserPic({
|
|
104
|
-
mediaDomain: (0, env_1.getMediaENVDomain)(),
|
|
105
|
-
})} additionalHTML={Boolean(profile.getFollowings()) && (<span className={'additional'}>
|
|
106
|
-
{profile.getFollowings()} followers
|
|
107
|
-
</span>)} searchTerm={searchTerm}/>); }),
|
|
108
|
-
},
|
|
109
|
-
]
|
|
110
|
-
: []), true).map(function (_a) {
|
|
111
|
-
var caption = _a.caption, children = _a.children;
|
|
112
|
-
return (<searchSuggestionsCaption_1.default caption={caption} key={caption}>
|
|
113
|
-
{children}
|
|
114
|
-
</searchSuggestionsCaption_1.default>);
|
|
115
|
-
})}
|
|
116
|
-
</div>
|
|
117
|
-
<searchSuggestionsFooter_1.default />
|
|
118
|
-
</>))}
|
|
119
|
-
</div>
|
|
120
|
-
</StyledSearchSuggestions>);
|
|
121
|
-
};
|
|
122
|
-
// Export
|
|
123
|
-
exports.default = SearchSuggestions;
|
|
124
|
-
var templateObject_1;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
var react_1 = __importDefault(require("react"));
|
|
11
|
-
var react_share_1 = require("react-share");
|
|
12
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
-
var ui_1 = require("@ludo.ninja/components/dist/store/ui");
|
|
14
|
-
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
15
|
-
var styles_2 = require("@ludo.ninja/components/dist/styles");
|
|
16
|
-
var system_1 = require("@ludo.ninja/components/dist/system");
|
|
17
|
-
var type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
18
|
-
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
19
|
-
var utils_1 = require("@ludo.ninja/utils");
|
|
20
|
-
// import CopyIcon from '@/public/share/copy-link-btn.svg';
|
|
21
|
-
// import EmailIcon from '@/public/share/email-btn.svg';
|
|
22
|
-
// import FacebookIcon from '@/public/share/facebook-btn.svg';
|
|
23
|
-
// import InstagramIcon from '@/public/share/insta-btn.svg';
|
|
24
|
-
// import RedditIcon from '@/public/share/reddit-btn.svg';
|
|
25
|
-
// import TelegramIcon from '@/public/share/telegram-btn.svg';
|
|
26
|
-
// import TwitterIcon from '@/public/share/twitter-btn.svg';
|
|
27
|
-
// import WatsUpIcon from '@/public/share/whatsapp-btn.svg';
|
|
28
|
-
// Styles
|
|
29
|
-
var STitle = (0, styled_components_1.default)(system_1.H1)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: 24px;\n color: ", ";\n ", " {\n margin-bottom: ", ";\n }\n"], ["\n margin-bottom: 24px;\n color: ", ";\n ", " {\n margin-bottom: ", ";\n }\n"])), styles_2.BlackColor, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(24));
|
|
30
|
-
var StyledShare = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n .shareButtons {\n display: grid;\n grid-template-columns: 1fr 1fr 1fr 1fr;\n row-gap: 24px;\n column-gap: 16px;\n margin: 0 43px 33px 43px;\n justify-content: center;\n\n ", " {\n grid-template-columns: 1fr 1fr;\n justify-items: center;\n align-items: center;\n }\n }\n\n .shareBtn {\n width: 108px;\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-direction: column;\n cursor: pointer;\n border: none;\n background-color: transparent;\n\n img {\n width: 40px;\n height: 40px;\n }\n }\n\n ", " {\n .shareButtons {\n row-gap: ", ";\n column-gap: ", ";\n margin: 0 ", " ", "\n ", ";\n }\n\n .shareBtn {\n width: ", ";\n height: ", ";\n\n img {\n width: ", ";\n height: ", ";\n }\n }\n }\n"], ["\n .shareButtons {\n display: grid;\n grid-template-columns: 1fr 1fr 1fr 1fr;\n row-gap: 24px;\n column-gap: 16px;\n margin: 0 43px 33px 43px;\n justify-content: center;\n\n ", " {\n grid-template-columns: 1fr 1fr;\n justify-items: center;\n align-items: center;\n }\n }\n\n .shareBtn {\n width: 108px;\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-direction: column;\n cursor: pointer;\n border: none;\n background-color: transparent;\n\n img {\n width: 40px;\n height: 40px;\n }\n }\n\n ", " {\n .shareButtons {\n row-gap: ", ";\n column-gap: ", ";\n margin: 0 ", " ", "\n ", ";\n }\n\n .shareBtn {\n width: ", ";\n height: ", ";\n\n img {\n width: ", ";\n height: ", ";\n }\n }\n }\n"])), styles_1.mediaQuery.mobile, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(24), (0, _4k_1.adaptiveValueCalc)(16), (0, _4k_1.adaptiveValueCalc)(43), (0, _4k_1.adaptiveValueCalc)(33), (0, _4k_1.adaptiveValueCalc)(43), (0, _4k_1.adaptiveValueCalc)(108), (0, _4k_1.adaptiveValueCalc)(64), (0, _4k_1.adaptiveValueCalc)(40), (0, _4k_1.adaptiveValueCalc)(40));
|
|
31
|
-
var ShareDialog = function (_a) {
|
|
32
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
33
|
-
var link = _a.link, onHide = _a.onHide, params = _a.params;
|
|
34
|
-
var url = new URL(link || '');
|
|
35
|
-
url.search = '';
|
|
36
|
-
var urlWithoutGetParameters = url.toString();
|
|
37
|
-
var openAlert = (0, ui_1.useUiStore)(function (state) { return state.openAlert; });
|
|
38
|
-
return (<StyledShare>
|
|
39
|
-
<system_1.Flex alignItems={'center'} justifyContent={'center'}>
|
|
40
|
-
<STitle>{'Share to...'}</STitle>
|
|
41
|
-
</system_1.Flex>
|
|
42
|
-
<div className="shareButtons">
|
|
43
|
-
<button onClick={function () {
|
|
44
|
-
onHide();
|
|
45
|
-
(0, utils_1.copyToClipboard)(urlWithoutGetParameters).then(function () {
|
|
46
|
-
openAlert({
|
|
47
|
-
type: type_1.alertVariants.copied,
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
}} className={'shareBtn'}>
|
|
51
|
-
<img src="/share/copy-link-btn.svg" alt="share" height={40} width={40}/>
|
|
52
|
-
<system_1.H5 color={styles_2.TextGrayColor}>Copy Link</system_1.H5>
|
|
53
|
-
</button>
|
|
54
|
-
<react_share_1.EmailShareButton url={urlWithoutGetParameters} body={(_b = params === null || params === void 0 ? void 0 : params.email) === null || _b === void 0 ? void 0 : _b.body} separator={(_c = params === null || params === void 0 ? void 0 : params.email) === null || _c === void 0 ? void 0 : _c.separator} subject={(_d = params === null || params === void 0 ? void 0 : params.email) === null || _d === void 0 ? void 0 : _d.subject} className="shareBtn" onClick={onHide}>
|
|
55
|
-
<img src="/share/email-btn.svg" alt="email" height={40} width={40}/>
|
|
56
|
-
<system_1.H5 color={styles_2.TextGrayColor}>Email</system_1.H5>
|
|
57
|
-
</react_share_1.EmailShareButton>
|
|
58
|
-
<react_share_1.TelegramShareButton url={urlWithoutGetParameters} title={(_e = params === null || params === void 0 ? void 0 : params.telegram) === null || _e === void 0 ? void 0 : _e.title} className="shareBtn" onClick={onHide}>
|
|
59
|
-
<img src="/share/telegram-btn.svg" alt="telegram" height={40} width={40}/>
|
|
60
|
-
<system_1.H5 color={styles_2.TextGrayColor}>Telegram</system_1.H5>
|
|
61
|
-
</react_share_1.TelegramShareButton>
|
|
62
|
-
<react_share_1.WhatsappShareButton url={urlWithoutGetParameters} title={(_f = params === null || params === void 0 ? void 0 : params.whatsapp) === null || _f === void 0 ? void 0 : _f.title} separator={(_g = params === null || params === void 0 ? void 0 : params.whatsapp) === null || _g === void 0 ? void 0 : _g.separator} className="shareBtn" onClick={onHide}>
|
|
63
|
-
<img src="/share/whatsapp-btn.svg" alt="whatsapp" height={40} width={40}/>
|
|
64
|
-
<system_1.H5 color={styles_2.TextGrayColor}>WhatsApp</system_1.H5>
|
|
65
|
-
</react_share_1.WhatsappShareButton>
|
|
66
|
-
<react_share_1.TwitterShareButton url={urlWithoutGetParameters} title={(_h = params === null || params === void 0 ? void 0 : params.twitter) === null || _h === void 0 ? void 0 : _h.title} via={(_j = params === null || params === void 0 ? void 0 : params.twitter) === null || _j === void 0 ? void 0 : _j.via} related={(_k = params === null || params === void 0 ? void 0 : params.twitter) === null || _k === void 0 ? void 0 : _k.related} hashtags={(_l = params === null || params === void 0 ? void 0 : params.twitter) === null || _l === void 0 ? void 0 : _l.hashtags} className="shareBtn" onClick={onHide}>
|
|
67
|
-
<img src="/share/twitter-btn.svg" alt="twitter" width={40} height={40}/>
|
|
68
|
-
<system_1.H5 color={styles_2.TextGrayColor}>Twitter</system_1.H5>
|
|
69
|
-
</react_share_1.TwitterShareButton>
|
|
70
|
-
{/*<InstapaperShareButton*/}
|
|
71
|
-
{/* url={urlWithoutGetParameters}*/}
|
|
72
|
-
{/* className="shareBtn"*/}
|
|
73
|
-
{/* onClick={onHide}*/}
|
|
74
|
-
{/*>*/}
|
|
75
|
-
{/* <InstagramIcon />*/}
|
|
76
|
-
{/* <H5 color={TextGrayColor}>Instagram</H5>*/}
|
|
77
|
-
{/*</InstapaperShareButton>*/}
|
|
78
|
-
<react_share_1.RedditShareButton url={urlWithoutGetParameters} title={(_m = params === null || params === void 0 ? void 0 : params.reddit) === null || _m === void 0 ? void 0 : _m.title} className="shareBtn" onClick={onHide}>
|
|
79
|
-
<img src="/share/reddit-btn.svg" alt="reddit" width={40} height={40}/>
|
|
80
|
-
<system_1.H5 color={styles_2.TextGrayColor}>Reddit</system_1.H5>
|
|
81
|
-
</react_share_1.RedditShareButton>
|
|
82
|
-
<react_share_1.FacebookShareButton url={urlWithoutGetParameters} quote={((_o = params === null || params === void 0 ? void 0 : params.facebook) === null || _o === void 0 ? void 0 : _o.quote) || 'My cool NFT'} hashtag={((_p = params === null || params === void 0 ? void 0 : params.facebook) === null || _p === void 0 ? void 0 : _p.hashtag) || '#ludo'} className="shareBtn" onClick={onHide}>
|
|
83
|
-
<img src="/share/facebook-btn.svg" alt="facebook" width={40} height={40}/>
|
|
84
|
-
<system_1.H5 color={styles_2.TextGrayColor}>Facebook</system_1.H5>
|
|
85
|
-
</react_share_1.FacebookShareButton>
|
|
86
|
-
</div>
|
|
87
|
-
</StyledShare>);
|
|
88
|
-
};
|
|
89
|
-
// Export
|
|
90
|
-
exports.default = ShareDialog;
|
|
91
|
-
var templateObject_1, templateObject_2;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var DiscordIcon = function () {
|
|
4
|
-
return (<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M19.2727 4.875C19.2727 4.875 17.1886 3.19312 14.7273 3L14 4.07317C13.3944 3.98624 12.7334 3.9375 12 3.9375C11.2666 3.9375 10.6056 3.98624 10 4.07317L9.27273 3C6.69045 3.25172 4.72727 4.875 4.72727 4.875C4.72727 4.875 2.39955 8.35547 2 15.1875C4.34636 17.978 7.90909 18 7.90909 18L8.65409 16.9758C7.38955 16.5225 5.96136 15.713 4.72727 14.25C6.19909 15.3984 8.42045 16.5938 12 16.5938C15.5795 16.5938 17.8009 15.3984 19.2727 14.25C18.0386 15.713 16.6105 16.5225 15.3459 16.9758L16.0909 18C16.0909 18 19.6536 17.978 22 15.1875C21.6005 8.35547 19.2727 4.875 19.2727 4.875ZM9.04545 13.3125C8.16682 13.3125 7.45455 12.473 7.45455 11.4375C7.45455 10.402 8.16682 9.5625 9.04545 9.5625C9.92409 9.5625 10.6364 10.402 10.6364 11.4375C10.6364 12.473 9.92409 13.3125 9.04545 13.3125ZM14.9545 13.3125C14.0759 13.3125 13.3636 12.473 13.3636 11.4375C13.3636 10.402 14.0759 9.5625 14.9545 9.5625C15.8332 9.5625 16.5455 10.402 16.5455 11.4375C16.5455 12.473 15.8332 13.3125 14.9545 13.3125Z" fill="#C1C8DE"/>
|
|
6
|
-
</svg>);
|
|
7
|
-
};
|
|
8
|
-
exports.default = DiscordIcon;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var FacebookIcon = function () {
|
|
4
|
-
return (<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<circle cx="12" cy="12" r="10" fill="#C1C8DE"/>
|
|
6
|
-
<path d="M13.1043 14.9097H15.5858L15.9755 12.3735H13.1043V10.9871C13.1043 9.93367 13.4466 8.99933 14.4261 8.99933H16V6.78625C15.7234 6.74863 15.1385 6.66663 14.0334 6.66663C11.7255 6.66663 10.3726 7.89279 10.3726 10.6866V12.3739H8V14.9102H10.3721V22C10.9077 22 11.318 22 11.8066 22C12.2481 22 12.7055 22 13.1043 22V14.9097Z" fill="white"/>
|
|
7
|
-
</svg>);
|
|
8
|
-
};
|
|
9
|
-
exports.default = FacebookIcon;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var InstagramIcon = function () {
|
|
4
|
-
return (<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M16.6154 22H7.38462C4.41615 22 2 19.5846 2 16.6154V7.38462C2 4.41538 4.41615 2 7.38462 2H16.6154C19.5838 2 22 4.41538 22 7.38462V16.6154C22 19.5846 19.5838 22 16.6154 22Z" fill="#C1C8DE"/>
|
|
6
|
-
<path d="M17.909 7.45457C18.6622 7.45457 19.2727 6.84405 19.2727 6.09093C19.2727 5.33782 18.6622 4.72729 17.909 4.72729C17.1559 4.72729 16.5454 5.33782 16.5454 6.09093C16.5454 6.84405 17.1559 7.45457 17.909 7.45457Z" fill="white"/>
|
|
7
|
-
<circle cx="12" cy="12" r="4.45455" stroke="white" strokeWidth="2"/>
|
|
8
|
-
</svg>);
|
|
9
|
-
};
|
|
10
|
-
exports.default = InstagramIcon;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var MediumIcon = function () {
|
|
4
|
-
return (<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M20.786 5.87617L22 4.34783V4H17.3347L12.4807 15.2577L7.398 4H2.66667V4.34783L3.90533 6.08696C3.96667 6.16278 4 6.25809 4 6.35687V16.8696C4 17.0233 3.94867 17.1729 3.85533 17.2925L2 19.6842V20H7.33333V19.6842L5.47667 17.2786C5.384 17.159 5.33333 17.0108 5.33333 16.8577V7.73913L10.8693 20H11.8987L17.3333 7.39409V17.7391C17.3333 17.8504 17.2907 17.9576 17.214 18.0369L15.3333 19.6842V20H22V19.6842L20.786 18.0369C20.7093 17.9576 20.6667 17.8504 20.6667 17.7391V6.17391C20.6667 6.06261 20.7093 5.95548 20.786 5.87617Z" fill="#C1C8DE"/>
|
|
6
|
-
</svg>);
|
|
7
|
-
};
|
|
8
|
-
exports.default = MediumIcon;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var TelegramIcon = function () {
|
|
4
|
-
return (<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M18.8367 19.7717L21.9583 3.83334C21.9583 3.83334 22 3.625 22 3.41667C22 3.10417 21.7225 3 21.4792 3C21.0833 2.99917 20.5408 3.195 20.5408 3.195L2.7775 10.2517C2.7775 10.2517 2 10.5 2 11.0208C2 11.6458 2.75583 11.8642 2.75583 11.8642C2.75583 11.8642 4.89207 12.8768 6.33864 12.817C6.83592 12.7965 7.25 12.8 7.6 12.6348C7.95 12.4696 16.4039 7.36106 16.7 7.2C17.05 7.00962 17.2633 7.06332 17.4 7.2C17.5367 7.33668 17.6598 7.6376 17.4 7.9C17.1824 8.11972 11.1886 13.85 10.7943 14.2C10.4 14.55 11.1 15.25 11.1 15.25L17.0717 20.2717C17.0717 20.2717 17.3192 20.5 17.7992 20.5C18.7025 20.5 18.8367 19.7717 18.8367 19.7717Z" fill="#C1C8DE"/>
|
|
6
|
-
</svg>);
|
|
7
|
-
};
|
|
8
|
-
exports.default = TelegramIcon;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var TwitterIcon = function () {
|
|
4
|
-
return (<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M11.3485 8.22848C11.3485 5.89642 13.2928 4 15.6838 4C16.8254 4 17.8452 4.47525 18.6199 5.18203C19.4179 5.01295 20.1738 4.73572 20.8562 4.3412C20.9983 4.25743 21.1795 4.26961 21.3091 4.36862C21.4387 4.46915 21.4934 4.63823 21.4434 4.79208C21.2966 5.24143 21.053 5.64052 20.7688 6.01066C20.9843 5.93907 21.2248 5.92993 21.4309 5.84006C21.5934 5.76542 21.7886 5.80655 21.9041 5.94059C22.0213 6.07464 22.0322 6.26809 21.9307 6.4128C21.4184 7.16222 20.7641 7.8035 20.0316 8.35034C20.0348 8.46001 20.0441 8.56816 20.0441 8.67936C20.0441 11.3145 19.0212 14.1356 17.0581 16.3077C15.0951 18.4798 12.1684 20 8.43748 20C6.13552 20 3.99441 19.3374 2.19063 18.2087C2.02977 18.1127 1.95949 17.9193 2.02352 17.7456C2.08599 17.572 2.26559 17.4653 2.453 17.4897C2.74347 17.5232 3.03551 17.5385 3.34005 17.5385C4.74715 17.5385 6.78261 17.0526 7.65217 15.7895C2.91134 12.971 1.56522 9.89474 3.39002 4.90175C3.45562 4.78903 3.57431 4.71439 3.70705 4.70526C3.84136 4.69612 3.96942 4.75095 4.05219 4.85301C5.82786 6.97791 8.44217 8.3671 11.3985 8.6428C11.3844 8.50571 11.3485 8.36862 11.3485 8.22848Z" fill="#C1C8DE"/>
|
|
6
|
-
</svg>);
|
|
7
|
-
};
|
|
8
|
-
exports.default = TwitterIcon;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var BellIcon = function (props) {
|
|
4
|
-
return (<svg className={props.customClassName} width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M12 3C19 3 19 10 19 10V15H5V10C5 10 5 3 12 3Z" fill="#C1C8DE"/>
|
|
6
|
-
<rect x="3" y="15" width="18" height="2" rx="0.3" fill="#C1C8DE"/>
|
|
7
|
-
<rect x="9" y="19" width="6" height="2" rx="0.3" fill="#C1C8DE"/>
|
|
8
|
-
</svg>);
|
|
9
|
-
};
|
|
10
|
-
exports.default = BellIcon;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var ProfileIcon = function (props) {
|
|
4
|
-
return (<svg className={props.customClassName} width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" fill="#C1C8DE"/>
|
|
6
|
-
<path d="M11.9999 18.5C7.99976 18.5 6.11462 15.4342 6.11462 15.4342C7.69253 13.9175 9.74983 13 12 13C14.2502 13 16.3075 13.9175 17.8854 15.4342C17.8854 15.4342 15.9998 18.5 11.9999 18.5Z" fill="#F6F7FD"/>
|
|
7
|
-
<path d="M15 9C15 10.6569 13.6569 12 12 12C10.3431 12 9 10.6569 9 9C9 7.34315 10.3431 6 12 6C13.6569 6 15 7.34315 15 9Z" fill="#F6F7FD"/>
|
|
8
|
-
</svg>);
|
|
9
|
-
};
|
|
10
|
-
exports.default = ProfileIcon;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var SecureIcon = function (props) {
|
|
4
|
-
return (<svg className={props.customClassName} width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
<path d="M4.00136 5.23027C4.0001 5.09261 4.09369 4.97658 4.22724 4.94319L11.9272 3.01819C11.975 3.00625 12.025 3.00625 12.0728 3.01819L19.7728 4.94319C19.9063 4.97658 19.9999 5.09261 19.9986 5.23027C19.9845 6.77686 19.8241 15.6319 18 17C16.2359 18.3231 12.9158 20.4242 12.1571 20.9014C12.06 20.9625 11.94 20.9625 11.8429 20.9014C11.0842 20.4242 7.76405 18.3231 6 17C4.1759 15.6319 4.01547 6.77686 4.00136 5.23027Z" fill="#C1C8DE"/>
|
|
6
|
-
<path d="M9 12.0717L11.1744 14.2461L13.2103 12.2102L15.2461 10.1744" stroke="white" strokeWidth="1.7" strokeLinecap="square"/>
|
|
7
|
-
</svg>);
|
|
8
|
-
};
|
|
9
|
-
exports.default = SecureIcon;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var router_1 = require("next/router");
|
|
4
|
-
var framer_motion_1 = require("framer-motion");
|
|
5
|
-
var PageTransitionLayout = function (_a) {
|
|
6
|
-
var children = _a.children;
|
|
7
|
-
var router = (0, router_1.useRouter)();
|
|
8
|
-
return (<framer_motion_1.AnimatePresence mode={'wait'}>
|
|
9
|
-
<framer_motion_1.motion.div key={router.route} initial="initialState" animate="animateState" exit="exitState" transition={{
|
|
10
|
-
type: 'tween',
|
|
11
|
-
duration: 0.5,
|
|
12
|
-
}} variants={{
|
|
13
|
-
initialState: {
|
|
14
|
-
opacity: 0,
|
|
15
|
-
},
|
|
16
|
-
animateState: {
|
|
17
|
-
opacity: 1,
|
|
18
|
-
},
|
|
19
|
-
exitState: {
|
|
20
|
-
opacity: 0,
|
|
21
|
-
},
|
|
22
|
-
}}>
|
|
23
|
-
{children}
|
|
24
|
-
</framer_motion_1.motion.div>
|
|
25
|
-
</framer_motion_1.AnimatePresence>);
|
|
26
|
-
};
|
|
27
|
-
exports.default = PageTransitionLayout;
|
package/dist/pages/index.jsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var head_1 = __importDefault(require("next/head"));
|
|
7
|
-
function Home() {
|
|
8
|
-
return (<>
|
|
9
|
-
<head_1.default>
|
|
10
|
-
<title>Create Next App</title>
|
|
11
|
-
<meta name="description" content="Generated by create next app"/>
|
|
12
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
13
|
-
<link rel="icon" href="/favicon.ico"/>
|
|
14
|
-
</head_1.default>
|
|
15
|
-
<div>Hello</div>
|
|
16
|
-
</>);
|
|
17
|
-
}
|
|
18
|
-
exports.default = Home;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var link_1 = __importDefault(require("next/link"));
|
|
8
|
-
var env_1 = require("@/utils/env");
|
|
9
|
-
var HideLink = function (_a) {
|
|
10
|
-
var children = _a.children, className = _a.className, href = _a.href, isProdENV = _a.isProdENV, onClick = _a.onClick;
|
|
11
|
-
// Todo cardLink
|
|
12
|
-
var isHide = (0, env_1.isProd)({ ENV: isProdENV });
|
|
13
|
-
var Component = isHide ? react_1.default.Fragment : link_1.default;
|
|
14
|
-
return (<Component {...(!isHide && { href: href })} {...(isHide && { className: className })}>
|
|
15
|
-
{isHide ? (<span className={className} onClick={onClick}>
|
|
16
|
-
{children}
|
|
17
|
-
</span>) : (<a className={className} onClick={onClick}>
|
|
18
|
-
{children}
|
|
19
|
-
</a>)}
|
|
20
|
-
</Component>);
|
|
21
|
-
};
|
|
22
|
-
exports.default = HideLink;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/hooks/likes/dynamic/{useFindCollectionsAndLikes.jsx → useFindCollectionsAndLikes.js}
RENAMED
|
File without changes
|
/package/dist/hooks/likes/dynamic/{useFindCreationsAndLikes.jsx → useFindCreationsAndLikes.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/hooks/likes/dynamic/{useGetCreationsAndLikes.jsx → useGetCreationsAndLikes.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|