Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beta update #10263

Merged
merged 129 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
a399f68
💅 customize new cookie banner
roiLeo Feb 14, 2024
a1885c7
🔧 consent cookies
roiLeo Feb 14, 2024
059d824
🔧 cookie config
roiLeo Feb 14, 2024
0440006
🔧 sonarcloud
roiLeo Feb 14, 2024
10652df
🔧 responsive cookie banner & test
roiLeo Feb 14, 2024
f4fae2d
🔧 playwright e2e
roiLeo Feb 14, 2024
5bb79ea
🔧 text & grantconsent default
roiLeo Feb 15, 2024
8555353
🔧 resolve conflicts
roiLeo Apr 4, 2024
b54541b
⬆️ dependencies & lock file
roiLeo Apr 4, 2024
e467398
refactor prepareMetadatas
daiagi Apr 9, 2024
bcdf89f
refactor useCollectionEntity
daiagi Apr 9, 2024
c0e8dd9
unite allocate collection fns
daiagi Apr 9, 2024
df7441c
function def overload
daiagi Apr 9, 2024
53dde90
Merge branch 'main' into clean-codeclimate-after-`drops-refactor`-merge
daiagi Apr 9, 2024
abaa897
#10018 btn changes
prachi00 Apr 12, 2024
f75fbb8
fix(SuccessfulListingCartBody.vue): sucess listing cart modal default…
hassnian Apr 13, 2024
9d3bd37
fix(drops listing modal): preview should be images and not full genart
hassnian Apr 16, 2024
f2dffc7
Merge branch 'main' into issue-9921
hassnian Apr 16, 2024
e0508e6
Merge branch 'main' into feat-btn-changes
prachi00 Apr 23, 2024
9214b95
btn changes
prachi00 Apr 23, 2024
f24d01d
Merge branch 'main' into issue-9921
hassnian Apr 23, 2024
72d741a
Merge branch 'main' into issue-9921
vikiival Apr 23, 2024
5bdbd77
Merge branch 'main' into issue-9921
prury Apr 23, 2024
cc310cd
Merge branch 'main' into feat-btn-changes
prury Apr 23, 2024
8a0d9e6
🔧 resolve conflicts
roiLeo Apr 23, 2024
058a606
Merge branch 'main' into feat-btn-changes
prachi00 Apr 24, 2024
2947150
Merge branch 'main' into issue-9921
hassnian Apr 27, 2024
6d8d5fe
fix(useGenerativeDropMint.ts): use image instate of animation_url
hassnian Apr 27, 2024
88ff6e9
Merge branch 'main' into feat-btn-changes
hassnian Apr 29, 2024
bef441a
Merge branch 'main' of https://github.com/kodadot/nft-gallery into cl…
daiagi Apr 29, 2024
1cabdda
fix: New Profile creation/editing better field validation/error handling
Jarsen136 Apr 30, 2024
ee3c8b0
chore: fix typos
xiaoxianBoy Apr 30, 2024
434b418
Merge branch 'main' into issue-10164
daiagi Apr 30, 2024
25bbb90
rollo out profileV3
daiagi Apr 30, 2024
60ba8ce
Merge branch 'issue-10164' of https://github.com/jarsen136/nft-galler…
daiagi Apr 30, 2024
e139aa4
data-test ids
Apr 30, 2024
2c7c58d
profile test adaptation
Apr 30, 2024
ebdee37
scrolldownfixture
May 1, 2024
5f39743
waitforurl
May 1, 2024
bd4700a
test refactor
May 1, 2024
64f01f6
chore(deps-dev): bump ejs from 3.1.9 to 3.1.10
dependabot[bot] May 1, 2024
4b1771f
share URL without query params
daiagi May 1, 2024
f78623d
Merge branch 'main' of https://github.com/kodadot/nft-gallery into ro…
daiagi May 1, 2024
36cab76
silly bug fix
daiagi May 1, 2024
2d53609
Merge branch 'main' of https://github.com/kodadot/nft-gallery into ro…
daiagi May 2, 2024
fcfa7d5
Merge branch 'main' into issue-10164
daiagi May 2, 2024
ddb3999
Merge pull request #10180 from kodadot/dependabot/npm_and_yarn/ejs-3.…
preschian May 2, 2024
5261de6
Merge branch 'main' into issue-10164
Jarsen136 May 2, 2024
8e50b61
Merge branch 'feature/CustomizeCookieBanner' of github.com:roiLeo/nft…
preschian May 2, 2024
c402d48
chore: update optimizeDeps for development
preschian May 2, 2024
dddb477
Merge branch 'main' of https://github.com/kodadot/nft-gallery into ro…
daiagi May 2, 2024
17aa2a3
Merge pull request #10169 from Jarsen136/issue-10164
prury May 2, 2024
92ee67b
Merge branch 'main' into feature/CustomizeCookieBanner
roiLeo May 2, 2024
531ff57
query types
daiagi May 2, 2024
d37233a
Merge branch 'main' of https://github.com/kodadot/nft-gallery into ro…
daiagi May 2, 2024
391d7fd
fix: Rounding USD to two decimals
Jarsen136 May 2, 2024
aaf55ce
Merge pull request #10176 from kodadot/rollout-ProfileV3
prury May 2, 2024
70f8273
Merge branch 'main' into feat-btn-changes
prachi00 May 2, 2024
eaf1ed2
add farcaster auth client package
daiagi May 2, 2024
84294de
basic farcaster service
daiagi May 2, 2024
7b38725
undisable farcaster button
daiagi May 2, 2024
9ae488f
it works
daiagi May 2, 2024
caad6b6
Merge branch 'main' into clean-codeclimate-after-`drops-refactor`-merge
daiagi May 2, 2024
8257085
Merge branch 'main' of https://github.com/kodadot/nft-gallery into fa…
daiagi May 2, 2024
3d1f5a4
fix: Followers UX improvements
Jarsen136 May 2, 2024
b466f16
Merge pull request #10192 from Jarsen136/issue-10187
Jarsen136 May 3, 2024
1642887
Merge branch 'main' into clean-codeclimate-after-`drops-refactor`-merge
daiagi May 3, 2024
c4d8f3e
Merge branch 'main' of https://github.com/kodadot/nft-gallery into fa…
daiagi May 3, 2024
3346992
add security + label + loading state
daiagi May 3, 2024
40b8e0b
Merge branch 'main' into feature/CustomizeCookieBanner
roiLeo May 3, 2024
7a76ca1
🔧 replace font awesome icon
roiLeo May 3, 2024
24af829
code-review
daiagi May 3, 2024
46e37f7
Merge branch 'main' of https://github.com/kodadot/nft-gallery into cl…
daiagi May 3, 2024
448194e
Merge branch 'clean-codeclimate-after-`drops-refactor`-merge' of http…
daiagi May 3, 2024
165778b
fix(SuccesfullDrop.vue): share on farcaster not showing correct sn
hassnian May 3, 2024
8e9434f
update(ProfileDetailsV3): shareOnFarcaster param as array of string
hassnian May 3, 2024
d955055
enable submit button
daiagi May 3, 2024
83e9e48
Merge pull request #10032 from kodadot/clean-codeclimate-after-`drops…
prury May 3, 2024
86ed9cb
Merge pull request #10173 from xiaoxianBoy/fix-typos
prury May 3, 2024
48c3c41
Merge branch 'main' into farcaster-auth
daiagi May 3, 2024
c97ec5c
Merge pull request #10066 from prachi00/feat-btn-changes
prury May 3, 2024
f39994a
Merge pull request #9403 from roiLeo/feature/CustomizeCookieBanner
yangwao May 3, 2024
a839e28
close farcaster tab
daiagi May 3, 2024
bc08738
Merge branch 'main' of https://github.com/kodadot/nft-gallery into fa…
daiagi May 3, 2024
0ba76a3
Merge branch 'farcaster-auth' of https://github.com/kodadot/nft-galle…
daiagi May 3, 2024
26b3cfc
fix pnpm-lock
daiagi May 3, 2024
554ccd1
fix: Make possible it possible not to be necessary to enter all field…
Jarsen136 May 3, 2024
c47861f
fix: handle profile BE error
Jarsen136 May 3, 2024
753f274
fix(ModalBody.vue): mobile version not responsive
hassnian May 4, 2024
374ba09
ref(SuccessfulDrop.vue): remove max on massmint sharing
hassnian May 4, 2024
3028c7d
Merge branch 'main' into issue-9982
hassnian May 4, 2024
923c2ea
ref(useSocialShare.ts): cleaner building share url syntax
hassnian May 4, 2024
b7429a1
fix(CookieBanner.vue): freezing the app on some pages
hassnian May 4, 2024
cb89679
chore: massmint hdd
preschian May 4, 2024
1428cd7
Merge pull request #10211 from hassnian/issue-10209
hassnian May 4, 2024
fde030d
Merge pull request #10206 from Jarsen136/issue-10204
daiagi May 4, 2024
9effd27
Merge branch 'main' into farcaster-auth
daiagi May 4, 2024
082ddea
fix: animated button hover state
Jarsen136 May 4, 2024
60894da
Merge pull request #10217 from kodadot/massmint-hdd
Jarsen136 May 5, 2024
663a29a
fix: Replace small text with 14px in autoteleport tooltip
Jarsen136 May 5, 2024
c17e837
fix: Button size in create new profile
Jarsen136 May 5, 2024
e409f03
fix: Loaders and skeletons for new profile
Jarsen136 May 5, 2024
688df1f
fix: List items popup styling
Jarsen136 May 5, 2024
b62b6bb
chore: translation key
Jarsen136 May 6, 2024
c868cc1
Merge pull request #10228 from Jarsen136/issue-10216
Jarsen136 May 6, 2024
75d7393
fix: Align center in profile activity
Jarsen136 May 6, 2024
2f55cd8
Merge branch 'main' into farcaster-auth
daiagi May 6, 2024
59f73c1
Merge branch 'main' into issue-9982
hassnian May 6, 2024
f4d1d7c
ref(en.json): change dropNfts transaltion key
hassnian May 6, 2024
83b7c85
ref(ProfileDetails.vue): update shareOnFarcaster param
hassnian May 6, 2024
975d78e
Merge pull request #10208 from hassnian/issue-10193
prury May 6, 2024
6f64434
diable button if missing details in edit mode
daiagi May 6, 2024
2cec094
Merge pull request #10068 from hassnian/issue-9921
vikiival May 6, 2024
96e05d9
ref(SuccessfulDrop.vue): dropNft translation key
hassnian May 6, 2024
2bb1e46
fix: skeleton gap
Jarsen136 May 6, 2024
46e4d12
Merge branch 'main' of https://github.com/kodadot/nft-gallery into fa…
daiagi May 6, 2024
f389a77
Merge pull request #10232 from Jarsen136/issue-10167
prury May 6, 2024
8f0bfcb
Merge pull request #10196 from Jarsen136/issue-10165
prury May 6, 2024
a701d27
Merge pull request #10235 from Jarsen136/issue-10229
prury May 6, 2024
090f256
Merge branch 'main' into farcaster-auth
prury May 6, 2024
5dce287
enable markdown
daiagi May 6, 2024
b98b5b9
Merge pull request #10195 from kodadot/farcaster-auth
prury May 6, 2024
c4b9590
Merge pull request #10186 from kodadot/chore-optimize-deps
Jarsen136 May 6, 2024
0eaa7c4
Merge pull request #10219 from Jarsen136/issue-10214
Jarsen136 May 6, 2024
394aee1
Merge pull request #10248 from kodadot/profile-description-markdown
vikiival May 6, 2024
836dd59
Merge pull request #10239 from Jarsen136/issue-10236
prury May 6, 2024
11d364f
Merge pull request #10226 from Jarsen136/issue-10222
exezbcz May 7, 2024
37577c6
ref(ShareSocialSection.vue): add social default prop value
hassnian May 7, 2024
365ae7a
Merge pull request #10201 from hassnian/issue-9982
prury May 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ With a few exceptions, code and comments should be written in **English** only.
- **Typescript**, **Javascript** and **GraphQL** files use **camelCase** (`globalVariables.ts`, `getKey.js`, `collectionById.graphql`)
- **SCSS** files use **kebab-case** (`initial-variables.scss`)
- **JSON** files use **snake_case** (`all_lang.json`) while **Markdown** files use **SCREAMING_SNAKE_CASE** (`CONTRIBUTING.md`)
- **Image** files use **kebab-case** (`my-image.webp`) and **.webp** is the preffered image format
- **Image** files use **kebab-case** (`my-image.webp`) and **.webp** is the preferred image format

