hexo-theme-solitude 1.5.11 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.github/logo.svg +44 -10
  2. package/README.md +22 -2
  3. package/README_zh-cn.md +22 -2
  4. package/README_zh-tw.md +22 -2
  5. package/_config.yml +107 -107
  6. package/languages/en.yml +45 -63
  7. package/languages/zh-CN.yml +32 -55
  8. package/languages/zh-TW.yml +32 -55
  9. package/layout/404.pug +1 -1
  10. package/layout/includes/console.pug +5 -5
  11. package/layout/includes/footer.pug +7 -7
  12. package/layout/includes/head/config.pug +15 -9
  13. package/layout/includes/head/opengraph.pug +2 -2
  14. package/layout/includes/head/pwa.pug +6 -6
  15. package/layout/includes/head.pug +1 -1
  16. package/layout/includes/inject/body.pug +0 -4
  17. package/layout/includes/inject/head.pug +1 -2
  18. package/layout/includes/keyboard.pug +1 -1
  19. package/layout/includes/loading.pug +1 -1
  20. package/layout/includes/nav.pug +1 -1
  21. package/layout/includes/sidebar.pug +19 -3
  22. package/layout/includes/widgets/home/banner.pug +1 -1
  23. package/layout/includes/widgets/home/categoryBar.pug +2 -2
  24. package/layout/includes/widgets/home/categoryGroup.pug +0 -1
  25. package/layout/includes/widgets/home/postList.pug +74 -29
  26. package/layout/includes/widgets/home/topGroup.pug +2 -2
  27. package/layout/includes/widgets/nav/group.pug +2 -2
  28. package/layout/includes/widgets/nav/right.pug +1 -1
  29. package/layout/includes/widgets/page/about/award.pug +8 -9
  30. package/layout/includes/widgets/page/about/hobbies.pug +1 -1
  31. package/layout/includes/widgets/page/about/other.pug +1 -1
  32. package/layout/includes/widgets/page/banner.pug +1 -1
  33. package/layout/includes/widgets/page/links/banner.pug +5 -4
  34. package/layout/includes/widgets/page/moments/angle.pug +1 -1
  35. package/layout/includes/widgets/post/award.pug +10 -15
  36. package/layout/includes/widgets/post/copyright.pug +2 -2
  37. package/layout/includes/widgets/post/postMeta.pug +10 -10
  38. package/layout/includes/widgets/randomlink.pug +3 -2
  39. package/layout/includes/widgets/third-party/comments/twikoo.pug +1 -0
  40. package/layout/includes/widgets/third-party/comments/waline.pug +1 -0
  41. package/layout/page.pug +1 -1
  42. package/package.json +1 -1
  43. package/plugins.yml +0 -4
  44. package/scripts/event/cdn.js +6 -11
  45. package/scripts/event/merge_config.js +19 -3
  46. package/scripts/event/welcome.js +2 -2
  47. package/scripts/filter/checkThemeConfig.js +2 -2
  48. package/scripts/filter/default.js +4 -2
  49. package/scripts/filter/lazyload.js +18 -5
  50. package/scripts/filter/randomPosts.js +1 -1
  51. package/scripts/helper/stylus.js +8 -14
  52. package/source/css/{_widgets/_comment → _comments}/index.styl +14 -1
  53. package/source/css/{_widgets/_comment → _comments}/twikoo.styl +3 -0
  54. package/source/css/_global/index.styl +362 -1
  55. package/source/css/_highlight/prismjs/line-number.styl +1 -1
  56. package/source/css/{_widgets/_mixins → _layout}/article-sort.styl +1 -1
  57. package/source/css/_layout/aside.styl +751 -0
  58. package/source/css/_layout/capsule.styl +213 -0
  59. package/source/css/{_widgets/_extra → _layout}/console.styl +7 -6
  60. package/source/css/{_widgets/_mixins → _layout}/footer.styl +1 -0
  61. package/source/css/_layout/fullpage.styl +47 -0
  62. package/source/css/_layout/header.styl +2 -0
  63. package/source/css/_layout/keyboard.styl +60 -0
  64. package/source/css/_layout/pace.styl +40 -0
  65. package/source/css/_layout/rightmenu.styl +79 -0
  66. package/source/css/{_widgets/_mixins → _layout}/sidebar.styl +30 -20
  67. package/source/css/_layout/universe.styl +18 -0
  68. package/source/css/_page/_home/home-top.styl +2 -4
  69. package/source/css/_page/_home/recent-post.styl +407 -170
  70. package/source/css/_page/douban.styl +111 -109
  71. package/source/css/_page/links.styl +5 -5
  72. package/source/css/_page/share.styl +1 -17
  73. package/source/css/{_widgets/_post → _post}/content.styl +13 -3
  74. package/source/css/{_widgets/_post → _post}/tools.styl +3 -9
  75. package/source/css/index.styl +20 -5
  76. package/source/css/third_party/snackbar.min.css +1 -0
  77. package/source/css/{_global/var.styl → var.styl} +7 -1
  78. package/source/img/avatar.png +0 -0
  79. package/source/img/default.png +0 -0
  80. package/source/img/flower.gif +0 -0
  81. package/source/img/pwa/favicon.ico +0 -0
  82. package/source/img/pwa/favicon_128.ico +0 -0
  83. package/source/img/pwa/favicon_16.ico +0 -0
  84. package/source/img/pwa/favicon_256.ico +0 -0
  85. package/source/img/pwa/favicon_32.ico +0 -0
  86. package/source/js/{comment/twikoo_commentBarrage.js → commentBarrage/twikoo.js} +0 -6
  87. package/source/js/{comment/waline_commentBarrage.js → commentBarrage/waline.js} +0 -2
  88. package/source/js/main.js +73 -71
  89. package/source/js/utils.js +1 -1
  90. package/layout/includes/recent-posts.pug +0 -9
  91. package/layout/includes/widgets/rightside/index.pug +0 -87
  92. package/source/css/_layout/basic.styl +0 -308
  93. package/source/css/_layout/index.styl +0 -125
  94. package/source/css/_widgets/_aside/allinfo.styl +0 -168
  95. package/source/css/_widgets/_aside/flip.styl +0 -67
  96. package/source/css/_widgets/_aside/index.styl +0 -90
  97. package/source/css/_widgets/_aside/info.styl +0 -263
  98. package/source/css/_widgets/_aside/newPost.styl +0 -61
  99. package/source/css/_widgets/_aside/toc.styl +0 -108
  100. package/source/css/_widgets/_aside/welcome.styl +0 -14
  101. package/source/css/_widgets/_extra/fullpage.styl +0 -46
  102. package/source/css/_widgets/_extra/music.styl +0 -218
  103. package/source/css/_widgets/_extra/pace.styl +0 -39
  104. package/source/css/_widgets/_extra/rightmenu.styl +0 -78
  105. package/source/css/_widgets/_mixins/keyboard.styl +0 -59
  106. package/source/css/_widgets/index.styl +0 -56
  107. package/source/img/logo.png +0 -0
  108. package/source/js/rightside.js +0 -221
  109. /package/source/css/{_widgets/_comment → _comments}/waline.styl +0 -0
  110. /package/source/css/{_widgets/_mixins → _layout}/other.styl +0 -0
  111. /package/source/css/{_widgets/_post → _post}/commentBarrage.styl +0 -0
  112. /package/source/css/{_widgets/_post → _post}/copyright.styl +0 -0
  113. /package/source/css/{_widgets/_post → _post}/index.styl +0 -0
  114. /package/source/css/{_widgets/_post → _post}/meta.styl +0 -0
  115. /package/source/css/{_widgets/_post → _post}/pagination.styl +0 -0
  116. /package/source/css/{_widgets/_post → _post}/postAI.styl +0 -0
  117. /package/source/css/{_widgets/_post → _post}/relatedPost.styl +0 -0
  118. /package/source/css/{_widgets/_search → _search}/algolia-search.styl +0 -0
  119. /package/source/css/{_widgets/_search → _search}/local-search.styl +0 -0
  120. /package/source/css/{_widgets/_tags → _tags}/button.styl +0 -0
  121. /package/source/css/{_widgets/_tags → _tags}/checkbox.styl +0 -0
  122. /package/source/css/{_widgets/_tags → _tags}/fold.styl +0 -0
  123. /package/source/css/{_widgets/_tags → _tags}/gallery.styl +0 -0
  124. /package/source/css/{_widgets/_tags → _tags}/index.styl +0 -0
  125. /package/source/css/{_widgets/_tags → _tags}/label.styl +0 -0
  126. /package/source/css/{_widgets/_tags → _tags}/link.styl +0 -0
  127. /package/source/css/{_widgets/_tags → _tags}/media.styl +0 -0
  128. /package/source/css/{_widgets/_tags → _tags}/mermaid.styl +0 -0
  129. /package/source/css/{_widgets/_tags → _tags}/note.styl +0 -0
  130. /package/source/css/{_widgets/_tags → _tags}/span.styl +0 -0
  131. /package/source/css/{_widgets/_tags → _tags}/tabs.styl +0 -0
  132. /package/source/css/{_widgets/_tags → _tags}/timeline.styl +0 -0
  133. /package/source/js/{lately.min.js → third_party/lately.min.js} +0 -0
  134. /package/source/js/{sco-ai.min.js → third_party/sco-ai.min.js} +0 -0
  135. /package/source/js/{universe.min.js → third_party/universe.min.js} +0 -0
  136. /package/source/js/{waterfall.min.js → third_party/waterfall.min.js} +0 -0
