Commit Graph

28 Commits (694ad26c3f1f076c0f5621ae11f1f69f5df2fd87)

Author SHA1 Message Date
Ryan Wang 9ef13faada
chore: bump uppy related packages version (#5128)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.12.x

#### What this PR does / why we need it:

升级 Uppy 相关的依赖。

https://github.com/transloadit/uppy/releases/tag/uppy%403.21.0

#### Special notes for your reviewer:

测试附件上传组件功能是否正常即可。

#### Does this PR introduce a user-facing change?

```release-note
升级 Uppy 相关的依赖。

```
2023-12-29 10:43:39 +00:00
Ryan Wang 36ebc24aeb
chore: use lodash-es instead of lodash (#5125)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.12.x

#### What this PR does / why we need it:

优化 Lodash 依赖,使用 lodash-es 代替 lodash 库。

#### Which issue(s) this PR fixes:

Fixes #5124 

#### Special notes for your reviewer:

CI 通过即可。

#### Does this PR introduce a user-facing change?

```release-note
None 
```
2023-12-28 09:13:38 +00:00
Ryan Wang cdd5cb44bb
feat: record the user query conditions in the route query parameters (#5071)
#### What type of PR is this?

/area console
/kind feature
/milestone 2.12.x

#### What this PR does / why we need it:

在用户数据管理列表页面路由中记录查询条件,包括分页信息、筛选信息等。可以保证在刷新页面或者切换路由返回时保留之前的查询状态。

<img width="1671" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/f63240b8-800a-4dc8-be80-1542c43815ee">

#### Which issue(s) this PR fixes:

Fixes #5060 

#### Special notes for your reviewer:

需要测试:

1. 用户管理列表的所有筛选项是否可以正常工作。
2. 尝试设置部分筛选,然后刷新页面,观察筛选条件是否正常保留。

#### Does this PR introduce a user-facing change?

```release-note
Console 端的用户管理列表支持在地址栏记录筛选条件。
```
2023-12-21 06:52:12 +00:00
Ryan Wang b8d5d1f0e4
feat: add a warning about using the h2 database in actuator page (#5072)
#### What type of PR is this?

/area console
/kind feature
/milestone 2.12.x

#### What this PR does / why we need it:

在概览页面添加使用 H2 数据库的警告。

<img width="1138" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/d2ecee4a-c7f4-4b97-a721-11a697606579">

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/5047

#### Special notes for your reviewer:

需要测试使用 H2 数据库运行 Halo,进入概览页面,观察是否有提示。

#### Does this PR introduce a user-facing change?

```release-note
在 Console 的概览页面添加使用 H2 数据库的警告。
```
2023-12-20 02:52:09 +00:00
guqing abd049719d
feat: support reset passwords based on email address (#4941)
#### What type of PR is this?
/kind feature
/area core
/area console
/milestone 2.11.x

#### What this PR does / why we need it:
新增使用邮箱地址找回密码功能

#### Which issue(s) this PR fixes:
Fixes #4940

#### Does this PR introduce a user-facing change?
```release-note
新增使用邮箱地址找回密码功能
```
2023-12-01 03:06:09 +00:00
Ryan Wang 05fd5a67bd
feat: add disallow access console option for custom role (#4958)
#### What type of PR is this?

/area console
/kind feature
/milestone 2.11.x

#### What this PR does / why we need it:

支持为自定义角色配置 **禁止访问 Console** 的选项。

#### Special notes for your reviewer:

测试方式:

1. 创建一个新角色,勾选禁止访问 Console 的选项,并赋予给某个用户。
2. 登录之后,尝试访问 /console 观察是否能够正常访问。
3. 检查个人中心左下角是否有进入 Console 的按钮。
4. 测试其他未设置这个选项的角色是否正常。

#### Does this PR introduce a user-facing change?

```release-note
支持为自定义角色配置 **禁止访问 Console** 的选项。
```
2023-12-01 02:38:09 +00:00
Ryan Wang 61fe95ab3c
feat: improve the missing UI permissions control (#4960)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.11.x

#### What this PR does / why we need it:

完善遗漏的编辑器上传图片的 UI 权限控制,以及部分 i18n。

#### Does this PR introduce a user-facing change?

```release-note
None
```
2023-12-01 02:14:09 +00:00
Ryan Wang 5e76da018d
feat: refine i18n for uc (#4957)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.11.x

#### What this PR does / why we need it:

完善个人中心相关页面的 i18n。

#### Special notes for your reviewer:

测试各个语言的个人中心相关页面。

#### Does this PR introduce a user-facing change?

```release-note
完善个人中心相关页面的 i18n。
```
2023-11-30 10:56:10 +00:00
Ryan Wang 8f83df415c
feat: request health api for session keep-alive (#4949)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.11.0

#### What this PR does / why we need it:

在 Console 和 UC 轮询 /actuator/health 接口保持登录会话,目前是 5min 请求一次。

#### Which issue(s) this PR fixes:

Fixes #4947 

#### Does this PR introduce a user-facing change?

```release-note
优化 Console 的登录会话保活机制。
```
2023-11-30 04:10:08 +00:00
Ryan Wang 6e70d2e047
fix: issue of content overflow in the console page (#4937)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2023-11-30 12:01:45 +08:00
John Niang b2b096c544
Support managing posts in the user center (#4866)
* Support managing posts in user center

Signed-off-by: John Niang <johnniang@foxmail.com>

* Adapt post management in user center

Signed-off-by: Ryan Wang <i@ryanc.cc>

---------

Signed-off-by: John Niang <johnniang@foxmail.com>
Signed-off-by: Ryan Wang <i@ryanc.cc>
Co-authored-by: Ryan Wang <i@ryanc.cc>
2023-11-30 11:55:29 +08:00
Ryan Wang f5dcb5d925
feat: refine ui permissions of actuator page (#4945)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.11.x

#### What this PR does / why we need it:

完善系统概览页面的 UI 权限控制。

#### Does this PR introduce a user-facing change?

```release-note
完善系统概览页面的 UI 权限控制。
```
2023-11-30 02:44:08 +00:00
Ryan Wang 82a6ba6d90
feat: support for configuring the redirection location after login for roles (#4918)
#### What type of PR is this?

/area console
/kind feature
/milestone 2.11.x

#### What this PR does / why we need it:

支持为自定义的角色配置登录之后默认跳转位置。

#### Special notes for your reviewer:

1. 创建一个新的角色,设置跳转位置。
2. 为一个用户赋予这个角色。
3. 测试登录之后是否正常跳转到设置的位置。

#### Does this PR introduce a user-facing change?

```release-note
支持为自定义的角色配置登录之后默认跳转位置。
```
2023-11-27 14:10:09 +00:00
Ryan Wang 3306b1f881
feat: add support for displaying enabled plugins on actuator page (#4897) 2023-11-27 21:33:31 +08:00
Ryan Wang 03a9fc5080
refactor: delay navigation to console until plugins are ready in initial data page (#4901)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2023-11-27 21:33:07 +08:00
Ryan Wang 925f8d0ea4
feat: add sticky block component (#4919)
#### What type of PR is this?

/kind feature
/area console
/milestone 2.11.x

#### What this PR does / why we need it:

添加 `<StickyBlock />` 组件,用于将元素固定在顶部或者底部。

此外,此 PR 针对主题设置、插件设置、系统设置等表单可能较长的页面使用了此组件。

<img width="1214" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/abc849eb-a9a9-4d0a-b81c-d7430815660d">


#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/4548

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
添加 `<StickyBlock />` 组件,用于将元素固定在顶部或者底部,并为主题 / 插件 / 系统设置的底部保存按钮区域做了适配。
```
2023-11-27 09:38:08 +00:00
Ryan Wang 0102f7a227
fix: overflow issue of card component (#4922)
#### What type of PR is this?

/area console
/kind bug
/milestone 2.11.x

#### What this PR does / why we need it:

修复在 Card 组件中使用下拉组件无法完整显示的问题。

before:

<img width="898" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/8381ab18-fe48-4e14-9ac2-2c7da5b22556">

after:

<img width="900" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/517622e8-f507-4ce8-89be-1e47380be3a3">


#### Which issue(s) this PR fixes:

Fixes #4921 

#### Does this PR introduce a user-facing change?

```release-note
修复在 Card 组件中使用下拉组件无法完整显示的问题。
```
2023-11-27 09:04:08 +00:00
John Niang c02911ce01
Merge pull request #4875 from ruibaby/perf/asynchronously-load-uppy-upload
perf: asynchronously load the uppy upload component
2023-11-27 16:57:06 +08:00
John Niang a56f7e89f5
Merge pull request #4900 from ruibaby/refactor/signup-event
refactor: redirect to user center by default after registration
2023-11-23 23:56:33 +08:00
Ryan Wang 1f1f3cb724
feat: add tailwindcss/forms plugin to standardize the style of form elements (#4893)
#### What type of PR is this?

/area console
/kind improvement

#### What this PR does / why we need it:

Use [@tailwindcss/forms](https://github.com/tailwindlabs/tailwindcss-forms) plugin to standardize the style of form elements, and resolve some style issues.

before:

<img width="294" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/eeb6792f-a278-4fd0-a99c-7d7e50dd550d">

after:

<img width="291" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/652b07d8-7410-4c62-9b4f-1b3228d68883">

#### Which issue(s) this PR fixes:

Fixes #4734 

#### Does this PR introduce a user-facing change?

```release-note
优化 Console 端表单元素样式
```
2023-11-23 09:32:09 +00:00
Ryan Wang ec7dbf0a9b refactor: redirect to user center by default after registration
Signed-off-by: Ryan Wang <i@ryanc.cc>
2023-11-23 17:04:06 +08:00
Ryan Wang 6f1d86de6d perf: asynchronously load the uppy upload component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2023-11-18 16:08:19 +08:00
随心 747cab3aa1
fix: vue warning issue in BackupListItem component (#4870)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.11.x

#### What this PR does / why we need it:

修复代码错误导致的控制台警告。异常现象:备份列表页面,有多少备份文件就会有多少个警告日志。
![image](https://github.com/halo-dev/halo/assets/44720422/2dc64621-9731-4647-b23e-c3a5aa115c37)

#### Which issue(s) this PR fixes:

Fixes #4871

#### Special notes for your reviewer:

None

#### Does this PR introduce a user-facing change?

```release-note
修复备份页面中的浏览器控制台警告日志
```
2023-11-17 16:08:08 +00:00
Ryan Wang a951a34a1b
feat: refine user center feature (#4857)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2023-11-16 15:51:19 +08:00
Ryan Wang d356b65671 Merge branch 'main' into feature-user-center 2023-11-15 13:47:25 +08:00
Ryan Wang b0aec48c7c
feat: basic implementation of personal center (#4851)
#### What type of PR is this?

/area console
/milestone 2.11.x
/kind feature

#### What this PR does / why we need it:

个人中心的基础实现,此 PR 已完成:

1. 个人中心基础布局。
2. 将个人相关的功能移动到个人中心,包括个人资料修改、密码修改、PAT、通知配置、通知中心等。
3. 个人中心和管理控制台的切换入口。

<img width="1920" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/2db810dc-c467-4b6d-86ad-dd7473fa8ef6">

注意:此 PR 仅包含基础实现,其他的 UI 更改和 i18n 完善会放在后面的 PR。

#### Special notes for your reviewer:

测试方式:

1. 使用开发模式启动 Halo 后端。
2. 在 Console 目录运行 `pnpm dev`。
3. 测试 /console 的功能。
4. 测试 /uc 的功能。

#### Does this PR introduce a user-facing change?

```release-note
None
```
2023-11-13 08:56:08 +00:00
Ryan Wang 52d064381f
refactor: improve project structure for user center feature (#4839)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.11.x

#### What this PR does / why we need it:

重构前端的目录结构,以便在后续让个人中心的代码支持复用部分代码。

https://github.com/ruibaby/halo/tree/refactor/file-structure/console/docs/project-structure

#### Special notes for your reviewer:

测试方式:

1. 启动最新的 Halo 后端。
2. 在 Console 目录运行 `pnpm dev`,可以观察到同时监听了 3000 和 4000 端口,分别代理原本的 /console 和新加的 /uc
3. 访问 /console 和 /uc。
4. 测试 `pnpm build`,完成之后检查主项目的 `src/main/resources` 目录是否包含 console 和 uc 目录。
5. 使用生产环境运行 Halo,访问 /console 和 /uc

#### Does this PR introduce a user-facing change?

```release-note
None
```
2023-11-09 06:56:06 +00:00
Ryan Wang 8c56093ee2
feat: build infrastructure for user center feature (#4806)
#### What type of PR is this?

/area console
/kind feature
/milestone 2.11.x

#### What this PR does / why we need it:

添加前端部分的个人中心的基础设施,将通过改造 Console 项目的结构实现对个人中心页面的隔离。意味着 Console 项目的意义将转变为 frontend,其中包含 Console 和 UC。

#### Special notes for your reviewer:

测试方式:

1. 启动最新的 Halo 后端。
2. 在 Console 目录运行 `pnpm dev`,可以观察到同时监听了 3000 和 4000 端口,分别代理原本的 /console 和新加的 /uc
3. 访问 /console 和 /uc。
4. 测试 `pnpm build`,完成之后检查主项目的 `src/main/resources` 目录是否包含 console 和 uc 目录。
5. 使用生产环境运行 Halo,访问 /console 和 /uc

#### Does this PR introduce a user-facing change?

```release-note
None
```
2023-11-02 09:00:28 +00:00