Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
imaegoo committed May 28, 2024
1 parent 20203bb commit c886308
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/Twikoo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ onMounted(() => {

<!-- Twikoo -->
<div id="twikoo"></div>
<component :is="'script'" src="https://cdn.jsdelivr.net/npm/[email protected].35/dist/twikoo.min.js" ref="twikooJs"></component>
<component :is="'script'" src="https://cdn.jsdelivr.net/npm/[email protected].36/dist/twikoo.min.js" ref="twikooJs"></component>
</div>
</template>
14 changes: 8 additions & 6 deletions docs/backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exports.main = require('twikoo-func').main
8. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 `package.json`,回车
9. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖”
``` json
{ "dependencies": { "twikoo-func": "1.6.35" } }
{ "dependencies": { "twikoo-func": "1.6.36" } }
```

## 腾讯云命令行部署
Expand Down Expand Up @@ -210,6 +210,8 @@ EXPOSE 7860

### 如果你需要自定义域名

> 自定义域名教程由 [Hoshino-Yumetsuki](https://github.com/Hoshino-Yumetsuki) 提供
>
> ps:除了 `CF_ZERO_TRUST_TOKEN` 这个环境变量以外,其他环境变量的配置方式与上一步相同
1. 申请 Cloudflare Zero Trust,关于申请方式请自行查找
Expand All @@ -220,14 +222,14 @@ EXPOSE 7860

![](./static/hugging-8.png)

3.添加一个 Public Hostname,回源选择 HTTP,端口选择8080
4.Clone Twikoo 仓库,找到src\server\hf-space
5.去 Huggingface 创建一个 Space,然后Clone下来,将 hf-space 文件夹内的所有内容复制进去
6.在 Huggingface Space 的设置中添加一个环境变量,变量名 `CF_ZERO_TRUST_TOKEN` ,值是 Tunnels 给的令牌(删掉 `cloudflared.exe service install`,只保留令牌部分)
3. 添加一个 Public Hostname,回源选择 HTTP,端口选择 8080
4. Clone Twikoo 仓库,找到 `src\server\hf-space`
5. 去 Hugging Face 创建一个 Space,然后 Clone 下来,将 hf-space 文件夹内的所有内容复制进去
6. 在 Hugging Face Space 的设置中添加一个环境变量,变量名 `CF_ZERO_TRUST_TOKEN`,值是 Tunnels 给的令牌(删掉 `cloudflared.exe service install`,只保留令牌部分)

![](./static/hugging-9.png)

7.Push 到 Huggingface Space 仓库
7. Push 到 Hugging Face Space 仓库

## AWS Lambda 部署

Expand Down
10 changes: 5 additions & 5 deletions docs/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ twikoo:

``` html
<div id="tcomment"></div>
<script src="https://cdn.staticfile.net/twikoo/1.6.35/twikoo.all.min.js"></script>
<script src="https://cdn.staticfile.net/twikoo/1.6.36/twikoo.all.min.js"></script>
<script>
twikoo.init({
envId: '您的环境id', // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app)
Expand All @@ -107,10 +107,10 @@ twikoo.init({

如果遇到默认 CDN 加载速度缓慢,可更换其他 CDN 镜像。以下为可供选择的公共 CDN,其中一些 CDN 可能需要数天时间同步最新版本:

* `https://cdn.staticfile.net/twikoo/1.6.35/twikoo.all.min.js`
* `https://lib.baomitu.com/twikoo/1.6.35/twikoo.all.min.js`
* `https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.35/twikoo.all.min.js`
* `https://cdn.jsdelivr.net/npm/[email protected].35/dist/twikoo.all.min.js`
* `https://cdn.staticfile.net/twikoo/1.6.36/twikoo.all.min.js`
* `https://lib.baomitu.com/twikoo/1.6.36/twikoo.all.min.js`
* `https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.36/twikoo.all.min.js`
* `https://cdn.jsdelivr.net/npm/[email protected].36/dist/twikoo.all.min.js`

## 开启管理面板(腾讯云环境)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twikoo",
"version": "1.6.35",
"version": "1.6.36",
"description": "A simple comment system.",
"keywords": [
"twikoojs",
Expand Down
2 changes: 1 addition & 1 deletion src/client/version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const version = '1.6.35'
const version = '1.6.36'

export { version }
2 changes: 1 addition & 1 deletion src/server/aws-lambda/src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twikoo-aws-lambda",
"version": "1.6.35",
"version": "1.6.36",
"description": "A simple comment system.",
"author": "imaegoo <[email protected]> (https://github.com/imaegoo)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/server/function/twikoo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twikoo-func",
"version": "1.6.35",
"version": "1.6.36",
"description": "A simple comment system.",
"author": "imaegoo <[email protected]> (https://github.com/imaegoo)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/server/netlify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twikoo-netlify",
"version": "1.6.35",
"version": "1.6.36",
"description": "A simple comment system.",
"author": "imaegoo <[email protected]> (https://github.com/imaegoo)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/server/pkg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"commander": "^11.1.0",
"dotenv": "^16.4.1",
"tkserver": "1.6.35"
"tkserver": "1.6.36"
},
"devDependencies": {
"patch-package": "^8.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/server/self-hosted/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tkserver",
"version": "1.6.35",
"version": "1.6.36",
"description": "A simple comment system.",
"keywords": [
"twikoo",
Expand Down Expand Up @@ -31,7 +31,7 @@
"get-user-ip": "^1.0.1",
"lokijs": "^1.5.12",
"mongodb": "^6.3.0",
"twikoo-func": "1.6.35",
"twikoo-func": "1.6.36",
"uuid": "^8.3.2"
}
}
4 changes: 2 additions & 2 deletions src/server/vercel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twikoo-vercel",
"version": "1.6.35",
"version": "1.6.36",
"description": "A simple comment system.",
"author": "imaegoo <[email protected]> (https://github.com/imaegoo)",
"license": "MIT",
Expand All @@ -13,7 +13,7 @@
"dependencies": {
"get-user-ip": "^1.0.1",
"mongodb": "^6.3.0",
"twikoo-func": "1.6.35",
"twikoo-func": "1.6.36",
"uuid": "^8.3.2"
}
}

0 comments on commit c886308

Please sign in to comment.