-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reply notice and spam check (#424)
* 改进 增加无 CSS 版本(`/dist/twikoo.nocss.js`、`/dist/twikoo.css`) * 修复 Vercel 版本回复通知异常 * 修复 私有部署版本 IPv6 属地查询异常 * 修复 Vercel 版本、私有部署版本垃圾评论识别功能异常
- Loading branch information
Showing
28 changed files
with
154 additions
and
148 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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
|
||
<!-- Twikoo --> | ||
<div id="twikoo"></div> | ||
<component :is="'script'" src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/twikoo.all.min.js" ref="twikooJs"></component> | ||
<component :is="'script'" src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/twikoo.all.min.js" ref="twikooJs"></component> | ||
</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 |
---|---|---|
|
@@ -49,7 +49,7 @@ exports.main = require('twikoo-func').main | |
8. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 `package.json`,回车 | ||
9. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖” | ||
``` json | ||
{ "dependencies": { "twikoo-func": "1.6.1" } } | ||
{ "dependencies": { "twikoo-func": "1.6.2" } } | ||
``` | ||
|
||
### 命令行部署 | ||
|
@@ -206,7 +206,7 @@ twikoo: | |
|
||
``` html | ||
<div id="tcomment"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/twikoo.all.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/twikoo.all.min.js"></script> | ||
<script> | ||
twikoo.init({ | ||
envId: '您的环境id', // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app) | ||
|
@@ -224,10 +224,10 @@ twikoo.init({ | |
|
||
如果遇到默认 CDN 加载速度缓慢,可更换其他 CDN 镜像。以下为可供选择的公共 CDN,其中一些 CDN 可能需要数天时间同步最新版本: | ||
|
||
* `https://cdn.staticfile.org/twikoo/1.6.1/twikoo.all.min.js` | ||
* `https://lib.baomitu.com/twikoo/1.6.1/twikoo.all.min.js` | ||
* `https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.1/twikoo.all.min.js` | ||
* `https://cdn.jsdelivr.net/npm/[email protected].1/dist/twikoo.all.min.js` | ||
* `https://cdn.staticfile.org/twikoo/1.6.2/twikoo.all.min.js` | ||
* `https://lib.baomitu.com/twikoo/1.6.2/twikoo.all.min.js` | ||
* `https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.2/twikoo.all.min.js` | ||
* `https://cdn.jsdelivr.net/npm/[email protected].2/dist/twikoo.all.min.js` | ||
|
||
## 开启管理面板(腾讯云环境) | ||
|
||
|
@@ -285,6 +285,8 @@ yarn deploy -e 您的环境id | |
1. 在服务器上执行 `npm i -g tkserver@latest` | ||
2. 重新启动 `tkserver` | ||
|
||
Docker 版先执行 `docker pull imaegoo/twikoo` 再重启容器 | ||
|
||
### 自动更新 | ||
|
||
考虑到可用性和安全性问题,Twikoo 没有实现自动更新,也没有计划实现自动更新。如果您希望实现自动更新,可以参考 MHuiG 基于 Github 工作流的 [twikoo-update](https://github.com/MHuiG/twikoo-update) 的实现方式。 |
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 |
---|---|---|
|
@@ -45,7 +45,7 @@ exports.main = require('twikoo-func').main | |
8. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 `package.json`,回车 | ||
9. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖” | ||
``` json | ||
{ "dependencies": { "twikoo-func": "1.6.1" } } | ||
{ "dependencies": { "twikoo-func": "1.6.2" } } | ||
``` | ||
|
||
### 命令行部署 | ||
|
@@ -208,7 +208,7 @@ twikoo: | |
|
||
``` html | ||
<div id="tcomment"></div> | ||
<script src="https://cdn.staticfile.org/twikoo/1.6.1/twikoo.all.min.js"></script> | ||
<script src="https://cdn.staticfile.org/twikoo/1.6.2/twikoo.all.min.js"></script> | ||
<script> | ||
twikoo.init({ | ||
envId: '您的环境id', // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app) | ||
|
@@ -226,10 +226,10 @@ twikoo.init({ | |
|
||
如果遇到默认 CDN 加载速度缓慢,可更换其他 CDN 镜像。以下为可供选择的公共 CDN,其中一些 CDN 可能需要数天时间同步最新版本: | ||
|
||
* `https://cdn.staticfile.org/twikoo/1.6.1/twikoo.all.min.js` | ||
* `https://lib.baomitu.com/twikoo/1.6.1/twikoo.all.min.js` | ||
* `https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.1/twikoo.all.min.js` | ||
* `https://cdn.jsdelivr.net/npm/[email protected].1/dist/twikoo.all.min.js` | ||
* `https://cdn.staticfile.org/twikoo/1.6.2/twikoo.all.min.js` | ||
* `https://lib.baomitu.com/twikoo/1.6.2/twikoo.all.min.js` | ||
* `https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.2/twikoo.all.min.js` | ||
* `https://cdn.jsdelivr.net/npm/[email protected].2/dist/twikoo.all.min.js` | ||
|
||
## 开启管理面板(腾讯云环境) | ||
|
||
|
@@ -287,6 +287,8 @@ yarn deploy -e 您的环境id | |
1. 在服务器上执行 `npm i -g tkserver@latest` | ||
2. 重新启动 `tkserver` | ||
|
||
Docker 版先执行 `docker pull imaegoo/twikoo` 再重启容器 | ||
|
||
### 自动更新 | ||
|
||
考虑到可用性和安全性问题,Twikoo 没有实现自动更新,也没有计划实现自动更新。如果您希望实现自动更新,可以参考 MHuiG 基于 Github 工作流的 [twikoo-update](https://github.com/MHuiG/twikoo-update) 的实现方式。 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const version = '1.6.1' | ||
const version = '1.6.2' | ||
|
||
export { version } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ export default { | |
} | ||
</script> | ||
|
||
<style scoped> | ||
<style> | ||
.tk-footer { | ||
width: 100%; | ||
text-align: 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
Oops, something went wrong.