forked from twikoojs/twikoo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(0.2.8): 安全更新 样式更新 性能优化 (twikoojs#42)
* 增强云函数防 XSS 注入 * 优化在深色模式下的显示效果 * 修复开启 Akismet 反垃圾时,发表评论速度慢 * 修复头像点击无法正确跳转网址 * 完善文档
- Loading branch information
Showing
16 changed files
with
183 additions
and
89 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<template #page-bottom> | ||
<div class="page-edit"> | ||
<div id="twikoo"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].7/dist/twikoo.all.min.js" ref="twikooJs"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].8/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
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 |
---|---|---|
|
@@ -19,3 +19,9 @@ | |
``` | ||
|
||
来展示访问量。暂不支持全站访问量统计。 | ||
|
||
## 如何测试 Akismet 反垃圾配置是否生效? | ||
|
||
请填写 `viagra-test-123` 作为昵称,或填写 `[email protected]` 作为邮箱,发表评论,这条评论将一定会被视为垃圾评论。 | ||
|
||
需要注意的是,由于 Akismet 服务响应速度较慢(大约 6 秒),影响用户体验,Twikoo 采取 “先放行,后检测” 的策略,垃圾评论会在发表后短暂可见。 |
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 |
---|---|---|
|
@@ -92,7 +92,7 @@ Butterfly 目前支持 Twikoo,请查看 [Butterfly 安裝文檔(四) 主題配 | |
|
||
``` html | ||
<div id="tcomment"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].7/dist/twikoo.all.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].8/dist/twikoo.all.min.js"></script> | ||
<script>twikoo.init({ envId: '您的环境id', el: '#tcomment' })</script> | ||
``` | ||
|
||
|
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.2.7", | ||
"version": "0.2.8", | ||
"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
Oops, something went wrong.