Skip to content

Commit

Permalink
🔀 Merge #1885 into deploy/rinkeby
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Oct 9, 2024
2 parents 40cabf0 + b71544e commit 1e0d618
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 38 deletions.
40 changes: 4 additions & 36 deletions src/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,19 @@ const nuxtConfig = {
],
brand: [
{
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: 'https://liker.land/about/writing-nft',
name: 'Writing NFT',
},
{
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: 'https://liker.land/about/nft-book',
name: 'NFT Book',
},
{
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: 'https://liker.land/civic',
name: 'Civic Liker',
Expand All @@ -188,42 +191,7 @@ const nuxtConfig = {
operatingSystem: 'All',
url: 'https://liker.land',
offers: {
'@type': 'Offer',
price: '0',
priceCurrency: 'USD',
},
},
{
'@context': 'http://www.schema.org',
'@type': 'MobileApplication',
name: 'Liker Land',
applicationCategory: 'LifestyleApplication',
operatingSystem: 'IOS',
url: 'https://apps.apple.com/app/liker-land/id1248232355',
aggregateRating: {
'@type': 'AggregateRating',
ratingValue: '4.3',
ratingCount: '16',
},
offers: {
'@type': 'Offer',
price: '0',
priceCurrency: 'USD',
},
},
{
'@context': 'http://www.schema.org',
'@type': 'MobileApplication',
name: 'Liker Land',
applicationCategory: 'LifestyleApplication',
operatingSystem: 'ANDROID',
url: 'https://play.google.com/store/apps/details?id=com.oice',
aggregateRating: {
'@type': 'AggregateRating',
ratingValue: '3.8',
ratingCount: '1699',
},
offers: {
'@context': 'http://www.schema.org',
'@type': 'Offer',
price: '0',
priceCurrency: 'USD',
Expand Down
3 changes: 3 additions & 0 deletions src/pages/about/writing-nft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,18 @@ export default {
'@context': 'http://www.schema.org',
'@type': 'FAQPage',
about: {
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: `${EXTERNAL_HOST}/about/writing-nft`,
name: 'Writing NFT',
},
mainEntity: this.$t('faq_list').map(
({ q: question, a: answer }) => ({
'@context': 'http://www.schema.org',
'@type': 'Question',
name: question,
acceptedAnswer: {
'@context': 'http://www.schema.org',
'@type': 'Answer',
text: answer,
},
Expand Down
2 changes: 2 additions & 0 deletions src/pages/civic/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ export default {
image: [ogImage],
description,
brand: {
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: `${EXTERNAL_HOST}/civic`,
name: 'Civic Liker',
},
url: `${EXTERNAL_HOST}${this.$route.path}`,
offers: {
'@context': 'http://www.schema.org',
'@type': 'Offer',
price: '0',
priceCurrency: 'USD',
Expand Down
2 changes: 2 additions & 0 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -847,9 +847,11 @@ export default {
'@context': 'https://schema.org',
'@type': 'FAQPage',
mainEntity: this.faqs.map(({ question, answer }) => ({
'@context': 'http://www.schema.org',
'@type': 'Question',
name: question,
acceptedAnswer: {
'@context': 'http://www.schema.org',
'@type': 'Answer',
text: answer,
},
Expand Down
3 changes: 3 additions & 0 deletions src/pages/nft/class/_classId/_nftId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ export default {
name: title,
encoding: [
{
'@context': 'http://www.schema.org',
'@type': 'MediaObject',
contentUrl: this.nftModelURL,
encodingFormat: 'model/gltf-json',
Expand All @@ -461,12 +462,14 @@ export default {
let brand;
if (this.isWritingNft) {
brand = {
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: `${EXTERNAL_HOST}/about/writing-nft`,
name: 'Writing NFT',
};
} else if (this.nftIsNFTBook) {
brand = {
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: `${EXTERNAL_HOST}/about/nft-book`,
name: 'NFT Book',
Expand Down
7 changes: 7 additions & 0 deletions src/pages/nft/class/_classId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ export default {
name: title,
encoding: [
{
'@context': 'http://www.schema.org',
'@type': 'MediaObject',
contentUrl: this.nftModelURL,
encodingFormat: 'model/gltf-json',
Expand All @@ -556,6 +557,7 @@ export default {
image: [ogImage],
description,
brand: {
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: `${EXTERNAL_HOST}/about/writing-nft`,
name: 'Writing NFT',
Expand All @@ -566,6 +568,7 @@ export default {
datePublished: this.iscnData?.recordTimestamp,
url: `${EXTERNAL_HOST}${this.$route.path}`,
offers: {
'@context': 'http://www.schema.org',
'@type': 'Offer',
seller: iscnOwnerPerson,
price: NFTPriceUSD,
Expand All @@ -588,6 +591,7 @@ export default {
image: [ogImage],
description,
brand: {
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: 'https://liker.land/about/nft-book',
name: 'NFT Book',
Expand All @@ -605,6 +609,7 @@ export default {
};
this.nftEditions.forEach(e => {
schemas.push({
'@context': 'http://www.schema.org',
'@type': ['Book', 'Product'],
'@id': `@${this.classId}-${e.index}`,
name: `${title} - ${e.name}`,
Expand All @@ -617,11 +622,13 @@ export default {
bookEdition: e.name,
description: e.description,
brand: {
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: 'https://liker.land/about/nft-book',
name: 'NFT Book',
},
offers: {
'@context': 'http://www.schema.org',
'@type': 'Offer',
seller: iscnOwnerPerson,
price: e.price,
Expand Down
9 changes: 7 additions & 2 deletions src/pages/nft/collection/_collectionId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,10 @@ export default {
iscn_owner: iscnOwner,
} = this.getNFTClassMetadataById(id);
return {
'@context': 'http://www.schema.org',
'@type': 'TypeAndQuantityNode',
typeOfQuantity: {
typeOfGood: {
'@context': 'http://www.schema.org',
'@type': this.collectionIsBook ? 'Book' : 'CreativeWork',
name: className,
description: classDescription,
Expand All @@ -206,21 +208,24 @@ export default {
: undefined,
brand: this.collectionIsBook
? {
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: `${EXTERNAL_HOST}/about/nft-book`,
name: 'NFT Book',
}
: {
'@context': 'http://www.schema.org',
'@type': 'Brand',
url: `${EXTERNAL_HOST}/about/writing-nft`,
name: 'Writing NFT',
},
},
amountOfThisQuantity: '1',
amountOfThisGood: '1',
unitCode: 'C62',
};
}),
offers: {
'@context': 'http://www.schema.org',
'@type': 'Offer',
price: this.collectionPrice,
priceCurrency: 'USD',
Expand Down

0 comments on commit 1e0d618

Please sign in to comment.