-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 新增 未发送的评论在刷新页面时不会丢失 * 新增 支持隐藏管理入口 #72 * 新增 昵称栏输入QQ号,自动补全QQ昵称和QQ邮箱 #60 * 改进 支持自定义文章的 js path * 修复 点击表情选择器外部无法关闭表情选择器 #71 * 修复 苹果 logo 垂直不居中 * 修复 表情弹框适配部分主题夜间模式
- Loading branch information
Showing
15 changed files
with
173 additions
and
55 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin="anonymous"></script> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin="anonymous"></script> | ||
<div id="twikoo"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/twikoo.all.min.js" ref="twikooJs"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/twikoo.all.min.js" ref="twikooJs"></script> | ||
</div> | ||
</template> | ||
</ParentLayout> | ||
|
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 |
---|---|---|
|
@@ -98,7 +98,7 @@ Volantis 目前支持 Twikoo,请查看 [hexo-theme-volantis/_config.yml](https | |
``` yml | ||
comments: | ||
twikoo: | ||
js: https://cdn.jsdelivr.net/npm/[email protected].3/dist/twikoo.all.min.js | ||
js: https://cdn.jsdelivr.net/npm/[email protected].4/dist/twikoo.all.min.js | ||
envId: xxxxxxxxxxxxxxx # 腾讯云环境id | ||
``` | ||
|
@@ -119,7 +119,7 @@ twikoo: | |
comment: | ||
type: twikoo | ||
envId: xxxxxxxxxxxxxxx # 腾讯云环境id | ||
jsUrl: https://cdn.jsdelivr.net/npm/[email protected].3/dist/twikoo.all.min.js | ||
jsUrl: https://cdn.jsdelivr.net/npm/[email protected].4/dist/twikoo.all.min.js | ||
``` | ||
### 通过 CDN 引入 | ||
|
@@ -130,12 +130,13 @@ comment: | |
``` html | ||
<div id="tcomment"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/twikoo.all.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/twikoo.all.min.js"></script> | ||
<script> | ||
twikoo.init({ | ||
envId: '您的环境id', | ||
el: '#tcomment', | ||
// region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,如果您的环境地域不是上海,需传此参数 | ||
el: '#tcomment' | ||
// path: 'window.location.pathname', // 用于区分不同文章的自定义 js 文章路径,请勿随意传值! | ||
}) | ||
</script> | ||
``` | ||
|
@@ -160,8 +161,9 @@ npm install twikoo # 或 yarn add twikoo | |
import twikoo from 'twikoo' // 或 const twikoo = require('twikoo') | ||
twikoo.init({ | ||
envId: '您的环境id', | ||
el: '#tcomment', | ||
// region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,如果您的环境地域不是上海,需传此参数 | ||
el: '#tcomment' | ||
// path: 'window.location.pathname', // 用于区分不同文章的自定义 js 路径,如果您的文章路径不是 location.pathname,需传此参数 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
imaegoo
Author
Member
|
||
}) | ||
``` | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "twikoo", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "A simple comment system based on Tencent CloudBase (tcb).", | ||
"author": "imaegoo <[email protected]> (https://github.com/imaegoo)", | ||
"license": "MIT", | ||
|
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
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.
被坑到了,你这里竟然是字符串
https://github.com/volantis-x/hexo-theme-volantis/blob/master/layout/_third-party/comments/twikoo/script.ejs#L16
https://github.com/volantis-x/hexo-theme-volantis/blob/master/layout/_third-party/comments/gitalk/script.ejs#L8
https://github.com/volantis-x/hexo-theme-volantis/blob/master/layout/_third-party/comments/minivaline/script.ejs#L17
https://github.com/volantis-x/hexo-theme-volantis/blob/master/layout/_third-party/comments/valine/script.ejs#L34
https://github.com/volantis-x/hexo-theme-volantis/blob/master/layout/_third-party/comments/waline/script.ejs#L13