Halo Dev Bot
b33268997d
[release-2.3] fix: the rawType of Content was not updated when switching editors ( #911 )
...
This is an automated cherry-pick of #904
/assign JohnNiang
```release-note
修复在新建文章时,首次切换编辑器后没有设置内容 rawType 资源为对应编辑器类型的问题。
```
2 years ago
Halo Dev Bot
50557ce318
[release-2.3] fix: the issue of blank content when opening a saved post in StackEdit editor plugin for editing ( #905 )
...
This is an automated cherry-pick of #903
/assign JohnNiang
```release-note
修复 Console 端在使用三方编辑器插件编辑文章时可能出现无法加载内容的问题。
```
2 years ago
Ryan Wang
764326e42b
chore: release 2.3.1 ( #902 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
发布 Console 2.3.1。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
9c5b3d71ab
chore: bump uppy version to fix crash on chrome browser ( #900 )
...
#### What type of PR is this?
/kind bug
#### What this PR does / why we need it:
修复在非安全情况下(非 HTTPS 环境或本地环境),在 [Chromium](https://www.chromium.org/ ) 内核的浏览器下拖拽文件上传出现浏览器崩溃的问题。
修复来源:
- https://github.com/transloadit/uppy/releases/tag/uppy%403.6.0
- https://github.com/transloadit/uppy/pull/4310
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3017
#### Screenshots:
before:
![2023-03-08 10 59 02](https://user-images.githubusercontent.com/21301288/223609341-222f62d2-630a-4ee8-ba8f-2fb3c78fcca7.gif )
after:
![2023-03-08 11 00 06](https://user-images.githubusercontent.com/21301288/223609353-857f6559-cc9c-482f-9b46-713430621bb6.gif )
#### Special notes for your reviewer:
测试方式:
1. 需要先执行 `make -C console install` 以更新 Console 的依赖。
2. 使用非 localhost 或者 127.0.0.1 访问 Halo 后台,本地环境可以使用 192.168.x.x 访问。
3. 在 Console 的附件管理测试拖拽文件上传,观察浏览器是否崩溃。
#### Does this PR introduce a user-facing change?
```release-note
修复非 HTTPS 环境下,在 Chromium 内核浏览器拖拽上传文件时出现浏览器崩溃的问题。
```
2 years ago
Ryan Wang
6143f5f218
perf: mute the start plugin request in setup page ( #897 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
隐藏在初始化页面启用插件时的错误提示,因为会重试三次,所以不需要提示。
```release-note
None
```
2 years ago
Ryan Wang
edf51fbcfa
refactor: use tanstack query to refactor comment-related fetching ( #892 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
使用 [TanStack Query](https://github.com/TanStack/query ) 重构评论管理相关数据请求的相关逻辑。
#### Which issue(s) this PR fixes:
Ref https://github.com/halo-dev/halo/issues/3360
#### Special notes for your reviewer:
测试方式:
1. 测试评论管理列表的数据请求 + 条件筛选无异常即可。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
604f27227c
chore: release 2.3.0 ( #896 )
...
#### What type of PR is this?
/kind improvement
/milestone 2.3.0
#### What this PR does / why we need it:
发布 2.3.0。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
0a65f5bd14
perf: hide anonymousUser in user filter dropdown list ( #891 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
在用户条件筛选框中隐藏匿名用户。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3407
#### Screenshots:
<img width="864" alt="image" src="https://user-images.githubusercontent.com/21301288/221490795-eaf9c515-e487-4d76-87dd-f0010415360e.png ">
#### Special notes for your reviewer:
None
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
3d718b57b4
fix: get the wrong link after selecting an attachment ( #893 )
...
#### What type of PR is this?
/kind bug
#### What this PR does / why we need it:
修复默认编辑器从附件库选择非图片、音视频的附件,以链接的形式插入之后得到的链接不正确的问题。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3408
#### Screenshots:
before:
<img width="995" alt="image" src="https://user-images.githubusercontent.com/21301288/221510856-76eaa125-c13e-472a-8073-7f9f58bb4bd2.png ">
after:
<img width="924" alt="image" src="https://user-images.githubusercontent.com/21301288/221510749-c27fc083-3978-4139-959a-426499016d12.png ">
#### Special notes for your reviewer:
测试方式:
1. 上传若干 zip 格式附件。
2. 在编辑器中选择这些附件并插入,检查链接是否正确。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
e3e0ddc95a
perf: add success toast for saving plugin and theme settings ( #895 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
保存主题和插件设置时,添加保存成功的反馈提示。
#### Screenshots:
<img width="803" alt="image" src="https://user-images.githubusercontent.com/21301288/221805091-60f3f20c-5524-4dea-9858-6c521cb1dfbc.png ">
#### Special notes for your reviewer:
None
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
fbbdd47d83
fix: incorrect default pagination number of attachment list ( #890 )
...
#### What type of PR is this?
/kind bug
#### What this PR does / why we need it:
修复附件管理默认分页条数不正确的问题,应该是在 https://github.com/halo-dev/console/pull/878 中测试分页之后没有改回原来的值导致的。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3406
#### Special notes for your reviewer:
测试附件管理页面默认分页条数是否为 60 即可。
<img width="1423" alt="image" src="https://user-images.githubusercontent.com/21301288/221489138-be0ecfb1-2bc0-4732-8554-afdfc5bf2dfe.png ">
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
1dd0d89738
feat: add supports for initialize preset plugins ( #894 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
支持在初始化页面安装预设插件。适配:https://github.com/halo-dev/halo/pull/3394
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3120
#### Special notes for your reviewer:
测试方式:
1. Halo 需要切换到 https://github.com/halo-dev/halo/pull/3394
2. Console 需要 `pnpm build:packages`
3. 根据 https://github.com/halo-dev/halo/pull/3394 中的提示,将需要预设的插件放置到 `src/main/resources/presets/plugins`
4. 使用全新的环境进行初始化,完成之后进入插件管理检查是否正常安装了预设插件
#### Does this PR introduce a user-facing change?
```release-note
Console 端支持在初始化页面安装预设插件。
```
2 years ago
Ryan Wang
de2612da27
fix: pages using tanstack query cannot be loaded in production build ( #889 )
2 years ago
Ryan Wang
3fa95fcbee
chore: release 2.3.0-rc.1 ( #888 )
...
#### What type of PR is this?
/kind improvement
/milestone 2.3.x
#### What this PR does / why we need it:
发布 2.3.0-rc.1
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
960e727f87
refactor: use tanstack query to refactor singlePage-related fetching ( #886 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
使用 [TanStack Query](https://github.com/TanStack/query ) 重构页面相关数据请求的相关逻辑。
#### Which issue(s) this PR fixes:
Ref https://github.com/halo-dev/halo/issues/3360
#### Special notes for your reviewer:
测试方式:
1. 测试页面管理列表的数据请求 + 条件筛选无异常即可。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
dc9c606b82
fix: user filter list will fail to load the avatar after searching ( #885 )
...
#### What type of PR is this?
/kind bug
#### What this PR does / why we need it:
修复用户筛选列表在搜索之后无法正常加载头像的问题。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3361
#### Screenshots:
<img width="455" alt="image" src="https://user-images.githubusercontent.com/21301288/221108789-291999ab-ee4f-478c-900b-4273e3780357.png ">
#### Special notes for your reviewer:
测试方式:
1. 创建若干用户并设置头像。
2. 打开文章管理的用户筛选项,尝试输入关键词搜索,观察搜索出的用户头像是否加载正常。
#### Does this PR introduce a user-facing change?
```release-note
修复 Console 端用户筛选项,输入关键词搜索之后无法加载头像的问题。
```
2 years ago
Ryan Wang
e9d8f0f4ae
perf: hide active button when theme is activated ( #877 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
当主题已经启用时,隐藏启用的按钮。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3059
#### Screenshots:
<img width="1022" alt="image" src="https://user-images.githubusercontent.com/21301288/220517066-67ee2f25-1b64-47c0-8b4c-3bdd6b3cb9f1.png ">
#### Special notes for your reviewer:
测试方式:
1. 在主题管理列表检查已启用主题是否还有启用按钮即可。
#### Does this PR introduce a user-facing change?
```release-note
Console 端主题管理列表隐藏已启用主题的启用按钮。
```
2 years ago
Ryan Wang
08c58ae179
refactor: support configuring plugin when the plugin is stopped ( #875 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
1. 插件停止时支持配置插件设置项。
2. 修改插件异常信息的获取方式。
适配:https://github.com/halo-dev/halo/pull/3355
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3352
#### Special notes for your reviewer:
测试方式:
1. Halo 需要切换到 https://github.com/halo-dev/halo/pull/3355 分支。
2. Console 需要 `pnpm build:packages`
3. 根据 https://github.com/halo-dev/halo/pull/3355 中的描述进行测试。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
0eff78787e
refactor: change the creation time field for comments and replies ( #874 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
修改评论和回复的创建时间字段。适配:https://github.com/halo-dev/halo/pull/3341
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3330
#### Special notes for your reviewer:
None
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
e4b655e561
perf: disable the editor from pasting excel tables as pictures ( #873 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
禁止在编辑器粘贴 Excel 表格时,将表格转为图片的形式上传。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3348
#### Screenshots:
before:
<img width="818" alt="image" src="https://user-images.githubusercontent.com/21301288/220243681-eb07502a-0fc5-4e69-9cd3-61c3b89cb542.png ">
after:
<img width="815" alt="image" src="https://user-images.githubusercontent.com/21301288/220243630-ca7c2700-ff61-4893-a857-94860e4a899b.png ">
#### Special notes for your reviewer:
测试方式:
1. 使用 Excel 或者 macOS 下的 Numbers 创建一个表格。
2. 复制整个表格或者某几个单元格,并粘贴到 Halo 的编辑器。
3. 观察是否有将内容转为图片并上传。
#### Does this PR introduce a user-facing change?
```release-note
Console 端禁止在编辑器粘贴 Excel 表格以图片的形式上传。
```
2 years ago
Ryan Wang
f7c0fd5762
feat: editor supports selecting attachments to be inserted as links ( #863 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
编辑器支持选择附件作为链接插入。目前在附件库选择附件时,如果非图片、视频、音频,那么就会作为链接插入。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/2673
#### Screenshots:
![2023-02-17 21 02 43](https://user-images.githubusercontent.com/21301288/219660123-b910a4d5-32e6-4606-813e-c081720556d5.gif )
#### Special notes for your reviewer:
测试方式:
1. 测试从附件库选择非图片、视频、音频的时候是否会作为链接插入即可。
#### Does this PR introduce a user-facing change?
```release-note
Console 端默认编辑器支持以链接的形式插入非图片、音视频的附件。
```
2 years ago
Ryan Wang
94903646f6
fix: the issue that the useSlugify hook may cause the value to be undefined ( #884 )
...
#### What type of PR is this?
/kind bug
#### What this PR does / why we need it:
修复新建分类和标签之后再次打开表单,别名显示为 undefined 的问题。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3382
#### Special notes for your reviewer:
测试方式:
1. 新建分类或者标签,创建完成之后再次打开创建表单,检查别名是否还为 undefined。
#### Does this PR introduce a user-facing change?
```release-note
修复 Console 端新建分类和标签之后再次打开表单,别名显示为 undefined 的问题。
```
2 years ago
Ryan Wang
a8166e5336
perf: improve the conditions for categories and tags automatic refresh ( #883 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
优化分类和标签管理页面自动刷新的条件,现在支持检测 `status.permalink` 是否已经生成完毕,如果没有会自动刷新列表。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3376
#### Special notes for your reviewer:
测试方式:
1. 测试添加若干分类和标签,观测在没有生成 permalink 的情况下,是否会自动刷新列表。
#### Does this PR introduce a user-facing change?
```release-note
优化 Console 端分类和标签管理的自动刷新条件,支持检测固定链接是否已经生成。
```
2 years ago
Ryan Wang
6244e8b5c0
refactor: request api of user data ( #882 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
重构获取用户信息的请求方式,无需再请求所有角色即可获取当前用户的角色信息,适配:https://github.com/halo-dev/halo/pull/3372
相关 PR:https://github.com/halo-dev/console/pull/847
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3342
#### Special notes for your reviewer:
测试方式:
1. Halo 需要切换到 https://github.com/halo-dev/halo/pull/3372 分支。
2. Console 需要 `pnpm install && pnpm build:packages`
3. 测试用户列表、登录、检查角色信息是否显示正确。
#### Does this PR introduce a user-facing change?
```release-note
优化 Console 端用户角色标识的显示名称。
```
2 years ago
Ryan Wang
66a626c916
refactor: use tanstack query to refactor post-related fetching ( #879 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
使用 [TanStack Query](https://github.com/TanStack/query ) 重构文章相关数据请求的相关逻辑。
#### Which issue(s) this PR fixes:
Ref https://github.com/halo-dev/halo/issues/3360
#### Special notes for your reviewer:
测试方式:
1. 测试文章相关联的页面,包括文章管理、分类、标签。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
5a27f56b89
refactor: remove default cover from user profile page ( #881 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
因为暂时不太好为用户设置个人资料背景图片,所以暂时移除个人资料页面的默认背景。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/2851
#### Screenshots:
<img width="1680" alt="image" src="https://user-images.githubusercontent.com/21301288/220852412-6732c965-ae43-441e-b99a-af3d6d978d4f.png ">
#### Special notes for your reviewer:
None
#### Does this PR introduce a user-facing change?
```release-note
移除 Console 端个人资料页面的默认背景图片
```
2 years ago
Li
1f8cf9fac5
fix: default value of formkit schema is not initialize in annotation form ( #880 )
...
#### What type of PR is this?
/kind bug
/milestone 2.3.x
/area console
#### What this PR does / why we need it:
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3357
#### Special notes for your reviewer:
测试使用主题/插件自定义的元数据信息,是否能够在 console 中显示默认值。
#### Does this PR introduce a user-facing change?
```release-note
使用主题/插件配置的元数据将能够展示默认值
```
2 years ago
Ryan Wang
0f8e5fad80
refactor: use tanstack query to refactor attachments-related fetching ( #878 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
使用 [TanStack Query](https://github.com/TanStack/query ) 重构附件相关数据请求的相关逻辑。
#### Which issue(s) this PR fixes:
Ref https://github.com/halo-dev/halo/issues/3360
#### Special notes for your reviewer:
测试方式:
1. 测试附件管理页面的筛选、存储策略、分组等业务。
2. 测试附件选择模态框组件。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
43c5effcd0
perf: improve the validation rules for username ( #868 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
优化用户名的校验规则,目前采用 DNS 名称的规则,即:必须以字母(a-z或A-Z)开头,并包含字母数字字符(a-z,A-Z,0-9)和连字符(-)。每一段名称以字母结尾(a-z或A-Z)。名称以点(.)分隔
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3239
#### Screenshots:
#### Special notes for your reviewer:
测试方式:
1. 新建用户,检查用户名输入规则是否符合预期。
#### Does this PR introduce a user-facing change?
```release-note
优化 Console 端新建用户时,用户名的校验规则。
```
2 years ago
Ryan Wang
816feb9937
refactor: use tanstack query to refactor plugins fetching ( #876 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
使用 [TanStack Query](https://github.com/TanStack/query ) 重构插件管理列表的数据请求相关逻辑。
#### Which issue(s) this PR fixes:
Ref https://github.com/halo-dev/halo/issues/3360
#### Special notes for your reviewer:
测试方式:
1. 需要 `pnpm install`
2. 插件管理页面,安装若干插件。
3. 测试分页、条件筛选等逻辑是否正常。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
c03ea64bf2
feat: provide Chinese translation for the system's role template ( #870 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
为系统内提供的角色模板提供中文翻译。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/2848
#### Screenshots:
<img width="1414" alt="image" src="https://user-images.githubusercontent.com/21301288/220069394-6af6922b-28b2-4818-ab58-dcfb69b6b53b.png ">
#### Special notes for your reviewer:
测试方式:
1. 需要 `pnpm install`
2. 检查角色详情页面和新建页面的角色模板描述是否为中文。
#### Does this PR introduce a user-facing change?
```release-note
Console 端为系统内提供的角色模板提供中文翻译
```
2 years ago
Ryan Wang
d396337d55
perf: add supports for storing navbar position ( #865 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
支持保存侧板滚动条位置,防止切换路由时侧边栏的抖动。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3240
#### Screenshots:
before:
![2023-02-20 12 12 05](https://user-images.githubusercontent.com/21301288/220007834-12658cf2-e8a8-42ea-93b1-2c58419edbac.gif )
after:
![2023-02-20 12 11 19](https://user-images.githubusercontent.com/21301288/220007742-58471b69-cfd1-4576-babd-5516d2c0de1d.gif )
#### Special notes for your reviewer:
测试方式:
1. 调整浏览器高度,让侧边栏菜单区域出现滚动条。
2. 测试点击底部的任意菜单项,跳转页面之后,观察滚动条是否与之前的位置保持一致。
#### Does this PR introduce a user-facing change?
```release-note
Console 端侧边栏滚动条支持缓存位置,防止切换路由时重置滚动条位置。
```
2 years ago
Ryan Wang
cf34b86540
perf: improve the layout of post tags ( #869 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
优化文章管理列表的标签布局,改为单独占用一行。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/2926
Fixes https://github.com/halo-dev/halo/issues/3301
#### Screenshots:
<img width="1408" alt="image" src="https://user-images.githubusercontent.com/21301288/220048436-aed6e0b1-8fc7-4365-98c9-db4aef29205e.png ">
#### Special notes for your reviewer:
#### Does this PR introduce a user-facing change?
```release-note
优化 Console 端文章管理的标签布局
```
2 years ago
Ryan Wang
43702ed126
feat: add supports for display database info in actuator page ( #872 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
支持在系统概览页面显示数据库信息。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3263
#### Screenshots:
<img width="1413" alt="image" src="https://user-images.githubusercontent.com/21301288/220119998-dcf58a6e-cbe5-46ed-9fda-67d0ce5b85c1.png ">
#### Special notes for your reviewer:
测试方式:
1. Halo 需要切换到 https://github.com/halo-dev/halo/pull/3351 分支。
2. 进入系统概览页面,检查是否有数据库信息。
#### Does this PR introduce a user-facing change?
```release-note
Console 端的系统概览页面支持显示数据库信息
```
2 years ago
Ryan Wang
4dd9592748
feat: prompt to upgrade plugin when installing existing plugin ( #871 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
安装已存在插件时,支持提示和升级插件。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3164
#### Screenshots:
<img width="1411" alt="image" src="https://user-images.githubusercontent.com/21301288/220118697-12fbd7a7-57e6-47bb-a03b-b9c280571687.png ">
#### Special notes for your reviewer:
测试方式:
1. Halo 需要切换到 https://github.com/halo-dev/halo/pull/3350 分支。
2. 在插件为 deployment 模式下启动 Halo。
3. 安装任意一个插件,然后继续上传安装相同插件。
4. 观察是否提示升级此插件。
#### Does this PR introduce a user-facing change?
```release-note
Console 端安装已存在插件时,支持提示并升级插件。
```
2 years ago
源
56e7c2f379
fix: hide the ghost user from the user list ( #866 )
...
What type of PR is this?
/kind bug
What this PR does / why we need it:
将ghost用户从用户列表隐藏。
Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3317
```release-note
NONE
```
2 years ago
Ryan Wang
7b3007ec9f
feat: add supports for download log file in actuator page ( #867 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
在系统概览页面支持下载运行日志。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3188
#### Screenshots:
<img width="1676" alt="image" src="https://user-images.githubusercontent.com/21301288/220023373-44616cd3-b42a-466a-a928-9abce78cc16d.png ">
#### Special notes for your reviewer:
测试方式:
1. 进入系统概览页面,点击运行日志的下载按钮。
2. 检查是否成功下载了日志文件。
#### Does this PR introduce a user-facing change?
```release-note
Console 端的系统概览页面支持下载运行日志。
```
2 years ago
Ryan Wang
2705fc35d0
perf: default editor's toc supports showing empty states ( #864 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
默认编辑器的大纲在没有内容的时候支持显示空状态的提示。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3335
#### Screenshots:
<img width="1420" alt="image" src="https://user-images.githubusercontent.com/21301288/220002675-e16829f0-1c33-4030-a76b-4720dc7d7a69.png ">
#### Special notes for your reviewer:
#### Does this PR introduce a user-facing change?
```release-note
Console 端默认编辑器的大纲列表支持显示空状态
```
2 years ago
Ryan Wang
194ff7f4ad
feat: user management supports conditional filtering and sorting ( #862 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
用户管理列表支持条件筛选和排序,适配:https://github.com/halo-dev/halo/pull/3320
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3290
#### Screenshots:
<img width="922" alt="image" src="https://user-images.githubusercontent.com/21301288/219578426-de396dfb-7ece-496e-b740-d7a36321eafb.png ">
#### Special notes for your reviewer:
测试方式:
1. Halo 需要切换到 https://github.com/halo-dev/halo/pull/3320 分支。
2. Console 需要 `pnpm build:packages`
3. 测试用户管理的关键词、条件、排序筛选是否工作正常。
#### Does this PR introduce a user-facing change?
```release-note
Console 端的用户列表支持条件筛选和排序。
```
2 years ago
Ryan Wang
87d7592b29
feat: add supports for preview audio and video file in attachment detail ( #841 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
支持在附件库的附件详情弹框中预览音视频文件。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/1923
#### Screenshots:
<img width="1011" alt="image" src="https://user-images.githubusercontent.com/21301288/217746883-92c46d4e-a51d-4b53-ae8e-f647a47b216f.png ">
<img width="1010" alt="image" src="https://user-images.githubusercontent.com/21301288/217746922-9b014974-71aa-4d54-aa42-be2ae03647a1.png ">
#### Special notes for your reviewer:
测试方式:
1. 上传若干视频和音频文件,检查是否可以正常播放即可。
可供测试的文件:[音视频测试.zip](https://github.com/halo-dev/console/files/10694553/default.zip )
#### Does this PR introduce a user-facing change?
```release-note
Console 端的附件详情支持预览音视频文件。
```
2 years ago
Ryan Wang
c8dbd2422c
feat: add layer-closeable prop for modal ( #861 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
VModal 组件支持设置是否允许点击蒙层以关闭模态框,并将所有包含表单的模态框设置为不允许点击蒙层关闭。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3328
#### Screenshots:
![2023-02-17 12 08 56](https://user-images.githubusercontent.com/21301288/219547318-d7c59742-8546-4bc8-9d49-fcff4053602f.gif )
#### Special notes for your reviewer:
测试方式:
1. 打开 Console 端任意一个表单模态框,测试点击表单外部区域是否会关闭弹框。
#### Does this PR introduce a user-facing change?
```release-note
优化 Console 端部分包含表单的模态框,默认不允许点击外部区域关闭模态框。
```
2 years ago
Ryan Wang
fad0dcc3ba
chore: adjust the log level and delete useless logs ( #860 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
调整部分日志级别,以及删除部分无用的日志。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
b949a25558
chore: move @halo-dev/api-client package to console ( #854 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
将 https://github.com/halo-sigs/api-client 移动到 Console 的仓库进行管理。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3302
#### Special notes for your reviewer:
测试方式:
1. 需要先 `pnpm install && pnpm build:packages`
2. 测试开发环境(pnpm dev)和构建之后(pnpm build)是否能够正常使用。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
1ded5be45d
perf: improve error message of login ( #851 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
改进登录异常的提示信息,目前大致分为三种:
1. 用户名或密码错误
2. 跨域或网络请求异常
3. CSRF Token 失效
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3291
#### Screenshots:
<img width="1402" alt="image" src="https://user-images.githubusercontent.com/21301288/218319203-19517ab7-7740-41f9-8579-f10a60aa6e51.png ">
<img width="1673" alt="image" src="https://user-images.githubusercontent.com/21301288/218319221-2fc332f4-4de7-4417-a277-0c4a396d6389.png ">
#### Special notes for your reviewer:
测试方式:
1. 进入浏览器控制台清理 Cookie,以测试 CSRF Token 失效的情况。
2. 使用 3000 端口访问 Console,以测试跨域的情况。
3. 观察以上两种情况的登录请求异常提示信息是否符合要求。
#### Does this PR introduce a user-facing change?
```release-note
优化 Console 端登录请求异常的提示
```
2 years ago
Ryan Wang
fe353a472f
perf: mute the fetch roles request ( #857 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
静默请求所有角色信息,用于显示 displayName。(临时解决方案)
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
aca67f683c
fix: the issue that role display name ( #847 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
为系统初始化的角色添加显示名称
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3257
#### Screenshots:
<img width="1668" alt="image" src="https://user-images.githubusercontent.com/21301288/218020794-696420c4-69bb-4422-9409-482bb2aff708.png ">
#### Special notes for your reviewer:
测试方式:
1. Halo 需要切换到:https://github.com/halo-dev/halo/pull/3280
2. 检查 Console 端显示的系统角色是否正常。
3. 新建若干自定义角色,检查名称是否正常。
#### Does this PR introduce a user-facing change?
```release-note
优化 Console 端用户角色标识的显示名称。
```
2 years ago
Ryan Wang
381c3e2484
perf: improve word-break style for comment content ( #852 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
修复评论管理中内容文字过长导致样式异常的问题。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3294
#### Screenshots:
before:
<img width="1016" alt="image" src="https://user-images.githubusercontent.com/21301288/218379816-73a39f13-32f7-40a8-a65d-9e7f6f691f71.png ">
after:
<img width="1416" alt="image" src="https://user-images.githubusercontent.com/21301288/218379719-f86193c0-d6d7-4aa6-ad5c-d538c215e80b.png ">
#### Does this PR introduce a user-facing change?
```release-note
修复 Console 的评论管理中内容文字过长导致样式异常的问题。
```
2 years ago
Ryan Wang
5315a0d429
chore: add @LIlGG to reviewers list ( #850 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
将 @LIlGG 添加到 Reviewer 列表。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago
Ryan Wang
8209e1497e
perf: improve the indexing threshold for the fuse search engine ( #849 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
优化 Console 端使用 fuse.js 搜索引擎的搜索阈值,解决搜索关键词匹配的问题。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3289
#### Screenshots:
before:
![image](https://user-images.githubusercontent.com/21301288/218301830-9cc0ac6e-994c-4994-9701-28e50cc90fa3.png )
after:
<img width="676" alt="image" src="https://user-images.githubusercontent.com/21301288/218301848-0883bbe7-f2ad-4ccb-8802-74920d76ebe0.png ">
#### Special notes for your reviewer:
测试方式:
1. 检查 Console 端全局搜索,以及用户/权限管理的搜索是否符合预期。
#### Does this PR introduce a user-facing change?
```release-note
优化 Console 端全局搜索的匹配规则。
```
2 years ago
Ryan Wang
047e221ed6
chore: fix lint issue ( #848 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
移除未使用的导入和变量。
<img width="824" alt="image" src="https://user-images.githubusercontent.com/21301288/218025655-d5da2012-fe78-4bfe-9138-3015e97a25e4.png ">
#### Does this PR introduce a user-facing change?
```release-note
None
```
2 years ago