Skip to content

Tags: halo-dev/halo

Tags

v2.19.3

Toggle v2.19.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[release-2.19] refactor: optimize request headers when generating thu…

…mbnails from URI (#6633)

This is an automated cherry-pick of #6628

/assign JohnNiang

```release-note
None
```

v2.19.2

Toggle v2.19.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[release-2.19] Prevent null role while getting permissions (#6613)

This is an automated cherry-pick of #6612

/assign JohnNiang

```release-note
修复取消用户角色后无法正常渲染用户列表的问题
```

v2.19.1

Toggle v2.19.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[release-2.19] refactor: preserve original image if smaller than requ…

…ested thumbnail size (#6583)

This is an automated cherry-pick of #6582

/assign ruibaby

```release-note
当生成缩略图时如果原图尺寸小于请求尺寸则返回原图以保持其质量
```

v2.19.0

Toggle v2.19.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: solving the issue of the default editor format brush being incor…

…ectly filtered (#6566)

#### What type of PR is this?

/kind bug
/area editor
/milestone 2.19.x

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

为默认编辑器格式刷及清除格式扩展增加 name,用于解决其重名而导致被错误过滤的问题

Fixes #6562 

#### How to test it?

查看默认编辑中格式刷及清除格式功能是否存在且运行正常。

#### Does this PR introduce a user-facing change?
```release-note
解决默认编辑器格式刷及清除格式功能不存在的问题
```

v2.19.0-rc.4

Toggle v2.19.0-rc.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
refactor: redirect to original image if thumbnail is inaccessible (#6556

)

#### What type of PR is this?
/kind improvement
/area core
/milestone 2.19.x

#### What this PR does / why we need it:
获取缩略图时检查缩略图链接是否可访问否则重定向到原图链接

#### Does this PR introduce a user-facing change?
```release-note
获取缩略图时检查缩略图链接是否可访问否则重定向到原图链接
```

v2.19.0-rc.3

Toggle v2.19.0-rc.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore: set up preview release with pkg.pr.new (#6547)

v2.19.0-rc.2

Toggle v2.19.0-rc.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
pref: implement business selector using new selector component (#6525)

#### What type of PR is this?

/kind improvement
/area ui
/milestone 2.19.x

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

使用 #6473 中重构的 Formkit Select 组件来实现用户、文章、页面等各种业务搜索组件。 

Fixes #4931

#### How to test it?

测试各类搜索组件是否正常可用。
测试从旧版本升级后,原有数据是否可以正常显示。

#### Does this PR introduce a user-facing change?
```release-note
使用重构的 Formkit Select 组件来实现业务选择器。
```

v2.19.0-rc.1

Toggle v2.19.0-rc.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: implement new mechanisms for generating and managing attachment…

… thumbnails (#6454)

#### What type of PR is this?
/kind feature
/area core
/milestone 2.19.x

#### What this PR does / why we need it:
实现了图片类型的附件缩略图生成和管理的新机制

实现依据 RFC:halo-dev/rfcs#24

使用缩略图前需要配置 externalUrl 才能生成

**How to test it?**
1. 测试本地缩略图的文件是否正确,每个图片对应到相应 size 的目录如 thumbnails/w400 应该是一对一
2. 每个图片生成缩略图的只会在 `http://localhost:8090/apis/storage.halo.run/v1alpha1/thumbnails` 中存在一份记录
3. 测试删除附件会删除对应的缩略图文件和 [thumbnails](http://localhost:8090/apis/storage.halo.run/v1alpha1/thumbnails) 
记录
4. 修改 externalUrl 以上功能均不会受到影响

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

#### Does this PR introduce a user-facing change?
```release-note
附件图片支持生成多尺寸图片,文章支持响应式图片。
```

v2.18.0

Toggle v2.18.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add file size and type restriction for local file uploads (#6390)

#### What type of PR is this?
/kind feature
/area core

#### What this PR does / why we need it:
本次 PR 为本地附件存储策略增加了对上传单文件大小和文件类型限制的功能,具体包括:

1. 单文件大小限制:
实现了对单个文件上传大小的验证功能,确保上传文件不超过设定的最大值。
2. 文件类型限制:
添加了文件类型限制功能,使用 Apache Tika 读取上传文件的 magic numbers 得到文件 mime type 并根据用户配置来决定是否允许上传

参考链接:
- [List of file signatures](https://en.wikipedia.org/wiki/List_of_file_signatures)
- [File Magic Numbers: The Easy way to Identify File Extensions](https://library.mosse-institute.com/articles/2022/04/file-magic-numbers-the-easy-way-to-identify-file-extensions/file-magic-numbers-the-easy-way-to-identify-file-extensions.html)

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

#### Does this PR introduce a user-facing change?
```release-note
为本地附件存储策略增加了对上传单文件大小和文件类型限制的功能
```

v2.18.0-rc.1

Toggle v2.18.0-rc.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: remove unused code in system-setting.yaml (#6411)

#### What type of PR is this?

/kind cleanup
/area core

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

移除在 #6403 中误推送的代码。

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


```release-note
None
```