From d89d3f21019883218b0a8183b20f96654d77be56 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Fri, 27 Sep 2024 23:17:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=91=94=20Add=20newsPress=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/nft/url/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/nft/url/index.vue b/pages/nft/url/index.vue index 26812550..e987b891 100644 --- a/pages/nft/url/index.vue +++ b/pages/nft/url/index.vue @@ -639,10 +639,15 @@ export default class FetchIndex extends Vue { } async crawlUrlData() { + const isNewsPress = !!this.$route.query.news_press && this.$route.query.news_press !== '0' try { logTrackerEvent(this, 'NFTUrlMint', 'CrawlUrlData', this.url, 1); const { data } = await this.$axios.get(`/crawler/?url=${encodeURIComponent(this.encodedURL)}&wallet=${this.address}`) - const { title, description, keywords, author, body, images = [] } = data + const { title, description, author, body, images = [] } = data; + let {keywords} = data; + if(isNewsPress) { + keywords = keywords ? `${keywords},NewsPress` : 'NewsPress'; + } if (!body) { throw new Error('CANNOT_CRAWL_THIS_URL') } if (title === 'patreon.com' && description === '') { throw new Error('SITE_NOT_CRAWLABLE: pateron') } this.iscnData = { title, description, keywords, author } From a4dfa51c1713cb5a1b2b097178f6c84c80caa707 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Sat, 28 Sep 2024 00:13:35 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=8E=A8=20Improve=20code=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/nft/url/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/nft/url/index.vue b/pages/nft/url/index.vue index e987b891..73502b18 100644 --- a/pages/nft/url/index.vue +++ b/pages/nft/url/index.vue @@ -644,8 +644,8 @@ export default class FetchIndex extends Vue { logTrackerEvent(this, 'NFTUrlMint', 'CrawlUrlData', this.url, 1); const { data } = await this.$axios.get(`/crawler/?url=${encodeURIComponent(this.encodedURL)}&wallet=${this.address}`) const { title, description, author, body, images = [] } = data; - let {keywords} = data; - if(isNewsPress) { + let { keywords } = data; + if (isNewsPress) { keywords = keywords ? `${keywords},NewsPress` : 'NewsPress'; } if (!body) { throw new Error('CANNOT_CRAWL_THIS_URL') } From a13c1ab1252c2079354b02c4d1cffeb828d8474a Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Sat, 28 Sep 2024 11:30:46 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=90=9B=20Add=20client=20only=20for=20?= =?UTF-8?q?view=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/view/_iscnId/index.vue | 664 ++++++++++++++++++----------------- 1 file changed, 333 insertions(+), 331 deletions(-) diff --git a/pages/view/_iscnId/index.vue b/pages/view/_iscnId/index.vue index 78f44abc..21d6c5a4 100644 --- a/pages/view/_iscnId/index.vue +++ b/pages/view/_iscnId/index.vue @@ -82,344 +82,140 @@ 'lg:px-0', ]" > - -
+ +
- - - - - - -
-
- - - - {{ name }} - - - {{ metadata.description }} - - + - - {{ iscnOwner }} - - - - -