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
94750fb6
Commit
94750fb6
authored
Jan 05, 2026
by
LLLLLLiulei
Browse files
feat: add account notes field
parent
7cc7e151
Changes
25
Show whitespace changes
Inline
Side-by-side
frontend/src/i18n/locales/en.ts
View file @
94750fb6
...
...
@@ -936,6 +936,9 @@ export default {
editAccount
:
'
Edit Account
'
,
deleteAccount
:
'
Delete Account
'
,
searchAccounts
:
'
Search accounts...
'
,
notes
:
'
Notes
'
,
notesPlaceholder
:
'
Enter notes
'
,
notesHint
:
'
Notes are optional
'
,
allPlatforms
:
'
All Platforms
'
,
allTypes
:
'
All Types
'
,
allStatus
:
'
All Status
'
,
...
...
@@ -975,6 +978,23 @@ export default {
overloadedUntil
:
'
Overloaded until {time}
'
,
viewTempUnschedDetails
:
'
View temp unschedulable details
'
},
columns
:
{
name
:
'
Name
'
,
platformType
:
'
Platform/Type
'
,
platform
:
'
Platform
'
,
type
:
'
Type
'
,
concurrencyStatus
:
'
Concurrency
'
,
notes
:
'
Notes
'
,
priority
:
'
Priority
'
,
weight
:
'
Weight
'
,
status
:
'
Status
'
,
schedulable
:
'
Schedulable
'
,
todayStats
:
'
Today Stats
'
,
groups
:
'
Groups
'
,
usageWindows
:
'
Usage Windows
'
,
lastUsed
:
'
Last Used
'
,
actions
:
'
Actions
'
},
tempUnschedulable
:
{
title
:
'
Temp Unschedulable
'
,
statusTitle
:
'
Temp Unschedulable Status
'
,
...
...
@@ -1018,21 +1038,6 @@ export default {
unavailableDesc
:
'
Unavailable - pause 30 minutes
'
}
},
columns
:
{
name
:
'
Name
'
,
platformType
:
'
Platform/Type
'
,
platform
:
'
Platform
'
,
type
:
'
Type
'
,
concurrencyStatus
:
'
Concurrency
'
,
status
:
'
Status
'
,
schedulable
:
'
Schedule
'
,
todayStats
:
"
Today's Stats
"
,
groups
:
'
Groups
'
,
usageWindows
:
'
Usage Windows
'
,
priority
:
'
Priority
'
,
lastUsed
:
'
Last Used
'
,
actions
:
'
Actions
'
},
clearRateLimit
:
'
Clear Rate Limit
'
,
testConnection
:
'
Test Connection
'
,
reAuthorize
:
'
Re-Authorize
'
,
...
...
frontend/src/i18n/locales/zh.ts
View file @
94750fb6
...
...
@@ -1014,6 +1014,9 @@ export default {
refreshCookie
:
'
刷新 Cookie
'
,
testAccount
:
'
测试账号
'
,
searchAccounts
:
'
搜索账号...
'
,
notes
:
'
备注
'
,
notesPlaceholder
:
'
请输入备注
'
,
notesHint
:
'
备注可选
'
,
// Filter options
allPlatforms
:
'
全部平台
'
,
allTypes
:
'
全部类型
'
,
...
...
@@ -1031,6 +1034,7 @@ export default {
platform
:
'
平台
'
,
type
:
'
类型
'
,
concurrencyStatus
:
'
并发
'
,
notes
:
'
备注
'
,
priority
:
'
优先级
'
,
weight
:
'
权重
'
,
status
:
'
状态
'
,
...
...
frontend/src/types/index.ts
View file @
94750fb6
...
...
@@ -385,6 +385,7 @@ export interface TempUnschedulableStatus {
export
interface
Account
{
id
:
number
name
:
string
notes
?:
string
|
null
platform
:
AccountPlatform
type
:
AccountType
credentials
?:
Record
<
string
,
unknown
>
...
...
@@ -477,6 +478,7 @@ export interface CodexUsageSnapshot {
export
interface
CreateAccountRequest
{
name
:
string
notes
?:
string
|
null
platform
:
AccountPlatform
type
:
AccountType
credentials
:
Record
<
string
,
unknown
>
...
...
@@ -490,6 +492,7 @@ export interface CreateAccountRequest {
export
interface
UpdateAccountRequest
{
name
?:
string
notes
?:
string
|
null
type
?:
AccountType
credentials
?:
Record
<
string
,
unknown
>
extra
?:
Record
<
string
,
unknown
>
...
...
frontend/src/views/admin/AccountsView.vue
View file @
94750fb6
...
...
@@ -30,6 +30,10 @@
<
template
#cell-name=
"{ value }"
>
<span
class=
"font-medium text-gray-900 dark:text-white"
>
{{
value
}}
</span>
</
template
>
<
template
#cell-notes=
"{ value }"
>
<span
v-if=
"value"
:title=
"value"
class=
"block max-w-xs truncate text-sm text-gray-600 dark:text-gray-300"
>
{{
value
}}
</span>
<span
v-else
class=
"text-sm text-gray-400 dark:text-dark-500"
>
-
</span>
</
template
>
<
template
#cell-platform_type=
"{ row }"
>
<PlatformTypeBadge
:platform=
"row.platform"
:type=
"row.type"
/>
</
template
>
...
...
@@ -177,6 +181,7 @@ const cols = computed(() => {
{
key
:
'
usage
'
,
label
:
t
(
'
admin.accounts.columns.usageWindows
'
),
sortable
:
false
},
{
key
:
'
priority
'
,
label
:
t
(
'
admin.accounts.columns.priority
'
),
sortable
:
true
},
{
key
:
'
last_used_at
'
,
label
:
t
(
'
admin.accounts.columns.lastUsed
'
),
sortable
:
true
},
{
key
:
'
notes
'
,
label
:
t
(
'
admin.accounts.columns.notes
'
),
sortable
:
false
},
{
key
:
'
actions
'
,
label
:
t
(
'
admin.accounts.columns.actions
'
),
sortable
:
false
}
)
return
c
...
...
frontend/vite.config.ts
View file @
94750fb6
...
...
@@ -32,11 +32,11 @@ export default defineConfig({
port
:
3000
,
proxy
:
{
'
/api
'
:
{
target
:
'
http://localhost:8080
'
,
target
:
process
.
env
.
VITE_DEV_PROXY_TARGET
||
'
http://localhost:8080
'
,
changeOrigin
:
true
},
'
/setup
'
:
{
target
:
'
http://localhost:8080
'
,
target
:
process
.
env
.
VITE_DEV_PROXY_TARGET
||
'
http://localhost:8080
'
,
changeOrigin
:
true
}
}
...
...
Prev
1
2
Next
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