From e69e1805af7f050adbc5aade4cce4cb03becc997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Tue, 1 Oct 2024 11:28:59 +0800 Subject: [PATCH 01/17] =?UTF-8?q?=F0=9F=94=A5=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9C=80=E8=BF=91=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 15 ++++++--------- .../third-party/news-comment/newest-comment.pug | 2 +- source/css/_layout/aside.styl | 2 +- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/_config.yml b/_config.yml index 72fee518..a86ab073 100644 --- a/_config.yml +++ b/_config.yml @@ -169,15 +169,6 @@ aside: backcolor: "var(--efu-blue)" # Background color # --------------------------- end --------------------------- - # --------------------------- start --------------------------- - # recent comments(⚠️ Comments need to be configured first.) - # 最新评论(⚠️ 需要先配置评论) - newest_comment: - enable: true - storage: .5 # 缓存时间 1: 1天 / .5 : 半天 / Cache time 1: 1 day .5 : half a day - limit: 5 # 评论数 / Number of comments - # --------------------------- end --------------------------- - # --------------------------- start --------------------------- # article table of contents # 文章目录 @@ -727,6 +718,12 @@ comment: enable: false # Number of hot comments count: 3 + # recent comments(⚠️ Comments need to be configured first.) + # 最新评论(⚠️ 需要先配置评论) + newest_comment: + enable: true + storage: .5 # 缓存时间 1: 1天 / .5 : 半天 / Cache time 1: 1 day .5 : half a day + limit: 5 # 评论数 / Number of comments # Twikoo: https://solitude.js.org/comment/twikoo twikoo: # https://twikoo.js.org/ envId: # url: https://twikoo.sondy.top/ diff --git a/layout/includes/widgets/third-party/news-comment/newest-comment.pug b/layout/includes/widgets/third-party/news-comment/newest-comment.pug index e05fec87..806d0484 100644 --- a/layout/includes/widgets/third-party/news-comment/newest-comment.pug +++ b/layout/includes/widgets/third-party/news-comment/newest-comment.pug @@ -1,4 +1,4 @@ -- var limit = theme.aside.newest_comment.limit ? theme.aside.newest_comment.limit : 5 +- var limit = theme.comment.newest_comment.limit ? theme.comment.newest_comment.limit : 5 if theme.comment.use case theme.comment.use[0] when 'Twikoo' diff --git a/source/css/_layout/aside.styl b/source/css/_layout/aside.styl index 12f125cc..aaf23b3c 100644 --- a/source/css/_layout/aside.styl +++ b/source/css/_layout/aside.styl @@ -1040,7 +1040,7 @@ backcolor = convert(hexo-config('aside.flip.backcolor')) .card-widget.card-adsense padding 0 -if hexo-config('aside.newest_comment.enable') +if hexo-config('comment.newest_comment.enable') .card-recent-comment .recent-comment-more margin-left auto From 9bb0ba32c72fed8c4be29f9a8de19f750064b750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Tue, 1 Oct 2024 11:45:13 +0800 Subject: [PATCH 02/17] =?UTF-8?q?=F0=9F=94=A5=20=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E4=BF=A1=E6=81=AF=E6=97=A0=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_post/meta.styl | 1 + 1 file changed, 1 insertion(+) diff --git a/source/css/_post/meta.styl b/source/css/_post/meta.styl index cb890bcf..41c0cc0e 100644 --- a/source/css/_post/meta.styl +++ b/source/css/_post/meta.styl @@ -263,6 +263,7 @@ cursor pointer transition .3s border-radius 12px + padding: 8px &:hover opacity 1 From b4278653ff444a51973a2d0357e08a765fb66f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Tue, 1 Oct 2024 16:08:09 +0800 Subject: [PATCH 03/17] =?UTF-8?q?=F0=9F=94=A5=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=9F=B3=E4=B9=90=E8=83=B6=E5=9B=8A=EF=BC=88#395=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/js/main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/js/main.js b/source/js/main.js index 85e26887..27ddbd22 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -151,14 +151,14 @@ const sco = { } }, musicToggle() { - const $music = document.querySelector('#nav-music'); - const $meting = document.querySelector('meting-js'); - const $console = document.getElementById('consoleMusic'); - const $rm_text = document.querySelector('#menu-music-toggle span'); - const $rm_icon = document.querySelector('#menu-music-toggle i'); + const $music = document.querySelector('#nav-music') || null; + const $meting = document.querySelector('meting-js') || null; + const $console = document.getElementById('consoleMusic') || null; + const $rm_text = document.querySelector('#menu-music-toggle span') || null; + const $rm_icon = document.querySelector('#menu-music-toggle i') || null; this.musicPlaying = !this.musicPlaying; $music.classList.toggle("playing", this.musicPlaying); - $console.classList.toggle("on", this.musicPlaying); + $console && $console.classList.toggle("on", this.musicPlaying); if (this.musicPlaying) { $meting.aplayer.play(); (typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.stop) && ($rm_icon.className = 'solitude fas fa-pause') From 0b46e8669f30f753bcc6c436ad5409d7379d43e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Tue, 1 Oct 2024 17:50:34 +0800 Subject: [PATCH 04/17] =?UTF-8?q?=F0=9F=94=A5=20=E5=BE=AE=E6=94=B9rightsid?= =?UTF-8?q?e=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_layout/aside.styl | 2 +- source/css/_layout/rightside.styl | 2 +- source/css/_page/equipment.styl | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/css/_layout/aside.styl b/source/css/_layout/aside.styl index aaf23b3c..842bd32e 100644 --- a/source/css/_layout/aside.styl +++ b/source/css/_layout/aside.styl @@ -193,7 +193,7 @@ +maxWidth1200() position: fixed right: 3rem - bottom: 2rem + bottom: 10px z-index: 100 max-width: 380px max-height: calc(100% - 60px) diff --git a/source/css/_layout/rightside.styl b/source/css/_layout/rightside.styl index 616065cd..22fe106a 100644 --- a/source/css/_layout/rightside.styl +++ b/source/css/_layout/rightside.styl @@ -2,7 +2,7 @@ if hexo-config('rightside.enable') #rightside position: fixed right: -2.5rem - bottom: 2.5rem + bottom: 20px z-index: 1000 opacity: 0 transition: all .5s diff --git a/source/css/_page/equipment.styl b/source/css/_page/equipment.styl index e5560ca2..4335a9b1 100644 --- a/source/css/_page/equipment.styl +++ b/source/css/_page/equipment.styl @@ -55,7 +55,6 @@ line-height 1 margin-bottom 8px white-space nowrap - overflow hidden text-overflow ellipsis width fit-content From f1a1ffd68596f72d993dc0a4500a00d4a2afb893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Wed, 2 Oct 2024 12:42:38 +0800 Subject: [PATCH 05/17] =?UTF-8?q?=F0=9F=94=A5=20=E4=BF=AE=E5=A4=8Dtabs?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=9C=A8=20fold=20=E4=B8=AD=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_tags/tabs.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/css/_tags/tabs.styl b/source/css/_tags/tabs.styl index 7e215e9f..21247a6e 100644 --- a/source/css/_tags/tabs.styl +++ b/source/css/_tags/tabs.styl @@ -47,7 +47,7 @@ margin 16px 0 0 auto color #99a9bf - margin 1rem 0 !important + margin 1rem 0 border-radius 12px overflow hidden box-shadow var(--efu-shadow-border) From 99ddf482ad1a4572cac9891f805aae449cdf0294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Wed, 2 Oct 2024 12:52:29 +0800 Subject: [PATCH 06/17] =?UTF-8?q?=E2=9C=A8=20=E6=94=AF=E6=8C=81=E5=8D=95?= =?UTF-8?q?=E7=AF=87=E6=96=87=E7=AB=A0=E8=AE=BE=E7=BD=AE=E4=BD=9C=E8=80=85?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/widgets/post/copyright.pug | 6 +++--- source/css/_post/copyright.styl | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/layout/includes/widgets/post/copyright.pug b/layout/includes/widgets/post/copyright.pug index a926b89c..a857d374 100644 --- a/layout/includes/widgets/post/copyright.pug +++ b/layout/includes/widgets/post/copyright.pug @@ -2,9 +2,9 @@ .post-copyright .post-copyright__author_group a.post-copyright__author_img(href=url_for(copyright.author.url)) - img.post-copyright__author_img_front(src=copyright.author.img || theme.site.icon) - .post-copyright__author_name= config.title - .post-copyright__author_desc= config.subtitle + img.post-copyright__author_img_front(src=page.avatar || copyright.author.img || theme.site.icon) + .post-copyright__author_name= page.author || config.title + .post-copyright__author_desc= page.desc || config.subtitle .post-tools#post-tools .post-tools-left #quit-box(onclick="RemoveRewardMask()") diff --git a/source/css/_post/copyright.styl b/source/css/_post/copyright.styl index 608d71b6..cac1f5c0 100644 --- a/source/css/_post/copyright.styl +++ b/source/css/_post/copyright.styl @@ -51,7 +51,8 @@ text-align center font-size 14px color var(--efu-secondtext) - margin-top 4px + margin 4px 10px 0 + line-height 1.5 .post-copyright__notice font-size 12px From 32b4238c6ec0acacd6e0320568acc365561354f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Wed, 2 Oct 2024 12:59:34 +0800 Subject: [PATCH 07/17] =?UTF-8?q?=F0=9F=94=A5=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=A1=B6=E9=83=A8=E6=A0=B7=E5=BC=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_page/_home/home-top.styl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/css/_page/_home/home-top.styl b/source/css/_page/_home/home-top.styl index a57c4448..20528f38 100644 --- a/source/css/_page/_home/home-top.styl +++ b/source/css/_page/_home/home-top.styl @@ -259,11 +259,6 @@ flex-wrap wrap height 120px - +maxWidth1200() - flex-direction row - left 2rem - height 60px - .banners-link-btn display flex flex-direction row From 2d04bf9e0768c426584df9a59a8721add9f88ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Thu, 3 Oct 2024 16:08:57 +0800 Subject: [PATCH 08/17] =?UTF-8?q?=E2=9C=A8=20=E6=9B=B4=E6=96=B0=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E8=AF=84=E8=AE=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_layout/aside.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/css/_layout/aside.styl b/source/css/_layout/aside.styl index 842bd32e..eee5307c 100644 --- a/source/css/_layout/aside.styl +++ b/source/css/_layout/aside.styl @@ -1060,7 +1060,7 @@ if hexo-config('comment.newest_comment.enable') position: relative &:not(:last-child) - border-bottom 1px dashed rgba(255, 255, 255, .1) + border-bottom var(--style-border-dashed) .thumbnail img width: 60px From c5d11aafa987700615a7054d7f47e39500d54eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Thu, 3 Oct 2024 23:59:20 +0800 Subject: [PATCH 09/17] =?UTF-8?q?=F0=9F=94=A5=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9C=80=E8=BF=91=E8=AF=84=E8=AE=BA=E4=B9=9F=E6=B2=A1=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- languages/zh-CN.yml | 2 +- languages/zh-TW.yml | 2 +- source/css/_page/other.styl | 1 + source/css/_page/recentcomment.styl | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index 1d768451..121c0905 100755 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -114,7 +114,7 @@ aside: back: 欢迎再次回来, sticker: 心情贴纸 newpost: 最近发布 - newcomment: 最新评论 + newcomment: 最近评论 card: posts: '累计文章数:' tags: '标签总数:' diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index 36af9b93..862a5146 100755 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -114,7 +114,7 @@ aside: back: 歡迎再次回來, sticker: 心情貼紙 newpost: 最近發佈 - newcomment: 最新評論 + newcomment: 最近評論 card: posts: '累計文章數:' tags: '標籤總數:' diff --git a/source/css/_page/other.styl b/source/css/_page/other.styl index f0a86241..3ee5c896 100644 --- a/source/css/_page/other.styl +++ b/source/css/_page/other.styl @@ -171,6 +171,7 @@ div#banners color var(--efu-white) overflow hidden margin-top 0 + margin-bottom: 12px .author-content-item flex 4 diff --git a/source/css/_page/recentcomment.styl b/source/css/_page/recentcomment.styl index 74ab62f5..ebdbe35b 100644 --- a/source/css/_page/recentcomment.styl +++ b/source/css/_page/recentcomment.styl @@ -1,7 +1,7 @@ div.console_recentcomments display flex flex-wrap wrap - gap 8px + gap 12px min-height 100px width 100% @@ -15,7 +15,7 @@ div.console_recentcomments cursor pointer transition .3s overflow hidden - gap 8px + gap .5rem display flex flex-direction column From b952700f82a1bca960c72c09e1a90faf28f980b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Fri, 4 Oct 2024 15:12:13 +0800 Subject: [PATCH 10/17] =?UTF-8?q?=E2=9C=A8=20v2.1.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index efea5044..1d928bab 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-solitude", - "version": "2.1.1", + "version": "2.1.2", "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.", "main": "package.json", "scripts": { From 62bb1f4f7d2ae2ba5a6392bc1b290342d87caedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Fri, 4 Oct 2024 17:17:41 +0800 Subject: [PATCH 11/17] =?UTF-8?q?=E2=9C=A8=20=E6=94=AF=E6=8C=81then?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/js/third_party/waterfall.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/third_party/waterfall.min.js b/source/js/third_party/waterfall.min.js index 516d0e5b..8c5468f5 100644 --- a/source/js/third_party/waterfall.min.js +++ b/source/js/third_party/waterfall.min.js @@ -2,4 +2,4 @@ * @license Copyright 2024 Ever Funnel. All rights reserved. * Licensed under the MIT License. */ -function waterfall(t){function e(t,e){var n=window.getComputedStyle(t);return parseFloat(n["margin"+e])||0}function n(t){return t+"px"}function r(t){return parseFloat(t.style.top)||0}function o(t){return parseFloat(t.style.left)||0}function i(t){return t.clientWidth}function l(t){return t.clientHeight}function u(t){return r(t)+l(t)+e(t,"Bottom")}function a(t){return o(t)+i(t)+e(t,"Right")}function s(t){t.sort(function(t,e){var n=u(t),r=u(e);return n===r?o(e)-o(t):r-n})}function f(e){i(t)!==containerWidth&&(window.removeEventListener(e.type,f),waterfall(t))}"string"==typeof t&&(t=document.querySelector(t));var c=Array.from(t.children).map(function(t){return t.style.position="absolute",t});t.style.position="relative";var p=Array.from(t.querySelectorAll("img")),y=p.map(function(t){return new Promise(function(e){t.complete?e():(t.addEventListener("load",e),t.addEventListener("error",e))})});Promise.all(y).then(function(){var r=[];c.length&&(c[0].style.top="0px",c[0].style.left=n(e(c[0],"Left")),r.push(c[0]));for(var l=1;l Date: Fri, 4 Oct 2024 17:18:02 +0800 Subject: [PATCH 12/17] =?UTF-8?q?=E2=9C=A8=20=E6=9B=B4=E6=96=B0ul=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_layout/article-container.styl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/css/_layout/article-container.styl b/source/css/_layout/article-container.styl index 82c50fd7..8bef3890 100644 --- a/source/css/_layout/article-container.styl +++ b/source/css/_layout/article-container.styl @@ -136,13 +136,13 @@ &:before margin 0 - top 0.78em - width 0.42em - height 0.42em - border-radius 0.42em + top .9em + width .2em + height .2em + border-radius 50% background 0 0 content "" - line-height .42em + line-height .2em border 0.21em solid var(--efu-lighttext) background var(--efu-lighttext) From e961852427c50dcebe974a8654709770e870b540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Fri, 4 Oct 2024 17:18:23 +0800 Subject: [PATCH 13/17] =?UTF-8?q?=E2=9C=A8=20=E4=BC=98=E5=8C=96=E5=BC=80?= =?UTF-8?q?=E5=90=AFrightside=E5=90=8E=E5=BC=B9=E5=B9=95=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_post/commentBarrage.styl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/css/_post/commentBarrage.styl b/source/css/_post/commentBarrage.styl index 3db31410..10cba47a 100644 --- a/source/css/_post/commentBarrage.styl +++ b/source/css/_post/commentBarrage.styl @@ -1,7 +1,10 @@ .comment-barrage position fixed bottom 0 - right 20px + if hexo-config('rightside.enable') + right 2.5rem + else + right 20px padding 0 0 20px 10px display none flex-direction column From f2822e0d32f8e98c759c7d8cecef5d4b9330e857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Fri, 4 Oct 2024 17:19:12 +0800 Subject: [PATCH 14/17] =?UTF-8?q?=F0=9F=94=A5=20=E4=BF=AE=E5=A4=8Dgallery?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=BC=93=E6=85=A2=E6=97=B6=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=EF=BC=88#397=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/js/main.js | 7 +++++-- source/js/right_menu.js | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/js/main.js b/source/js/main.js index 27ddbd22..f7989f00 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -169,10 +169,11 @@ const sco = { }, switchCommentBarrage() { let commentBarrageElement = document.querySelector(".comment-barrage"); + let consoleCommentBarrage = document.querySelector("#consoleCommentBarrage"); if (!commentBarrageElement) return; const isDisplayed = window.getComputedStyle(commentBarrageElement).display === "flex"; commentBarrageElement.style.display = isDisplayed ? "none" : "flex"; - document.querySelector("#consoleCommentBarrage").classList.toggle("on", !isDisplayed); + consoleCommentBarrage && consoleCommentBarrage.classList.toggle("on", !isDisplayed); utils.saveToLocal.set("commentBarrageSwitch", !isDisplayed, .2); rm?.menuItems.barrage && rm.barrage(isDisplayed) }, @@ -226,7 +227,9 @@ const sco = { entries.forEach(entry => { if (entry.isIntersecting) { setTimeout(() => { - waterfall(entry.target) || entry.target.classList.add('show'); + waterfall(entry.target).then(() => { + entry.target.classList.add('show'); + }); }, 300); } }); diff --git a/source/js/right_menu.js b/source/js/right_menu.js index 7c716fba..159c9460 100644 --- a/source/js/right_menu.js +++ b/source/js/right_menu.js @@ -175,6 +175,7 @@ window.oncontextmenu = (ele) => { Array.from(display ? rm.menuItems.other : rm.menuItems.plugin).forEach( (item) => (item.style.display = "none") ); + Array.from(display ? rm.menuItems.plugin : rm.menuItems.other).forEach( (item) => (item.style.display = "block") ); From 7848c72d4cc3e0ec62f7ff42eef2bf880ad426a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Sat, 5 Oct 2024 02:05:11 +0800 Subject: [PATCH 15/17] =?UTF-8?q?=F0=9F=94=A5=20=E4=BF=AE=E5=A4=8Dgiscus?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=98=BE=E7=A4=BA=E6=A8=A1=E5=BC=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=88#398=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/js/utils.js | 1 - 1 file changed, 1 deletion(-) diff --git a/source/js/utils.js b/source/js/utils.js index e3b97481..9a2e0199 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -37,7 +37,6 @@ } }, snackbarShow: (text, showAction = false, duration = 5000) => { - document.styleSheets[0].addRule(':root', `--efu-snackbar-time:${duration}ms!important`); Snackbar.show({ text, showAction, From 32511ece31793462522e408063bab5805a4d75d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Sat, 5 Oct 2024 02:06:31 +0800 Subject: [PATCH 16/17] =?UTF-8?q?=E2=9C=A8=20v2.1.2.rc.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d928bab..bcf8899b 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-solitude", - "version": "2.1.2", + "version": "2.1.2.rc.1", "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.", "main": "package.json", "scripts": { From f7d84ae7ce1fbbe9d022eefcd4834f264a745397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=B0=8F=E5=8F=AA=E6=89=98=E5=B0=BC?= Date: Sat, 5 Oct 2024 02:08:07 +0800 Subject: [PATCH 17/17] =?UTF-8?q?=E2=9C=A8=20v2.1.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bcf8899b..1d928bab 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-solitude", - "version": "2.1.2.rc.1", + "version": "2.1.2", "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.", "main": "package.json", "scripts": {