Commit Graph

4652 Commits (694ad26c3f1f076c0f5621ae11f1f69f5df2fd87)

Author SHA1 Message Date
Takagi 694ad26c3f
fix: address styling issues with empty lines in code blocks (#5140)
#### What type of PR is this?

/kind bug

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

修改 code 内`br` 标签的 `display`,用于适配 firefox 浏览器

#### How to test it?

测试在 firefox 浏览器下,使用代码块回车等是否会出现样式问题。

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

Fixes #5064 

#### Does this PR introduce a user-facing change?
```release-note
解决在 Firefox 浏览器下的代码块编辑问题。
```
2024-01-02 10:20:12 +00:00
Ryan Wang 5a51c5d87e
chore: bump formkit version to 1.4.0 (#5137)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.12.x

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

升级 FormKit 的依赖至 [1.4.0](https://formkit.com/changelog#_140)。

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

```release-note
升级 FormKit 的依赖至 [1.4.0](https://formkit.com/changelog#_140)。
```
2024-01-02 06:26:12 +00:00
AirboZH c918f2c803
fix: Backspace does not work properly behind list (#5102)
<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?
/kind bug
<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind improvement

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

#### What this PR does / why we need it:
增加 `@tiptap/extension-list-keymap` 扩展,优化列表的键盘操作

#### Which issue(s) this PR fixes:
<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #5065

#### Special notes for your reviewer:
测试方法:
1. 测试无序列表中和无序列表后对于删除键 `Delete` 和退格键 `backspace` 的支持是否符合预期
2. 测试有序列表中和有序列表后对于删除键 `Delete` 和退格键 `backspace` 的支持是否符合预期
![2023-12-22](https://github.com/halo-dev/halo/assets/50261327/ebdc1364-bfd6-4e2f-acf0-444a03f40299)
3. 测试选择部分列表项后对于删除键 `Delete` 和退格键 `backspace` 的支持是否符合预期
4. 测试 `Ctrl-A` 全选后对于删除键 `Delete` 和退格键 `backspace` 的支持是否符合预期
![selectAll](https://github.com/halo-dev/halo/assets/50261327/c9a69c7a-b8d7-4532-8931-16fa2bc0b41a)

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

<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
修复无法删除有序/无序列表后空行的问题
```
2024-01-02 03:46:12 +00:00
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 44cb311fac
refactor: visible condition of modal component (#5078)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.12.x

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

重构 UI 的 Modal 组件,支持通过 v-if 控制是否显示(渲染)。

example:

```vue
<script lang="ts" setup>
import { ref } from "vue"
const visible = ref(false)
const modal = ref()

function open() {
  visible.value = true
}

function close() {
  modal.value.close()
}
</script>

<template>
  <button @click="open">Open</button>
    <VModal v-if="visible" ref="modal" title="test">
      <button @click="close">Close</button>
    </VModal>
</template>
```

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

Fixes #5077 

#### Special notes for your reviewer:

测试方式:

1. cd console && pnpm --filter "./packages/components" storybook
2. 测试 Modal 组件在文档中是否工作正常。
3. 启动 Console 或者 UC。
4. 观察以前页面上的弹框是否工作正常。

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

```release-note
重构 UI 的 Modal 组件,支持通过 v-if 控制是否显示(渲染)。
```
2023-12-29 07:15: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 285ac6a77f
fix: cannot upload image when creating a new post in UC editor (#5114)
#### What type of PR is this?

/area console
/kind bug
/milestone 2.12.x

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

修复在个人中心的文章编辑器中创建新文章时无法上传图片的问题

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

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

#### Special notes for your reviewer:

测试在 UC 新建文章,在未保存时是否能上传图片。

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

```release-note
修复个人中心创建新文章时无法上传图片的问题
```
2023-12-27 03:50:09 +00:00
Takagi e7789929ec
fix: fix anchor positioning for identical table of contents names (#5101)
#### What type of PR is this?

/kind bug
/area editor
/milestone 2.12.x

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

重写了对默认编辑器标题的 id 生成逻辑。目前将会在对标题进行任意的修改之后,对所有的标题进行 id 计算,用以解决当标题名称具有重复时,生成了相同的 id.

需要注意的是,由于需要对任意标题进行修改之后才会进行生效,因此已经存在重名标题 id 的问题时,需要修改任意的标题使其生效。

#### How to test it?

在文章内新增多个相同内容的标题,查看是否可以正常跳转。

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

Fixes #5068 

#### Does this PR introduce a user-facing change?
```release-note
解决默认编辑器中具有重名标题时,锚点只会跳转至首个的问题。
```
2023-12-26 10:48:06 +00:00
Takagi a1fe8c3f6b
pref: export necessary extensions externally (#5104)
#### What type of PR is this?

/kind improvement
/area editor
/milestone 2.12.x

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

导出一些必要的默认编辑器扩展及工具类,例如 `Paragraph`

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

Fixes #5103 

#### Does this PR introduce a user-facing change?
```release-note
导出必要的默认编辑器扩展及工具类
```
2023-12-24 14:40:08 +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 240201305a
feat: add disallow tooltip for editor provider selector component (#5070)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.12.x

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

当编辑器切换组件中有不可用编辑器时,添加提示。

<img width="304" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/a5da0549-dfd6-4392-9375-16ddf2a57517">

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

Fixes #5059 

#### Special notes for your reviewer:

测试方式:

1. 安装若干不同类型的编辑器,并创建文章。
2. 修改文章时尝试选择不同类型的编辑器,观察是否有提示。

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

```release-note
当编辑器切换组件中有不可用编辑器时,添加提示。
```
2023-12-21 06:50:13 +00:00
Aero 61c4a226b0
feat: add tabbar component horizontal-scroll-indicator (#4979)
#### What type of PR is this?

/area console
/kind improvement

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

在 Tabbar 组件内容可滚动时,添加内容超出时的水平方向滚动指示器;解决由  #4582 指出的体验问题

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

Fixes #4582

#### Special notes for your reviewer:

注意观察各处使用 Tabbar 组件且内容可滚动时的情况(浏览器宽度变化也可生效)

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


```release-note
添加 Tabbar 组件内容超出时的水平方向滚动指示器
```
2023-12-21 06:44: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
Yone 072862cd1e
Fix the issue of always displaying `Unbind` in the login method on the user profile page (#5079)
#### What type of PR is this?

/kind bug

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

Fix the issue of always displaying Unbind in the login method on the user profile page.

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

Fixes #5048

#### Special notes for your reviewer:
@JohnNiang 's help.
#### Does this PR introduce a user-facing change?


```release-note
修复个人中心用户登录方式仅显示解绑问题 
```
2023-12-20 02:48:08 +00:00
Ryan Wang 25bd378a12
chore: add storybook-static folder to .gitignore (#5075)
#### What type of PR is this?

/area console

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

storybook-static 文件夹为 Storybook 的构建目录,此 PR 将此文件夹添加到 .gitignore

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

```release-note
None
```
2023-12-19 09:12:07 +00:00
Roozen d6dc2a7bbe
Support getting parent category by child name in theme (#5002)
<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?

<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind improvement

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->
/kind feature
/kind api-change
#### What this PR does / why we need it:
add getParentByName method to CategoryFinder interface

#### Which issue(s) this PR fixes:
<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #

#### Special notes for your reviewer:
${categoryFinder.getParentByName(anyChild.metadata.name)}
#### Does this PR introduce a user-facing change?

<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
NONE
```
2023-12-18 05:22:14 +00:00
John Niang d777dbf7ed
Initialize schemes before refreshing application context (#5032)
#### What type of PR is this?

/kind improvement
/area core

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

Prior to this proposal, we encountered an error requesting any page before Halo is in ready state. That is because the timing of schemes initialization is incorrect.

The current proposal is to advance schemes initialization before refreshing application and removes `SchemeInitializedEvent` because it cannot be listened by other beans.

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

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

#### Special notes for your reviewer:

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

```release-note
修复 Halo 还未处于准备就绪时访问页面或接口出现“Scheme not found”错误的问题
```
2023-12-13 06:40:10 +00:00
TL 8b405faa57
fix: ineffective single-character queries in labelSelector (#5007)
**What this PR does / why we need it:**
This PR resolves the reported bug in issue #5001,

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

Fixes [#5001](https://github.com/halo-dev/halo/issues/5001)

```release-note
修复 labelSelector 单字符值查询无效的问题
```
2023-12-07 08:52:07 +00:00
Takagi 1f5bef71ac
fix: resolve the issue of generated titles missing id (#4997)
#### What type of PR is this?

/kind bug
/area console
/milestone 2.12.x

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

在 #4975 中,使用 `decorations` 重写了 heading,但由于 `decorations` 只会给 nodeview 增加 id,因此会导致 render 后的 html 中不存在 id。
默认编辑器 heading 渲染时,自动增加 id。

#### How to test it?

使用默认编辑器编辑时,增加 Heading。保存后查看主题端对应的 heading 是否存在 id。

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

Fixes #4994 

#### Does this PR introduce a user-facing change?
```release-note
解决渲染后的 Heading 中不存在 id 的问题。
```
2023-12-07 03:42:07 +00:00
Pillar Cat 5b5fe71544
feat: use storybook to refactor components library docs (#4944)
#### What type of PR is this?
/kind feature
/area console
/milestone 2.8.x

#### What this PR does / why we need it:
Console Components使用StoryBook代替Histories

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

Fixes #4117 

#### Special notes for your reviewer:

1. 移动到 console/packages/components 目录。
2. pnpm storybook

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

```release-note
使用 Storybook 重构 `@halo-dev/components` 文档。
```
2023-12-06 08:30:13 +00:00
Pillar Cat 4fab6976d1
fix: editor's image cannot be resized proportionally (#4993)
<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?

/kind bug
/area editor

<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind improvement

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

#### What this PR does / why we need it:
修复#4985 中调整图片大小时的高度变化bug
#### Which issue(s) this PR fixes:

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #4985 

#### Special notes for your reviewer:
似乎是因为横纵比aspectRatio在调整大小的doDrag函数中被动态的更新数值,导致依赖aspectRatio来计算的高度也会出现问题。直接把aspectRatio移动到函数外,只在挂载后更新一次值即可解决。

#### Does this PR introduce a user-facing change?
<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
这会修复当前console的editor中图片比例拉伸的bug
```
2023-12-06 06:42:11 +00:00
John Niang 197c622b35
Upgrade to SpringDoc 2.3.0 (#4987)
#### What type of PR is this?

/kind cleanup
/area core
/milestone 2.12.x

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

Upgrade to SpringDoc 2.3.0. See https://github.com/springdoc/springdoc-openapi/releases/tag/v2.3.0 for more.

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

```release-note
升级 SpringDoc 至 2.3.0
```
2023-12-04 06:34:09 +00:00
Pillar Cat 1558f129ae
fix: resolve error log when running the dev environment of Console (#4983)
#### What type of PR is this?

/kind bug


#### What this PR does / why we need it:
This will resolve the error log output when running dev environment of Console

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

Fixes #4963 

#### Special notes for your reviewer:


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


```release-note
None
```
2023-12-03 10:30:08 +00:00
Ryan Wang 551f2ae5ed
fix: can not input title using Chinese IME in editor (#4975)
#### What type of PR is this?

/kind bug
/area console
/milestone 2.12.x

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

修复在默认编辑器中无法使用拼音输入法输入标题的问题,此问题由 https://github.com/halo-dev/halo/pull/4909 引发。

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

Fixes #4970 

#### Special notes for your reviewer:

在编辑器中,使用拼音输入法输入标题(heading),观察是否可以正常输入。

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

```release-note
修复在默认编辑器中无法使用拼音输入法输入标题的问题。
```
2023-12-02 14:30:07 +00:00
John Niang f5dcc622f8
Bump versions to 2.12.0-SNAPSHOT for next development (#4968)
#### What type of PR is this?

/kind cleanup
/area core

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

Bump versions to 2.12.0-SNAPSHOT for next development.

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

```release-note
None
```
2023-12-01 08:34:09 +00:00
John Niang 0351a67377
Add role templates for posts in user center (#4965)
#### What type of PR is this?

/kind cleanup
/area core
/milestone 2.11.0

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

This PR adds role templates for posts in user center for recreating more flexible roles. Related to <https://github.com/halo-dev/halo/pull/4866>.

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

```release-note
None
```
2023-12-01 03:54: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 a5639a8733
feat: refine role template of uc content (#4962)
#### What type of PR is this?

/area core
/kind improvement
/milestone 2.11.x

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

优化个人中心相关的角色模板:

1. 暂时使用简体中文描述,等待 https://github.com/halo-dev/halo/issues/3573 获得支持。
2. 移除未使用的 post-attachment-viewer

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

```release-note
None
```
2023-12-01 02:50:09 +00:00
Ryan Wang 65ff7b85be
fix: issue of clicking on the post tag in uc to report an error (#4964)
#### What type of PR is this?

/area console
/kind bug
/milestone 2.11.0

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

修复在个人中心的文章列表中点击标签控制台报错的问题。

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

```release-note
None
```
2023-12-01 02:46: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 90e45b0091
chore: update default theme to 1.7.1 (#4961)
#### What type of PR is this?

/area core
/milestone 2.11.0

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

更新默认主题至 https://github.com/halo-dev/theme-earth/releases/tag/v1.7.1

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

```release-note
更新默认主题至 1.7.1
```
2023-12-01 02:10:09 +00:00
Takagi cf3c248b41
fix: add disabled validation to the addButton click event for the repeater (#4955)
#### What type of PR is this?

/kind bug
/area console
/milestone 2.11.0

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

为 repeater 中的 addButton 点击事件增加校验 disabled 属性。

#### How to test it?

在 safari 浏览器下测试具有 max repeater 的组件,当其 addButton 按钮变灰之后继续点击。查看是否不再添加新的项。 

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

Fixes #4948 

#### Does this PR introduce a user-facing change?
```release-note
修复 safari 浏览器下,repeater 的 max 属性无效的问题
```
2023-11-30 15:54:08 +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
John Niang 5208b5c925
Fix the problem of incorrect old data passed to watcher during updates (#4959)
#### What type of PR is this?

/kind bug
/area core
/milestone 2.11.0

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

This PR resolves the problem of incorrect old data passed to watcher during updates. As shown in the following line, the old value should be `old` instead of `extension` from outside.

7a84f55300/application/src/main/java/run/halo/app/extension/ReactiveExtensionClientImpl.java (L172)

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

```release-note
None
```
2023-11-30 10:46:08 +00:00
Ryan Wang 7a84f55300
feat: add supports for hide the sidebar of editor (#4942)
#### What type of PR is this?

/area console
/area editor
/kind feature
/milestone 2.11.0

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

支持隐藏/显示默认编辑器的侧边栏。

<img width="1451" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/6f641230-8f31-4f6b-83d2-e92dbc0303e8">
<img width="1363" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/921aa75e-ffd5-4785-9507-0b3b361efa31">

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

Fixes #

#### Special notes for your reviewer:

测试截图中隐藏/显示侧边栏的按钮是否正常工作即可。

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

```release-note
支持隐藏/显示默认编辑器的侧边栏。
```
2023-11-30 04:14:08 +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
guqing f659a3279e
feat: add supports for provide theme templates in plugin class path (#4862)
* feat: add supports for provide theme templates in plugin class path
---------

Co-authored-by: Ryan Wang <i@ryanc.cc>
2023-11-30 11:53:58 +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
John Niang c835725dae
Merge pull request #4938 from LinuxSuRen/teat/all-dbs
test: run e2e testing on all supported databases
2023-11-29 15:44:05 +08:00
rick 84bcf9bd0f test: run e2e testing on all supported databases 2023-11-29 05:39:51 +00:00
Ryan Wang e054e9b8a4
chore: move @halo-sigs/richtext-editor to this repository (#4934)
* chore: move @halo-sigs/richtext-editor to this repository

Signed-off-by: Ryan Wang <i@ryanc.cc>
2023-11-29 09:14:23 +08:00
Rick ce5c1f9052
test: add e2e test cases of user, role, and plugin (#4920)
* chore: provide an out-of-the-box gitpod config file

* test: add e2e test cases of user, role, and plugin

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
Co-authored-by: John Niang <johnniang@foxmail.com>
2023-11-28 21:52:44 +08:00
Ryan Wang 99edbddfa2
chore: bump editor version and let it load globally (#4924)
#### What type of PR is this?

/area console
/area editor
/milestone 2.11.0
/kind improvement

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

升级编辑器依赖,并将其全局注册,此 PR 合并之后,插件如果需要扩展编辑器,则不必引入其中依赖,可以完全排除。

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

- https://github.com/halo-sigs/richtext-editor/pull/71 Fixes https://github.com/halo-dev/halo/issues/4868

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

```release-note
升级默认编辑器版本。
```
2023-11-27 14:42:09 +00:00
guqing 96d4897d11
feat: support user email verification mechanism (#4878)
#### What type of PR is this?
/kind feature
/area core
/milestone 2.11.x

#### What this PR does / why we need it:
新增用户邮箱验证机制

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

Fixes #4656

#### Special notes for your reviewer:

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

```release-note
新增用户邮箱验证机制
```
2023-11-27 14:20:09 +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 927398b6bd
feat: add ui-plugin-bundler-kit package (#4916)
#### What type of PR is this?

/area console
/kind feature

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

添加 `@halo-dev/ui-plugin-bundler-kit` 包,用于向插件提供统一的 Vite 构建配置。

最终用法:

```bash
pnpm install @halo-dev/ui-plugin-bundler-kit -D
```

vite.config.ts

```ts
import { HaloUIPluginBundlerKit } from "@halo-dev/ui-plugin-bundler-kit";

export default defineConfig({
  plugins: [
    Vue(),
    Icons({ compiler: "vue3" }),
    HaloUIPluginBundlerKit(),
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url)),
    },
  },
});
```

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

Fixes #4912 

#### Special notes for your reviewer:

测试方式:

1. 在任意支持 UI 扩展的插件中添加此包:`pnpm install path/to/halo/console/packages/ui-plugin-bundler-kit`
2. 构建插件,检查 UI 相关的构建产物以及功能是否正常。

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

```release-note
添加 `@halo-dev/ui-plugin-bundler-kit` 包,用于向插件提供统一的构建配置。
```
2023-11-27 14:06:09 +00:00
guqing 91affebdd1
feat: add delete function for user notification (#4906)
#### What type of PR is this?
/kind feature
/area core
/area console

#### What this PR does / why we need it:
新增用户站内消息删除功能

<img width="588" alt="图片" src="https://github.com/halo-dev/halo/assets/21301288/6034e43c-0dbc-4e4e-88c6-4848c8b25e0c">


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

#### Does this PR introduce a user-facing change?
```release-note
新增用户站内消息删除功能
```
2023-11-27 13:58:09 +00:00