## SFC Conventions
### Skeleton
Expand Down
145 changes: 91 additions & 54 deletions components/CookieBanner.vue
Original file line number Diff line number Diff line change
@@ -1,66 +1,103 @@
<template>
<transition name="slide">
<div v-if="!hasDisplayedCookieBanner" class="cookie-banner">
<div
class="notices flex overflow-hidden pointer-events-none fixed p-[2em] inset-0 is-bottom items-center w-full z-[1000]">
<div
role="alertdialog"
class="snackbar is-success is-bottom-left !py-4 md:!py-2 px-4 mb-3 flex-col md:flex-row">
<div class="md:flex md:gap-1">
{{ $t('cookies.notice') }}, see
<nuxt-link to="/cookie-notice" target="_blank" class="is-underlined"
>Cookie Policy</nuxt-link
>
for details.
</div>
<div
class="bg-separator-line-color m-4 md:!my-0 !w-full !h-[1px] md:!w-[1px] md:!h-[13px]" />
<div
class="flex items-center justify-between md:!my-0 w-full md:w-fit">
<NeoButton variant="text" no-shadow @click="declineCookies">
{{ $t('cookies.decline') }}
</NeoButton>
<NeoButton
variant="secondary-rounded"
no-shadow
class="ml-3 h-8"
data-testid="cookie-banner-button-accept"
@click="acceptCookies">
{{ $t('cookies.accept') }}
</NeoButton>
</div>
</div>
</div>
</div>
</transition>
<CookieControl class="cookie-banner">
<template #bar>
<p>
{{ $t('cookies.notice') }}
<nuxt-link to="/cookie-notice" target="_blank" class="is-underlined"
>Cookie Policy</nuxt-link
>
<span class="invisible md:visible mx-2">|</span>
</p>
</template>
</CookieControl>
</template>

