Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
c52c47e1
Commit
c52c47e1
authored
Jan 04, 2026
by
ianshaw
Browse files
fix(frontend): 优化账号筛选工具条布局并修复IP管理表头翻译
- 筛选组件保持固定宽度,不再自动拉伸填充 - 左右分布布局,中间自然留空 - 修复 IP 管理页面表头缺失的中文翻译
parent
e67dbbdb
Changes
4
Show whitespace changes
Inline
Side-by-side
frontend/src/components/admin/account/AccountTableActions.vue
View file @
c52c47e1
<
template
>
<div
class=
"flex
max-w-full flex-wrap justify-end
gap-3"
>
<button
@
click=
"$emit('refresh')"
:disabled=
"loading"
class=
"btn btn-secondary
flex-shrink-0
"
><svg
:class=
"['h-5 w-5', loading ? 'animate-spin' : '']"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
><path
stroke-linecap=
"round"
stroke-linejoin=
"round"
d=
"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"
/></svg></button>
<button
@
click=
"$emit('sync')"
class=
"btn btn-secondary
flex-shrink-0
"
>
{{
t
(
'
admin.accounts.syncFromCrs
'
)
}}
</button>
<button
@
click=
"$emit('create')"
class=
"btn btn-primary
flex-shrink-0
"
>
{{
t
(
'
admin.accounts.createAccount
'
)
}}
</button>
<div
class=
"flex
flex-wrap items-center
gap-3"
>
<button
@
click=
"$emit('refresh')"
:disabled=
"loading"
class=
"btn btn-secondary"
><svg
:class=
"['h-5 w-5', loading ? 'animate-spin' : '']"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
><path
stroke-linecap=
"round"
stroke-linejoin=
"round"
d=
"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"
/></svg></button>
<button
@
click=
"$emit('sync')"
class=
"btn btn-secondary"
>
{{
t
(
'
admin.accounts.syncFromCrs
'
)
}}
</button>
<button
@
click=
"$emit('create')"
class=
"btn btn-primary"
>
{{
t
(
'
admin.accounts.createAccount
'
)
}}
</button>
</div>
</
template
>
...
...
frontend/src/components/admin/account/AccountTableFilters.vue
View file @
c52c47e1
<
template
>
<div
class=
"flex flex-wrap items-start gap-3"
>
<div
class=
"min-w-0 flex-1"
>
<div
class=
"flex flex-wrap items-center gap-3"
>
<SearchInput
:model-value=
"searchQuery"
:placeholder=
"t('admin.accounts.searchAccounts')"
class=
"w-64"
@
update:model-value=
"$emit('update:searchQuery', $event)"
@
search=
"$emit('change')"
/>
</div>
<div
class=
"flex flex-wrap items-center gap-3"
>
<Select
v-model=
"filters.platform"
class=
"w-40 flex-shrink-0"
:options=
"pOpts"
@
change=
"$emit('change')"
/>
<Select
v-model=
"filters.type"
class=
"w-40 flex-shrink-0"
:options=
"tOpts"
@
change=
"$emit('change')"
/>
<Select
v-model=
"filters.status"
class=
"w-40 flex-shrink-0"
:options=
"sOpts"
@
change=
"$emit('change')"
/>
</div>
<Select
v-model=
"filters.platform"
class=
"w-40"
:options=
"pOpts"
@
change=
"$emit('change')"
/>
<Select
v-model=
"filters.type"
class=
"w-40"
:options=
"tOpts"
@
change=
"$emit('change')"
/>
<Select
v-model=
"filters.status"
class=
"w-40"
:options=
"sOpts"
@
change=
"$emit('change')"
/>
</div>
</
template
>
...
...
frontend/src/i18n/locales/zh.ts
View file @
c52c47e1
...
...
@@ -1625,6 +1625,11 @@ export default {
deleteConfirmMessage
:
"
确定要删除代理 '{name}' 吗?
"
,
testProxy
:
'
测试代理
'
,
columns
:
{
name
:
'
名称
'
,
protocol
:
'
协议
'
,
address
:
'
地址
'
,
status
:
'
状态
'
,
actions
:
'
操作
'
,
nameLabel
:
'
名称
'
,
namePlaceholder
:
'
请输入代理名称
'
,
protocolLabel
:
'
协议
'
,
...
...
frontend/src/views/admin/AccountsView.vue
View file @
c52c47e1
...
...
@@ -3,15 +3,12 @@
<TablePageLayout>
<template
#filters
>
<div
class=
"flex flex-wrap-reverse items-start justify-between gap-3"
>
<div
class=
"min-w-0 flex-1"
>
<AccountTableFilters
v-model:searchQuery=
"params.search"
:filters=
"params"
@
change=
"reload"
@
update:searchQuery=
"debouncedReload"
/>
</div>
<div
class=
"flex-shrink-0"
>
<AccountTableActions
:loading=
"loading"
@
refresh=
"load"
...
...
@@ -19,7 +16,6 @@
@
create=
"showCreate = true"
/>
</div>
</div>
</
template
>
<
template
#table
>
<AccountBulkActionsBar
:selected-ids=
"selIds"
@
delete=
"handleBulkDelete"
@
edit=
"showBulkEdit = true"
@
clear=
"selIds = []"
@
select-page=
"selectPage"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment