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

➖ remove b-image component #5854

Merged
merged 26 commits into from
May 29, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
cf408d0
➖ remove b-image component
roiLeo May 3, 2023
4cbcee2
➖ remove b-image component
roiLeo May 3, 2023
6f1458f
🔧 BasicImage
roiLeo May 3, 2023
cdbeb4e
🔧 BasicImage image-wrapper
roiLeo May 3, 2023
899268d
Merge branch 'main' into chore/Buefy/b-image
roiLeo May 4, 2023
16aad3a
🔧 image wrapper
roiLeo May 4, 2023
4c9b1cc
🔧 image wrapper
roiLeo May 5, 2023
450ff02
Update components/shared/view/BasicImage.vue
roiLeo May 5, 2023
8758021
Update components/series/SeriesTable.vue
roiLeo May 5, 2023
2482878
Merge branch 'main' into chore/Buefy/b-image
vikiival May 6, 2023
62bae2a
Merge branch 'main' into chore/Buefy/b-image
roiLeo May 10, 2023
1d9fa47
🔧 iT wOrK On mY ScrEen
roiLeo May 10, 2023
c4ab509
Merge branch 'feat/pnpm-8-' into chore/Buefy/b-image
roiLeo May 12, 2023
4f5c597
🔧 isLoadingMeta ref
roiLeo May 12, 2023
d2abda2
Merge branch 'main' into chore/Buefy/b-image
roiLeo May 12, 2023
39c3c2a
🔧 BasicImage fit
roiLeo May 12, 2023
5f913dc
Merge branch 'main' into chore/Buefy/b-image
roiLeo May 12, 2023
091938b
Merge branch 'main' into chore/Buefy/b-image
roiLeo May 13, 2023
c5fb50b
🔧 wallet Image
roiLeo May 13, 2023
8e35470
➖ remove unused component
roiLeo May 15, 2023
cf528b5
Merge branch 'main' into chore/Buefy/b-image
roiLeo May 15, 2023
68cd2a7
Merge branch 'main' into chore/Buefy/b-image
roiLeo May 17, 2023
97a0fa3
🔧 CollectionCard
roiLeo May 17, 2023
111fdf9
Merge branch 'main' into chore/Buefy/b-image
vikiival May 21, 2023
306e762
🔧 ???
roiLeo May 22, 2023
9d38e10
Merge branch 'main' into chore/Buefy/b-image
roiLeo May 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/common/ConnectWallet/WalletMenuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<div
class="is-flex is-justify-content-space-between is-align-items-center">
<span>
<b-image
<img
:src="wallet.img"
class="is-32x32 is-inline-block"
style="vertical-align: middle"></b-image>
style="vertical-align: middle" />
<span class="is-size-6 ml-2 is-capitalized">{{ wallet.name }}</span>
</span>

Expand Down
2 changes: 1 addition & 1 deletion components/generative/CongratsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<nuxt-link class="is-size-4 link" :to="`/bsx/collection/${collectionId}`">
In the meanwhile, click here to check the collection ♥️🍷
</nuxt-link>
<b-image
<img
src="https://imagedelivery.net/jk5b6spi_m_-9qC4VTnjpg/bafkreierepnow4cazbhinko36ubpuxl6pih7wuyxvi5mfmhvcmm6xgt6ha/aaa" />
<br />
<SubmitButton
Expand Down
2 changes: 1 addition & 1 deletion components/series/SeriesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
header-class="front-stack-layer"
cell-class="is-vcentered">
<div class="image is-48x48 mb-2">
<b-image
<img
v-if="!isLoading"
:src="props.row.image"
:alt="props.row.name"
Expand Down
41 changes: 25 additions & 16 deletions components/shared/view/BasicImage.vue
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
<template>
<b-image
:src="src || placeholder"
:src-fallback="placeholder"
:alt="alt"
ratio="1by1"
:class="customClass"
:rounded="rounded"
data-cy="type-image"
@error="onImageError">
<template #placeholder>
<NeoSkeleton full-size no-margin :circle="rounded" />
</template>
</b-image>
<figure
class="b-image-wrapper image is-1by1"
roiLeo marked this conversation as resolved.
Show resolved Hide resolved
:style="{ 'padding-top': '100%' }"
roiLeo marked this conversation as resolved.
Show resolved Hide resolved
:class="customClass">
<transition name="fade">
<img
:src="src || placeholder"
:alt="alt"
:class="['has-ratio', { 'is-rounded': rounded }]"
@load="onImageLoad"
@error="onImageError" />
</transition>
<transition name="fade">
<slot v-if="!loaded" name="placeholder">
<NeoSkeleton full-size no-margin :circle="rounded" />
</slot>
</transition>
</figure>
</template>

<script lang="ts" setup>
import { NeoSkeleton } from '@kodadot1/brick'

const { $consola } = useNuxtApp()
const { placeholder } = useTheme()
defineProps({
const props = defineProps({
src: { type: String, default: '' },
alt: { type: String, default: 'KodaDot NFT minted multimedia' },
customClass: { type: String, default: '' },
rounded: Boolean,
})
const loaded = ref(false)

function onImageError(ev: Event, src: string) {
$consola.error('[BasicImage] to load:', src, ev)
function onImageLoad() {
loaded.value = true
roiLeo marked this conversation as resolved.
Show resolved Hide resolved
}
function onImageError(ev: Event) {
$consola.error('[BasicImage] to load:', props.src, ev)
}
</script>
4 changes: 2 additions & 2 deletions components/shared/view/SelectableImage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<b-image
<img
ratio="1by1"
class="image"
:class="[
Expand All @@ -8,7 +8,7 @@
]"
:src="src"
alt="Some Image"
@click.native="handleClick"></b-image>
@click.native="handleClick" />
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<ModalWrapper icon="paper-plane" title="Transfer collection" isRight>
<template v-slot:default>
<ModalWrapper icon="paper-plane" title="Transfer collection" is-right>
<template #default>
<Loader v-model="isLoading" :status="status" />
<b-field>
<Auth />
Expand All @@ -27,7 +27,7 @@
<script lang="ts">
import MetaTransactionMixin from '@/utils/mixins/metaMixin'
import { isAddress } from '@polkadot/util-crypto'
import { Component, mixins, Prop } from 'nuxt-property-decorator'
import { Component, Prop, mixins } from 'nuxt-property-decorator'
import { showNotification } from '@/utils/notification'

const components = {
Expand Down
8 changes: 4 additions & 4 deletions components/unique/Gallery/Item/DangerModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<ModalWrapper icon="trash" :title="title" isRight>
<template v-slot:default>
<ModalWrapper icon="trash" :title="title" is-right>
<template #default>
<Loader v-model="isLoading" :status="status" />
<div class="buttons">
<b-button type="is-danger" expanded outlined @click="clearMeta"
Expand All @@ -10,8 +10,8 @@
type="is-danger"
expanded
outlined
@click="clearAttrs"
:disabled="!hasAttributes"
@click="clearAttrs"
>Remove ALL attributes</b-button
>
</div>
Expand All @@ -22,7 +22,7 @@
<script lang="ts">
import { emptyArray } from '@/utils/empty'
import MetaTransactionMixin from '@/utils/mixins/metaMixin'
import { Component, mixins, Prop, Watch } from 'nuxt-property-decorator'
import { Component, Prop, Watch, mixins } from 'nuxt-property-decorator'
import { showNotification } from '~/utils/notification'
import { Attribute } from '../../types'

Expand Down
1 change: 0 additions & 1 deletion components/unique/graphqlResponseTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ export type NFTEntitiesWithCount<T> = {
export type WithData<T> = {
data: T
}