# 支持个人中心，Halo 2.11.0 发布

原文：<https://www.halo.run/archives/halo-2.11-released>

> ## ⚠️ 注意
> 
> 此版本由于升级了 SpringBoot 的版本并依赖了新的 H2 Database 版本，经过我们测试无法正常从旧版本 Halo 升级。所以如果你当前正在使用 H2 作为数据库，可能需要使用系统的[备份恢复](https://docs.halo.run/user-guide/backup)功能进行重新安装。
> 
> 此外，不建议在生产环境使用 H2 作为数据库。

Halo 是一款强大易用的开源建站工具，它让你无需太多的技术知识就可以快速搭建一个博客、网站或者内容管理系统。具备可插拔架构、主题套用、富文本编辑器等多重特性，支持用户根据自己的喜好选择不同类型的插件及主题模板来定制化自己的站点功能及外观。让内容创作和发布更加便捷生动。

截至目前（2023 年 Q3 季度），Halo 已经在 Docker Hub 获得了超过 170 万次下载，GitHub Star 数突破 28 k，并拥有一百多名社区贡献者。

2023 年 12 月 01 日，强大易用的开源建站工具 Halo 正式发布 2.11.0 版本。

在这个版本中，Halo 主要支持了个人中心功能，以及其他 50 多项功能优化和问题修复。

## 亮点更新

### 个人中心

此版本全新加入了个人中心功能，并将所有和用户自身有关的功能移动到了个人中心，包括基本信息设置、消息通知等。此外，个人中心还支持管理自己的文章，管理员也可以根据自身的需求选择用户是否可以管理自己的文章。

有了个人中心之后，后续还可以通过插件为网站用户扩展出更多的功能，用于满足各式各样的网站需求。

个人中心页面：

![2.11-uc-profile.png](https://www.halo.run/upload/2.11-uc-profile.png)

我的文章页面：

![2.11-uc-posts.png](https://www.halo.run/upload/2.11-uc-posts.png)

### 优化内存占用

在这个版本我们使用 OpenJ9 作为基础镜像，可以显著的优化内存占用，经过测试，大约可以减少 20% - 30% 的内存消耗，以下是我们演示网站的内存占用对比。

![compare-memory-2.10.png](https://www.halo.run/upload/compare-memory-2.10.png)

**2.10**

![compare-memory-2.11.png](https://www.halo.run/upload/compare-memory-2.11.png)

**2.11**

### 邮箱验证和密码重置

从 Halo 2.10 开始，我们支持了可配置的消息通知功能。在这个版本中，我们基于此完善了用户的邮箱验证和密码重置功能。

邮箱验证：

![2.11-verify-email.png](https://www.halo.run/upload/2.11-verify-email.png)

密码重置：

![2.11-send-reset-password-link.png](https://www.halo.run/upload/2.11-send-reset-password-link.png)

![2.11-reset-password.png](https://www.halo.run/upload/2.11-reset-password.png)

## 完整更新日志

### 新特性

-   文章预览支持模拟不同设备尺寸。 by [@Thematrixofink](https://github.com/Thematrixofink) in [#4846](https://github.com/halo-dev/halo/pull/4846)
    
-   支持个人中心。 by [@ruibaby](https://github.com/ruibaby) in [#4857](https://github.com/halo-dev/halo/pull/4857)
    
-   支持在个人中心管理用户自己的文章。 by [@JohnNiang](https://github.com/JohnNiang) & [@ruibaby](https://github.com/ruibaby) in [#4866](https://github.com/halo-dev/halo/pull/4866)
    
-   新增用户邮箱验证机制。 by [@guqing](https://github.com/guqing) & [@ruibaby](https://github.com/ruibaby) in [#4878](https://github.com/halo-dev/halo/pull/4878)
    
-   支持为自定义的角色配置登录之后默认跳转位置。 by [@ruibaby](https://github.com/ruibaby) in [#4918](https://github.com/halo-dev/halo/pull/4918)
    
-   新增用户站内消息删除功能。 by [@guqing](https://github.com/guqing) in [#4906](https://github.com/halo-dev/halo/pull/4906)
    
-   用户注册新增电子邮箱字段。 by [@ruibaby](https://github.com/ruibaby) in [#4899](https://github.com/halo-dev/halo/pull/4899)
    
-   支持在概览页面显示已启动插件和已激活的主题。 by [@ruibaby](https://github.com/ruibaby) in [#4897](https://github.com/halo-dev/halo/pull/4897)
    
-   使用 ibm-semeru-runtimes:open-17-jre 作为基础镜像构建 Halo 镜像，以获得更优的内存消耗。 by [@ruibaby](https://github.com/ruibaby) & [@JohnNiang](https://github.com/JohnNiang) in [#4896](https://github.com/halo-dev/halo/pull/4896)
    
-   新增使用邮箱地址找回密码功能。 by [@guqing](https://github.com/guqing) & [@ruibaby](https://github.com/ruibaby) in [#4941](https://github.com/halo-dev/halo/pull/4941)
    
-   支持为自定义角色配置 **禁止访问 Console** 的选项。 by [@ruibaby](https://github.com/ruibaby) in [#4958](https://github.com/halo-dev/halo/pull/4958)
    

### 功能优化

-   优化 Console 的登录会话保活机制。 by [@ruibaby](https://github.com/ruibaby) in [#4949](https://github.com/halo-dev/halo/pull/4949)
    
-   完善系统概览页面的 UI 权限控制。 by [@ruibaby](https://github.com/ruibaby) in [#4945](https://github.com/halo-dev/halo/pull/4945)
    
-   提供允许同步更改插件运行状态的 API。 by [@guqing](https://github.com/guqing) in [#4745](https://github.com/halo-dev/halo/pull/4745)
    
-   支持隐藏/显示默认编辑器的侧边栏。 by [@ruibaby](https://github.com/ruibaby) in [#4942](https://github.com/halo-dev/halo/pull/4942)
    
-   优化 Console 端插件捆绑资源的请求，防止在操作插件状态之后无法及时更新资源。 by [@ruibaby](https://github.com/ruibaby) in [#4804](https://github.com/halo-dev/halo/pull/4804)
    
-   修改发布文章的等待时间以防止因数据库执行延迟较高导致的错误提示。 by [@guqing](https://github.com/guqing) in [#4810](https://github.com/halo-dev/halo/pull/4810)
    
-   添加 Generator 元数据标识。 by [@JohnNiang](https://github.com/JohnNiang) in [#4821](https://github.com/halo-dev/halo/pull/4821)
    
-   异步加载文件上传组件，优化 Console 加载速度。 by [@ruibaby](https://github.com/ruibaby) in [#4875](https://github.com/halo-dev/halo/pull/4875)
    
-   优化 Console 端表单元素样式。 by [@ruibaby](https://github.com/ruibaby) in [#4893](https://github.com/halo-dev/halo/pull/4893)
    
-   为默认编辑器中 heading 类型元素生成有意义的 id。 by [@ruibaby](https://github.com/ruibaby) in [#4909](https://github.com/halo-dev/halo/pull/4909)
    
-   优化初始化预设插件的流程。 by [@ruibaby](https://github.com/ruibaby) in [#4901](https://github.com/halo-dev/halo/pull/4901)
    

### 问题修复

-   修复筛选未发布文章时结果不正确的问题。 by [@guqing](https://github.com/guqing) in [#4736](https://github.com/halo-dev/halo/pull/4736)
    
-   修复 Console 端评论状态筛选无法显示筛选结果的问题。 by [@zjy4fun](https://github.com/zjy4fun) in [#4743](https://github.com/halo-dev/halo/pull/4743)
    
-   修复部分场景下插件详情的扩展 tab 不能正常显示的问题。 by [@longjuan](https://github.com/longjuan) in [#4746](https://github.com/halo-dev/halo/pull/4746)
    
-   解决文章设置中可能出现空白元数据的问题。 by [@LIlGG](https://github.com/LIlGG) in [#4772](https://github.com/halo-dev/halo/pull/4772)
    
-   修复无法正常调用评论列表 Finder API 的问题。 by [@Roozenlz](https://github.com/Roozenlz) in [#4773](https://github.com/halo-dev/halo/pull/4773)
    
-   修复文章可能因为没有发布时间导致发布失败的问题。 by [@guqing](https://github.com/guqing) in [#4775](https://github.com/halo-dev/halo/pull/4775)
    
-   解决无用户管理权限的用户无法上传头像的问题。 by [@LIlGG](https://github.com/LIlGG) in [#4777](https://github.com/halo-dev/halo/pull/4777)
    
-   修复因部分角色导致无法正常创建个人令牌的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#4800](https://github.com/halo-dev/halo/pull/4800)
    
-   优化编辑器性能并解决切换页面所造成的卡死现象。 by [@LIlGG](https://github.com/LIlGG) in [#4805](https://github.com/halo-dev/halo/pull/4805)
    
-   解决删除元数据后仍旧提示 key 不能重复的问题。 by [@LIlGG](https://github.com/LIlGG) in [#4815](https://github.com/halo-dev/halo/pull/4815)
    
-   修复在部分 Windows 开发者无法正常构建 Halo 的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#4844](https://github.com/halo-dev/halo/pull/4844)
    
-   修复手动刷新搜索索引会将私有文章加入索引的问题。 by [@AirboZH](https://github.com/AirboZH) in [#4882](https://github.com/halo-dev/halo/pull/4882)
    
-   修复因错误构建插件的路由可能导致 OOM 的问题。 by [@guqing](https://github.com/guqing) in [#4890](https://github.com/halo-dev/halo/pull/4890)
    
-   修复在 Card 组件中使用下拉组件无法完整显示的问题。 by [@ruibaby](https://github.com/ruibaby) in [#4922](https://github.com/halo-dev/halo/pull/4922)
    

### 依赖更新

-   升级默认编辑器版本。 by [@ruibaby](https://github.com/ruibaby) in [#4924](https://github.com/halo-dev/halo/pull/4924)
    
    -   解决行内块元素宽度设置不准确的问题。 by [@LIlGG](https://github.com/LIlGG) in [halo-sigs/richtext-editor#71](https://github.com/halo-sigs/richtext-editor/pull/71)
        
-   升级依赖 Spring Boot 至 3.1.5。 by [@JohnNiang](https://github.com/JohnNiang) in [#4758](https://github.com/halo-dev/halo/pull/4758)
    
-   升级 Gradle 至 8.4。 by [@JohnNiang](https://github.com/JohnNiang) in [#4848](https://github.com/halo-dev/halo/pull/4848)
    
-   升级 Lombok Gradle 插件至 8.4。 by [@JohnNiang](https://github.com/JohnNiang) in [#4849](https://github.com/halo-dev/halo/pull/4849)
    
-   \[Action Required\] 升级 Spring Boot 至 3.2.0-RC2。 by [@JohnNiang](https://github.com/JohnNiang) in [#4850](https://github.com/halo-dev/halo/pull/4850)
    
-   升级 SpringDoc 至 2.2.1-SNAPSHOT 以解决部分 API 文档无法正常使用的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#4854](https://github.com/halo-dev/halo/pull/4854)
    
-   升级 FormKit 的版本至 1.3.0。 by [@ruibaby](https://github.com/ruibaby) in [#4913](https://github.com/halo-dev/halo/pull/4913)
    
-   升级 Spring Boot 依赖至 3.2.0。 by [@JohnNiang](https://github.com/JohnNiang) in [#4904](https://github.com/halo-dev/halo/pull/4904)
    

### 开发者相关

-   插件支持在 templates 目录提供默认模板。 by [@guqing](https://github.com/guqing) in [#4862](https://github.com/halo-dev/halo/pull/4862)
    
-   重构 Repeater 组件，使其支持条件判断。 by [@LIlGG](https://github.com/LIlGG) in [#4702](https://github.com/halo-dev/halo/pull/4702)
    
-   contributorFinder 支持返回用户元数据、注册信息、用户权限等。 by [@AirboZH](https://github.com/AirboZH) in [#4705](https://github.com/halo-dev/halo/pull/4705)
    
-   暴露 Actuator 指标端点以便监控服务状态。 by [@guqing](https://github.com/guqing) in [#4898](https://github.com/halo-dev/halo/pull/4898)
    
-   添加 `@halo-dev/ui-plugin-bundler-kit` 包，用于向插件提供统一的构建配置。 by [@ruibaby](https://github.com/ruibaby) in [#4916](https://github.com/halo-dev/halo/pull/4916)
    
-   添加 `<StickyBlock />` 组件，用于将元素固定在顶部或者底部，并为主题 / 插件 / 系统设置的底部保存按钮区域做了适配。 by [@ruibaby](https://github.com/ruibaby)in [#4919](https://github.com/halo-dev/halo/pull/4919)
    
-   将 [halo-sigs/richtext-editor](https://github.com/halo-sigs/richtext-editor) 移动到此仓库进行管理。 by [@ruibaby](https://github.com/ruibaby) in [#4934](https://github.com/halo-dev/halo/pull/4934)