@@ -1,125 +1,127 @@
1
- #article-container
2
- .hexo-douban-items
3
- display flex
4
- flex-wrap wrap
5
- gap 12px
6
- flex-direction row
7
-
8
- .hexo-douban-item
9
- position relative
10
- width calc(100% / 4 - 9px)
11
- border-radius 12px
12
- border var(--style-border)
13
- box-shadow var(--efu-shadow-border)
14
- background var(--efu-card-bg)
15
- transition .3s
16
- animation slide-in 0.6s 0.3s backwards
17
- border var(--style-border)
18
- margin 8px 0
19
- height 160px
20
- min-height 160px !important
21
- overflow hidden
22
-
23
- +maxWidth1200()
24
- width calc(100% / 3 - 9px)
25
-
26
- +maxWidth899()
27
- width calc(100% / 2 - 9px)
28
-
29
- +maxWidth600()
30
- width 100%
1
+ .hexo-douban-items
2
+ display flex
3
+ flex-wrap wrap
4
+ gap 12px
5
+ flex-direction row
6
+
7
+ .hexo-douban-comment
8
+ display none
9
+
10
+ .hexo-douban-item
11
+ position relative
12
+ width calc(100% / 4 - 9px)
13
+ border-radius 12px
14
+ border var(--style-border)
15
+ box-shadow var(--efu-shadow-border)
16
+ background var(--efu-card-bg)
17
+ transition .3s
18
+ animation slide-in 0.6s 0.3s backwards
19
+ border var(--style-border)
20
+ margin 8px 0
21
+ height 160px
22
+ min-height 160px !important
23
+ overflow hidden
31
24
 
