From 43658bdd33341de7586564fa94add73958234cab Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Tue, 17 Oct 2023 10:12:35 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=F0=9F=90=9B=20Fix=20display=20empty=20keyw?= =?UTF-8?q?ord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/IscnUploadedInfo.vue | 4 ++-- locales/en.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/IscnUploadedInfo.vue b/components/IscnUploadedInfo.vue index f092888c..b9ba875c 100644 --- a/components/IscnUploadedInfo.vue +++ b/components/IscnUploadedInfo.vue @@ -156,7 +156,7 @@ @@ -216,7 +216,7 @@ export default class IscnUploadedInfo extends Vue { } get keywords(): Array { - return this.metadata?.keywords.split(',') || [] + return this.metadata?.keywords && this.metadata?.keywords.split(',') || [] } get contentFingerprints() { diff --git a/locales/en.json b/locales/en.json index 0ea72708..1b27562d 100644 --- a/locales/en.json +++ b/locales/en.json @@ -143,7 +143,7 @@ "iscn.meta.description.placeholder": "Description", "iscn.meta.description": "Description", "iscn.meta.id": "ISCN ID", - "iscn.meta.keywords.placeholder": "Keywords (seperate by ,)", + "iscn.meta.keywords.placeholder": "Keywords (separate by ,)", "iscn.meta.keywords": "Keywords", "iscn.meta.ipfsHash": "IPFS Hash", "iscn.meta.license.placeholder": "License URL", @@ -163,7 +163,7 @@ "iscn.meta.stakeholders.name": "Stakeholder Name", "iscn.meta.stakeholders.url": "URL", "iscn.meta.stakeholders.wallet.copied": "Copied", - "iscn.meta.stakeholders.wallet.placeholder": "Wallet addresss", + "iscn.meta.stakeholders.wallet.placeholder": "Wallet addresses", "iscn.meta.stakeholders.wallet": "Wallet Address (click to copy)", "iscn.meta.stakeholders": "Stakeholders", "iscn.meta.tags.title": "Tags", From 8d99dc968c871a4b4a07b0ad112d4ceeb440fc9c Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Tue, 17 Oct 2023 10:28:10 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E2=9C=A8=20Provide=20option=20to=20downloa?= =?UTF-8?q?d=20JSON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/IscnUploadedInfo.vue | 42 +++++++++++++++++++++++++++++---- utils/misc.ts | 17 +++++++++++++ 2 files changed, 55 insertions(+), 4 deletions(-) diff --git a/components/IscnUploadedInfo.vue b/components/IscnUploadedInfo.vue index b9ba875c..ae87d5c2 100644 --- a/components/IscnUploadedInfo.vue +++ b/components/IscnUploadedInfo.vue @@ -10,10 +10,19 @@ - + + + { try { this.likerIdsAddresses = await Promise.all( diff --git a/components/Selector.vue b/components/Selector.vue index 22baa95f..0c7975b1 100644 --- a/components/Selector.vue +++ b/components/Selector.vue @@ -1,46 +1,44 @@