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
a79f6c5e
Commit
a79f6c5e
authored
Dec 20, 2025
by
shaw
Browse files
feat: 给所有表格页面增加刷新按钮
parent
0484c59e
Changes
9
Hide whitespace changes
Inline
Side-by-side
frontend/src/i18n/locales/en.ts
View file @
a79f6c5e
...
@@ -79,6 +79,7 @@ export default {
...
@@ -79,6 +79,7 @@ export default {
searchPlaceholder
:
'
Search...
'
,
searchPlaceholder
:
'
Search...
'
,
noOptionsFound
:
'
No options found
'
,
noOptionsFound
:
'
No options found
'
,
saving
:
'
Saving...
'
,
saving
:
'
Saving...
'
,
refresh
:
'
Refresh
'
,
},
},
// Navigation
// Navigation
...
...
frontend/src/i18n/locales/zh.ts
View file @
a79f6c5e
...
@@ -79,6 +79,7 @@ export default {
...
@@ -79,6 +79,7 @@ export default {
searchPlaceholder
:
'
搜索...
'
,
searchPlaceholder
:
'
搜索...
'
,
noOptionsFound
:
'
无匹配选项
'
,
noOptionsFound
:
'
无匹配选项
'
,
saving
:
'
保存中...
'
,
saving
:
'
保存中...
'
,
refresh
:
'
刷新
'
,
},
},
// Navigation
// Navigation
...
...
frontend/src/views/admin/AccountsView.vue
View file @
a79f6c5e
...
@@ -2,7 +2,20 @@
...
@@ -2,7 +2,20 @@
<AppLayout>
<AppLayout>
<div
class=
"space-y-6"
>
<div
class=
"space-y-6"
>
<!-- Page Header Actions -->
<!-- Page Header Actions -->
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end gap-3"
>
<button
@
click=
"loadAccounts"
:disabled=
"loading"
class=
"btn btn-secondary"
:title=
"t('common.refresh')"
>
<svg
:class=
"['w-5 h-5', loading ? 'animate-spin' : '']"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
stroke-width=
"1.5"
>
<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
<button
@
click=
"showCreateModal = true"
@
click=
"showCreateModal = true"
class=
"btn btn-primary"
class=
"btn btn-primary"
...
...
frontend/src/views/admin/GroupsView.vue
View file @
a79f6c5e
...
@@ -2,7 +2,20 @@
...
@@ -2,7 +2,20 @@
<AppLayout>
<AppLayout>
<div
class=
"space-y-6"
>
<div
class=
"space-y-6"
>
<!-- Page Header Actions -->
<!-- Page Header Actions -->
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end gap-3"
>
<button
@
click=
"loadGroups"
:disabled=
"loading"
class=
"btn btn-secondary"
:title=
"t('common.refresh')"
>
<svg
:class=
"['w-5 h-5', loading ? 'animate-spin' : '']"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
stroke-width=
"1.5"
>
<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
<button
@
click=
"showCreateModal = true"
@
click=
"showCreateModal = true"
class=
"btn btn-primary"
class=
"btn btn-primary"
...
...
frontend/src/views/admin/ProxiesView.vue
View file @
a79f6c5e
...
@@ -2,7 +2,20 @@
...
@@ -2,7 +2,20 @@
<AppLayout>
<AppLayout>
<div
class=
"space-y-6"
>
<div
class=
"space-y-6"
>
<!-- Page Header Actions -->
<!-- Page Header Actions -->
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end gap-3"
>
<button
@
click=
"loadProxies"
:disabled=
"loading"
class=
"btn btn-secondary"
:title=
"t('common.refresh')"
>
<svg
:class=
"['w-5 h-5', loading ? 'animate-spin' : '']"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
stroke-width=
"1.5"
>
<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
<button
@
click=
"showCreateModal = true"
@
click=
"showCreateModal = true"
class=
"btn btn-primary"
class=
"btn btn-primary"
...
...
frontend/src/views/admin/RedeemView.vue
View file @
a79f6c5e
...
@@ -2,7 +2,20 @@
...
@@ -2,7 +2,20 @@
<AppLayout>
<AppLayout>
<div
class=
"space-y-6"
>
<div
class=
"space-y-6"
>
<!-- Page Header Actions -->
<!-- Page Header Actions -->
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end gap-3"
>
<button
@
click=
"loadCodes"
:disabled=
"loading"
class=
"btn btn-secondary"
:title=
"t('common.refresh')"
>
<svg
:class=
"['w-5 h-5', loading ? 'animate-spin' : '']"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
stroke-width=
"1.5"
>
<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
<button
@
click=
"showGenerateDialog = true"
@
click=
"showGenerateDialog = true"
class=
"btn btn-primary"
class=
"btn btn-primary"
...
...
frontend/src/views/admin/SubscriptionsView.vue
View file @
a79f6c5e
...
@@ -2,7 +2,20 @@
...
@@ -2,7 +2,20 @@
<AppLayout>
<AppLayout>
<div
class=
"space-y-6"
>
<div
class=
"space-y-6"
>
<!-- Page Header Actions -->
<!-- Page Header Actions -->
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end gap-3"
>
<button
@
click=
"loadSubscriptions"
:disabled=
"loading"
class=
"btn btn-secondary"
:title=
"t('common.refresh')"
>
<svg
:class=
"['w-5 h-5', loading ? 'animate-spin' : '']"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
stroke-width=
"1.5"
>
<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
<button
@
click=
"showAssignModal = true"
@
click=
"showAssignModal = true"
class=
"btn btn-primary"
class=
"btn btn-primary"
...
...
frontend/src/views/admin/UsersView.vue
View file @
a79f6c5e
...
@@ -2,7 +2,20 @@
...
@@ -2,7 +2,20 @@
<AppLayout>
<AppLayout>
<div
class=
"space-y-6"
>
<div
class=
"space-y-6"
>
<!-- Page Header Actions -->
<!-- Page Header Actions -->
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end gap-3"
>
<button
@
click=
"loadUsers"
:disabled=
"loading"
class=
"btn btn-secondary"
:title=
"t('common.refresh')"
>
<svg
:class=
"['w-5 h-5', loading ? 'animate-spin' : '']"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
stroke-width=
"1.5"
>
<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
<button
@
click=
"showCreateModal = true"
@
click=
"showCreateModal = true"
class=
"btn btn-primary"
class=
"btn btn-primary"
...
...
frontend/src/views/user/KeysView.vue
View file @
a79f6c5e
...
@@ -2,7 +2,20 @@
...
@@ -2,7 +2,20 @@
<AppLayout>
<AppLayout>
<div
class=
"space-y-6"
>
<div
class=
"space-y-6"
>
<!-- Page Header Actions -->
<!-- Page Header Actions -->
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end gap-3"
>
<button
@
click=
"loadApiKeys"
:disabled=
"loading"
class=
"btn btn-secondary"
:title=
"t('common.refresh')"
>
<svg
:class=
"['w-5 h-5', loading ? 'animate-spin' : '']"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
stroke-width=
"1.5"
>
<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
<button
@
click=
"showCreateModal = true"
@
click=
"showCreateModal = true"
class=
"btn btn-primary"
class=
"btn btn-primary"
...
...
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