32
- &:hover
33
- border-color var(--efu-main)
25
+ +maxWidth1200()
26
+ width calc(100% / 3 - 9px)
34
27
 
35
- .hexo-douban-picture
36
- width 120px
37
- height 100%
38
- top 0
39
- padding 10px
40
-
41
- img
42
- margin 0
43
- height 100%
44
- max-width 100%
45
- border-radius 6px
46
-
47
- .hexo-douban-info
48
- display flex
49
- flex-wrap wrap
50
- align-content flex-start
28
+ +maxWidth899()
29
+ width calc(100% / 2 - 9px)
30
+
31
+ +maxWidth600()
32
+ width 100%
33
+
34
+ &:hover
35
+ border-color var(--efu-main)
36
+
37
+ .hexo-douban-picture
38
+ width 120px
39
+ height 100%
40
+ top 0
41
+ padding 10px
42
+
43
+ img
44
+ margin 0
51
45
  height 100%
52
- position relative
46
+ max-width 100%
47
+ border-radius 6px
48
+
49
+ .hexo-douban-info
50
+ display flex
51
+ flex-wrap wrap
52
+ align-content flex-start
53
+ height 100%
54
+ position relative
53
55
 
54
- .hexo-douban-rating
55
- position absolute
56
- bottom 5px
57
- line-height 16px
56
+ .hexo-douban-rating
57
+ position absolute
58
+ bottom 5px
59
+ line-height 16px
58
60
 
59
- .hexo-douban-meta
60
- display -webkit-box
61
- overflow hidden
62
- -webkit-box-orient vertical
61
+ .hexo-douban-meta
62
+ display -webkit-box
63
+ overflow hidden
64
+ -webkit-box-orient vertical
63
65
 
64
- +maxWidth1300()
65
- -webkit-line-clamp 3!important
66
+ +maxWidth1300()
67
+ -webkit-line-clamp 3 !important
66
68
 
67
- +maxWidth899()
68
- -webkit-line-clamp 4!important
69
+ +maxWidth899()
70
+ -webkit-line-clamp 4 !important
69
71
 
