hexo-theme-solitude 1.8.13 → 1.9.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.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  一款优雅的 Hexo 主题,支持懒加载、PWA、Latex以及多种评论系统。
10
10
 
11
- 主题由 [@张洪Heo](https://github.com/zhheo) 作者全权授权、设计!
11
+ 主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
12
12
 
13
13
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?logo=npm)
14
14
  ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
@@ -38,7 +38,7 @@
38
38
  [![gitee](https://img.shields.io/badge/Gitee-red?logo=gitee)](https://gitee.com/nsjjd_w/hexo-theme-solitude)
39
39
  [![gitlab](https://img.shields.io/badge/GitLab-blue?logo=gitlab)](https://gitlab.com/efu/hexo-theme-solitude)
40
40
 
41
- [预览](https://www.efu.me/) 丨 [文档](https://solitude-docs.efu.me/)
41
+ [预览](https://www.efu.me/) 丨 [文档](https://docs.efu.me/)
42
42
 
43
43
  </div>
44
44
 
@@ -73,7 +73,7 @@
73
73
  theme: solitude
74
74
  ```
75
75
 
76
- 前往 [文档](https://solitude-docs.efu.me/) 获取更多信息。
76
+ 前往 [文档](https://docs.efu.me/) 获取更多信息。
77
77
 
78
78
  ## 赞助者
79
79
 
package/README_en-US.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple comment systems.
10
10
 
11
- Theme is fully licensed and designed by the author of [@张洪Heo](https://github.com/zhheo)!
11
+ Theme design is fully licensed by [@张洪Heo](https://github.com/zhheo).
12
12
 
13
13
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?color=blue&logo=npm)
14
14
  ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
@@ -38,7 +38,7 @@
38
38
  [![gitee](https://img.shields.io/badge/Gitee-red?logo=gitee)](https://gitee.com/nsjjd_w/hexo-theme-solitude)
39
39
  [![gitlab](https://img.shields.io/badge/GitLab-blue?logo=gitlab)](https://gitlab.com/efu/hexo-theme-solitude)
40
40
 
41
- [Preview](https://efu.me/) 丨 [Documentation](https://solitude-docs.efu.me/)
41
+ [Preview](https://efu.me/) 丨 [Documentation](https://docs.efu.me/)
42
42
 
43
43
  </div>
44
44
 
@@ -73,7 +73,7 @@
73
73
  theme: solitude
74
74
  ```
75
75
 
76
- Check out the [Documentation](https://solitude-docs.efu.me/) for more information.
76
+ Check out the [Documentation](https://docs.efu.me/) for more information.
77
77
 
78
78
  ## Sponsors
79
79
 
package/README_fr.md CHANGED
@@ -9,7 +9,7 @@
9
9
  Un thème Hexo élégant qui prend en charge le chargement paresseux, les PWA, le latex et les systèmes de commentaires
10
10
  multiples.
11
11
 
12
- Le thème se compose de [@张洪Heo](https://github.com/zhheo) Autorisation complète de l’auteur, conception !
12
+ La conception du thème est entièrement autorisée par [@张洪Heo](https://github.comzhheo).
13
13
 
14
14
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?logo=npm)
15
15
  ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
@@ -39,7 +39,7 @@ Le thème se compose de [@张洪Heo](https://github.com/zhheo) Autorisation comp
39
39
  [![gitee](https://img.shields.io/badge/Gitee-red?logo=gitee)](https://gitee.com/nsjjd_w/hexo-theme-solitude)
40
40
  [![gitlab](https://img.shields.io/badge/GitLab-blue?logo=gitlab)](https://gitlab.com/efu/hexo-theme-solitude)
41
41
 
42
- [Aperçu](https://www.efu.me/) 丨 [documentation](https://solitude-docs.efu.me/)
42
+ [Aperçu](https://www.efu.me/) 丨 [documentation](https://docs.efu.me/)
43
43
 
44
44
  </div>
45
45
 
@@ -75,7 +75,7 @@ Le thème se compose de [@张洪Heo](https://github.com/zhheo) Autorisation comp
75
75
  theme: solitude
76
76
  ```
77
77
 
78
- Go to [Docs](https://solitude-docs.efu.me) for more information.
78
+ Go to [Docs](https://docs.efu.me) for more information.
79
79
 
80
80
  ## Sponsors
81
81
 
package/README_ja.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  遅延読み込み、PWA、ラテックス、および複数のコメントシステムをサポートするエレガントなHexoテーマ。
10
10
 
11
- テーマは、 [@张洪Heo](https://github.com/zhheo) 著者の完全な権限、デザイン!
11
+ テーマデザインは [@张洪Heo](https://github.comzhheo) によって完全にライセンスされています。
12
12
 
13
13
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?logo=npm)
14
14
  ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
@@ -38,7 +38,7 @@
38
38
  [![gitee](https://img.shields.io/badge/Gitee-red?logo=gitee)](https://gitee.com/nsjjd_w/hexo-theme-solitude)
39
39
  [![gitlab](https://img.shields.io/badge/GitLab-blue?logo=gitlab)](https://gitlab.com/efu/hexo-theme-solitude)
40
40
 
41
- [プレビュー](https://www.efu.me/) 丨 [ドキュメンテーション](https://solitude-docs.efu.me/)
41
+ [プレビュー](https://www.efu.me/) 丨 [ドキュメンテーション](https://docs.efu.me/)
42
42
 
43
43
  </div>
44
44
 
@@ -73,7 +73,7 @@
73
73
  theme: solitude
74
74
  ```
75
75
 
76
- 詳しくは [Docs](https://solitude-docs.efu.me) をご覧ください。
76
+ 詳しくは [Docs](https://docs.efu.me) をご覧ください。
77
77
 
78
78
  ## スポンサー
79
79
 
package/README_zh-Hant.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  一款優雅的 Hexo 主題,支援懶載入、PWA、Latex以及多種評論系統。
10
10
 
11
- 主題由 [@张洪Heo](https://github.com/zhheo) 全權授權、設計!
11
+ 主題設計由 [@张洪Heo](https://github.com/zhheo)全權授權
12
12
 
13
13
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?color=blue&logo=npm)
14
14
  ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
@@ -38,7 +38,7 @@
38
38
  [![gitee](https://img.shields.io/badge/Gitee-red?logo=gitee)](https://gitee.com/nsjjd_w/hexo-theme-solitude)
39
39
  [![gitlab](https://img.shields.io/badge/GitLab-blue?logo=gitlab)](https://gitlab.com/efu/hexo-theme-solitude)
40
40
 
41
- [預覽](https://efu.me/) 丨 [文档](https://solitude-docs.efu.me/)
41
+ [預覽](https://efu.me/) 丨 [文档](https://docs.efu.me/)
42
42
 
43
43
  </div>
44
44
 
@@ -71,7 +71,7 @@
71
71
  theme: solitude
72
72
  ```
73
73
 
74
- 前往 [文檔](https://solitude-docs.efu.me) 獲取更多資訊。
74
+ 前往 [文檔](https://docs.efu.me) 獲取更多資訊。
75
75
 
76
76
  ## 贊助者
77
77
 
package/_config.yml CHANGED
@@ -362,6 +362,17 @@ post:
362
362
  # qcode: https://s3.qjqq.cn/47/661ba900c4bc1.webp!color
363
363
  # url: https://github.com/sponsors/efuo
364
364
  # color: var(--efu-black)
365
+ # 分享按钮,需要是什么哪些按钮,填写后开启
366
+ share:
367
+ enable: false
368
+ list:
369
+ # - qq
370
+ # - weibo
371
+ # - twitter
372
+ # - facebook
373
+ # - telegram
374
+ # - whatsapp
375
+ # - linkedin
365
376
  # 版权中订阅按钮跳转链接,填写地址后开启
366
377
  # Subscription button jump link in copyright
367
378
  rss: # /atom.xml
@@ -660,6 +671,23 @@ search:
660
671
  preload: false
661
672
  CDN:
662
673
 
674
+ # Post Chat AI
675
+ # 后台地址:https://ai.tianli0.top/?InviteID=OZ3Z0V2R
676
+ tianli_talk:
677
+ enable: false
678
+ title: 智能客服与搜索
679
+ key: # https://ai.tianli0.top/?InviteID=OZ3Z0V2R
680
+ # 默认值
681
+ # backgroundColor: "var(--efu-main)",
682
+ # bottom: "60px",
683
+ option: #https://ai.tianli0.top/codeMaker.html
684
+ # defaultInput: false
685
+ # upLoadWeb: true
686
+ # userTitle: Efu Chat
687
+ # userDesc: 你好,我是 Efu 的智能客服,有什么可以帮助你的?
688
+ # showInviteLink: 'https://ai.tianli0.top/?InviteID=OZ3Z0V2R'
689
+ # blackDom:
690
+ # - .aplayer
663
691
  # 文章摘要AI
664
692
  # post abstract AI
665
693
  post_ai:
@@ -867,8 +895,6 @@ CDN:
867
895
  # twikoo:
868
896
  # waline_js:
869
897
  # waline_css:
870
- # sharejs:
871
- # sharejs_css:
872
898
  # katex:
873
899
  # katex_copytex:
874
900
  # lazyload:
@@ -27,7 +27,7 @@ include ../head/pwa.pug
27
27
 
28
28
  script.
29
29
  console.log(
30
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.8.13",
30
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.9.1",
31
31
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
32
32
  "padding: 5px 10px;color:white;background:#3e9f50;",
33
33
  "padding: 5px 10px;color:white;background:#0084ff;",
@@ -45,6 +45,10 @@ html(lang=config.language, data-theme="light")
45
45
  // search
46
46
  include ./widgets/third-party/search/index.pug
47
47
 
48
+ // Tianli-Talk
49
+ if theme.tianli_talk.enable
50
+ include ./widgets/third-party/tianli-talk.pug
51
+
48
52
  // music
49
53
  if theme.capsule.enable
50
54
  include ./widgets/third-party/music.pug
@@ -2,29 +2,17 @@
2
2
  - var noSticky, Sticky, customNoSticky, customSticky;
3
3
  if(is_home())
4
4
  - noSticky = theme.aside.home.noSticky.split(',')
5
- - customNoSticky = site.data.aside?.home?.noSticky
6
- - customSticky = site.data.aside?.home?.Sticky
7
5
  - Sticky = theme.aside.home.Sticky.split(',')
8
6
  else if(is_post())
9
7
  - noSticky = theme.aside.post.noSticky.split(',')
10
- - customNoSticky = site.data.aside?.post?.noSticky
11
- - customSticky = site.data.aside?.post?.Sticky
12
8
  - Sticky = theme.aside.post.Sticky.split(',')
13
9
  else if(is_page() || is_archive() || is_tag() || is_category())
14
10
  - noSticky = theme.aside.page.noSticky.split(',')
15
- - customNoSticky = site.data.aside?.page?.noSticky
16
- - customSticky = site.data.aside?.page?.Sticky
17
11
  - Sticky = theme.aside.page.Sticky.split(',')
18
12
  each item in noSticky
19
13
  include ./asideSwitch.pug
20
- if customNoSticky
21
- each item in customNoSticky
22
- include ./asideCustom.pug
23
14
  .sticky_layout
24
15
  if page.toc
25
16
  include ./asideToc.pug
26
- if customSticky
27
- each item in customSticky
28
- include ./asideCustom.pug
29
17
  each item in Sticky
30
18
  include ./asideSwitch.pug
@@ -1,6 +1,6 @@
1
- .card-widget(class=item.class_name, id=item.id_name)
1
+ .card-widget(class=item.class, id=item.id)
2
2
  .item-headline
3
3
  i(class=item.icon)
4
- span=item.name
5
- div(class=item.class_content ||'item-content', id=item.id_content, style=item.style_content)
6
- != item.html
4
+ span=item.title
5
+ div(class=item.content_class ||'item-content', id=item.content_id, style=item.content_css)
6
+ != item.content_html
@@ -8,4 +8,8 @@ case item
8
8
  when 'allInfo'
9
9
  include ./asideAllInfo.pug
10
10
  default
11
- include ../../page/default.pug
11
+ - const custom = site.data?.aside?.find((i) => i.name === item)
12
+ if custom
13
+ != partial("includes/widgets/aside/asideCustom", {item: custom}, {cache: true})
14
+ else
15
+ include ../../page/default.pug
@@ -25,4 +25,4 @@
25
25
  a(href=url_for(theme.post.default.copyright.licenurl))
26
26
  | #{theme.post.default.copyright.license}
27
27
  = _p('post.copyright.original_end')
28
- a(href=url_for("/")) #{config.title}
28
+ a(href=url_for("/")) #{config.title}
@@ -0,0 +1,26 @@
1
+ - const {key,option,title} = theme.tianli_talk
2
+
3
+ span.needEndHide#efuTalk(onclick="togglePostChatContainer(); return false;" title=title)
4
+ i.solitude.st-robot-fill
5
+ span.efuTalkTitle=title
6
+
7
+ script.
8
+ var postChatConfig = {
9
+ backgroundColor: "var(--efu-main)",
10
+ bottom: "60px",
11
+ ...!{JSON.stringify(option)}
12
+ };
13
+
14
+ let b = true;
15
+
16
+ document.getElementById('efuTalk').addEventListener('click', function () {
17
+ this.classList.toggle('on');
18
+ let efu = this
19
+ b && setTimeout(() => {
20
+ document.getElementById('close-button').addEventListener('click', function () {
21
+ efu.classList.remove('on');
22
+ })
23
+ }, 0);
24
+ b = false
25
+ });
26
+ script(pjax data-postChat_key=key src="https://ai.tianli0.top/static/public/postChatUser.min.js")
package/layout/post.pug CHANGED
@@ -15,6 +15,28 @@ block content
15
15
  span.tags-punctuation
16
16
  | #{data.name}
17
17
  span.tagsPageCount #{data.length}
18
+ .social-share
19
+ - const path = config.url + url_for(page.path);
20
+ - const encodedPath = encodeURIComponent(path);
21
+ - const encodedTitle = encodeURIComponent(page.title);
22
+ - const encodedDescription = encodeURIComponent(page.description);
23
+ - const encodedIcon = encodeURIComponent(page.cover || theme.site.icon);
24
+ each item in theme.post.share.list || []
25
+ case item
26
+ when 'qq'
27
+ a.social-share-ico.icon-qq(href=`https://connect.qq.com/widget/shareqq/index.html?url=${encodedPath}&title=${encodedTitle}&desc=${encodedDescription}&summary=${encodedDescription}&site=${encodedTitle}&pics=${encodedIcon}` title="QQ")
28
+ when 'weibo'
29
+ a.social-share-ico.icon-weibo(href=`http://service.weibo.com/share/share.php?url=${encodedPath}&title=${encodedTitle}&pic=${encodedIcon}` title="Weibo")
30
+ when 'telegram'
31
+ a.social-share-ico.icon-telegram(href=`https://t.me/share/url?url=${encodedPath}&text=${encodedTitle}` title="Telegram")
32
+ when 'whatsapp'
33
+ a.social-share-ico.icon-whatsapp(href=`https://api.whatsapp.com/send?text=${encodedTitle} ${encodedPath}` title="WhatsApp")
34
+ when 'linkedin'
35
+ a.social-share-ico.icon-linkedin(href=`https://www.linkedin.com/shareArticle?mini=true&url=${encodedPath}&title=${encodedTitle}&summary=${encodedDescription}&source=${encodedTitle}` title="LinkedIn")
36
+ when 'facebook'
37
+ a.social-share-ico.icon-facebook(href=`https://www.facebook.com/sharer/sharer.php?u=${encodedPath}` title="Facebook")
38
+ when 'twitter'
39
+ a.social-share-ico.icon-twitter(href=`https://twitter.com/intent/tweet?url=${encodedPath}&text=${encodedTitle}` title="Twitter")
18
40
  if site.posts.length > 1
19
41
  include includes/widgets/post/postNav
20
42
  if theme.related_post.enable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.8.13",
3
+ "version": "1.9.1",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the efu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -791,52 +791,54 @@ if hexo-config('nav.group')
791
791
  &:after
792
792
  color var(--efu-card-bg)
793
793
 
794
- .back-menu-list-groups
795
- .back-menu-list
796
- display flex
797
- flex-direction row
798
- flex-wrap wrap
799
- width 340px
800
- justify-content space-between
794
+ .back-menu-list
795
+ display flex
796
+ flex-direction row
797
+ flex-wrap wrap
798
+ width 340px
799
+ justify-content space-between
801
800
 
802
- &::before
803
- position absolute
804
- top -15px
805
- left 0
806
- width 100%
807
- height 20px
808
- content ''
801
+ &::before
802
+ position absolute
803
+ top -15px
804
+ left 0
805
+ width 100%
806
+ height 20px
807
+ content ''
809
808
 
810
- .back-menu-item
811
- display flex
812
- align-items center
813
- margin 4px 8px
814
- padding 4px 8px
809
+ .back-menu-item
810
+ display flex
811
+ align-items center
812
+ margin 4px 8px
813
+ padding 4px 8px
815
814
 
816
- #nav &
817
- padding 4px 8px
815
+ #nav &
816
+ padding 4px 8px
818
817
 
819
- &:hover
820
- background var(--efu-lighttext)
821
- transform scale(1)
818
+ #nav &
819
+ &:hover
820
+ background var(--efu-lighttext)
822
821
 
823
- .back-menu-item-text
824
- color var(--efu-card-bg)
822
+ &:hover
823
+ background var(--efu-lighttext)
825
824
 
826
- .back-menu-item-icon
827
- width 24px
828
- height 24px
829
- border-radius 8px
830
- background var(--efu-none)
825
+ .back-menu-item-text
826
+ color var(--efu-card-bg)
831
827
 
832
- .back-menu-item-text
833
- font-size 16px
834
- transition .3s
835
- margin-left .5rem
836
- color var(--efu-fontcolor)
828
+ .back-menu-item-icon
829
+ width 24px
830
+ height 24px
831
+ border-radius 8px
832
+ background var(--efu-none)
837
833
 
838
- +maxWidth768()
839
- font-size 14px
834
+ .back-menu-item-text
835
+ font-size 16px
836
+ transition .3s
837
+ margin-left .5rem
838
+ color var(--efu-fontcolor)
839
+
840
+ +maxWidth768()
841
+ font-size 14px
840
842
 
841
843
  .page
842
844
  #nav
@@ -61,4 +61,8 @@ if $about
61
61
  +minWidth768()
62
62
  .needEndHide.hide
63
63
  bottom -200px !important
64
- opacity 0
64
+ opacity 0
65
+
66
+ +maxWidth768()
67
+ .needEndHide
68
+ display none!important
@@ -84,4 +84,4 @@
84
84
  background-color var(--efu-main)
85
85
  color var(--efu-white)
86
86
  cursor pointer
87
- border-radius 4px
87
+ border-radius 4px
@@ -191,6 +191,7 @@
191
191
  display flex
192
192
  align-items center
193
193
  flex-direction row
194
+ justify-content space-between
194
195
  flex-wrap wrap
195
196
 
196
197
  .tag_share
@@ -201,10 +202,6 @@
201
202
  flex-wrap wrap
202
203
  flex-direction row
203
204
 
204
- a
205
- margin-bottom 8px
206
- margin-right 8px
207
-
208
205
  .post-meta__tags
209
206
  background var(--efu-card-bg)
210
207
  border var(--style-border-always)
@@ -240,4 +237,112 @@
240
237
  text-align center
241
238
  font-size .6rem
242
239
  color var(--efu-fontcolor)
243
- margin-left 4px
240
+ margin-left 4px
241
+ if hexo-config('post.share.enable')
242
+ /.social-share *
243
+ font-family solitude
244
+ /.social-share
245
+ display: flex;
246
+ justify-content: center;
247
+ margin 10px 0
248
+
249
+ +maxWidth768()
250
+ flex-wrap wrap
251
+
252
+ .social-share-ico
253
+ margin: 0 4px
254
+ width: 1.85em
255
+ height: 1.85em
256
+ font-size: 1.2em
257
+ line-height: 1.85em
258
+ border 1px solid
259
+ position: relative
260
+ display: inline-block;
261
+ border-radius 50%
262
+ text-align: center;
263
+ vertical-align: middle;
264
+ transition: background 0.6s ease-out 0s;
265
+ cursor pointer
266
+
267
+ &:hover
268
+ transition all .3s
269
+ color var(--efu-white)
270
+
271
+ .icon-qq
272
+ color #56b6e7
273
+ border-color #56b6e7
274
+
275
+ &:hover
276
+ background-color #56b6e7
277
+
278
+ &::before
279
+ content "\e0d0"
280
+
281
+ .icon-wechat
282
+ color #57bd6a
283
+ border-color #57bd6a
284
+
285
+ &::before
286
+ content "\e0d2"
287
+
288
+ &:hover
289
+ background-color #57bd6a
290
+
291
+ .icon-weibo
292
+ color #d44040
293
+ border-color #d44040
294
+
295
+ &::before
296
+ content "\e0e3"
297
+
298
+ &:hover
299
+ background-color #d44040
300
+
301
+ .icon-facebook
302
+ color #415dc9
303
+ border-color #415dc9
304
+
305
+ &::before
306
+ content "\e0e6"
307
+
308
+ &:hover
309
+ background-color #415dc9
310
+
311
+ .icon-twitter
312
+ color #56b6e7
313
+ border-color #56b6e7
314
+
315
+ &::before
316
+ content "\e0c1"
317
+
318
+ &:hover
319
+ background-color #56b6e7
320
+
321
+ .icon-telegram
322
+ color #56b6e7
323
+ border-color #56b6e7
324
+
325
+ &::before
326
+ content "\e062"
327
+
328
+ &:hover
329
+ background-color #56b6e7
330
+
331
+ .icon-linkedin
332
+ color #0077b5
333
+ border-color #0077b5
334
+
335
+ &::before
336
+ content "\e0ed"
337
+
338
+ &:hover
339
+ background-color #0077b5
340
+ .icon-whatsapp
341
+ color #25d366
342
+ border-color #25d366
343
+
344
+ &::before
345
+ content "\e0f0"
346
+
347
+ &:hover
348
+ background-color #25d366
@@ -101,6 +101,12 @@
101
101
  padding 4px
102
102
  position relative
103
103
 
104
+ +maxWidth1200()
105
+ width 32.97%
106
+
107
+ +maxWidth768()
108
+ width 49.97%
109
+
104
110
  img
105
111
  max-width: 100%;
106
112
  border-radius: 0;
@@ -27,4 +27,8 @@ if hexo-config('search.enable')
27
27
 
28
28
  // comment
29
29
  if hexo-config('comment.use')
30
- @import '_comments/comment.styl'
30
+ @import '_comments/comment.styl'
31
+
32
+ // third party
33
+ if hexo-config('tianli_talk.enable')
34
+ @import 'third_party/tianli_talk.styl'
@@ -0,0 +1,62 @@
1
+ #efuTalk
2
+ display flex
3
+ align-items center
4
+ z-index 1001
5
+ position fixed
6
+ bottom 70px
7
+ left 20px
8
+ height 38px
9
+ cursor pointer
10
+ transition .3s
11
+ box-shadow var(--efu-shadow-border)
12
+ background var(--efu-card-bg)
13
+ border-radius 20px
14
+ overflow hidden
15
+ padding 8px
16
+ color var(--efu-fontcolor)
17
+ width 42px
18
+ border var(--style-border-always)
19
+
20
+ #efuTalk.on, #efuTalk:hover
21
+ background var(--efu-lighttext)
22
+ color var(--efu-card-bg)
23
+ width 159px
24
+ border-color var(--efu-lighttext)
25
+
26
+ #efuTalk span.efuTalkTitle
27
+ display flex
28
+ font-size 14px
29
+ padding 0 12px
30
+ line-height 1
31
+ white-space nowrap
32
+ opacity 0
33
+ transition .3s
34
+
35
+ #postChat_iframeContainer
36
+ z-index 1000
37
+ border var(--style-border-always)
38
+ background var(--efu-card-bg)
39
+ animation to_show_fromLeftBottom .2s ease-out
40
+ border-radius 12px
41
+
42
+ #efuTalk.on span.efuTalkTitle, #efuTalk:hover span.efuTalkTitle
43
+ color var(--efu-card-bg)
44
+ opacity 1
45
+
46
+ #postChat_button
47
+ display none!important
48
+
49
+ #efuTalk i.solitude.efuTalkIcon
50
+ width 18px
51
+ height 18px
52
+ font-size 18px
53
+ margin-left 3px
54
+ line-height 1
55
+
56
+ @keyframes to_show_fromLeftBottom
57
+ from
58
+ opacity 0
59
+ transform scale(0)
60
+ to
61
+ opacity 1
62
+ transform scale(1)
@@ -111,7 +111,6 @@ window.oncontextmenu = (ele) => {
111
111
  let x = ele.clientX + 10;
112
112
  let y = ele.clientY;
113
113
  Array.from(rm.menuItems.other).forEach(item => item.style.display = 'block');
114
-
115
114
  rm.globalEvent = ele
116
115
 
117
116
  let display = false
@@ -174,7 +173,7 @@ window.oncontextmenu = (ele) => {
174
173
  return false;
175
174
  }
176
175
 
177
- (function() {
176
+ (function () {
178
177
  const addEventListener = (element, event, handler) => element.addEventListener(event, handler);
179
178
 
180
179
  addEventListener(rm.menuItems.back, 'click', () => window.history.back() || rm.hideRightMenu());
@@ -212,7 +211,7 @@ window.oncontextmenu = (ele) => {
212
211
  rm.hideRightMenu();
213
212
  });
214
213
 
215
- if(utils.saveToLocal.get('commentBarrageSwitch') !== null){
214
+ if (utils.saveToLocal.get('commentBarrageSwitch') !== null) {
216
215
  rm.menuItems.barrage && rm.barrage(!utils.saveToLocal.get('commentBarrageSwitch'));
217
216
  }
218
217
 
@@ -221,6 +220,7 @@ window.oncontextmenu = (ele) => {
221
220
  addEventListener(rm.menuItems.new, 'click', () => window.open(rm.domhref) && rm.hideRightMenu());
222
221
  addEventListener(rm.menuItems.downloadImg, 'click', () => rm.downloadImage() && rm.hideRightMenu());
223
222
  addEventListener(rm.menuItems.copyImg, 'click', () => rm.copyImage() && rm.hideRightMenu());
223
+ addEventListener(rm.menuItems.copyLink, 'click', () => rm.copyText(rm.domhref) && rm.hideRightMenu());
224
224
  })();
225
225
 
226
226
  is_rm = true