From 8c65138a224f0aa3dfc0d5f9896107330a0257bf Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Wed, 18 Dec 2024 08:31:53 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=F0=9F=92=84=20Add=20=20f?= =?UTF-8?q?or=20drm=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NFTBook/Tooltips.vue | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/components/NFTBook/Tooltips.vue diff --git a/src/components/NFTBook/Tooltips.vue b/src/components/NFTBook/Tooltips.vue new file mode 100644 index 000000000..b4270795d --- /dev/null +++ b/src/components/NFTBook/Tooltips.vue @@ -0,0 +1,42 @@ + + + From 75778f644f1d0288122db21ffc5df94e9d8637a0 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Wed, 18 Dec 2024 08:32:15 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=92=84=20Add=20=20for?= =?UTF-8?q?=20mobile=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BottomDialog.vue | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/components/BottomDialog.vue diff --git a/src/components/BottomDialog.vue b/src/components/BottomDialog.vue new file mode 100644 index 000000000..067c42970 --- /dev/null +++ b/src/components/BottomDialog.vue @@ -0,0 +1,46 @@ + + From ae696515f758e0d78cccb5fd9ccdcb23edd7705c Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Wed, 18 Dec 2024 08:37:05 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=F0=9F=92=84=20Implement=20drm=20info=20UI?= =?UTF-8?q?=20to=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Icon/Info.vue | 21 +++++++ .../NFTBook/SpecTableItemAccessMethod.vue | 26 +++++++- src/components/NFTBook/SpecTableValue.vue | 59 ++++++++++++++++++- src/locales/en.json | 4 ++ src/locales/zh-Hant.json | 4 ++ 5 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 src/components/Icon/Info.vue diff --git a/src/components/Icon/Info.vue b/src/components/Icon/Info.vue new file mode 100644 index 000000000..e9c5bd1e4 --- /dev/null +++ b/src/components/Icon/Info.vue @@ -0,0 +1,21 @@ + diff --git a/src/components/NFTBook/SpecTableItemAccessMethod.vue b/src/components/NFTBook/SpecTableItemAccessMethod.vue index 04d6db29f..ad98bef64 100644 --- a/src/components/NFTBook/SpecTableItemAccessMethod.vue +++ b/src/components/NFTBook/SpecTableItemAccessMethod.vue @@ -3,7 +3,12 @@ - + @@ -29,6 +34,25 @@ export default { ? this.$t('nft_details_page_label_access_methods_downloadable') : this.$t('nft_details_page_label_access_methods_web_only'); }, + tooltipsContent() { + return this.isDownloadable + ? { + title: this.$t( + 'nft_details_page_label_access_methods_tooltips_title_drm_free' + ), + text: this.$t( + 'nft_details_page_label_access_methods_tooltips_text_drm_free' + ), + } + : { + title: this.$t( + 'nft_details_page_label_access_methods_tooltips_title_drm' + ), + text: this.$t( + 'nft_details_page_label_access_methods_tooltips_text_drm' + ), + }; + }, }, }; diff --git a/src/components/NFTBook/SpecTableValue.vue b/src/components/NFTBook/SpecTableValue.vue index 9a00a0fa5..54aaf54bc 100644 --- a/src/components/NFTBook/SpecTableValue.vue +++ b/src/components/NFTBook/SpecTableValue.vue @@ -1,9 +1,41 @@ diff --git a/src/locales/en.json b/src/locales/en.json index 572e81ca3..94ca35432 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -668,6 +668,10 @@ "nft_details_page_errormessage_transfer_self": "You cannot send Writing NFT to yourself.", "nft_details_page_label_access_methods": "Access Method", "nft_details_page_label_access_methods_downloadable": "Read online / Download", + "nft_details_page_label_access_methods_tooltips_text_drm": "Refers to eBooks that have digital rights management technology, allowing readers to open and read the content on our site.", + "nft_details_page_label_access_methods_tooltips_title_drm": "DRM Content", + "nft_details_page_label_access_methods_tooltips_text_drm_free": "Refers to eBooks without digital rights management technology, allowing readers to freely download and transfer the eBook to different devices.", + "nft_details_page_label_access_methods_tooltips_title_drm_free": "DRM-Free Content", "nft_details_page_label_access_methods_web_only": "Read Online", "nft_details_page_label_ar_view_in_mobile": "Experience your NFT live", "nft_details_page_label_class_page": "View all events from this content", diff --git a/src/locales/zh-Hant.json b/src/locales/zh-Hant.json index 5471c3a5b..0404f829d 100644 --- a/src/locales/zh-Hant.json +++ b/src/locales/zh-Hant.json @@ -668,6 +668,10 @@ "nft_details_page_errormessage_transfer_self": "不能發送給自己", "nft_details_page_label_access_methods": "閱讀方式", "nft_details_page_label_access_methods_downloadable": "站內閱讀 / 檔案下載", + "nft_details_page_label_access_methods_tooltips_text_drm": "指設有數位版權管理技術的電子書,讀者可以於我們的站內開啟及閱讀內容。", + "nft_details_page_label_access_methods_tooltips_title_drm": "DRM 內容", + "nft_details_page_label_access_methods_tooltips_text_drm_free": "指沒有數位版權管理技術的電子書,讀者可以自由下載和傳輸電子書到不同裝置。", + "nft_details_page_label_access_methods_tooltips_title_drm_free": "不設 DRM 內容", "nft_details_page_label_access_methods_web_only": "站內閱讀", "nft_details_page_label_ar_view_in_mobile": "將你的 NFT 帶到現實", "nft_details_page_label_class_page": "檢視此系列的其他事件", From 14a2c43bd481b84baa1b4f3fdb3781659aa315de Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Fri, 20 Dec 2024 10:53:14 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=92=84=20Fix=20z-index=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NFTBook/SpecTableValue.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NFTBook/SpecTableValue.vue b/src/components/NFTBook/SpecTableValue.vue index 54aaf54bc..e5a75193c 100644 --- a/src/components/NFTBook/SpecTableValue.vue +++ b/src/components/NFTBook/SpecTableValue.vue @@ -3,7 +3,7 @@