# 支持消息通知和预设应用市场，Halo 2.10.0 发布

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

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

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

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

在这个版本中，Halo 主要支持了消息通知、内置应用市场等功能，以及其他 30 多项功能优化和问题修复。

## 亮点更新

### **消息通知**

在 2.10.0 中，我们提供了可扩展的消息通知机制，并内置了站内通知和邮件通知，同时可以通过插件扩展通知渠道，插件也可以根据需要来定义通知类型和事件。

#### **内置的邮件通知配置**

可以在系统设置的通知设置中看到所有的通知方式，目前我们内置了邮件的通知方式。

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

#### **站内消息仪表盘小部件**

可以在仪表盘中添加消息的小部件，这样就可以在登录后台的时候及时看到未读的消息。

![notification-dashboard-widget.png](https://www.halo.run/upload/notification-dashboard-widget.png)

#### **个人通知接收配置**

可以在个人资料的通知配置中设置是否接收某个通知渠道的消息。

![notification-user-config.png](https://www.halo.run/upload/notification-user-config.png)

### **内置应用市场**

在 9 月初我们发布了内置应用市场插件的首个测试版本，现在我们内置了此插件到 Halo 2.10 版本。启用此插件后，管理员可以非常方便地在后台安装插件和主题，也可以及时地接收到更新提醒。

#### **单独的应用市场页面**

在这个页面可以查阅所有类型的应用，可以根据需要进行筛选和搜索。

![app-store-page.png](https://www.halo.run/upload/app-store-page.png)

#### **检测插件/主题的新版本**

启用应用市场后，进入插件或者主题管理就会自动检测当前已安装插件或主题的最新版本，然后根据需要一键完成更新。

![app-store-plugin-update-check.png](https://www.halo.run/upload/app-store-plugin-update-check.png)

![app-store-theme-update-check.png](https://www.halo.run/upload/app-store-theme-update-check.png)

#### **安装插件/主题界面的应用市场入口**

现在，你可以直接在安装插件或者主题的界面一键安装应用市场的插件和主题。

![app-store-plugin-installation.png](https://www.halo.run/upload/app-store-plugin-installation.png)

![app-store-theme-installation.png](https://www.halo.run/upload/app-store-theme-installation.png)

### **编辑器改进**

在 2.10.0 版本中，我们对编辑器进行了大量优化。

#### **表格**

现在可以直接在悬浮工具栏中操作表格的行和列，以及设置表头、合并单元格等功能。

![editor-table.png](https://www.halo.run/upload/editor-table.png)

#### **分栏布局**

我们为编辑器提供了全新的分栏布局以满足特殊的布局需求。

![editor-column-layout.png](https://www.halo.run/upload/editor-column-layout.png)

#### **内容拖拽**

现在，你可以拖拽任何元素到想要的位置，无需进行繁琐的剪切和粘贴操作。

![editor-drag.png](https://www.halo.run/upload/editor-drag.png)

## 完整更新日志

### **新特性**

-   提供个人访问令牌机制。 by [@JohnNiang](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4598](https://github.com/halo-dev/halo/pull/4598)
    
-   文章支持多别名生成策略。 by [@GodlessLiu](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4551](https://github.com/halo-dev/halo/pull/4551)
    
-   编辑器功能优化，支持分栏布局、元素拖拽等功能，以及多项功能性优化。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4669](https://github.com/halo-dev/halo/pull/4669)
    
-   支持消息通知机制。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4527](https://github.com/halo-dev/halo/pull/4527) [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4638](https://github.com/halo-dev/halo/pull/4638)
    
-   添加应用市场预设插件。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4670](https://github.com/halo-dev/halo/pull/4670)
    

### **功能优化**

-   重构 Console 端用户详情页面的代码结构。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4664](https://github.com/halo-dev/halo/pull/4664)
    
-   优化插件捆绑资源(JSBundle)的查询性能以提高页面加载速度。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4639](https://github.com/halo-dev/halo/pull/4639)
    
-   为 Console 端认证方式管理添加更直观的配置页面入口。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4635](https://github.com/halo-dev/halo/pull/4635)
    
-   优化 Console 端关于用户数据相关的 UI 权限判断。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4619](https://github.com/halo-dev/halo/pull/4619)
    
-   改进 Console 端在移动设备上数据列表过滤器区域的样式。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4587](https://github.com/halo-dev/halo/pull/4587)
    
-   优化 Console 端启动插件的逻辑。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4558](https://github.com/halo-dev/halo/pull/4558)
    
-   为插件捆绑资源设置 Cache Control 以优化静态资源加载。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4557](https://github.com/halo-dev/halo/pull/4557)
    
-   防止浏览器弹出基础认证弹窗。 by [@JohnNiang](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4556](https://github.com/halo-dev/halo/pull/4556)
    
-   优化 Console 端个人资料的头像显示，未设置头像时显示添加图标。 by [@ruibaby](https://github.com/ruibaby) in [#4694](https://github.com/halo-dev/halo/pull/4694)
    

### **问题修复**

-   修复 Console 端的分类选择组件中，无法通过点击创建不存在的分类的问题。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4658](https://github.com/halo-dev/halo/pull/4658)
    
-   修复当插件升级后 Logo 改变会无法显示的问题。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4657](https://github.com/halo-dev/halo/pull/4657)
    
-   修复 Console 端菜单项编辑表单中可能无法正常切换类型的问题。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4644](https://github.com/halo-dev/halo/pull/4644)
    
-   修复 Console 的菜单管理页面，切换菜单时请求两次菜单项接口的问题。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4622](https://github.com/halo-dev/halo/pull/4622)
    
-   修复文章自定义模板不存在时没有使用默认模板的问题。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4618](https://github.com/halo-dev/halo/pull/4618)
    
-   修复插件捆绑资源（bundle.js / bundle.css）的缓存 key 生成可能会重复的问题。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4591](https://github.com/halo-dev/halo/pull/4591)
    
-   修复 Console 端主题远程下载标签的英文语言包键名，使其可以正确显示标签标题。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4576](https://github.com/halo-dev/halo/pull/4576)
    
-   当文章或页面设置窗口打开时，禁用自动保存功能。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4567](https://github.com/halo-dev/halo/pull/4567)
    
-   修复 Console 端主题管理列表的更多操作项在某些情况下无法打开的问题。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4563](https://github.com/halo-dev/halo/pull/4563)
    
-   补全系统全局设置的默认值，防止首次安装之后部分功能异常。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4562](https://github.com/halo-dev/halo/pull/4562)
    
-   修复因大小写问题导致登录后无权限的问题。 by [@JohnNiang](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4552](https://github.com/halo-dev/halo/pull/4552)
    
-   修复因某篇文章的内容为 null 导致无法搜索部分文章的问题。 by [@JohnNiang](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4681](https://github.com/halo-dev/halo/pull/4681)
    
-   修复插件 CSS Bundle 内容被错误拆分导致无法加载的问题。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4678](https://github.com/halo-dev/halo/pull/4678)
    

### **依赖更新**

-   升级默认编辑器的版本。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4669](https://github.com/halo-dev/halo/pull/4669)
    
    -   重构编辑器冒泡菜单，优化使用体验。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#38](https://github.com/halo-sigs/richtext-editor/pull/38)
        
    -   优化表格功能，可以更佳方便的对行和列进行编辑。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#39](https://github.com/halo-sigs/richtext-editor/pull/39)
        
    -   优化代码块全选快捷键的逻辑，修改为仅选中当前代码块的代码。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#43](https://github.com/halo-sigs/richtext-editor/pull/43)
        
    -   修复命令面板使用快捷键滚动时编辑器会跟随滚动的问题。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#41](https://github.com/halo-sigs/richtext-editor/pull/41)
        
    -   修复未选中图片元素时，拖拽图片无法保持纵横比的问题。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#47](https://github.com/halo-sigs/richtext-editor/pull/47)
        
    -   新增块元素后追加一个空白行，方便跳出内容。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#42](https://github.com/halo-sigs/richtext-editor/pull/42)
        
    -   支持分栏布局。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#40](https://github.com/halo-sigs/richtext-editor/pull/40)
        
    -   修复部分元素后带有空行的问题。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#53](https://github.com/halo-sigs/richtext-editor/pull/53)
        
    -   支持为图片添加超链接。 by [@GodlessLiu](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#49](https://github.com/halo-sigs/richtext-editor/pull/49)
        
    -   支持使用方向键退出行内代码块。 by [@GodlessLiu](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#50](https://github.com/halo-sigs/richtext-editor/pull/50)
        
    -   为编辑器所有元素增加可拖拽功能。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#48](https://github.com/halo-sigs/richtext-editor/pull/48)
        
    -   优化内容编辑区域宽度。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#55](https://github.com/halo-sigs/richtext-editor/pull/55)
        
    -   修复文本高亮显示不完全的问题。 by [@LIlGG](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [halo-sigs/richtext-editor#56](https://github.com/halo-sigs/richtext-editor/pull/56)
        
-   升级所有预设插件的版本。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4668](https://github.com/halo-dev/halo/pull/4668)
    
-   升级依赖 PF4J 至 3.10.0。 by [@JohnNiang](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4666](https://github.com/halo-dev/halo/pull/4666)
    
-   升级依赖 Spring Boot 至 3.1.4。 by [@JohnNiang](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4665](https://github.com/halo-dev/halo/pull/4665)
    
-   升级 FormKit 版本至 1.1.0 正式版。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4642](https://github.com/halo-dev/halo/pull/4642)
    

### **开发者相关**

-   重构插件类加载器以优化当插件的 resources 目录资源与 Halo 中同名时加载不到的问题。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4663](https://github.com/halo-dev/halo/pull/4663)
    
-   修复当插件没有设置表单定义时，详情选项卡扩展点不生效的问题。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4659](https://github.com/halo-dev/halo/pull/4659)
    
-   修复主题管理选项卡和插件安装界面选项卡扩展点没有添加 UI 权限检测的问题。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4636](https://github.com/halo-dev/halo/pull/4636)
    
-   支持在开发模式下通过 JAR 运行插件。 by [@guqing](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4589](https://github.com/halo-dev/halo/pull/4589)
    
-   Console 附件管理列表项的操作按钮支持被插件扩展。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4689](https://github.com/halo-dev/halo/pull/4689)
    
-   Console 端的 VSwitch 组件支持传入 loading 属性以显示加载状态。 by [@ruibaby](https://wiki.fit2cloud.com/pages/viewpage.action?pageId=123931915) in [#4688](https://github.com/halo-dev/halo/pull/4688)
