Skip to content

Commit 160136e

Browse files
committed
feat: Complete front-end interface optimization and feature updates
-Optimized the front-end interface of the platform to make it more user-friendly and visually appealing. -Enhanced the interactive functionality of the front-end and improved the overall experience. -Updated the layout and design of multiple pages, supporting better theme switching functionality (light and dark themes). -New online debugging tools and interface call code examples have been added to enhance the developer experience. -Enhanced mobile adaptation and improved responsive design. -Fixed several minor UI and functional issues, improving overall stability.
1 parent 262579e commit 160136e

File tree

175 files changed

+16124
-20530
lines changed

Some content is hidden

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

175 files changed

+16124
-20530
lines changed

.github/workflows/baiduPush.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## 利用GitHub Actions每天定时给百度推送链接,提高收录率 ##
2+
3+
name: baiduPush
4+
5+
# 两种触发方式:一、push代码,二、每天国际标准时间23点(北京时间+8即早上7点)运行
6+
on:
7+
push:
8+
schedule:
9+
- cron: '0 23 * * *' # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule
10+
11+
#on:
12+
# push:
13+
# schedule:
14+
# - cron: '*/5 * * * *' # 每5分钟一次,测试用
15+
16+
jobs:
17+
bot:
18+
runs-on: ubuntu-latest # 运行环境为最新版的Ubuntu
19+
steps:
20+
- name: 'Checkout codes' # 步骤一,获取仓库代码
21+
uses: actions/checkout@v1
22+
- name: 'Run baiduPush' # 步骤二,执行sh命令文件
23+
run: npm run baiduPush # 运行目录是仓库根目录

.github/workflows/push.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 部署前端项目
2+
3+
# 只有master分支发生push事件时,才会触发workflow
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
types:
12+
- closed
13+
jobs:
14+
build:
15+
# runs-on 指定job任务运行所需要的虚拟机环境(必填字段)
16+
runs-on: ubuntu-latest
17+
steps:
18+
# 获取源码
19+
- name: 迁出代码
20+
# 使用action库 actions/checkout获取源码
21+
uses: actions/checkout@v3
22+
23+
# 安装Node10
24+
- name: 安装node.js
25+
# 使用action库 actions/setup-node安装node
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: '16.x'
29+
30+
# 安装依赖
31+
- name: 安装依赖
32+
run: npm install
33+
34+
# 打包
35+
- name: 打包
36+
run: npm run build
37+
38+
# 上传阿里云
39+
- name: 发布项目
40+
uses: easingthemes/ssh-deploy@main
41+
with:
42+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
43+
ARGS: "-rlgoDzvc -i --delete"
44+
SOURCE: "dist/"
45+
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
46+
REMOTE_USER: ${{ secrets.REMOTE_USER }}
47+
TARGET: ${{ secrets.REMOTE_TARGET }}
48+
EXCLUDE: "/dist/, /node_modules/"
49+

.gitignore

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ package-lock.json
2121
*bak
2222
.vscode
2323

24-
2524
# visual studio code
2625
.history
2726
*.log
@@ -39,3 +38,11 @@ screenshot
3938
.eslintcache
4039

4140
build
41+
.temp
42+
.cache
43+
44+
# vuepress
45+
docs/.vuepress/dist
46+
47+
# 百度链接推送
48+
urls.txt

README.md

+222-30
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,249 @@
1-
# Ant Design Pro
1+
<p align="center">
2+
<img src=https://github.com/user-attachments/assets/f7c5f6bb-164d-4ec5-8e35-720e5076a50c width=188/>
3+
</p>
4+
<h1 align="center">Cai-API 接口开放平台</h1>
5+
<p align="center"><strong>Cai-API 接口开放平台是一个为用户和开发者提供全面API接口调用服务的平台 🛠</strong></p>
6+
<div align="center">
7+
<a target="_blank" href="https://github.com/poboll/cai-api">
8+
<img alt="" src="https://github.com/poboll/cai-api/badge/star.svg?theme=gvp"/>
9+
</a>
10+
<a target="_blank" href="https://github.com/poboll/cai-api">
11+
<img alt="" src="https://img.shields.io/github/stars/poboll/cai-api.svg?style=social&label=Stars"/>
12+
</a>
13+
<img alt="Maven" src="https://raster.shields.io/badge/Maven-3.8.1-red.svg"/>
14+
<a target="_blank" href="https://www.oracle.com/technetwork/java/javase/downloads/index.html">
15+
<img alt="" src="https://img.shields.io/badge/JDK-1.8+-green.svg"/>
16+
</a>
17+
<img alt="SpringBoot" src="https://raster.shields.io/badge/SpringBoot-2.7+-green.svg"/>
18+
<a href="https://github.com/poboll/cai-api" target="_blank">
19+
<img src='https://img.shields.io/github/forks/poboll/cai-api' alt='GitHub forks' class="no-zoom">
20+
</a>
21+
<a href="https://github.com/poboll/cai-api" target="_blank"><img src='https://img.shields.io/github/stars/poboll/cai-api' alt='GitHub stars' class="no-zoom">
22+
</a>
23+
</div>
224

