diff --git a/components/common/shoppingCart/ShoppingCartModal.vue b/components/common/shoppingCart/ShoppingCartModal.vue
index e78d813ff7..9cd9bc53f1 100644
--- a/components/common/shoppingCart/ShoppingCartModal.vue
+++ b/components/common/shoppingCart/ShoppingCartModal.vue
@@ -3,14 +3,16 @@
diff --git a/components/identity/module/IdentitySocial.vue b/components/identity/module/IdentitySocial.vue
index fe037de0c1..fc35e959e7 100644
--- a/components/identity/module/IdentitySocial.vue
+++ b/components/identity/module/IdentitySocial.vue
@@ -5,7 +5,7 @@
v-safe-href="`https://twitter.com/${twitter}`"
target="_blank"
rel="nofollow noopener noreferrer">
-
+
{{ twitter }}
diff --git a/components/items/ItemsGrid/useItemsGrid.ts b/components/items/ItemsGrid/useItemsGrid.ts
index 962f122d96..bb923af48b 100644
--- a/components/items/ItemsGrid/useItemsGrid.ts
+++ b/components/items/ItemsGrid/useItemsGrid.ts
@@ -53,25 +53,12 @@ export function useFetchSearch({
}
}
- const variables = search
- ? {
- search,
- first: first.value,
- offset: (page - 1) * first.value,
- orderBy: route.query.sort?.length
- ? route.query.sort
- : ['blockNumber_DESC'],
- }
+ const variables = search?.length
+ ? { search }
: {
- denyList: getDenyList(urlPrefix.value),
- orderBy: route.query.sort?.length
- ? route.query.sort
- : ['blockNumber_DESC'],
search: searchParams.value,
priceMin: Number(route.query.min),
priceMax: Number(route.query.max),
- first: first.value,
- offset: (page - 1) * first.value,
}
const queryPath = getQueryPath(client.value)
@@ -79,7 +66,15 @@ export function useFetchSearch({
const result = await $apollo.query({
query: query.default,
client: client.value,
- variables: variables,
+ variables: {
+ ...variables,
+ first: first.value,
+ offset: (page - 1) * first.value,
+ denyList: getDenyList(urlPrefix.value),
+ orderBy: route.query.sort?.length
+ ? route.query.sort
+ : ['blockNumber_DESC'],
+ },
})
// handle results
diff --git a/composables/massmint/useZipValidator.ts b/composables/massmint/useZipValidator.ts
index 411adc7b25..fb15df6270 100644
--- a/composables/massmint/useZipValidator.ts
+++ b/composables/massmint/useZipValidator.ts
@@ -1,6 +1,7 @@
import { ref } from 'vue'
import { ZipEntry, unzip } from 'unzipit'
import { MAX_UPLOADED_FILE_SIZE } from '@/utils/constants'
+import { mimeTypes } from '@kodadot1/static'
export interface FileObject {
imageUrl: string
file: File
@@ -37,26 +38,6 @@ export const validFormats = [
'mp3',
'json',
]
-export const mimeTypes: { [key: string]: string } = {
- bmp: 'image/bmp',
- gif: 'image/gif',
- jpg: 'image/jpeg',
- jpeg: 'image/jpeg',
- png: 'image/png',
- svg: 'image/svg+xml',
- tiff: 'image/tiff',
- webp: 'image/webp',
- mp4: 'video/mp4',
- ogv: 'video/ogg',
- mov: 'video/quicktime',
- qt: 'video/quicktime',
- webm: 'video/webm',
- glb: 'model/gltf-binary',
- gltf: 'model/gltf+json',
- flac: 'audio/flac',
- mp3: 'audio/mpeg',
- json: 'application/json',
-}
const toMegaBytes = (bytes: number) => bytes / Math.pow(1024, 2)
diff --git a/package.json b/package.json
index 68d9960f97..ef319d2b29 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"@braintree/sanitize-url": "^6.0.4",
"@chenfengyuan/vue-qrcode": "1",
"@fortawesome/fontawesome-svg-core": "^6.2.1",
- "@fortawesome/free-brands-svg-icons": "^6.2.1",
+ "@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-regular-svg-icons": "^6.2.1",
"@fortawesome/free-solid-svg-icons": "^6.2.1",
"@fortawesome/vue-fontawesome": "^2.0.10",
diff --git a/pages/blog/index.vue b/pages/blog/index.vue
index d7be8900f7..e683885758 100644
--- a/pages/blog/index.vue
+++ b/pages/blog/index.vue
@@ -12,7 +12,7 @@
resolve(key))
+ const tags = {
+ tokens: 'Tokens',
+ }
+
const latestPosts = imports.sort(
(a, b) => +new Date(b.attributes.date) - +new Date(a.attributes.date)
)
- const tokensPosts = latestPosts.filter(
- (post) => post.attributes.tags === 'Tokens'
+ return latestPosts.reduce(
+ (acc, post, index) => {
+ if (index === 0) {
+ acc.featured.push(post)
+ return acc
+ }
+ if (post.attributes.tags === tags.tokens) {
+ acc.tokensPosts.push(post)
+ }
+ acc.posts.push(post)
+ return acc
+ },
+ {
+ featured: [],
+ posts: [],
+ tokensPosts: [],
+ }
)
-
- return {
- posts: latestPosts,
- tokensPosts,
- }
},
methods: {
getPermalink(post) {
diff --git a/plugins/icons.ts b/plugins/icons.ts
index fc4481dc89..63c7dafaef 100644
--- a/plugins/icons.ts
+++ b/plugins/icons.ts
@@ -120,9 +120,9 @@ import {
faRedditAlien,
faTelegram,
faTelegramPlane,
- faTwitter,
faWhatsapp,
faWpexplorer,
+ faXTwitter,
faYoutube,
} from '@fortawesome/free-brands-svg-icons'
@@ -220,7 +220,7 @@ library.add(
faCheck,
// Social
- faTwitter,
+ faXTwitter,
faTelegram,
faFacebook,
faFacebookMessenger,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fe31f24afa..d5dda17f3c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1,4 +1,4 @@
-lockfileVersion: '6.1'
+lockfileVersion: '6.0'
settings:
autoInstallPeers: false
@@ -24,8 +24,8 @@ importers:
specifier: ^6.2.1
version: 6.2.1
'@fortawesome/free-brands-svg-icons':
- specifier: ^6.2.1
- version: 6.2.1
+ specifier: ^6.4.2
+ version: 6.4.2
'@fortawesome/free-regular-svg-icons':
specifier: ^6.2.1
version: 6.2.1
@@ -3697,6 +3697,12 @@ packages:
requiresBuild: true
dev: false
+ /@fortawesome/fontawesome-common-types@6.4.2:
+ resolution: {integrity: sha512-1DgP7f+XQIJbLFCTX1V2QnxVmpLdKdzzo2k8EmvDOePfchaIGQ9eCHj2up3/jNEbZuBqel5OxiaOJf37TWauRA==}
+ engines: {node: '>=6'}
+ requiresBuild: true
+ dev: false
+
/@fortawesome/fontawesome-svg-core@6.2.1:
resolution: {integrity: sha512-HELwwbCz6C1XEcjzyT1Jugmz2NNklMrSPjZOWMlc+ZsHIVk+XOvOXLGGQtFBwSyqfJDNgRq4xBCwWOaZ/d9DEA==}
engines: {node: '>=6'}
@@ -3705,12 +3711,12 @@ packages:
'@fortawesome/fontawesome-common-types': 6.2.1
dev: false
- /@fortawesome/free-brands-svg-icons@6.2.1:
- resolution: {integrity: sha512-L8l4MfdHPmZlJ72PvzdfwOwbwcCAL0vx48tJRnI6u1PJXh+j2f3yDoKyQgO3qjEsgD5Fr2tQV/cPP8F/k6aUig==}
+ /@fortawesome/free-brands-svg-icons@6.4.2:
+ resolution: {integrity: sha512-LKOwJX0I7+mR/cvvf6qIiqcERbdnY+24zgpUSouySml+5w8B4BJOx8EhDR/FTKAu06W12fmUIcv6lzPSwYKGGg==}
engines: {node: '>=6'}
requiresBuild: true
dependencies:
- '@fortawesome/fontawesome-common-types': 6.2.1
+ '@fortawesome/fontawesome-common-types': 6.4.2
dev: false
/@fortawesome/free-regular-svg-icons@6.2.1:
@@ -17639,7 +17645,7 @@ packages:
esbuild: 0.17.19
fs-extra: 11.1.1
globby: 13.1.4
- jiti: 1.19.1
+ jiti: 1.18.2
mlly: 1.4.0
mri: 1.2.0
pathe: 1.1.1
diff --git a/styles/components/_connect-wallet.scss b/styles/components/_connect-wallet.scss
index 40efb89b16..c2bf7d0d51 100644
--- a/styles/components/_connect-wallet.scss
+++ b/styles/components/_connect-wallet.scss
@@ -51,7 +51,7 @@
.modal-card-head {
background: unset;
- padding: 1rem 2rem;
+ padding: 1.5rem 2rem;
@include ktheme() {
border-bottom: 1px solid theme('border-color');
}