halo/ui/console-src/modules/contents/attachments/components
guqing ef37aa794b
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:https://github.com/halo-dev/rfcs/pull/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
附件图片支持生成多尺寸图片,文章支持响应式图片。
```
2024-08-26 10:27:14 +00:00
..
selector-providers feat: implement new mechanisms for generating and managing attachment thumbnails (#6454) 2024-08-26 10:27:14 +00:00
AttachmentDetailModal.vue feat: implement new mechanisms for generating and managing attachment thumbnails (#6454) 2024-08-26 10:27:14 +00:00
AttachmentError.vue feat: add support for video thumbnail preview in the attachment library (#6265) 2024-07-10 02:13:24 +00:00
AttachmentGroupBadge.vue chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
AttachmentGroupEditingModal.vue chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
AttachmentGroupList.vue refactor: improve ui/ux of attachment group and policy selector (#5996) 2024-05-27 08:30:57 +00:00
AttachmentListItem.vue chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
AttachmentLoading.vue feat: add support for video thumbnail preview in the attachment library (#6265) 2024-07-10 02:13:24 +00:00
AttachmentPermalinkList.vue chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
AttachmentPoliciesModal.vue chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
AttachmentPolicyBadge.vue refactor: improve ui/ux of attachment group and policy selector (#5996) 2024-05-27 08:30:57 +00:00
AttachmentPolicyEditingModal.vue chore: organize and fix imports (#6152) 2024-06-26 10:42:50 +00:00
AttachmentSelectorModal.vue feat: enable asynchronous resolving for UI extension points (#6018) 2024-05-30 07:01:15 +00:00
AttachmentUploadModal.vue fix: not remembering the selected attachment policy in upload modal (#6115) 2024-06-23 03:48:29 +00:00
DisplayNameEditForm.vue feat: support changing attachment display name (#6504) 2024-08-25 15:11:11 +00:00