Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

refactor: attachment upload component #784

Merged
merged 6 commits into from
Dec 26, 2022

Conversation

ruibaby
Copy link
Member

@ruibaby ruibaby commented Dec 20, 2022

What type of PR is this?

/kind improvement

What this PR does / why we need it:

优化上传附件的组件和附件库选择组件。

  1. 附件上传支持缓存选择的分组和策略。
  2. 附件上传支持选择分组。
  3. 移除附件选择组件的上传 tab,改为和附件库管理中一样的上传组件。

Which issue(s) this PR fixes:

Fixes halo-dev/halo#2828

Screenshots:

image

Special notes for your reviewer:

测试方式:

  1. 测试在附件管理中上传附件的功能是否正常。
  2. 测试在附件选择组件中上传附件的功能是否正常。

Does this PR introduce a user-facing change?

优化 Console 端上传附件的功能,支持缓存选择的分组和策略。

@vercel
Copy link

vercel bot commented Dec 20, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ui ✅ Ready (Inspect) Visit Preview Dec 26, 2022 at 4:31AM (UTC)

@ruibaby ruibaby added the kind/improvement Categorizes issue or PR as related to a improvement. label Dec 20, 2022
@ruibaby ruibaby added this to the 2.1.x milestone Dec 20, 2022
@JohnNiang
Copy link
Member

上传小按钮似乎不太直观,请看以下截图:

image

@ruibaby
Copy link
Member Author

ruibaby commented Dec 20, 2022

上传小按钮似乎不太直观,请看以下截图:

image

这个按钮放在哪儿都不太合适,等我想想。

@ruibaby
Copy link
Member Author

ruibaby commented Dec 23, 2022

已改为:
image

@JohnNiang
Copy link
Member

点击上传按钮之后,没有正确携带 group 信息。

@ruibaby
Copy link
Member Author

ruibaby commented Dec 24, 2022

点击上传按钮之后,没有正确携带 group 信息。

因为分组和策略会记住上次选的。

Copy link
Member

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Dec 26, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 26, 2022
Copy link
Member

@guqing guqing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Dec 26, 2022
@f2c-ci-robot f2c-ci-robot bot merged commit 023831c into halo-dev:main Dec 26, 2022
@ruibaby ruibaby deleted the refactor/attachment-upload branch December 26, 2022 06:33
@ruibaby ruibaby modified the milestones: 2.1.x, 2.1.0 Dec 26, 2022
JohnNiang pushed a commit to JohnNiang/halo that referenced this pull request Mar 2, 2023
#### What type of PR is this?

/kind improvement

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

优化上传附件的组件和附件库选择组件。

1. 附件上传支持缓存选择的分组和策略。
2. 附件上传支持选择分组。
3. 移除附件选择组件的上传 tab,改为和附件库管理中一样的上传组件。

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

Fixes halo-dev#2828

#### Screenshots:

<img width="722" alt="image" src="https://user-images.githubusercontent.com/21301288/208612167-c7082be4-0fb8-4caa-b246-d15bac525e86.png">

#### Special notes for your reviewer:

测试方式:

1. 测试在附件管理中上传附件的功能是否正常。
2. 测试在附件选择组件中上传附件的功能是否正常。

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

```release-note
优化 Console 端上传附件的功能,支持缓存选择的分组和策略。
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/improvement Categorizes issue or PR as related to a improvement. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

文章页面添加图片、附件极不方便
3 participants