feat: 支持自定义端点配置与展示
This commit is contained in:
@@ -533,6 +533,14 @@ export default {
|
||||
title: 'API Keys',
|
||||
description: 'Manage your API keys and access tokens',
|
||||
searchPlaceholder: 'Search name or key...',
|
||||
endpoints: {
|
||||
title: 'API Endpoints',
|
||||
default: 'Default',
|
||||
copied: 'Copied',
|
||||
copiedHint: 'Copied to clipboard',
|
||||
clickToCopy: 'Click to copy this endpoint',
|
||||
speedTest: 'Speed Test',
|
||||
},
|
||||
allGroups: 'All Groups',
|
||||
allStatus: 'All Status',
|
||||
createKey: 'Create API Key',
|
||||
@@ -4162,6 +4170,18 @@ export default {
|
||||
apiBaseUrlPlaceholder: 'https://api.example.com',
|
||||
apiBaseUrlHint:
|
||||
'Used for "Use Key" and "Import to CC Switch" features. Leave empty to use current site URL.',
|
||||
customEndpoints: {
|
||||
title: 'Custom Endpoints',
|
||||
description: 'Add additional API endpoint URLs for users to quickly copy on the API Keys page',
|
||||
itemLabel: 'Endpoint #{n}',
|
||||
name: 'Name',
|
||||
namePlaceholder: 'e.g., OpenAI Compatible',
|
||||
endpointUrl: 'Endpoint URL',
|
||||
endpointUrlPlaceholder: 'https://api2.example.com',
|
||||
descriptionLabel: 'Description',
|
||||
descriptionPlaceholder: 'e.g., Supports OpenAI format requests',
|
||||
add: 'Add Endpoint',
|
||||
},
|
||||
contactInfo: 'Contact Info',
|
||||
contactInfoPlaceholder: 'e.g., QQ: 123456789',
|
||||
contactInfoHint: 'Customer support contact info, displayed on redeem page, profile, etc.',
|
||||
|
||||
@@ -533,6 +533,14 @@ export default {
|
||||
title: 'API 密钥',
|
||||
description: '管理您的 API 密钥和访问令牌',
|
||||
searchPlaceholder: '搜索名称或Key...',
|
||||
endpoints: {
|
||||
title: 'API 端点',
|
||||
default: '默认',
|
||||
copied: '已复制',
|
||||
copiedHint: '已复制到剪贴板',
|
||||
clickToCopy: '点击可复制此端点',
|
||||
speedTest: '测速',
|
||||
},
|
||||
allGroups: '全部分组',
|
||||
allStatus: '全部状态',
|
||||
createKey: '创建密钥',
|
||||
@@ -4324,6 +4332,18 @@ export default {
|
||||
apiBaseUrl: 'API 端点地址',
|
||||
apiBaseUrlHint: '用于"使用密钥"和"导入到 CC Switch"功能,留空则使用当前站点地址',
|
||||
apiBaseUrlPlaceholder: 'https://api.example.com',
|
||||
customEndpoints: {
|
||||
title: '自定义端点',
|
||||
description: '添加额外的 API 端点地址,用户可在「API Keys」页面快速复制',
|
||||
itemLabel: '端点 #{n}',
|
||||
name: '名称',
|
||||
namePlaceholder: '如:OpenAI Compatible',
|
||||
endpointUrl: '端点地址',
|
||||
endpointUrlPlaceholder: 'https://api2.example.com',
|
||||
descriptionLabel: '介绍',
|
||||
descriptionPlaceholder: '如:支持 OpenAI 格式请求',
|
||||
add: '添加端点',
|
||||
},
|
||||
contactInfo: '客服联系方式',
|
||||
contactInfoPlaceholder: '例如:QQ: 123456789',
|
||||
contactInfoHint: '填写客服联系方式,将展示在兑换页面、个人资料等位置',
|
||||
|
||||
Reference in New Issue
Block a user