Skip to content

Commit 9573ba0

Browse files
authored
fix: 优化配置项说明文字 release 1.5.1 (#336)
1 parent b71e489 commit 9573ba0

10 files changed

Lines changed: 25 additions & 20 deletions

File tree

docs/.vuepress/theme/layouts/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<!-- Twikoo -->
1515
<div id="twikoo"></div>
16-
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.5.0/dist/twikoo.all.min.js" ref="twikooJs"></script>
16+
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.5.1/dist/twikoo.all.min.js" ref="twikooJs"></script>
1717
</div>
1818
</template>
1919
</ParentLayout>

docs/quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports.main = require('twikoo-func').main
4444
8. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 `package.json`,回车
4545
9. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖”
4646
``` json
47-
{ "dependencies": { "twikoo-func": "1.5.0" } }
47+
{ "dependencies": { "twikoo-func": "1.5.1" } }
4848
```
4949

5050
### 命令行部署
@@ -174,7 +174,7 @@ twikoo:
174174

175175
``` html
176176
<div id="tcomment"></div>
177-
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.5.0/dist/twikoo.all.min.js"></script>
177+
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.5.1/dist/twikoo.all.min.js"></script>
178178
<script>
179179
twikoo.init({
180180
envId: '您的环境id', // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app)
@@ -192,7 +192,7 @@ twikoo.init({
192192

193193
请参考爆米兔前端静态资源库 [https://cdn.baomitu.com/twikoo](https://cdn.baomitu.com/twikoo)
194194

195-
引入的 CDN 链接替换为如下即可:`https://lib.baomitu.com/twikoo/1.5.0/twikoo.all.min.js`
195+
引入的 CDN 链接替换为如下即可:`https://lib.baomitu.com/twikoo/1.5.1/twikoo.all.min.js`
196196

197197
## 开启管理面板
198198

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twikoo",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "A simple comment system based on Tencent CloudBase (tcb).",
55
"keywords": ["twikoojs", "comment", "comment-system", "cloudbase", "vercel"],
66
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",

src/function/twikoo/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ async function noticePushoo (comment) {
992992
content: pushContent.content,
993993
options: {
994994
bark: {
995-
url: pushContent.POST_URL
995+
url: pushContent.url
996996
}
997997
}
998998
})
@@ -1019,7 +1019,7 @@ function getIMPushContent (comment) {
10191019
return {
10201020
subject,
10211021
content,
1022-
POST_URL
1022+
url: POST_URL
10231023
}
10241024
}
10251025

src/js/tcb/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import {
44
} from '../utils'
55

66
const builtInOptions = [
7-
{ key: 'envId', required: true },
8-
{ key: 'collection', default: 'comment' }
7+
{ key: 'envId', required: true }
98
]
109

1110
const tcb = {

src/js/utils/i18n/i18n.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,15 +338,15 @@ export default {
338338
'The image bed token for 7bu.'
339339
],
340340
[S.ACI + '_LIMIT_PER_MINUTE']: [
341-
'每个 IP 每 10 分钟最多发表多少条评论,0 为无限制,默认:10',
342-
'每個 IP 每 10 分鐘最多發表多少條評論,0 為無限制,預設:10',
343-
'每個 IP 每 10 分鐘最多發表多少條評論,0 為無限制,預設:10',
341+
'单个 IP 发言频率限制(条/10分钟),0 为无限制,默认:10',
342+
'單個 IP 發言頻率限制(條/10分鐘),0 為無限制,預設:10',
343+
'單個 IP 發言頻率限制(條/10分鐘),0 為無限制,預設:10',
344344
'How many comments can be posted by each IP every 10 minutes, default: 0 (unlimited).'
345345
],
346346
[S.ACI + '_LIMIT_PER_MINUTE_ALL']: [
347-
'所有 IP 每 10 分钟最多发表多少条评论,0 为无限制,默认:10',
348-
'所有 IP 每 10 分鐘最多發表多少條評論,0 為無限制,預設:10',
349-
'所有 IP 每 10 分鐘最多發表多少條評論,0 為無限制,預設:10',
347+
'全站发言频率限制(条/10分钟),0 为无限制,默认:10',
348+
'全站發言頻率限制(條/10分鐘),0 為無限制,預設:10',
349+
'全站發言頻率限制(條/10分鐘),0 為無限制,預設:10',
350350
'How many comments can be posted by all IPs every 10 minutes, default: 0 (unlimited).'
351351
],
352352
[S.ACI + '_MAIL_SUBJECT']: [

src/vercel-min/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "dependencies": { "twikoo-vercel": "1.5.0" } }
1+
{ "dependencies": { "twikoo-vercel": "1.5.1" } }

src/vercel/api/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,12 @@ async function noticePushoo (comment) {
10001000
const sendResult = await pushoo(config.PUSHOO_CHANNEL, {
10011001
token: config.PUSHOO_TOKEN,
10021002
title: pushContent.subject,
1003-
content: pushContent.content
1003+
content: pushContent.content,
1004+
options: {
1005+
bark: {
1006+
url: pushContent.url
1007+
}
1008+
}
10041009
})
10051010
console.log('即时消息通知结果:', sendResult)
10061011
}
@@ -1024,7 +1029,8 @@ function getIMPushContent (comment) {
10241029
原文链接:[${POST_URL}](${POST_URL})`
10251030
return {
10261031
subject,
1027-
content
1032+
content,
1033+
url: POST_URL
10281034
}
10291035
}
10301036

src/vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twikoo-vercel",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "A simple comment system based on Tencent CloudBase (tcb).",
55
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
66
"license": "MIT",

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const version = '1.5.0'
1+
const version = '1.5.1'
22

33
export { version }

0 commit comments

Comments
 (0)