mirror of https://github.com/halo-dev/halo
feat: attachments supports sorting by display name (#5494)
#### What type of PR is this? /area ui /kind feature /milestone 2.14.0 #### What this PR does / why we need it: 附件管理的排序功能支持按照文件名排序。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/5028 #### Special notes for your reviewer: 测试方式: 1. 上传若干附件。 2. 测试根据文件名降序/升序功能是否符合预期。 #### Does this PR introduce a user-facing change? ```release-note 附件管理的排序功能支持按照文件名排序。 ```pull/5421/head
parent
b4729b9dab
commit
014625ff0e
|
@ -372,6 +372,18 @@ onMounted(() => {
|
||||||
),
|
),
|
||||||
value: 'metadata.creationTimestamp,asc',
|
value: 'metadata.creationTimestamp,asc',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: t(
|
||||||
|
'core.attachment.filters.sort.items.display_name_desc'
|
||||||
|
),
|
||||||
|
value: 'spec.displayName,desc',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: t(
|
||||||
|
'core.attachment.filters.sort.items.display_name_asc'
|
||||||
|
),
|
||||||
|
value: 'spec.displayName,asc',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: t(
|
label: t(
|
||||||
'core.attachment.filters.sort.items.size_desc'
|
'core.attachment.filters.sort.items.size_desc'
|
||||||
|
|
|
@ -40,7 +40,7 @@ core:
|
||||||
buttons:
|
buttons:
|
||||||
sending: sending
|
sending: sending
|
||||||
send: Send Code
|
send: Send Code
|
||||||
countdown: "resend after {timer} seconds"
|
countdown: resend after {timer} seconds
|
||||||
toast_success: verification code sent
|
toast_success: verification code sent
|
||||||
toast_email_empty: please enter your email address
|
toast_email_empty: please enter your email address
|
||||||
password:
|
password:
|
||||||
|
@ -545,6 +545,8 @@ core:
|
||||||
create_time_asc: Earliest uploaded
|
create_time_asc: Earliest uploaded
|
||||||
size_desc: Descending order by file size
|
size_desc: Descending order by file size
|
||||||
size_asc: Ascending order by file size
|
size_asc: Ascending order by file size
|
||||||
|
display_name_asc: Ascending order by display name
|
||||||
|
display_name_desc: Descending order by display name
|
||||||
view_type:
|
view_type:
|
||||||
items:
|
items:
|
||||||
grid: Grid Mode
|
grid: Grid Mode
|
||||||
|
|
|
@ -533,6 +533,8 @@ core:
|
||||||
create_time_asc: 较晚上传
|
create_time_asc: 较晚上传
|
||||||
size_desc: 文件大小降序
|
size_desc: 文件大小降序
|
||||||
size_asc: 文件大小升序
|
size_asc: 文件大小升序
|
||||||
|
display_name_asc: 文件名升序
|
||||||
|
display_name_desc: 文件名降序
|
||||||
view_type:
|
view_type:
|
||||||
items:
|
items:
|
||||||
grid: 网格模式
|
grid: 网格模式
|
||||||
|
|
|
@ -521,6 +521,8 @@ core:
|
||||||
create_time_asc: 較晚上傳
|
create_time_asc: 較晚上傳
|
||||||
size_desc: 文件大小降序
|
size_desc: 文件大小降序
|
||||||
size_asc: 文件大小升序
|
size_asc: 文件大小升序
|
||||||
|
display_name_asc: 文件名升序
|
||||||
|
display_name_desc: 文件名降序
|
||||||
view_type:
|
view_type:
|
||||||
items:
|
items:
|
||||||
grid: 網格模式
|
grid: 網格模式
|
||||||
|
|
Loading…
Reference in New Issue