3-
This project is initialized with [Ant Design Pro](https://pro.ant.design). Follow is the quick guide for how to use.
25+
## 项目介绍 🙋
426

5-
## Environment Prepare
627

7-
Install `node_modules`:
828

9-
```bash
10-
npm install
11-
```
29+
**😀 作为用户您可以通过注册登录账户,获取接口调用权限,并根据自己的需求浏览和选择适合的接口。您可以在线进行接口调试,快速验证接口的功能和效果。**
1230

13-
or
31+
**💻 作为开发者 我们提供了[客户端SDK: Cai-API-SDK](https://github.com/poboll/cai-api-sdk), 通过[开发者凭证](https://api.caiths.com/account/center)即可将轻松集成接口到您的项目中,实现更高效的开发和调用。**
1432

15-
```bash
16-
yarn
17-
```
33+
**🤝 您可以将自己的接口接入到Cai-API 接口开放平台平台上,并发布给其他用户使用。 您可以管理和各个接口,以便更好地分析和优化接口性能。**
1834

19-
## Provided Scripts
35+
**👌 我们还提供了[开发者在线文档](https://api-docs.caiths.com)和技术支持,帮助您快速接入和发布接口。**
2036

21-
Ant Design Pro provides some useful script to help you quick start and build with web project, code style check and test.
37+
**🏁 无论您是用户还是开发者,Cai-API 接口开放平台都致力于提供稳定、安全、高效的接口调用服务,帮助您实现更快速、便捷的开发和调用体验。**
2238

23-
Scripts provided in `package.json`. It's safe to modify or add additional script:
39+
## 网站导航 🧭
2440

25-
### Start project
41+
- [**Cai-API 后端 🏘️**](https://github.com/poboll/cai-api)
42+
- [**Cai-API 前端 🏘**](https://github.com/poboll/cai-api-frontend)
2643

27-
```bash
28-
npm start
29-
```
44+
- **[Cai-API-SDK](https://github.com/poboll/cai-api-sdk)** 🛠
3045

31-
### Build project
46+
- **[Cai-API 接口开放平台 🔗](https://api.caiths.com/)**
3247

33-
```bash
34-
npm run build
35-
```
48+
- **[Cai-API-DOC 开发者文档 📖](https://api-docs.caiths.com)**
49+
- **[Cai-API-SDK-demo ✔️](https://github.com/poboll/cai-api-sdk-demo/blob/main/src/main/java/com/caiths/caiapisdkdemo/controller/InvokeController.java)**
50+
51+
52+
## 目录结构 📑
53+
54+
55+
| 目录 | 描述 |
56+
|----------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|
57+
| **🏘️ [cai-api-backend](https://github.com/poboll/cai-api/cai-api-backend)** | Cai-API后端服务模块 |
58+
| **🏘️ [cai-api-common](https://github.com/poboll/cai-api/cai-api-common)** | 公共服务模块 |
59+
| **🕸️ [cai-api-gateway](https://github.com/poboll/cai-api/cai-api-gateway)** | 网关模块 |
60+
| **🔗 [cai-api-interface](https://github.com/poboll/cai-api/cai-api-interface)** | 接口模块 |
61+
| **🛠 [cai-qpi-sdk](https://github.com/poboll/cai-api-sdk)** | 开发者调用sdk |
62+
| **📘 [cai-api-doc](https://api-docs.caiths.com)** | 接口在线文档 |
63+
| **✔️ [cai-api-sdk-demo](https://github.com/poboll/cai-api-sdk-demo/blob/1.0.0/src/main/java/com/caiths/caiapisdkdemo/controller/InvokeController.java)** | SDK调用Demo |
64+
65+
## 项目流程 🗺️
66+
67+
![项目流程](https://github.com/user-attachments/assets/1ad04133-1625-478b-bbe5-30bd9f0ab8cb)
68+
69+
## 快速启动 🚀
70+
71+
### 前端
72+
73+
环境要求:Node.js >= 16
3674

37-
### Check code style
75+
安装依赖:
3876

3977
```bash
40-
npm run lint
78+
yarn or npm install
4179
```
4280

43-
You can also use script to auto fix some lint error:
81+
启动:
4482

4583
```bash
46-
npm run lint:fix
84+
yarn run dev or npm run start:dev
4785
```
4886

49-
### Test code
87+
部署:
5088

5189
```bash
52-
npm test
90+
yarn build or npm run build
5391
```
5492

55-
## More
93+
### 后端
94+
95+
执行sql目录下ddl.sql
96+
97+
## 项目选型 🎯
98+
99+
### **后端**
100+
101+
- Spring Boot 2.7.0
102+
- Spring MVC
103+
- MySQL 数据库
104+
- 腾讯云COS存储
105+
- Dubbo 分布式(RPC、Nacos)
106+
- Spring Cloud Gateway 微服务网关
107+
- API 签名认证(Http 调用)
108+
- IJPay-AliPay 支付宝支付
109+
- WeiXin-Java-Pay 微信支付
110+
- Swagger + Knife4j 接口文档
111+
- Spring Boot Starter(SDK 开发)
112+
- Jakarta.Mail 邮箱通知、验证码
113+
- Spring Session Redis 分布式登录
114+
- Apache Commons Lang3 工具类
115+
- MyBatis-Plus 及 MyBatis X 自动生成
116+
- Hutool、Apache Common Utils、Gson 等工具库
117+
118+
### 前端
119+
120+
- React 18
121+
122+
- Ant Design Pro 5.x 脚手架
123+
124+
- Ant Design & Procomponents 组件库
125+
126+
- Umi 4 前端框架
127+
128+
- OpenAPI 前端代码生成
129+
130+
131+
132+
## 功能介绍 📋
133+
134+
`坤币`即积分,用于平台接口调用。
135+
136+
| **功能** | 游客 | **普通用户** | **管理员** |
137+
|------------------------------------------------------------|----|----------|---------|
138+
| [**Cai-API-SDK**](https://github.com/poboll/cai-api-sdk)使用 ||||
139+
| **[开发者API在线文档](http://api-docs.caiths.com)** ||||
140+
| 邀请好友注册得坤币 ||||
141+
| 切换主题、深色、暗色 ||||
142+
| 微信支付宝付款 ||||
143+
| 在线调试接口 ||||
144+
| 每日签到得坤币 ||||
145+
| 接口大厅搜索接口、浏览接口 ||||
146+
| 邮箱验证码登录注册 ||||
147+
| 钱包充值 ||||
148+
| 支付成功邮箱通知(需要绑定邮箱) ||||
149+
| 更新头像 ||||
150+
| 绑定、换绑、解绑邮箱 ||||
151+
| 取消订单、删除订单 ||||
152+
| 商品管理、上线、下架 ||||
153+
| 用户管理、封号解封等 ||||
154+
| 接口管理、接口发布审核、下架 ||||
155+
| 退款 ||||
156+
157+
## 功能展示 ✨
158+
159+
### 首页
160+
161+
![1 首页-日间](https://github.com/user-attachments/assets/a2ee1065-da5a-4645-9ab9-1a9f0a9d7c85)
162+
163+
### 接口广场
164+
165+
![2 接口广场](https://github.com/user-attachments/assets/f30e722e-a745-4e80-85f9-d789986a5afb)
166+
167+
### 开发者在线文档
168+
169+
#### 首页
170+
![3 开发者在线文档-首页](https://github.com/user-attachments/assets/b5a1213c-dfac-4c3a-b42f-98f159c4acf8)
171+
172+
#### 接口介绍
173+
![4 开发者在线文档-接口介绍](https://github.com/user-attachments/assets/1c039e74-c7e4-437f-81b3-cd7935af6eed)
174+
175+
### 接口描述
176+
177+
#### **在线API**
178+
![5 接口描述-在线api](https://github.com/user-attachments/assets/d76cd126-7c61-44b3-a34a-257028d5e383)
179+
180+
#### 在线调试工具
181+
![6 接口描述-在线调试工具](https://github.com/user-attachments/assets/769c06c6-5574-45cb-8e70-9077dc3d3e33)
182+
183+
#### **错误码参考**
184+
![7 接口描述-错误码参照](https://github.com/user-attachments/assets/6eacce15-cb9b-42de-aa3f-feb3fb2fc304)
185+
186+
#### **接口调用代码示例**
187+
![8 接口描述-接口调用代码示例](https://github.com/user-attachments/assets/c1537e54-67c9-4d45-9654-026a0931e994)
188+
189+
### 管理页
190+
191+
#### 用户管理
192+
![9 接口管理-用户管理](https://github.com/user-attachments/assets/384e32c1-fd16-4edf-834c-41d617fdb266)
193+
194+
#### 商品管理
195+
![10 接口管理-商品管理](https://github.com/user-attachments/assets/a903a5b3-4fac-44a3-bc63-87d7399e0c2f)
196+
197+
#### 接口管理
198+
![11 管理页-接口管理](https://github.com/user-attachments/assets/b5f859d1-4b6a-459c-a637-2d7e63c1dd67)
199+
200+
#### 动态更新请求响应参数
201+
![12 管理页-接口管理-动态更新请求响应参数](https://github.com/user-attachments/assets/bf6c1529-0f07-4e81-a859-74bf5bb81f84)
202+
203+
### 积分商城
204+
![13 积分商城](https://github.com/user-attachments/assets/9c7458fc-a917-416b-8d1d-f28f55ce87ab)
205+
206+
#### 支付宝支付
207+
![15 订单支付-支付宝支付](https://github.com/user-attachments/assets/27df24dc-ecf4-46a6-a02a-738fd5e8fc65)
208+
209+
#### 支付宝支付成功
210+
![16 订单支付-支付宝支付成功](https://github.com/user-attachments/assets/c0d1f12d-3887-44a4-849a-e7bd0a576f57)
211+
212+
### 订单支付
213+
![14 订单支付](https://github.com/user-attachments/assets/04cbd202-5573-4262-9357-977d87f5b0ab)
214+
215+
### 个人信息
216+
217+
#### 每日签到
218+
##### 签到成功
219+
![19 每日签到-签到成功](https://github.com/user-attachments/assets/b91faa70-241e-42f9-9050-11b9723a4222)
220+
221+
##### 签到失败
222+
![20 每日签到-签到失败](https://github.com/user-attachments/assets/0fdad81e-8354-4471-b46b-bb1694db4f30)
223+
224+
### 好友邀请
225+
226+
#### **发送邀请**
227+
![21 好友邀请-发送邀请](https://github.com/user-attachments/assets/15aa0b4a-6698-4827-acde-785ee648d3c3)
228+
229+
#### **接受邀请**
230+
![22 好友邀请-接受邀请](https://github.com/user-attachments/assets/aa74fffd-54e0-4f4d-bbc8-4f2898bbd67c)
231+
232+
### 登录/注册
233+
#### 登录
234+
![23 登录:注册-登录](https://github.com/user-attachments/assets/68acb5e5-6ab6-4133-a0cc-d7a50f5bfd98)
235+
236+
#### 注册
237+
![24 登录:注册-注册](https://github.com/user-attachments/assets/690a1f84-bdd7-44e1-8d92-1dac72ade9ba)
238+
239+
### 订单管理
240+
241+
- **我的订单**![17 订单管理-我的订单](https://github.com/user-attachments/assets/dd8337f6-8cf3-4c39-ae7d-0d2852b827c6)
242+
243+
- **详细订单**![18 订单管理-详细订单](https://github.com/user-attachments/assets/1618fe73-8c8d-4c51-977b-02094bec450a)
244+
245+
### 主题切换
246+
247+
#### 浅色主题![1 首页-日间](https://github.com/user-attachments/assets/6c78f283-5711-4694-95a6-def446f51531)
56248

57-
You can view full document on our [official website](https://pro.ant.design). And welcome any feedback in our [github](https://github.com/ant-design/ant-design-pro).
249+
#### 深色主题![2 首页-夜间](https://github.com/user-attachments/assets/586c2055-9eef-41af-b2e1-96264c8d732f)

baiduPush.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 确保脚本抛出遇到的错误
2+
set -e
3+
4+
# 百度链接推送
5+
curl -H 'Content-Type:text/plain' --data-binary @urls.txt "http://data.zz.baidu.com/urls?site=https://api.caiths.com&token=ZmkWCi6Pmdilh38O"

0 commit comments

Comments
 (0)