70
- .hexo-douban-title
71
- transition all .2s ease 0s
72
- white-space nowrap
73
- overflow hidden
74
- text-overflow ellipsis
75
- width 100%
72
+ .hexo-douban-title
73
+ transition all .2s ease 0s
74
+ white-space nowrap
75
+ overflow hidden
76
+ text-overflow ellipsis
77
+ width 100%
76
78
 
77
- a
78
- border-bottom 0
79
+ a
80
+ border-bottom 0
79
81
 
80
- &:hover
81
- background none
82
- color var(--efu-main)
82
+ &:hover
83
+ background none
84
+ color var(--efu-main)
83
85
 
84
- .hexo-douban-pagination
85
- margin-top 1.25rem
86
- animation slide-in 0.6s 0.3s backwards
86
+ .hexo-douban-pagination
87
+ margin-top 1.25rem
88
+ animation slide-in 0.6s 0.3s backwards
87
89
 
88
- .hexo-douban-button
89
- background var(--efu-card-bg)
90
- height 2rem
91
- line-height calc(2rem - 2px)
92
- border-radius 8px !important
93
- margin 0 0.3rem
94
- padding 6px 12px
95
- box-shadow var(--efu-shadow-border)
96
- border var(--style-border)
97
- transition 0.3s
98
- display inline-flex
99
- align-items center
100
-
101
- &:hover
102
- background var(--efu-main)
103
-
104
- .hexo-douban-tabs
105
- white-space nowrap
106
- overflow hidden
107
- display flex
108
- padding 0.4rem 1rem 0.4rem 1rem
90
+ .hexo-douban-button
109
91
  background var(--efu-card-bg)
110
- border-radius 12px
92
+ height 2rem
93
+ line-height calc(2rem - 2px)
94
+ border-radius 8px !important
95
+ margin 0 0.3rem
96
+ padding 6px 12px
97
+ box-shadow var(--efu-shadow-border)
111
98
  border var(--style-border)
112
- animation slide-in 0.6s 0.3s backwards
99
+ transition 0.3s
100
+ display inline-flex
101
+ align-items center
113
102
 
114
103
  &:hover
115
- border-color var(--efu-main)
116
-
117
- a
118
- padding 0.1rem 0.5rem
119
- margin-right 6px
120
- font-weight 700
121
- border-radius 8px !important
122
- border-bottom 0
123
-
124
- .hexo-douban-tab-active
125
- background var(--efu-main)
104
+ background var(--efu-main)
105
+
106
+ .hexo-douban-tabs
107
+ white-space nowrap
108
+ overflow hidden
109
+ display flex
110
+ padding 0.4rem 1rem 0.4rem 1rem
111
+ background var(--efu-card-bg)
112
+ border-radius 12px
113
+ border var(--style-border)
114
+ animation slide-in 0.6s 0.3s backwards
115
+
116
+ &:hover
117
+ border-color var(--efu-main)
118
+
119
+ a
120
+ padding 0.1rem 0.5rem
121
+ margin-right 6px
122
+ font-weight 700
123
+ border-radius 8px !important
124
+ border-bottom 0
125
+
126
+ .hexo-douban-tab-active
127
+ background var(--efu-main)
@@ -28,7 +28,7 @@
28
28
  top 0
29
29
  width 100px
30
30
  height 50px
31
- background-image -webkit-linear-gradient(0deg,rgba(255,255,255,0),rgba(255,255,255,.5),rgba(255,255,255,0))
31
+ background-image -webkit-linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0))
32
32
  animation light_tag 4s both infinite
33
33
 
34
34
  &.vip
@@ -73,7 +73,6 @@
73
73
  width calc(50% - 16px)
74
74
 
75
75
  .img