<script lang="ts" setup>
import { NeoButton } from '@kodadot1/brick'
// import { useState } from 'vue-gtag-next'
const cookieControl = useCookieControl()
const { grantConsent, revokeConsent } = useGtag()

// const { isEnabled } = useState()
const hasDisplayedCookieBanner = ref(
localStorage.getItem('cookies_enabled') !== null || false,
const cookieConsentGiven = computed(() =>
cookieControl.cookiesEnabledIds.value?.includes('ga'),
)
const acceptCookies = () => {
// if (isEnabled) {
// isEnabled.value = true
// }
localStorage.setItem('cookies_enabled', '1')
hasDisplayedCookieBanner.value = true
}
const declineCookies = () => {
localStorage.setItem('cookies_enabled', '0')
hasDisplayedCookieBanner.value = true
}

watch(
() => cookieControl.cookiesEnabledIds.value,
() => {
if (!cookieConsentGiven.value) {
window.location.reload()
}
},
{ deep: true },
)

onMounted(() => {
if (cookieConsentGiven.value || cookieConsentGiven.value === undefined) {
grantConsent()
} else {
revokeConsent()
}
})
</script>

<style lang="scss">
.cookie-banner {
.snackbar {
align-self: flex-start;
max-width: 720px;
/* Custom Cookie #Bar */
.cookieControl__BarContainer {
@apply fixed p-4 mx-auto max-w-3xl self-start left-6 bottom-5 text-text-color bg-background-color border border-border-color shadow-primary;
}
.cookieControl__BarContainer p {
@apply text-text-color text-base;
}
.cookieControl__BarButtons button {
@apply text-sm bg-inherit text-text-color px-2 py-1;
}

/* Custom Cookie #Modal */
.cookieControl__ModalContent {
@apply text-text-color bg-background-color border border-border-color shadow-primary items-center overflow-y-clip;
}
.cookieControl__ModalContent :not(button) {
@apply text-text-color;
}
button.cookieControl__ModalClose {
@apply invisible absolute top-3 right-0 h-0 w-0;
}
button.cookieControl__ModalClose:after {
@apply absolute top-1 right-5 text-xs text-text-color font-medium bg-background-color hover:bg-gray-100 hover:text-gray-800 rounded-lg px-4 py-2.5 duration-300 transition-colors focus:outline-none visible;
content: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22currentColor%22%20class%3D%22bi%20bi-x-lg%22%20viewBox%3D%220%200%2016%2016%22%3E%0A%20%20%3Cpath%20d%3D%22M2.146%202.854a.5.5%200%201%201%20.708-.708L8%207.293l5.146-5.147a.5.5%200%200%201%20.708.708L8.707%208l5.147%205.146a.5.5%200%200%201-.708.708L8%208.707l-5.146%205.147a.5.5%200%200%201-.708-.708L7.293%208z%22%2F%3E%0A%3C%2Fsvg%3E');
}
.cookieControl__ModalButtons {
@apply grid grid-cols-3 gap-4 mt-4 shrink-0 w-full;
}
.cookieControl__ModalButtons button {
@apply text-sm bg-inherit text-text-color px-1 py-2;
}
.cookieControl__ModalContent .cookieControl__ModalInputWrapper input + button {
@apply bg-gray-400;
}
.cookieControl__ModalContent input:checked + button::before {
@apply bg-text-color;
}
.cookieControl__ModalContent
.cookieControl__ModalInputWrapper
input:checked
+ button {
@apply border border-solid border-border-color bg-background-color;
}
.cookieControl__ModalContent
.cookieControl__ModalInputWrapper
input:disabled
+ button {
@apply bg-gray-300;
}
@media screen and (max-width: 768px) {
.cookieControl__BarButtons button + button {
margin: 0;
}
.cookieControl__BarButtons {
flex-direction: row-reverse;
}
.cookieControl__BarContainer {
right: 1.5rem;
}
}
</style>
2 changes: 1 addition & 1 deletion components/collection/drop/MintButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const mintForLabel = computed(() =>
$i18n.t('drops.mintForPaid', [
`${formatAmountWithRound(drop.value?.price ? Number(drop.value?.price) * amountToMint.value : '', decimals.value)} ${
chainSymbol.value
} ${priceUsd.value ? '/ ' + (priceUsd.value * amountToMint.value).toFixed(1) + ' ' + $i18n.t('general.usd') : ''}`,
} ${priceUsd.value ? '/ ' + (priceUsd.value * amountToMint.value).toFixed(2) + ' ' + $i18n.t('general.usd') : ''}`,
]),
)

Expand Down
6 changes: 4 additions & 2 deletions components/collection/drop/modal/DropConfirmModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,17 @@ const resentInitialConfirmationEmail = ref(false)

const mintedNFT = computed<MintedNFT | undefined>(() =>
claimedNft.value
? {
? ({
...claimedNft.value,
index: Number(claimedNft.value.sn),
image: sanitizeIpfsUrl(claimedNft.value.image),
mimeType: 'text/html',
collection: {
id: claimedNft.value.collection,
name: claimedNft.value.collectionName,
max: claimedNft.value.max,
},
}
} as MintedNFT)
: undefined,
)

Expand Down
2 changes: 1 addition & 1 deletion components/collection/drop/modal/paid/MintOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
:src="
toMintNft.imageDataPayload
? toMintNft.imageDataPayload.image
: sanitizeIpfsUrl(toMintNft.image)
: sanitizeIpfsUrl(toMintNft.animationUrl)
"
:alt="toMintNft.name"
:mime-type="!toMintNft.imageDataPayload ? 'text/html' : undefined"
Expand Down
27 changes: 20 additions & 7 deletions components/collection/drop/modal/shared/SuccessfulDrop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
single: $t('drops.youSuccessfullyClaimedNft', [1]),
multiple: $t('drops.amountMintedSuccessfully', [items.length]),
}"
:items="items"
media-mime-type="text/html" />
:items="items" />
</SuccessfulModalBody>
</template>

<script setup lang="ts">
import type { ItemMedia } from '@/components/common/successfulModal/SuccessfulItemsMedia.vue'
import { MintedNFT, MintingSession } from '../../types'
import { ShareProp } from '@/components/common/successfulModal/SuccessfulModalBody.vue'

const emit = defineEmits(['list'])
const props = defineProps<{
Expand All @@ -27,6 +27,7 @@ const { $i18n } = useNuxtApp()
const { toast } = useToast()
const { urlPrefix } = usePrefix()
const { accountId } = useAuth()
const { getCollectionFrameUrl } = useSocialShare()

const cantList = computed(() => !props.canListNfts)
const txHash = computed(() => props.mintingSession.txHash ?? '')
Expand All @@ -42,6 +43,7 @@ const items = computed<ItemMedia[]>(() =>
image: item.image,
collection: item.collection.id,
collectionName: item.collection.name,
mimeType: item.mimeType,
})),
)

Expand All @@ -54,16 +56,27 @@ const userProfilePath = computed(
)

const sharingTxt = computed(() =>
$i18n.t('sharing.dropNft', [
mintedNft.value?.id,
mintedNft.value?.collection.max,
]),
singleMint.value
? $i18n.t('sharing.dropNft', [`#${mintedNft.value?.index}`])
: $i18n.t('sharing.dropNfts', [
props.mintingSession.items.map((item) => `#${item.index}`).join(', '),
]),
)

const share = computed(() => ({
const share = computed<ShareProp>(() => ({
text: sharingTxt.value,
url: nftFullUrl.value,
withCopy: singleMint.value,
social: {
farcaster: {
embeds: [
getCollectionFrameUrl(
urlPrefix.value,
mintedNft.value?.collection.id as string,
),
],
},
},
}))

const actionButtons = computed(() => ({
Expand Down
2 changes: 2 additions & 0 deletions components/collection/drop/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export type MintedNFT = {
chain: string
name: string
image: string
index: number
collection: { id: string; name: string; max: number }
mimeType?: string
}

export type MintingSession = {
Expand Down
4 changes: 2 additions & 2 deletions components/common/autoTeleport/AutoTeleportPopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<NeoIcon icon="fa-info-circle" pack="fa-regular" class="ml-2 text-k-grey" />

<template #content>
<div class="w-[16rem] bg-background-color text-xs border p-4">
<div class="w-[16rem] bg-background-color text-sm border p-4">
<div class="flex text-base mb-3">
<NeoIcon icon="fa-info-circle" pack="fa-regular" class="mr-2" />

Expand Down Expand Up @@ -49,7 +49,7 @@
<div class="flex justify-start mt-5">
<a
href="https://hello.kodadot.xyz/tutorial/teleport/auto-teleport"
class="text-k-blue hover:text-k-blue-hover text-xs"
class="text-k-blue hover:text-k-blue-hover text-sm"
target="_blank"
rel="nofollow noopener noreferrer"
>{{ $t('helper.learnMore') }}</a
Expand Down
5 changes: 3 additions & 2 deletions components/common/listingCart/ListingCartMini.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<transition name="slide">
<div v-if="listingCartStore.count" class="listing-container">
<div class="inline-flex items-center">
<div class="k-shadow bg-background-color border py-4 px-6">
<div class="k-shadow bg-background-color border flex items-center h-13 px-6">
<div class="inline-flex items-center">
<div>
<b>{{ listingCartStore.count }}</b>
Expand All @@ -28,8 +28,9 @@
</div>
</div>
<NeoButton
class="h-full border-l-0 py-4 px-7"
class="border-l-0 px-7"
:variant="'k-accent'"
size="large"
@click="preferencesStore.listingCartModalOpen = true">
{{ $t('listingCart.listItem', listingCartStore.count) }}
</NeoButton>
Expand Down
3 changes: 2 additions & 1 deletion components/common/listingCart/SuccessfulListingBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ const { accountId } = useAuth()
const mediaItems = computed<ItemMedia[]>(() =>
props.items.map((item) => ({
id: item.id,
image: item.meta?.image as string,
image: (item.mediaUrl?.image || item.meta?.image) as string,
name: item.name,
collection: item.collection.id,
collectionName: item.collection.name,
mimeType: item.mediaUrl?.mimeType,
price: item.listPrice
? String(item.listPrice * Math.pow(10, decimals.value))
: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<div class="flex">
<div>
<BaseMediaItem
v-if="nft.animationUrl"
v-if="nft.mediaUrl"
class="border border-k-shade image is-48x48"
:class="{ 'opacity-50': discarded }"
:alt="nft?.name"
:animation-src="sanitizeIpfsUrl(nft.animationUrl.url)"
:mime-type="nft.animationUrl.mimeType"
:src="sanitizeIpfsUrl(nft.mediaUrl.image)"
:mime-type="nft.mediaUrl.mimeType"
preview
is-detail />
<!-- keeping BasicImage since its has a skeleton laoder -->
Expand Down Expand Up @@ -60,7 +60,7 @@ const getAvatar = async () => {
}

onMounted(() => {
if (!props.nft.animationUrl) {
if (!props.nft.mediaUrl) {
getAvatar()
}
})
Expand Down
6 changes: 3 additions & 3 deletions components/common/shoppingCart/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { calculateExactUsdFromToken } from '@/utils/calculation'
import { ListCartItem, ListCartItemAnimationUrl } from '@/stores/listingCart'
import { ListCartItem, ListCartItemMediaUrl } from '@/stores/listingCart'
import { ShoppingCartItem } from './types'
import { useFiatStore } from '@/stores/fiat'
import { sum } from '@/utils/math'
Expand Down Expand Up @@ -68,7 +68,7 @@ export const nftToShoppingCartItem = (nft: NFT): ShoppingCartItem => {
export const nftToListingCartItem = (
nft: NFT & TokenId,
floor = '',
animationUrl?: ListCartItemAnimationUrl,
mediaUrl?: ListCartItemMediaUrl,
): ListCartItem => {
const { urlPrefix } = usePrefix()

Expand All @@ -86,7 +86,7 @@ export const nftToListingCartItem = (
meta: nft.meta,
token: nft.token,
sn: nft.sn,
animationUrl: animationUrl,
mediaUrl: mediaUrl,
}
}

Expand Down