Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit 7c9cf58

Browse files
authored
Merge pull request #100 from AprilNEA/refactor-new
基于最新版本的 ChatGPT-Next-GPT 重构本项目
2 parents 8774ec4 + 0ef36e2 commit 7c9cf58

File tree

466 files changed

+17605
-15134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

466 files changed

+17605
-15134
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
**/.env
13
# IDE
24
.vscode/
35
.idea/

README.md

Lines changed: 47 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,66 @@
1-
> ⚠️ 本项目为 [lmobest](https://lmo.best) 的开源版本,目前并没有发布正式版
2-
>
3-
> 用户层的逻辑已经实现完毕,管理页面(后台)仍在开发中。
4-
>
5-
> 可以关注[频道](https://t.me/s/ChatGPTAdminWebChannel)获取最新消息。
6-
71
<div align="center">
8-
9-
<img src="apps/docs/static/img/icon.svg" alt="icon"/>
2+
<img src="./docs/icon.svg" alt="预览"/>
103

114
<h1 align="center">ChatGPT Admin Web</h1>
125

13-
简体中文 / [English](./README_EN.md)
14-
15-
[apps/chat](./apps/chat/README.md)
16-
基于 [ChatGPT-Next-Web](https://github.com/Yidadaa/ChatGPT-Next-Web/tree/b1f27aaf93c88c088db6bae5ac8163e2ffe991bd)
17-
二次开发
18-
19-
带有用户管理和后台面板的 ChatGPT 网页应用
20-
21-
<table>
22-
<tbody>
23-
<tr>
24-
<td>
25-
<a href="https://docs.lmo.best/">📚 部署文档</a>
26-
</td>
27-
<td>
28-
<a href="https://lmo.best/">🎦 演示站点</a>
29-
</td>
30-
<td>
31-
<a href="https://github.com/AprilNEA/ChatGPT-April-Web/issues">💬 反馈</a>
32-
</td>
33-
<td>
34-
🌐 <a href="https://t.me/ChatGPTAdminWeb">群组</a> & <a href="https://t.me/ChatGPTAdminWebChannel">频道</a>
35-
</td>
36-
</tr>
37-
</tbody>
38-
</table>
39-
</div>
6+
免费部署你的商业 ChatGPT 网页应用。
407

41-
## ChatGPT Admin Web
8+
[暂无 Demo] / [Issues](https://github.com/AprilNEA/ChatGPT-Admin-Web/issues) / [Discord](https://discord.gg/y4vxgqfUW) / [Telegram](https://github.com/AprilNEA/ChatGPT-Admin-Web)
429

43-
<img src="./docs/system.svg" alt="system"/>
10+
[GitHub Sponsor](https://github.com/sponsors/AprilNEA) / [爱发电](https://afdian.net/a/aprilnea)
11+
12+
![主界面](./docs/cover.png)
13+
14+
</div>
4415

45-
## 🤩 开发计划
16+
## 功能
4617

47-
<img src="./docs/roadmap.svg" alt="system"/>
18+
- 面具 Mask 和提示词列表
19+
- 用户管理、订单管理和订阅管理
20+
- 支付接口
21+
- 第三方支付接口
22+
-[x]虎皮椒
23+
- 文本安全
24+
-[ ] 敏感词过滤
25+
-[x] 第三方过滤
26+
- 模型接入
27+
-[x] OpenAI
28+
-[ ] Bing
29+
- 收益模式
30+
-[ ] 广告
31+
-[ ] 分销
4832

49-
## 🚀 技术栈 Tech Stack
33+
<details><summary>思维导图</summary>
5034

51-
<img src="./docs/tech-stack.svg" alt="tech-stack"/>
35+
![System](./docs/system.svg)
5236

53-
## 仓库 Repository
37+
</details>
5438

55-
这是一个 monorepo 仓库,由以下部分组成:
39+
## Features
5640

57-
| Package | Package Description | Package Version | License |
58-
|-------------------|---------------------|-----------------|------------|
59-
| apps/chat | 用户界面 | 0.0.1 | 996 && MIT |
60-
| apps/dash | 后台管理 | 0.0.1 | MIT |
61-
| apps/docs | 项目文档 | 0.0.1 | MIT |
62-
| packages/bots | API 接口和自定义模型接口 | 0.0.1 | MIT |
63-
| packages/database | 数据库 DAL 以及部分 Logic | 0.0.1 | MIT |
41+
- Mask and prompt list
42+
- User management, order management and subscription management
43+
- Payment interface
44+
- Third party payment interface
45+
-[x]Xunhu Pay
46+
- Text Security
47+
-[ ] Sensitive word filter
48+
-[x] Third-party filtering
49+
- Model Access
50+
-[x] OpenAI
51+
-[ ] Bing
52+
- Revenue model
53+
-[ ] Advertising
54+
-[ ] Distribution
6455

65-
## 作者 Author
56+
## Start
6657

67-
- [@AprilNEA](https://github.com/AprilNEA)
68-
- [@PeronGH](https://github.com/PeronGH)
58+
请查看[文档](https://caw.sku.moe)
6959

70-
## ☁️ 许可证 License
60+
Please see [documentation](https://caw.sku.moe)
7161

72-
本仓库中 [apps/chat](./apps/chat) 是基于仓库 [Yidadaa's repository](https://github.com/Yidadaa/ChatGPT-Next-Web)
73-
996许可证以[MIT license](./LICENSE)的形式从新分发。
62+
## 捐赠
7463

75-
其他部分均以[MIT license](./LICENSE)分发
64+
感谢您的激励,能让该项目持续发展
7665

77-
<img src="https://hits-app.vercel.app/hits?url=https%3A%2F%2Fgithub.com%2FAprilNEA%2FChatGPT-Admin-Web" />
66+
[GitHub Sponsor](https://github.com/sponsors/AprilNEA) | [爱发电](https://afdian.net/a/aprilnea)

README_EN.md

Lines changed: 0 additions & 75 deletions
This file was deleted.

apps/chat/.env.template

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# 网站相关设置
2+
3+
# 这是用来加密用户的令牌的密钥,我们建议您在此生成
4+
# https://1password.com/password-generator/
5+
JWT_SECRET=
6+
# 标题
7+
NEXT_PUBLIC_TITLE=
8+
# 公众号
9+
NEXT_PUBLIC_WECHAT_OA=
10+
11+
# Database
12+
DATABASE_URL=postgres://<user>:<password>@<host>/<db-name>?pgbouncer=true&connect_timeout=10
13+
DIRECT_URL=postgres://<user>:<password>@<host>/<db-name>?pgbouncer=true&connect_timeout=10
14+
#SHADOW_DATABASE_URL=
15+
16+
# 如果你想使用 Redis 进行用户速率的限制,你可以在下方填入 U
17+
REDIS_URL=
18+
REDIS_TOKEN=
19+
20+
# 使用 OPENAI 模型的 BASE 和 Key
21+
# 支持 api2d, closeAI 等第三方平台
22+
OPENAI_BASE=https://renailu.deno.dev
23+
OPENAI_KEY=JqHFaJXdFRrU3rjqNqD2
24+
25+
# 支付信息
26+
DOMAIN=https://lmo.best
27+
CALLBACK_DOMAIN=https://wxtest.deno.dev
28+
# 虎皮椒的 appid 和 appsecret
29+
XUNHU_PAY_APPID=
30+
XUNHU_PAY_APPSECRET=
31+
32+
# 若不启用邮箱注册,请将该部分留空
33+
NEXT_PUBLIC_EMAIL_SERVICE=
34+
35+
MAILGUN_EMAIL_DOMAIN=
36+
MAILGUN_EMAIL_API_KEY=
37+
38+
ELASTICE_EMAIL_API_KEY=
39+
ELASTICE_EMAIL_SENDER=
40+
41+
# SMS 短信
42+
SMS_SERVICE=uni
43+
# UniSMS 的 key
44+
SMS_UNI_KEY_ID=
45+
# 在 UniSMS 中申请的签名,发送+86的短信请保证签名中带有中文
46+
SMS_UNI_SIGNATURE=
47+
48+
# 文本安全配置,当前支持 baidu 或 tencent
49+
TEXT_SECURITY=
50+
51+
TENCENT_SECRETID=
52+
TENCENT_SECRETKEY=
53+
54+
BAIDU_APIKEY=
55+
BAIDU_SECRETKEY=
56+
57+
# 微信登录配置,填入公众号的 appid 和 appsecret
58+
# 公众号必须通过企业认证且为订阅号
59+
WECHAT_PROXY=
60+
WECHAT_APP_ID=
61+
WECHAT_APP_SECRET=

apps/chat/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public/serviceWorker.js

apps/chat/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"extends": "next/core-web-vitals",
3+
"plugins": ["prettier"]
34
}

apps/chat/.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
# production
1616
/build
17-
/.env
1817

1918
# misc
2019
.DS_Store
@@ -36,3 +35,12 @@ yarn-error.log*
3635
*.tsbuildinfo
3736
next-env.d.ts
3837
dev
38+
39+
.vscode
40+
.idea
41+
42+
# docker-compose env files
43+
.env
44+
45+
*.key
46+
*.key.pub

apps/chat/.gitpod.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
6+
7+
tasks:
8+
- init: yarn install && yarn run dev
9+
command: yarn run dev
10+
11+

apps/chat/.lintstagedrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"./app/**/*.{js,ts,jsx,tsx,json,html,css,md}": [
3+
"eslint --fix",
4+
"prettier --write"
5+
]
6+
}

apps/chat/.prettierrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
printWidth: 80,
3+
tabWidth: 2,
4+
useTabs: false,
5+
semi: true,
6+
singleQuote: false,
7+
trailingComma: 'all',
8+
bracketSpacing: true,
9+
arrowParens: 'always',
10+
};

0 commit comments

Comments
 (0)