76
- -webkit-mask-image -webkit-radial-gradient(center, #fff, #000)
77
76
  border-radius 0
78
77
  height 120px
79
78
  width 100%
@@ -81,7 +80,6 @@
81
80
  border none
82
81
  padding 0
83
82
  transition all .3s ease 0s
84
- background #f6f6f6
85
83
  overflow hidden
86
84
 
87
85
  img
@@ -114,6 +112,7 @@
114
112
  height 20px
115
113
  min-width 20px
116
114
  min-height 20px
115
+ transform scale(1.1)
117
116
  background var(--efu-secondbg)
118
117
 
119
118
  .site-card-text
@@ -147,15 +146,17 @@
147
146
  &:hover
148
147
  border var(--style-border-hover)
149
148
  box-shadow var(--efu-shadow-main)
149
+ background var(--efu-main)
150
150
 
151
151
  .site-card-tag
152
152
  left: -60px
153
153
 
154
154
  .img
155
- transform scale(1.1)
155
+ transform scale(1)
156
156
  filter brightness(.3)
157
157
  border-radius 12px
158
158
  background var(--efu-lighttext)
159
+ background var(--efu-main)
159
160
  +minWidth768()
160
161
  height 80px
161
162
 
@@ -191,7 +192,6 @@
191
192
  padding 0
192
193
  margin 0.5rem -6px 1rem -6px
193
194
  overflow-x hidden
194
- overflow auto
195
195
  text-align center
196
196
 
197
197
  &.mini
@@ -262,20 +262,4 @@ div#banners
262
262
  font-size 1.5rem
263
263
 
264
264
  .banner-button-text
265
- display none
266
-
267
-
268
- p
269
- a
270
- &:not(.headerlink)
271
- text-decoration none
272
- border-bottom 2px dotted var(--efu-lighttext)
273
- color var(--efu-fontcolor)
274
- font-weight 700
275
- padding 0 4px
276
- border-radius 4px 4px 0 0
277
-
278
- &:hover
279
- color var(--efu-white)
280
- border-radius 4px
281
- background var(--efu-main)
265
+ display none
@@ -62,6 +62,19 @@
62
62
 
63
63
  img
64
64
  margin auto
65
+ a
66
+ &:not(.fancybox)
67
+ text-decoration none
68
+ border-bottom 2px dotted var(--efu-lighttext)
69
+ color var(--efu-fontcolor)
70
+ font-weight 700
71
+ padding 0 4px
72
+ border-radius 4px 4px 0 0
73
+
74
+ &:hover
75
+ color var(--efu-white)
76
+ border-radius 4px
77
+ background var(--efu-main)
65
78
 
66
79
  code:not([class*='language-'])
67
80
  color var(--efu-white)
@@ -151,9 +164,6 @@
151
164
  content counter(li, lower-roman)
152
165
  counter-increment li
153
166
 
154
-
155
- // 文章内容样式
156
-
157
167
  &.post-content
158
168
  h1, h2, h3, h4
159
169
  display flex
@@ -108,6 +108,7 @@
108
108
  .reward-title
109
109
  font-weight 700
110
110
  color var(--efu-red)
111
+ text-wrap wrap
111
112
 
112
113
  .reward-group
113
114
  display flex
@@ -119,14 +120,6 @@
119
120
  list-style-type none
120
121
  vertical-align top
121
122
 
122
- &:first-child
123
- img
124
- border-color var(--efu-green)
125
-
126
- &:last-child
127
- img
128
- border-color var(--efu-blue)
129
-
130
123
  img
131
124
  width 130px
132
125
  height 130px
@@ -156,7 +149,7 @@
156
149
  &:hover
157
150
  color var(--efu-white)
158
151
  background var(--efu-red)
159
- background-image url(https://bu.dusays.com/2023/11/01/6541f7aeb5752.gif)
152
+ background-image url(/img/flower.gif)
160
153
  box-shadow var(--efu-shadow-red)
161
154
 
162
155
  .reward-text
@@ -165,6 +158,7 @@
165
158
 
166
159
  .reward-dec
167
160
  font-size .6rem
161
+ text-wrap wrap
168
162
 
169
163
  // rss
170
164
 
@@ -3,15 +3,30 @@
3
3
  if hexo-config('css_prefix')
4
4
  @import 'nib'
5
5
 
6
+ @import "third_party/snackbar.min.css"
6
7
  // project
8
+ @import "var.styl"
7
9
  @import '_global/*'
8
10
  @import '_layout/*'
9
11
  @import '_page/index.styl'
10
-
11
- // widgets
12
- @import '_widgets/index.styl'
13
-
12
+ @import '_post/index.styl'
14
13
  @import '_mode/*'
15
14
 
16
15
  // highlight
17
- @import '_highlight/index'
16
+ @import '_highlight/index'
17
+
18
+ // search
19
+ if hexo-config('search.enable')
20
+ if hexo-config('search.type') == 'algolia'
21
+ @import '_search/algolia-search'
22
+ else if hexo-config('search.type') == 'local'
23
+ @import '_search/local-search'
24
+
25
+ // tags plugin
26
+ @import "_tags/*"
27
+
28
+ // comment
29
+ if hexo-config('comment.enable')
30
+ @import '_comments/index.styl'
31
+ @import '_comments/twikoo.styl' when hexo-config('comment.type') == 'twikoo'
32
+ @import '_comments/waline.styl' when hexo-config('comment.type') == 'waline'
@@ -0,0 +1 @@
1
+ @keyframes snackbar-progress{0%{width:0}to{width:100%}}.snackbar-container{transition:all .5s ease;font-family:Roboto,sans-serif;font-size:14px;position:fixed;align-items:center;line-height:22px;padding:18px 24px;bottom:-100px;top:-100px;opacity:0;z-index:9999;background:var(--efu-lighttext)!important;color:var(--efu-card-bg);border-radius:0;display:flex;justify-content:center;max-width:none;min-width:100%!important;margin:0!important;left:0!important;height:60px;transform:none!important}.snackbar-container p{color:var(--efu-card-bg)!important;font-weight:700!important;text-align:center;font-size:.8rem!important;display:flex;justify-content:center}.snackbar-container .action{display:inline-block;font-size:inherit;margin:0 0 0 24px;min-width:min-content;cursor:pointer;color:var(--efu-card-bg);background:var(--efu-lighttext);padding:4px 6px;font-weight:700;border-radius:8px;transition:.3s;border:var(--style-border)}.snackbar-container .action:hover{background:var(--efu-card-bg);color:var(--efu-lighttext)}.snackbar-container:after{position:absolute;width:0;height:100%;left:0;top:0;background:var(--efu-white);opacity:.1;content:"";animation:snackbar-progress var(--efu-snackbar-time) linear forwards;pointer-events:none}@media (min-width:640px){.snackbar-container{min-width:288px;max-width:568px;display:inline-flex;border-radius:2px;margin:24px}}@media (max-width:640px){.snackbar-container{left:0;right:0;width:100%}}.snackbar-pos.bottom-center{top:auto!important;bottom:0;left:50%;transform:translate(-50%,0)}.snackbar-pos.bottom-left{top:auto!important;bottom:0;left:0}.snackbar-pos.bottom-right{top:auto!important;bottom:0;right:0}.snackbar-pos.top-center,.snackbar-pos.top-left{bottom:auto!important;top:0;left:0}.snackbar-pos.top-center{left:50%;transform:translate(-50%,0)}.snackbar-pos.top-right{bottom:auto!important;top:0;right:0}@media (max-width:640px){.snackbar-pos.bottom-center,.snackbar-pos.top-center{left:0;transform:none}}
@@ -23,4 +23,10 @@ else if hexo-config('highlight.theme') == 'mac'
23
23
  $hl_bg_dark = #1C1E1E
24
24
  $hltools_bg_dark = #454a50
25
25
 
26
- $line-height-code-block = 1.6
26
+ $line-height-code-block = 1.6
27
+
28
+ // font-family
29
+ $font-size = unquote(hexo-config('font.font-size'))
30
+ $code-font-size = unquote(hexo-config('font.code-font-size'))
31
+ $font-family = unquote(hexo-config('font.font-family'))
32
+ $code-font-family = unquote(hexo-config('font.code-font-family'))
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -102,15 +102,9 @@ function initializeCommentBarrage() {
102
102
  const commentBarrageSwitch = localStorage.getItem("commentBarrageSwitch");
103
103
  if (commentBarrageSwitch != null) {
104
104
  document.querySelector(".comment-barrage").style.display = "flex";
105
- if (GLOBAL_CONFIG.rightside.enable) {
106
- document.querySelector(".menu-commentBarrage-text").textContent = "关闭热评";
107
- }
108
105
  document.querySelector("#consoleCommentBarrage").classList.add("on");
109
106
  } else {
110
107
  document.querySelector(".comment-barrage").style.display = "none";
111
- if (GLOBAL_CONFIG.rightside.enable) {
112
- document.querySelector(".menu-commentBarrage-text").textContent = "显示热评";
113
- }
114
108
  document.querySelector("#consoleCommentBarrage").classList.remove("on");
115
109
  }
116
110
  const comments = await this.fetchComments();
@@ -108,11 +108,9 @@ function initializeCommentBarrage() {
108
108
 
109
109
  if (localStorage.getItem("commentBarrageSwitch") != null) {
110
110
  commentBarrage.style.display = "flex";
111
- GLOBAL_CONFIG.rightside.enable && (menuCommentBarrageText.textContent = "关闭热评");
112
111
  consoleCommentBarrage.classList.add("on");
113
112
  } else {
114
113
  commentBarrage.style.display = "none";
115
- GLOBAL_CONFIG.rightside.enable && (menuCommentBarrageText.textContent = "显示热评");
116
114
  consoleCommentBarrage.classList.remove("on");
117
115
  }
118
116