-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #460 from everfu/dev
Dev
- Loading branch information
Showing
19 changed files
with
194 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -553,7 +553,7 @@ footer: | |
author: false # img url / false | ||
left: | ||
# Github: https://github.com/everfu || fab fa-github # 名称: 链接 || 图标 | ||
# Mail: mailto:[email protected] || fab fa-envelope | ||
# Mail: mailto:[email protected] || far fa-envelope | ||
right: | ||
# Bilibili: https://space.bilibili.com/1329819902 || fab fa-bilibili | ||
# Douyin: https://v.douyin.com/iJsLc8jt/ || fab fa-tiktok | ||
|
@@ -998,21 +998,34 @@ CDN: | |
custom_format: https://fastly.jsdelivr.net/npm/${name}@${version}/${min_file} # 自定义格式 | ||
# 直接覆盖默认 CDN 链接(优先级最高) | ||
options: | ||
# algolia_search: | ||
# instantsearch: | ||
# pjax: | ||
# twikoo: | ||
# waline_js: | ||
# waline_css: | ||
# katex: | ||
# katex_copytex: | ||
# lazyload: | ||
# aplayer_css: | ||
# aplayer_js: | ||
# meting_js: | ||
# pace_js: | ||
# swiper_css: | ||
# swiper_js: | ||
# busuanzi_js: | ||
# snackbar_js: | ||
# algolia_search | ||
# aplayer_css | ||
# aplayer_js | ||
# artalk_css | ||
# artalk_js | ||
# blueimp_md5 | ||
# busuanzi_js | ||
# chart_js | ||
# color_thief | ||
# fancyapps_css | ||
# fancyapps_ui | ||
# fontawesome | ||
# instantsearch | ||
# katex | ||
# katex_copytex | ||
# lazyload | ||
# medium_zoom | ||
# mermaid_js | ||
# meting_js | ||
# pace_js | ||
# pjax | ||
# qrcode | ||
# snackbar | ||
# swiper_css | ||
# swiper_js | ||
# twikoo | ||
# typeit_js | ||
# valine | ||
# waline_css | ||
# waline_js | ||
# --------------------------- end --------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.length-num#artalk_allcount | ||
i.solitude.fa-solid.fa-spinner.fa-spin | ||
|
||
- const { server, site } = theme.artalk | ||
|
||
script(pjax). | ||
(async () => { | ||
const searchParams = new URLSearchParams({'site_name': "!{site}", 'limit': '-1'}) | ||
await fetch(`!{server}/api/v2/stats/latest_comments?${searchParams}`, {method: 'GET'}).then(async res => res.json()) | ||
.then(async data => { | ||
document.querySelector('#artalk_allcount').innerHTML = data.length | ||
}) | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
- const {use} = theme.comment | ||
|
||
case use[0] | ||
when 'Twikoo' | ||
!=partial('includes/widgets/sidebar/twikoo', {}, {cache: true}) | ||
when 'Waline' | ||
!=partial('includes/widgets/sidebar/waline', {}, {cache: true}) | ||
when 'Valine' | ||
!=partial('includes/widgets/sidebar/valine', {}, {cache: true}) | ||
when 'Artalk' | ||
!=partial('includes/widgets/sidebar/artalk', {}, {cache: true}) | ||
when 'Giscus' | ||
!=partial('includes/widgets/sidebar/giscus', {}, {cache: true}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.length-num#twikoo_allcount | ||
i.solitude.fa-solid.fa-spinner.fa-spin | ||
|
||
- const {envId} = theme.twikoo | ||
|
||
script(pjax). | ||
(async () => { | ||
await fetch('!{envId}', { | ||
method: "POST", | ||
body: JSON.stringify({ | ||
"event": "GET_RECENT_COMMENTS", | ||
"includeReply": true, | ||
"pageSize": -1 | ||
}), | ||
headers: {'Content-Type': 'application/json'} | ||
}).then(res => res.json()).then(async ({data}) => { | ||
document.querySelector('#twikoo_allcount').innerHTML = data.length | ||
}) | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.length-num#valine_allcount | ||
i.solitude.fa-solid.fa-spinner.fa-spin | ||
|
||
- const { appId, appKey, serverURLs } = theme.valine | ||
|
||
script(pjax). | ||
(async () => { | ||
await fetch('!{serverURLs}/1.1/classes/Comment?limit=-1&order=-createdAt', { | ||
method: "GET", | ||
headers: { | ||
"X-LC-Id": '!{appId}', | ||
"X-LC-Key": '!{appKey}', | ||
"Content-Type": "application/json" | ||
} | ||
}).then(async res => res.json()).then(async results => { | ||
document.querySelector('#valine_allcount').innerHTML = results.length | ||
}) | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.length-num#waline_allcount | ||
i.solitude.fa-solid.fa-spinner.fa-spin | ||
|
||
script(pjax). | ||
(async () => { | ||
await fetch('!{theme.waline.envId}/api/comment?type=recent&count=-1', {method: 'GET'}).then(async res => res.json()) | ||
.then(async data => { | ||
document.querySelector('#waline_allcount').innerHTML = data.length | ||
}) | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.