123 Commits

Author SHA1 Message Date
John Niang
69efb82661 Update S3 plugin version and enhance thumbnail link generation (#203)
/kind improveent

This PR adapts Halo 2.22.0 and refactors thumbnail generation.

Fixes https://github.com/halo-dev/plugin-s3/issues/202

```release-note
适配 Halo 2.22.0 并重构缩略图功能
```
v1.14.0 v1.14.0-beta.1
2025-12-23 08:55:07 +00:00
Ryan Wang
186a8251d1 Add config guide link and update S3 form help text (#200)
```release-note
在配置界面添加配置指南链接
```
v1.13.2
2025-11-12 04:48:44 +00:00
John Niang
0f4e69e0df Fix the problem of stopping local attachment deletion (#196)
Fixes https://github.com/halo-dev/halo/issues/7610

```release-note
修复无法删除本地物理文件的问题
```
v1.13.1
2025-07-04 04:21:40 +00:00
John Niang
42e27da86b Ignore non-existing object when deleting (#193) v1.13.0 v1.13.0-rc.2 2025-06-11 00:24:19 +08:00
John Niang
19469d0537 Upgrade Halo Gradle plugin to 0.6.0 (#192) 2025-06-11 00:20:41 +08:00
John Niang
545b7ac4ea Merge pull request #191 from halo-dev/chore/upgrade-infra
Update Gradle, dependencies, and workflow
v1.13.0-rc.1
2025-06-06 23:58:11 +08:00
John Niang
26038491f2 Update Gradle, dependencies, and workflow 2025-06-06 17:59:31 +08:00
Ryan Wang
538c5f3ef9 Refactor data list using VEntityContainer (#190)
Refactor data list using ⁠VEntityContainer to optimize display across devices of various sizes.

See https://github.com/halo-dev/halo/pull/7383

Note: Updating to this version requires Halo >= 2.21.0.

```release-note
适配 Halo 2.21.0 的数据列表样式
```
2025-05-29 07:28:26 +00:00
guqing
a7919266d5 chore: update requires to 2.20.0 (#171)
### What this PR does?
将 requires 改动到 2.20.0
目前 Halo 2.20.0 已经发布,此 https://github.com/halo-dev/plugin-s3/pull/167 功能需要在 2.20.0 才能完整工作,因此升级到此版本后准备发版

```release-note
None
```
v1.12.0
2024-10-14 04:47:16 +00:00
guqing
68b0bee948 feat: ability to configure and use image thumbnails (#167)
### What this PR does?
适配 Halo 2.19(WIP) 的缩略图机制支持 S3 配置并使用缩略图

缩略图规则参考:
- [腾讯云 OSS 图片缩放](https://cloud.tencent.com/document/product/1246/109210)
- [百度 OSS 图片缩放](https://cloud.baidu.com/doc/BOS/s/gkbisf3l4)
- [阿里云 OSS 图片缩放](https://help.aliyun.com/zh/oss/user-guide/resize-images-4)
- [七牛云 OSS 图片缩放](https://developer.qiniu.com/dora/api/basic-processing-images-imageview2)
- [青云 OSS 图片缩放](https://docsv3.qingcloud.com/storage/object-storage/api/object/image_process/resize/)
- [京东云 OSS](https://docs.jdcloud.com/cn/object-storage-service/resize-images)
- [又拍云图片缩放](https://docs.upyun.com/cloud/image/#_11)


```release-note
支持配置并使用图片缩略图机制
```
2024-09-26 07:37:29 +00:00
longjuan
97f653bd42 feat: support selecting groups to join when link (#165)
fixes https://github.com/halo-dev/plugin-s3/issues/152
```release-note
S3关联时支持选择加入的分组
```
![image](https://github.com/user-attachments/assets/2380688c-3e04-4485-986d-b9118e05fe95)
1.11.0
2024-07-31 04:40:03 +00:00
longjuan
d4df735759 perf: refactor API request implementation and upgrade Halo dependency to 2.17 (#163)
使用 openapi-generator 重构请求库
使用 @halo-dev/api-client 提供的axiosInstance
提升所有 Halo 依赖版本至2.17
```release-note
None
```
2024-07-14 15:27:27 +00:00
longjuan
63be3ed3dc chore: bump version to 1.11.0 (#164)
```release-note
None
```
2024-07-14 15:25:26 +00:00
guqing
40f66ff665 chore: remove deprecated plugin wrapper (#161)
### What this PR does?
移除对已过时的 PluginWrapper 的引用,Halo 2.18.0 版本后将不在支持从 BasePlugin 中获取 PluginWrapper ,也不再支持依赖注入 PluginWrapper,使用 PluginContext 代替

see also https://github.com/halo-dev/halo/pull/6243 for more details

```release-note
None
```
1.10.0
2024-07-02 15:29:25 +00:00
longjuan
cb968de154 fix: apply natural ordering to policy and attachment listings (#160)
```release-note
None
```
传递unsorted以支持Halo 2.17版本
2024-07-02 15:27:25 +00:00
longjuan
bdd62cbe12 faet: Add file prefix search function in s3link (#153)
```release-note
在 S3关联 中支持文件名前缀搜索
```
fixes https://github.com/halo-dev/plugin-s3/issues/142
2024-06-16 12:30:45 +00:00
longjuan
2a26171fc4 Fix: Correct policy selector styling issue (#151)
```release-note
修复 S3 关联中策略选择器太短的问题
```
fixes #141
2024-05-14 02:08:33 +00:00
longjuan
6b62ce7aa4 Hide the permission of the verification interface (#147)
fixes https://github.com/halo-dev/plugin-s3/issues/146
```release-note
在角色创建中隐藏配置校验接口的权限
```
1.9.1
2024-05-06 10:34:54 +00:00
Ryan Wang
c60e31a033 chore: update plugin.yaml file (#138)
完善插件定义文件。

1. 将 homepage 字段指向 Halo 应用市场的地址。
2. 新增 repo 字段指向源码仓库地址。
3. 新增 issues 字段指向 GitHub issues 地址。

```release-note
None
```
2024-05-05 08:39:33 +00:00
Chenhe
7a9b0de0c6 improve usage tips in settings page (#140)
使用占位组件在设置页面展示信息并不恰当,并且此项目作为存储插件的 Example 工程易误导其他开发者。

调整为利用 FormKit `el` 特性实现。

问题背景:https://github.com/halo-dev/halo/issues/5802

**Preview - old**
<img width="373" alt="image" src="https://github.com/halo-dev/plugin-s3/assets/10266066/ac4aaede-6377-459f-a866-9bfe132906af">

**Preview - new**
<img width="373" alt="image" src="https://github.com/halo-dev/plugin-s3/assets/10266066/f884417c-045a-4396-84be-633d18ae36c9">

```release-note
优化调整提示的提示
```
2024-04-28 11:54:48 +00:00
longjuan
5e7e6620fd chore: bump version to 1.9.0 (#135)
```release-note
None
```
1.9.0
2024-04-22 06:08:08 +00:00
longjuan
47b6a37d0a feat: add verification function to the configuration of s3 object storage policy (#134)
```release-note
在 S3 存储策略配置中增加了验证配置的功能。
```
fixes https://github.com/halo-dev/plugin-s3/issues/132
2024-04-22 04:26:10 +00:00
longjuan
68b1a88b14 Fix original file name being incorrectly replaced (#129) 2024-04-14 20:25:05 +08:00
longjuan
f4ec56b7bc perf: optimize s3link interfaces using index mechanisms (#127)
* perf: optimize s3link list queries using index mechanisms
2024-04-03 12:10:54 +08:00
John Niang
c5d4e719a7 Simplify GitHub workflow by using reusable workflow (#130) 2024-03-26 22:11:52 +08:00
Ryan Wang
034b3f3ded chore: rename displayName to S3 对象存储 (#128)
在 Halo 完成动态数据的 i18n 之前,使用中文描述存储策略名称。

/kind improvement

<img width="821" alt="image" src="https://github.com/halo-dev/plugin-s3/assets/21301288/bc5fd32c-f7fc-43de-8bc4-cdbdd7e940d6">

```release-note
修改存储策略名称为中文显示。
```
2024-03-24 11:54:08 +00:00
longjuan
2503c6eba1 fix: Correct the formatting of Milliseconds to be a 3-digit number (#126)
```release-note
修复重命名模板中 millisecond 没有被格式化3位数的问题
```
1.8.1
2024-03-18 01:44:08 +00:00
John Niang
84aa7d32ba Correct release types to published instead of created 2024-03-05 22:23:26 +08:00
longjuan
73bd9e9948 chore: correcting incorrect policy template field help text (#124)
```release-note
None
```
1.8.0
2024-03-01 12:41:02 +00:00
longjuan
71c9784b64 chore: bump version to 1.8.0 (#123)
```release-note
None
```
2024-03-01 12:39:02 +00:00
longjuan
a16bbde9dd feat: add support for custom template in automatic renaming during upload (#115)
```release-note
上传自动重命名支持自定义模板,支持更多占位符
```

fixes #110
fixes #98
2024-02-29 13:53:38 +00:00
longjuan
9efa4b97e5 chore: remove plugin view permissions from S3 Link permission dependency (#121)
```release-note
None
```
入口已从插件设置页移除,移除依赖插件查看权限
2024-02-25 05:22:08 +00:00
longjuan
5c95a04a07 chore: updated s3 link entrance description (#120)
```release-note
None
```
2024-02-25 05:20:08 +00:00
longjuan
a63f3f4dc3 fix: missing page size selector style (#119)
```release-note
修复关联S3文件页面中 page size 下拉框样式缺失的问题
```
Before:
![image](https://github.com/halo-dev/plugin-s3/assets/28662535/0bc89958-ce28-4be8-a6ce-6a4688c61c98)

After:
![image](https://github.com/halo-dev/plugin-s3/assets/28662535/6099c2d0-e346-45eb-baa8-cd9e20c04b04)
2024-02-20 07:50:09 +00:00
Ryan Wang
11cbfdb9bb chore: simplify bundler config (#117)
使用 `@halo-dev/ui-plugin-bundler-kit` 简化构建配置。

/kind improvement

```release-note
None
```
2024-02-05 02:56:31 +00:00
Ryan Wang
2b0dd98575 refactor: place the entry for the S3 link page in the side menu (#116)
将 S3 关联页面放置在左侧菜单。

/kind improvement

Note: 此特性需要运行在 Halo 2.12 才生效,所以此 PR 同时修改了 requires。

<img width="1920" alt="image" src="https://github.com/halo-dev/plugin-s3/assets/21301288/a78d7837-81c2-4c50-ad19-2c40e74cbc41">

<img width="1920" alt="image" src="https://github.com/halo-dev/plugin-s3/assets/21301288/41edeed8-9ce0-40d1-82a9-1fb376a08c51">


```release-note
将 S3 关联页面放置在左侧菜单。
```
2024-02-03 15:50:55 +00:00
longjuan
8ff4acba6e perf: improve more friendly exception messages (#113)
```release-note
友好地提示异常信息
```
fixes https://github.com/halo-dev/plugin-s3/issues/105

验证方法:
1. ak/sk乱输,发生接收到403状态码(接收错误状态码)
2. endpoint网址改成不存在的,如.com改成.comaaa(未知主机)
3. endpoint端口改成没监听的(超时)
2024-01-16 14:14:12 +00:00
longjuan
82f409e349 chore: bump version to 1.7.0 (#107)
```release-note
None
```
已测试2.10.0和2.11.0无问题
1.7.0
2023-12-02 04:00:07 +00:00
longjuan
71d303404a chore: bold in README followed by a space (#106)
```release-note
None
```
![image](https://github.com/halo-dev/plugin-s3/assets/28662535/c81be5ba-d575-4cb1-ba68-611bc1d1bbea)
![image](https://github.com/halo-dev/plugin-s3/assets/28662535/399fe27b-5731-4345-89a1-fe1556912c61)

加粗后面加上空格
2023-12-01 07:56:10 +00:00
longjuan
b2cd58a7f7 chore: improve the usage and configuration guidelines in Readme (#104)
```release-note
None
```
完善使用方法和配置指南的重命名方式
2023-12-01 07:42:09 +00:00
longjuan
3fda6e0cde fix: log cannot be output and log information error (#101)
```release-note
修复无日志输出的问题
```
fixes #100 
测试上传,关联,删除,解除关联 4种操作的日志
```
---上传---
2023-11-27T22:39:22.139+08:00  INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler      : operation: createMultipartUpload, result: CreateMultipartUploadResponse(Bucket=test-1305034426, Key=test/image-pjcl.png, UploadId=17010959629c897f8b8c1a592b0efe300de867a1ea3e891cf04b4f95c6986470a0f30195be)
2023-11-27T22:39:22.391+08:00  INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler      : operation: uploadPart, result: UploadPartResponse(ETag="aa84eea735192b49552fa5bf3df317fa")
2023-11-27T22:39:22.547+08:00  INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler      : operation: completeUpload, result: CompleteMultipartUploadResponse(Location=http://test-1305034426.cos.ap-guangzhou.myqcloud.com/test/image-pjcl.png, Bucket=test-1305034426, Key=test/image-pjcl.png, ETag="afdd5ce39cf49676238fcfc879664b55-1")
2023-11-27T22:39:22.616+08:00  INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler      : operation: getMetadata, result: HeadObjectResponse(AcceptRanges=bytes, LastModified=2023-11-27T14:39:22Z, ContentLength=1420, ETag="afdd5ce39cf49676238fcfc879664b55-1", ContentType=image/png, Metadata={})
2023-11-27T22:39:22.616+08:00  INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler      : Upload object test/image-pjcl.png to bucket test-1305034426 successfully
2023-11-27T22:39:22.626+08:00  INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler      : Build attachment test/image-pjcl.png successfully
2023-11-27T22:39:29.915+08:00  WARN 7 --- [or-http-epoll-1] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: run.halo.s3os.S3LinkController
---关联---
2023-11-27T22:39:34.657+08:00  INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler      : Build attachment test/34.txt successfully
---解除关联---
2023-11-27T22:39:39.937+08:00  INFO 7 --- [tReconciler-t-1] run.halo.s3os.S3OsAttachmentHandler      : Skip deleting object test/34.txt from S3.
---删除---
2023-11-27T22:39:44.290+08:00  INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler      : operation: delete object, result: DeleteObjectResponse()
2023-11-27T22:39:44.291+08:00  INFO 7 --- [oundedElastic-5] run.halo.s3os.S3OsAttachmentHandler      : Delete object test/image-pjcl.png from bucket test-1305034426 successfully
```
2023-12-01 07:40:09 +00:00
longjuan
ac9c9b88a6 fix: list s3 file error in Halo 2.11 (#103)
```release-note
修复 Halo 2.11 中 关联S3文件 功能报错的问题
```
fixes #102
2023-11-28 02:46:10 +00:00
longjuan
77c8b21248 feat: only delete halo attachment records without deleting files in object storage (#97)
/kind feature
```release-note
提供解除 S3 关联功能(仅删除 Halo 附件记录,而不再对象存储中实际删除)
```
在附件库中选择使用本插件上传或关联的文件的更多插件,会出现 解除 S3 关联 按钮。
![image](https://github.com/halo-dev/plugin-s3/assets/28662535/6bfd109e-3be5-4fdc-afb0-bbf841dfc8e8)
对于其他附件,不会出现该按钮
![image](https://github.com/halo-dev/plugin-s3/assets/28662535/bc90166d-68c5-4599-b00a-5d2ddd868314)
本功能已支持权限管理。
2023-11-27 13:50:09 +00:00
longjuan
6f59d0ee32 chore: update .gitignore and remove untracked directories (#95)
移除 `src/main/resources/console/main.js` 并加入.gitignore
```release-note
None
```
2023-10-28 06:05:30 +00:00
John Niang
07127d7e54 Update gradle.properties 1.6.1 2023-10-27 02:18:56 -05:00
longjuan
565d3cfcaa Fix findUrlSuffix NPE when upgrading from old version (#94)
fixes https://github.com/halo-dev/plugin-s3/issues/93
```release-note
修复从旧版本升级后上传文件的NPE错误
```
/kind bug
2023-10-27 02:34:15 +00:00
longjuan
c0fb2b1017 fix: s3 link error when filename renaming enable (#91)
fixes https://github.com/halo-dev/plugin-s3/issues/90
请测试 `上传时重命名文件方式` 选项为**非**保留原文件名时,是否能正常关联s3文件
![image](https://github.com/halo-dev/plugin-s3/assets/28662535/22ab0467-60bd-4c4c-a486-38bc922b7f37)

```release-note
当上传时文件重命名功能开启时关联S3文件错误
```
1.6.0
2023-10-26 06:38:14 +00:00
longjuan
c79fee9ba1 perf: improve s3link role permissions (#89)
1. 新建用户,仅赋予 s3link 权限
2. 测试 关联s3文件功能是否 正常使用
请使用 <ff7af9f0d9> 之后的版本进行测试


```release-note
完善 s3link 角色权限
```
2023-10-26 05:44:12 +00:00
longjuan
08d6ff49c8 feat: add URL suffix to files of specified type (#79)
增加网址后缀功能
![image](https://github.com/halo-dev/plugin-s3/assets/28662535/cd56ed01-70b0-44fc-ae40-110f7c2c1aea)

此功能在文件上传和关联文件均生效

Fix #77 
Fix #68 
```release-note
增加给指定类型的文件加上特定的网址后缀功能
```
2023-10-26 05:42:17 +00:00
longjuan
73112953ba feat: improve the styles of the data list filter area on the mobile devices (#87)
同步 <https://github.com/halo-dev/halo/pull/4587> 中的数据列表过滤器区域的样式改进。
```release-note
同步移动设备上数据列表过滤器区域的样式改进
```
2023-10-16 04:14:13 +00:00