Skip to content

Commit

Permalink
chore: transfer repo
Browse files Browse the repository at this point in the history
  • Loading branch information
imaegoo committed Sep 8, 2023
1 parent 83f2ded commit 4f724e7
Show file tree
Hide file tree
Showing 21 changed files with 34 additions and 417 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: imaegoo/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.TWIKOO_TOKEN }}
TARGET_REPO: imaegoo/twikoo
TARGET_REPO: twikoojs/twikoo
TARGET_BRANCH: gh-pages
BUILD_SCRIPT: cd docs && yarn && yarn docs:build
BUILD_DIR: .vitepress/dist
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 更新日志 | Release notes

[https://github.com/imaegoo/twikoo/releases](https://github.com/imaegoo/twikoo/releases)
[https://github.com/twikoojs/twikoo/releases](https://github.com/twikoojs/twikoo/releases)
4 changes: 2 additions & 2 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Icon design:[Maemo Lee](https://www.maemo.cc)

## Release notes & plans

[Update logs](https://github.com/imaegoo/twikoo/releases) & [Development Plan](https://github.com/imaegoo/twikoo/projects/2)
[Update logs](https://github.com/twikoojs/twikoo/releases) & [Development Plan](https://github.com/twikoojs/twikoo/projects/2)

## Development

Expand All @@ -135,7 +135,7 @@ If your changes can help more people, feel free to submit a Pull Request!

## I18N

Support Simplified Chinese, Traditional Chinese, English. [translate Pull Request](https://github.com/imaegoo/twikoo/tree/main/src/client/utils/i18n).
Support Simplified Chinese, Traditional Chinese, English. [translate Pull Request](https://github.com/twikoojs/twikoo/tree/main/src/client/utils/i18n).

## License

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ yarn build # 编译 (dist/twikoo.all.min.js)

## 国际化 | I18N

支持简体中文、繁体中文、English。欢迎[提交翻译 PR](https://github.com/imaegoo/twikoo/edit/main/src/client/utils/i18n/i18n.js)
支持简体中文、繁体中文、English。欢迎[提交翻译 PR](https://github.com/twikoojs/twikoo/edit/main/src/client/utils/i18n/i18n.js)

## 许可 | License

Expand Down
2 changes: 1 addition & 1 deletion demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>
<div class="navbar-end">
<div class="navbar-item">
<a class="button is-light" href="https://github.com/imaegoo/twikoo">View on Github</a>
<a class="button is-light" href="https://github.com/twikoojs/twikoo">View on Github</a>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export default defineConfig({
}
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/imaegoo/twikoo' }
{ icon: 'github', link: 'https://github.com/twikoojs/twikoo' }
],
editLink: {
pattern: 'https://github.com/imaegoo/twikoo/edit/main/docs/:path'
pattern: 'https://github.com/twikoojs/twikoo/edit/main/docs/:path'
},
footer: {
message: 'Released under the MIT License.',
Expand Down
2 changes: 1 addition & 1 deletion docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ hero:
link: /en/intro
- theme: alt
text: View on GitHub
link: https://github.com/imaegoo/twikoo
link: https://github.com/twikoojs/twikoo
image:
src: /twikoo-logo-home.png
alt: Twikoo
Expand Down
6 changes: 3 additions & 3 deletions docs/en/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<a href="https://www.jsdelivr.com/package/npm/twikoo">
<img class="shields" src="https://data.jsdelivr.com/v1/package/npm/twikoo/badge" />&nbsp;
</a>
<a href="https://github.com/imaegoo/twikoo/blob/main/LICENSE">
<a href="https://github.com/twikoojs/twikoo/blob/main/LICENSE">
<img class="shields" src="https://img.shields.io/npm/l/twikoo" />
</a>

Expand Down Expand Up @@ -125,7 +125,7 @@ Icon design:[Maemo Lee](https://www.maemo.cc)

## Release notes & plans

[Update logs](https://github.com/imaegoo/twikoo/releases) & [Development Plan](https://github.com/imaegoo/twikoo/projects/2)
[Update logs](https://github.com/twikoojs/twikoo/releases) & [Development Plan](https://github.com/twikoojs/twikoo/projects/2)

## Development

Expand All @@ -141,7 +141,7 @@ If your changes can help more people, feel free to submit a Pull Request!

## I18N

Support Simplified Chinese, Traditional Chinese, English. [translate Pull Request](https://github.com/imaegoo/twikoo/tree/main/src/client/utils/i18n).
Support Simplified Chinese, Traditional Chinese, English. [translate Pull Request](https://github.com/twikoojs/twikoo/tree/main/src/client/utils/i18n).

## License

Expand Down
385 changes: 1 addition & 384 deletions docs/en/quick-start.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hero:
link: https://jq.qq.com/?_wv=1027&k=2l9ZGIoL
- theme: alt
text: GitHub
link: https://github.com/imaegoo/twikoo
link: https://github.com/twikoojs/twikoo
image:
src: /twikoo-logo-home.png
alt: Twikoo
Expand Down
6 changes: 3 additions & 3 deletions docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<a href="https://www.jsdelivr.com/package/npm/twikoo">
<img class="shields" src="https://data.jsdelivr.com/v1/package/npm/twikoo/badge" />&nbsp;
</a>
<a href="https://github.com/imaegoo/twikoo/blob/main/LICENSE">
<a href="https://github.com/twikoojs/twikoo/blob/main/LICENSE">
<img class="shields" src="https://img.shields.io/npm/l/twikoo" />
</a>

Expand Down Expand Up @@ -122,7 +122,7 @@ A simple, safe, free comment system.
## 更新日志 & 开发计划

[更新日志](https://github.com/imaegoo/twikoo/releases) & [开发计划](https://github.com/imaegoo/twikoo/projects/2)
[更新日志](https://github.com/twikoojs/twikoo/releases) & [开发计划](https://github.com/twikoojs/twikoo/projects/2)

<!-- ## 贡献者 | Contributors -->

Expand All @@ -146,7 +146,7 @@ yarn build # 编译 (dist/twikoo.all.min.js)

## 国际化

支持简体中文、繁体中文、English。欢迎[提交翻译 PR](https://github.com/imaegoo/twikoo/edit/main/src/client/utils/i18n/i18n.js)
支持简体中文、繁体中文、English。欢迎[提交翻译 PR](https://github.com/twikoojs/twikoo/edit/main/src/client/utils/i18n/i18n.js)

## 许可

Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/imaegoo/twikoo.git"
"url": "https://github.com/twikoojs/twikoo.git"
},
"homepage": "https://twikoo.js.org",
"scripts": {
Expand Down
16 changes: 8 additions & 8 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ exports.main = require('twikoo-func').main
4. 进入[环境-安全配置](https://console.cloud.tencent.com/tcb/env/safety),将网站域名添加到“WEB安全域名”
5. 克隆本仓库
``` sh
git clone https://github.com/imaegoo/twikoo.git # 或 git clone https://e.coding.net/imaegoo/twikoo/twikoo.git
git clone https://github.com/twikoojs/twikoo.git # 或 git clone https://e.coding.net/imaegoo/twikoo/twikoo.git
cd twikoo
```
> 如果您没有安装 Git,也可以从 [Release](https://github.com/imaegoo/twikoo/releases) 页面下载最新的 Source code<br>
> 如果您没有安装 Git,也可以从 [Release](https://github.com/twikoojs/twikoo/releases) 页面下载最新的 Source code<br>
> 如果您所在的地区访问 Github 速度慢,也可以尝试另一个仓库地址:[https://imaegoo.coding.net/public/twikoo/twikoo/git](https://imaegoo.coding.net/public/twikoo/twikoo/git)
6. 安装依赖项
``` sh
Expand Down Expand Up @@ -102,7 +102,7 @@ Vercel 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用
3. 在 Clusters 页面点击 CONNECT,按步骤设置允许所有 IP 地址的连接([为什么?](https://vercel.com/support/articles/how-to-allowlist-deployment-ip-address)),创建数据库用户,并记录数据库连接字符串,请将连接字符串中的 `<password>` 修改为数据库密码
4. 申请 [Vercel](https://vercel.com/signup) 账号
5. 点击以下按钮将 Twikoo 一键部署到 Vercel<br>
[![](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/imaegoo/twikoo/tree/main/src/server/vercel-min)
[![](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/twikoojs/twikoo/tree/main/src/server/vercel-min)
6. 进入 Settings - Environment Variables,添加环境变量 `MONGODB_URI`,值为第 3 步的数据库连接字符串
7. 进入 Deployments , 然后在任意一项后面点击更多(三个点) , 然后点击Redeploy , 最后点击下面的Redeploy
8. 进入 Overview,点击 Domains 下方的链接,如果环境配置正确,可以看到 “Twikoo 云函数运行正常” 的提示
Expand All @@ -117,7 +117,7 @@ Railway 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用
:::

1.[Railway](https://railway.app/dashboard) 申请并登录账号,点击 New Project - Provision MongoDB,名称随意
2. 打开 [imaegoo/twikoo-zeabur](https://github.com/imaegoo/twikoo-zeabur) 点击 fork 将仓库 fork 到自己的账号下
2. 打开 [twikoojs/twikoo-zeabur](https://github.com/twikoojs/twikoo-zeabur) 点击 fork 将仓库 fork 到自己的账号下
3. 回到 Railway 点击 New - GitHub Repo - Configure GitHub App - 授权 GitHub - 选择刚才 fork 的仓库,等待部署完成
4. 点开环境卡片 - Variables - New Variable,左边输入 `PORT` 右边输入 `8080` 然后点 Add
5. 同样地,添加 MongoDB 相关环境变量 - New Variable - Add Reference - MONGO* - Add,重复步骤以添加 `MONGOHOST``MONGOPASSWORD``MONGOPORT``MONGOUSER``MONGO_URL` 环境变量。
Expand All @@ -133,7 +133,7 @@ Zeabur 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用
:::

1.[Zeabur](https://dash.zeabur.com) 申请并登录账号,点击部署新服务 - 部署其他服务 - 部署 MongoDB,名称随意
2. 打开 [imaegoo/twikoo-zeabur](https://github.com/imaegoo/twikoo-zeabur) 点击 fork 将仓库 fork 到自己的账号下
2. 打开 [twikoojs/twikoo-zeabur](https://github.com/twikoojs/twikoo-zeabur) 点击 fork 将仓库 fork 到自己的账号下
3. 回到 Zeabur 点击部署新服务 - 部署你的源代码 - 授权 GitHub - 选择刚才 fork 的仓库,名称随意
> _无需配置数据库连接字符串! Zeabur 已自动配置_
4. 部署好后点开环境卡片 - 设置 - 域名,绑定一个域名(例如 `mytwikoo.zeabur.app`
Expand Down Expand Up @@ -281,7 +281,7 @@ twikoo:
### 通过 CDN 引入

::: tip 提示
如果您使用的博客主题不支持 Twikoo,并且您不知道如何引入 Twikoo,您可以[在 Github 提交适配请求](https://github.com/imaegoo/twikoo/issues/new)
如果您使用的博客主题不支持 Twikoo,并且您不知道如何引入 Twikoo,您可以[在 Github 提交适配请求](https://github.com/twikoojs/twikoo/issues/new)
:::

``` html
Expand All @@ -293,7 +293,7 @@ twikoo.init({
el: '#tcomment', // 容器元素
// region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填
// path: location.pathname, // 用于区分不同文章的自定义 js 路径,如果您的文章路径不是 location.pathname,需传此参数
// lang: 'zh-CN', // 用于手动设定评论区语言,支持的语言列表 https://github.com/imaegoo/twikoo/blob/main/src/client/utils/i18n/index.js
// lang: 'zh-CN', // 用于手动设定评论区语言,支持的语言列表 https://github.com/twikoojs/twikoo/blob/main/src/client/utils/i18n/index.js
})
</script>
```
Expand Down Expand Up @@ -329,7 +329,7 @@ twikoo.init({

登录[环境-我的应用](https://console.cloud.tencent.com/tcb/apps/index),输入

* 来源地址:`https://github.com/imaegoo/twikoo/tree/main`
* 来源地址:`https://github.com/twikoojs/twikoo/tree/main`
* 部署分支:`main`

应用目录无需填写,点击“确定”,部署完成。
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/imaegoo/twikoo.git"
"url": "https://github.com/twikoojs/twikoo.git"
},
"homepage": "https://twikoo.js.org",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/server/function/twikoo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ exports.main = async (event, context) => {
}
}
} catch (e) {
logger.error('Twikoo 遇到错误,请参考以下错误信息。如有疑问,请反馈至 https://github.com/imaegoo/twikoo/issues')
logger.error('Twikoo 遇到错误,请参考以下错误信息。如有疑问,请反馈至 https://github.com/twikoojs/twikoo/issues')
logger.error('请求参数:', event)
logger.error('错误信息:', e)
res.code = RES_CODE.FAIL
Expand Down
2 changes: 1 addition & 1 deletion src/server/function/twikoo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/imaegoo/twikoo.git"
"url": "https://github.com/twikoojs/twikoo.git"
},
"homepage": "https://twikoo.js.org",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/server/self-hosted/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module.exports = async (request, response) => {
}
}
} catch (e) {
logger.error('Twikoo 遇到错误,请参考以下错误信息。如有疑问,请反馈至 https://github.com/imaegoo/twikoo/issues')
logger.error('Twikoo 遇到错误,请参考以下错误信息。如有疑问,请反馈至 https://github.com/twikoojs/twikoo/issues')
logger.error('请求参数:', event)
logger.error('错误信息:', e)
res.code = RES_CODE.FAIL
Expand Down
2 changes: 1 addition & 1 deletion src/server/self-hosted/mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ module.exports = async (request, response) => {
}
}
} catch (e) {
logger.error('Twikoo 遇到错误,请参考以下错误信息。如有疑问,请反馈至 https://github.com/imaegoo/twikoo/issues')
logger.error('Twikoo 遇到错误,请参考以下错误信息。如有疑问,请反馈至 https://github.com/twikoojs/twikoo/issues')
logger.error('请求参数:', event)
logger.error('错误信息:', e)
res.code = RES_CODE.FAIL
Expand Down
2 changes: 1 addition & 1 deletion src/server/self-hosted/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/imaegoo/twikoo.git"
"url": "https://github.com/twikoojs/twikoo.git"
},
"homepage": "https://twikoo.js.org",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/server/vercel/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module.exports = async (request, response) => {
}
}
} catch (e) {
logger.error('Twikoo 遇到错误,请参考以下错误信息。如有疑问,请反馈至 https://github.com/imaegoo/twikoo/issues')
logger.error('Twikoo 遇到错误,请参考以下错误信息。如有疑问,请反馈至 https://github.com/twikoojs/twikoo/issues')
logger.error('请求参数:', event)
logger.error('错误信息:', e)
res.code = RES_CODE.FAIL
Expand Down
2 changes: 1 addition & 1 deletion src/server/vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "api/index.js",
"repository": {
"type": "git",
"url": "https://github.com/imaegoo/twikoo.git"
"url": "https://github.com/twikoojs/twikoo.git"
},
"homepage": "https://twikoo.js.org",
"dependencies": {
Expand Down

0 comments on commit 4f724e7

Please sign in to comment.