From c208c71923fdb09daadd5acaf0d4a3eed70f4cd0 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Thu, 28 Dec 2023 23:46:36 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=92=84=20Add=20a=20button=20that=20le?= =?UTF-8?q?ads=20to=20the=20likerland=20NFT=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.json | 1 + pages/view/_iscnId/index.vue | 31 +++++++++++++++++++++++++++++-- utils/cosmos/index.ts | 15 +++++++++------ 3 files changed, 39 insertions(+), 8 deletions(-) diff --git a/locales/en.json b/locales/en.json index 37880133..2beeec8e 100644 --- a/locales/en.json +++ b/locales/en.json @@ -272,6 +272,7 @@ "NFTPortal.button.download.iscn": "Download JSON", "NFTPortal.button.mint": "Mint NFT", "NFTPortal.button.mint.book": "Mint Book", + "NFTPortal.button.check.nft": "Check NFT", "NFTPortal.button.next":"Next", "NFTPortal.button.mintContinueLong": "Continue to mint Writing NFTs", "NFTPortal.button.mintContinue": "Continue to mint NFT", diff --git a/pages/view/_iscnId/index.vue b/pages/view/_iscnId/index.vue index 048ed1b6..d70acd32 100644 --- a/pages/view/_iscnId/index.vue +++ b/pages/view/_iscnId/index.vue @@ -86,6 +86,7 @@ :class="[ 'flex', 'justify-end', + 'items-center', 'w-full', 'pt-[24px]', 'gap-[8px]', @@ -111,6 +112,19 @@ :to="localeLocation({ name: 'nft-iscn-iscnId', params: { iscnId: iscnId }, query: mintQueries })" :text="$t('NFTPortal.button.mint')" /> +
+ +
-
+
ISCNRecordWithID[] | PromiseLike @iscnModule.Action queryISCNByField!: ( - arg0: { + arg0: { iscnId?: string, owner?: string, contentFingerprint?: string, stakeholderId?: string, stakeholderName?: string, - keyword?: string, + keyword?: string, }) => ISCNRecordWithID[] | PromiseLike pageNumber = Number(this.$route.query.page) || 0 closeWarning = false + owner: any = '' + iscnId: any = '' get queryAllTerm(): string { const { q } = this.$route.query @@ -161,6 +177,14 @@ export default class SearchPage extends Vue { return !!this.errorMessage } + get searchResultText() { + return this.owner || this.iscnId + } + + get ownerPortfolioUrl() { + return `${LIKER_LAND_URL}/en/${this.owner}?tab=created` + } + mounted() { this.search() } @@ -177,19 +201,21 @@ export default class SearchPage extends Vue { }); } - async search(){ + async search() { logTrackerEvent(this, 'ISCNSearch', 'ISCNSearchResult', this.queryAllTerm, 1) if (this.queryAllTerm) { await this.queryISCNByKeyword(this.queryAllTerm) } else { - const { + const { iscnId, owner, content_fingerprint: contentFingerprint, stakeholder_id: stakeholderId, - stakeholder_name: stakeholderName, + stakeholder_name: stakeholderName, keyword, } = this.$route.query; + this.owner = owner; + this.iscnId = iscnId const searchObject = { iscnId: iscnId as string, owner: owner as string, From d1a4c0362ac01c5c33ec347af490dfcf609b84e5 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Fri, 29 Dec 2023 00:51:31 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=92=84=20Update=20nftUrl=20button=20s?= =?UTF-8?q?tyle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/view/_iscnId/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/view/_iscnId/index.vue b/pages/view/_iscnId/index.vue index d70acd32..a21efd1d 100644 --- a/pages/view/_iscnId/index.vue +++ b/pages/view/_iscnId/index.vue @@ -112,9 +112,8 @@ :to="localeLocation({ name: 'nft-iscn-iscnId', params: { iscnId: iscnId }, query: mintQueries })" :text="$t('NFTPortal.button.mint')" /> -
+