Skip to content

Commit 1f4e34d

Browse files
committed
refactor: update reactpress pages
1 parent 33ccbaf commit 1f4e34d

File tree

27 files changed

+86
-75
lines changed

27 files changed

+86
-75
lines changed

.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Database Config
22
DB_HOST=127.0.0.1
33
DB_PORT=3306
4-
DB_USER=admin
5-
DB_PASSWD=admin
6-
DB_DATABASE=easy_blog
4+
DB_USER=reactpress
5+
DB_PASSWD=reactpress
6+
DB_DATABASE=reactpress
77

88

99
# Client Config
@@ -17,7 +17,7 @@ SERVER_API_URL=http://localhost:3002/api
1717
SERVER_PUBLIC_UPLOAD_URL=http://localhost:3002/public/uploads
1818
SERVER_API_PREFIX=/api
1919
ADMIN_USER=admin
20-
ADMIN_PASSWD=admin
20+
ADMIN_PASSWD=reactpress
2121

2222
# Github OAuth Config
2323
GITHUB_CLIENT_ID=0

client/dev-server.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
const { config } = require('@easy-blog/config');
1+
const { config } = require('@reactpress/config');
22
const cli = require('next/dist/cli/next-dev');
33

44
const port = config.CLIENT_PORT || 3001;
55

6+
67
try {
78
cli.nextDev(['-p', port]);
8-
console.log(`[easy-blog] 客户端已启动,端口:${port}`);
9+
console.log(`[ReactPress] 客户端已启动,端口:${port}`);
910
} catch (err) {
10-
console.log(`[easy-blog] 客户端启动失败!${err.message || err}`);
11+
console.log(`[ReactPress] 客户端启动失败!${err.message || err}`);
1112
}

client/next-sitemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { config } = require('@easy-blog/config');
1+
const { config } = require('@reactpress/config');
22

