Commit Graph

5718 Commits (feat/add-thumbnail-router)

Author SHA1 Message Date
Ryan Wang c4bd70f832 Refactor thumbnail size handling to use enum
Replaced string literals for thumbnail sizes with GetThumbnailByUriSizeEnum throughout the codebase for improved type safety and consistency. Updated generateThumbnailUrl to accept the enum and added a width map for local URLs. Improved attachment thumbnail display and link formatting.
2025-09-30 11:39:21 +08:00
John Niang 0fc9b3bbc2
Refactor logging configuration and enhance URI handling in attachment upload process 2025-09-30 00:47:52 +08:00
John Niang b6ab744d15
Refactor thumbnail URI handling to ensure proper ASCII encoding and improve srcset generation 2025-09-30 00:47:51 +08:00
Ryan Wang 57602d60a2 Refactor thumbnail size handling to use new enum 2025-09-29 23:39:07 +08:00
John Niang d24d6d5c07
Refactor thumbnail link handling to improve URI generation and streamline attachment processing 2025-09-29 19:00:38 +08:00
John Niang 8c8ff4c1ea
Refactor thumbnail processing to utilize ThumbnailService for improved image handling and srcset generation 2025-09-29 16:24:26 +08:00
John Niang 230550d0df
Add event handling for attachment changes and update thumbnail service integration 2025-09-29 15:54:23 +08:00
John Niang 68e80d16ed
Add thumbnail routing with dynamic width handling and URI generation 2025-09-28 15:50:15 +08:00
John Niang 0a18d9ef20
Update thumbnail sizes for improved responsiveness in image rendering 2025-09-26 17:08:45 +08:00
John Niang 24b7b3f37f
Enhance thumbnail processing by validating upload paths and updating image size attributes 2025-09-26 16:59:45 +08:00
John Niang 7c1c25348f
Refactor thumbnail handling to streamline thumbnail URI generation and enhance image processing 2025-09-26 15:28:01 +08:00
John Niang ce2cfba4c6
Implement thumbnail generation and add support for image format validation 2025-09-26 00:18:49 +08:00
John Niang 59f06c8e95
Merge remote-tracking branch 'upstream/main' into feat/add-thumbnail-router 2025-09-25 11:42:51 +08:00
John Niang 544cfeaa3b
Merge pull request #7782 from halo-dev/chore/bump-to-version-2.22.0
Bump version to 2.22.0-SNAPSHOT in gradle.properties
2025-09-25 11:34:31 +08:00
John Niang 67e24ae930
Update ESLint command to suppress warnings for ignored files 2025-09-24 19:15:41 +08:00
John Niang 6cc0489763
Bump OpenAPI document version to 2.22.0-SNAPSHOT 2025-09-24 19:13:09 +08:00
John Niang 78a13bc392
Bump version to 2.22.0-SNAPSHOT in gradle.properties 2025-09-24 19:02:54 +08:00
Ryan Wang 0a0e49923a
Merge branch 'main' into feat/add-thumbnail-router 2025-09-24 12:29:59 +08:00
John Niang db00883c3d
Set dynamic branch name for Docker image tags in build.gradle (#7780) 2025-09-24 12:17:33 +08:00
John Niang 8f198d9583
Implement thumbnail link retrieval in attachment handling 2025-09-24 11:06:57 +08:00
John Niang 503e9b8c7f
Add thumbnail generation router for image uploads 2025-09-23 17:06:18 +08:00
John Niang 50405a9409
Upgrade Gradle wrapper to version 9.1.0 (#7776)
#### What type of PR is this?

/kind improvement
/area core
/milestone 2.21.x

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

This PR upgrades Gradle to version [9.1.0](https://docs.gradle.org/9.1.0/release-notes.html).

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

```release-note
升级 Gradle 至 9.1.0
```
2025-09-23 02:46:06 +00:00
Ryan Wang b1127e3c28
Remove vite-plugin-pwa from dev dependencies (#7762) 2025-09-21 21:32:27 +08:00
Ryan Wang 6bc81a9866
Improve navigation logic after publishing content (#7775) 2025-09-20 23:35:36 +08:00
Ryan Wang ba23e6c07b
Improve flex layout for category and menu list items (#7760) 2025-09-20 23:35:17 +08:00
Ryan Wang 8a7805f869
Add loading indicator to DefaultEditor initialization (#7756) 2025-09-20 23:35:01 +08:00
Ryan Wang 83117058bc
Use Gradle for pnpm install in ui packages release workflow (#7753) 2025-09-20 23:34:43 +08:00
Ryan Wang d0f050ff86
Enable auto-height for textarea fields in forms (#7749)
#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.21.x

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

Add auto-height prop to  formkit textarea to support automatic resizing based on content length.

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

```release-note
Console 端的部分多行文本输入框支持自动高度。
```
2025-09-20 15:16:03 +00:00
John Niang 974c645b4a
Upgrade Spring Boot version to 3.5.6 (#7774)
#### What type of PR is this?

/kind improvement
/area core
/milestone 2.21.x

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

This PR upgrades Spring Boot to [3.5.6](https://github.com/spring-projects/spring-boot/releases/tag/v3.5.6).

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

```release-note
升级 Spring Boot 至 3.5.6
```
2025-09-19 03:20:02 +00:00
John Niang 6ab51fde5e
Merge pull request #7773 from halo-dev/chore/correct-ghcr-ns-nae
Update GitHub Container Registry namespace for Docker image publishing
2025-09-18 23:49:30 +08:00
John Niang f1a2669604
Update GitHub Container Registry namespace for Docker image publishing 2025-09-18 23:23:27 +08:00
John Niang 5633446434
Refactor build tasks to improve UI distribution and cleanup processes (#7768) 2025-09-18 17:49:06 +08:00
John Niang 01304d7fec
Remove Fit2Cloud registry publishing due to persistent 403 errors (#7767) 2025-09-18 17:01:13 +08:00
John Niang 3626364163
Merge pull request #7765 from halo-dev/bug/invalid-f2c-ns-name
Update Docker image name and tags for Fit2Cloud registry
2025-09-17 00:03:17 +08:00
John Niang ce7c92171d
Update build-and-publish-container-image-with-buildpacks job conditions 2025-09-17 00:02:42 +08:00
John Niang 35504b4e5a
Update Docker image name and tags for Fit2Cloud registry 2025-09-16 23:59:04 +08:00
John Niang 8e95f07c49
Merge pull request #7761 from halo-dev/chore/build-with-buildpacks
Add build and publish tasks for Docker images using Buildpacks
2025-09-16 20:37:23 +08:00
John Niang cd2dac7f01
Add build and publish tasks for Docker images using Buildpacks 2025-09-16 20:06:44 +08:00
John Niang 98f655c018
Upgrade Lucene to version 10.3.0 (#7752)
#### What type of PR is this?

/kind improvement
/area core
/milestone 2.21.x

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

This PR upgrads Lucene to version [10.3.0](https://github.com/apache/lucene/releases/tag/releases%2Flucene%2F10.3.0).

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

```release-note
升级 Lucene 至 10.3.0
```
2025-09-15 05:00:40 +00:00
John Niang 010bb8a569
Handle ghost users in user retrieval logic (#7745)
#### What type of PR is this?

/kind bug
/area core
/milestone 2.21.x

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

This PR fixes the always show of ghost user in post contributors.

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

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

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

```release-note
修复文章贡献者中始终显示已删除用户的问题
```
2025-09-10 06:46:52 +00:00
John Niang 291d8dafb2
Restore context ClassLoader management during plugin lifecycle (#7746)
#### What type of PR is this?

/kind improvement
/area plugin
/milestone 2.21.x

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

This PR restores context ClassLoader mangement during plugin lifecycle to prevent resource leak.

Meanwhile, it also fixes Class initialization error when starting plugins.

Superseds https://github.com/halo-dev/halo/pull/7725

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

```release-note
None
```
2025-09-10 06:44:51 +00:00
Ryan Wang b822de2d78
Add ui packages publish workflow (#7743) 2025-09-09 18:13:33 +08:00
John Niang 6992f1788c
Add context propagation dependency to build.gradle (#7744)
#### What type of PR is this?

/kind improvement
/area core
/area plugin
/milestone 2.21.x

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

This PR adds `io.micrometer:context-propagation` dependency to assist with context propagation across different types of context mechanisms, such as ThreadLocal, Reactor Context, and others.

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

```release-note
None
```
2025-09-09 08:54:44 +00:00
Ryan Wang bdbbbdf3af
Disable persistence of selected group and policy in attachment upload modal (#7738)
#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.21.x

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

In the attachment upload modal, we previously persisted the user’s selected storage policy and group to make future uploads more convenient. However, this overlooked a common usage scenario—users often apply filters for storage policy and group in the attachment list before uploading. Persisting those previous selections could then conflict with the current filters and cause confusion. This PR removes the persistence of selected group and storage policy to avoid such mismatches.

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

Fixes #7713 

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

```release-note
在附件上传组件中取消所选分组和存储策略的持久化,默认选择为附件列表筛选条件相同的策略和分组。
```
2025-09-06 02:09:38 +00:00
Takagi e8d547e506
fix: resolve the pagination issue of the select formkit component using remote data (#7726)
#### What type of PR is this?

/kind bug
/area ui

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

目前  Select 组件使用远程接口请求数据时,如果存在分页的数据则分页请求可以超过分页数量。
此 PR 限制了分页请求的次数。

#### Does this PR introduce a user-facing change?
```release-note
解决使用 Select 组件远程请求数据时的分页问题
```
2025-09-02 07:03:00 +00:00
John Niang 2a37366c92
Set context ClassLoader to plugin ClassLoader for correct class loading operations (#7725)
#### What type of PR is this?

/kind bug
/area plugin
/milestone 2.21.x

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

This PR fixes the problem that loading resources from class path during static initialization doesn't work.

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

```release-note
修复部分场景下无法正常启动插件的问题
```
2025-08-29 03:30:15 +00:00
John Niang a32cd4b551
Upgrade to Spring Boot 3.5.5 (#7715)
#### What type of PR is this?

/kind improvement
/area core
/milestone 2.21.x

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

This PR is a regular update for Spring Boot. See https://github.com/spring-projects/spring-boot/releases/tag/v3.5.5 for more.

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

```release-note
升级依赖 Spring Boot 至 3.5.5
```
2025-08-29 03:28:14 +00:00
John Niang 956e23dd7f
Allow deserializing ListResult (#7711)
#### What type of PR is this?

/kind improvement
/area core
/milestone 2.21.x

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

This PR allows ListResult to be deserialized with JSON. So we can resolve ListResult response of APIs correctly.

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

```release-note
None
```
2025-08-21 10:15:48 +00:00
Ryan Wang 4ac80f5eb3
Update comment widget plugin to v3.0.0 (#7705) 2025-08-19 15:32:02 +08:00
Ryan Wang e2bb5ada37
Bump rolldown-vite to 7.1.4 (#7704)
#### What type of PR is this?

/area ui
/milestone 2.21.x

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

Bump rolldown-vite to [7.1.4](https://github.com/vitejs/rolldown-vite/releases/tag/v7.1.4)

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

```release-note
None
```
2025-08-19 07:05:15 +00:00