33
module.exports = {
44
siteUrl: config.CLIENT_SITE_URL,

client/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
33
const withPlugins = require('next-compose-plugins');
44
const withLess = require('next-with-less');
55
const withPWA = require('next-pwa');
6-
const { config, locales, defaultLocale } = require('@easy-blog/config');
6+
const { config, locales, defaultLocale } = require('@reactpress/config');
77
const antdVariablesFilePath = path.resolve(__dirname, './antd-custom.less');
88

99
/** @type {import('next').NextConfig} */

client/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@easy-blog/client",
2+
"name": "@reactpress/client",
33
"version": "1.0.0",
44
"private": true,
55
"scripts": {
@@ -8,11 +8,11 @@
88
"postbuild": "next-sitemap",
99
"dev": "node dev-server.js",
1010
"start": "cross-env NODE_ENV=production node prod-server.js",
11-
"pm2": "pm2 start npm --name @easy-blog/client -- start"
11+
"pm2": "pm2 start npm --name @reactpress/client -- start"
1212
},
1313
"dependencies": {
1414
"@ant-design/icons": "^4.7.0",
15-
"@easy-blog/config": "workspace:^1.0.0",
15+
"@reactpress/config": "workspace:^1.0.0",
1616
"antd": "^5.20.6",
1717
"axios": "^0.23.0",
1818
"classnames": "^2.3.1",

client/pages/admin/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ const Home: NextPage<IHomeProps> = ({ articles = [], comments: defaultComments =
8181
<Typography>
8282
<Title>
8383
您好,{user.name},欢迎使用
84-
<a href="https://github.com/fecommnity/easy-blog" target="_blank">
85-
EasyBlog
84+
<a href="https://github.com/fecommnity/reactpress" target="_blank">
85+
ReactPress
8686
</a>
8787
8888
</Title>

client/prod-server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const { config } = require('@easy-blog/config');
1+
const { config } = require('@reactpress/config');
22
const cli = require('next/dist/cli/next-start');
33

44
const port = config.CLIENT_PORT || 3001;
55

66
try {
77
cli.nextStart(['-p', port]);
8-
console.log(`[easy-blog] 客户端已启动,端口:${port}`);
8+
console.log(`[reactpress] 客户端已启动,端口:${port}`);
99
} catch (err) {
10-
console.log(`[easy-blog] 客户端启动失败!${err.message || err}`);
10+
console.log(`[reactpress] 客户端启动失败!${err.message || err}`);
1111
}

client/src/components/ArticleList/index.module.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
position: relative;
2525
height: auto;
2626
width: 200px;
27-
transition: 0.5s ease-in;
2827
margin: 0 10px 0 0;
2928
flex-shrink: 0;
3029
overflow: hidden;

client/src/components/Editor/DefaultMarkdown.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ export const DEFAULT_MARKDOWN = `
22
33
<a href="https://gaoredu.com" title="高热度网"><img height="180" src="https://www.gaoredu.com/wp-content/uploads/2023/10/logo.png"></a>
44
5-
<h1>Easy-Blog</h1>
5+
<h1>ReactPress</h1>
66
7-
Easy-Blog 是一套集成文章发表、页面创建、知识库管理、博客后台管理等功能于一体的博客系统。
7+
ReactPress 是一套集成文章发表、页面创建、知识库管理、博客后台管理等功能于一体的博客系统。
88
99
## ✨ 特性
1010
@@ -22,22 +22,22 @@ Easy-Blog 是一套集成文章发表、页面创建、知识库管理、博客
2222
2323
### 环境准备
2424
\`\`\`bash
25-
$ git clone --depth=1 https://github.com/fecommnity/easy-blog.git
26-
$ cd easy-blog
25+
$ git clone --depth=1 https://github.com/fecommnity/reactpress.git
26+
$ cd reactpress
2727
$ npm i -g pnpm
2828
$ pnpm i
2929
\`\`\`
3030
3131
### 配置文件
3232
33-
项目启动后会加载根目录下的 \`.env\` 配置文件,请确保MySQL数据库服务和下面的配置保持一致,并提前创建好 \`easy_blog\` 数据库
33+
项目启动后会加载根目录下的 \`.env\` 配置文件,请确保MySQL数据库服务和下面的配置保持一致,并提前创建好 \`reactpress\` 数据库
3434
3535
\`\`\`js
3636
DB_HOST=127.0.0.1 // 数据库地址
3737
DB_PORT=3306 // 端口
3838
DB_USER=admin // 用户名
3939
DB_PASSWD=admin // 密码
40-
DB_DATABASE=easy_blog // 数据库
40+
DB_DATABASE=reactpress // 数据库
4141
\`\`\`
4242
4343
环境准备好后,执行启动命令:
@@ -51,10 +51,10 @@ $ pnpm run dev
5151
5252
## 🔗 链接
5353
54-
- [首页](https://github.com/fecommunity/easy-blog)
54+
- [首页](https://github.com/fecommunity/reactpress)
5555
- [高热度网](https://gaoredu.com)
56-
- [报告问题](https://github.com/fecommunity/easy-blog/issues)
57-
- [参与共建](https://github.com/fecommunity/easy-blog/pulls)
56+
- [报告问题](https://github.com/fecommunity/reactpress/issues)
57+
- [参与共建](https://github.com/fecommunity/reactpress/pulls)
5858
- [next.js 源码](https://github.com/vercel/next.js)
5959
- [nest.js 源码](https://github.com/nestjs/nest)
6060
@@ -70,7 +70,7 @@ $ pnpm run dev
7070
7171
- 通过 GitHub Discussions 提问时,建议使用 \`Q&A\` 标签。
7272
73-
- 通过 Stack Overflow 或者 Segment Fault 提问时,建议加上 \`easy-blog\` 标签。
73+
- 通过 Stack Overflow 或者 Segment Fault 提问时,建议加上 \`reactpress\` 标签。
7474
7575
7676
1. [GitHub Discussions](https://github.com/ant-design/ant-design/discussions)

client/src/components/Footer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const Footer = ({ setting, className = '', hasBg = false }) => {
5353
<a
5454
aria-label="Github"
5555
className={style.github}
56-
href="https://github.com/fecommunity/easy-blog"
56+
href="https://github.com/fecommunity/reactpress"
5757
target="_blank"
5858
rel="noopener noreferrer"
5959
>

0 commit comments

Comments
 (0)