diff --git a/frontend/src/api/admin/settings.ts b/frontend/src/api/admin/settings.ts index ab85c30c..a9208950 100644 --- a/frontend/src/api/admin/settings.ts +++ b/frontend/src/api/admin/settings.ts @@ -473,6 +473,9 @@ export interface SystemSettings { // Channel Monitor feature switch channel_monitor_enabled: boolean; channel_monitor_default_interval_seconds: number; + + // Available Channels feature switch + available_channels_enabled: boolean; } export interface UpdateSettingsRequest { @@ -626,6 +629,9 @@ export interface UpdateSettingsRequest { // Channel Monitor feature switch channel_monitor_enabled?: boolean; channel_monitor_default_interval_seconds?: number; + + // Available Channels feature switch + available_channels_enabled?: boolean; } /** diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 3ae81dca..1b81b1de 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -4675,11 +4675,19 @@ export default { channelMonitor: { title: 'Channel Monitor', description: 'Periodically probe configured channels and surface availability / latency to users. Turning it off stops the scheduler and returns an empty list on the user page.', + configureLink: 'Configure monitors in Channel Management > Channel Monitor', enabled: 'Enable Channel Monitor', enabledHint: 'Disabling stops background checks; existing history is preserved.', defaultInterval: 'Default check interval (seconds)', defaultIntervalHint: 'Pre-fills the interval when creating a new monitor; each monitor can override it. Range 15 – 3600.', }, + availableChannels: { + title: 'Available Channels', + description: 'Show logged-in users an aggregate view of the channels, models and pricing they can access. Disabled by default.', + configureLink: 'Configure model pricing in Channel Management > Channel Pricing', + enabled: 'Enable Available Channels', + enabledHint: 'When off, the sidebar entry is hidden and the endpoint returns an empty list.', + }, }, emailTabDisabledTitle: 'Email Verification Not Enabled', emailTabDisabledHint: 'Enable email verification in the Security tab to configure SMTP settings.', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 3059f8f8..c2bccc1f 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -4840,11 +4840,19 @@ export default { channelMonitor: { title: '渠道监控', description: '定期对配置的渠道发起健康检查,向用户展示可用性与延迟。关闭后调度器停止扫描,用户端列表为空。', + configureLink: '前往 渠道管理 > 渠道监控 配置监控项', enabled: '启用渠道监控', enabledHint: '关闭后后台不再执行定时检测,已有数据保留。', defaultInterval: '默认检测间隔(秒)', defaultIntervalHint: '新建渠道监控时表单的默认值,可被单个渠道覆盖。范围 15 – 3600 秒。', }, + availableChannels: { + title: '可用渠道', + description: '向已登录用户展示他们能访问的渠道、模型和定价聚合视图。默认关闭。', + configureLink: '前往 渠道管理 > 渠道定价 配置模型价格', + enabled: '启用可用渠道', + enabledHint: '关闭后用户端侧边栏入口隐藏,接口返回空数组。', + }, }, emailTabDisabledTitle: '邮箱验证未启用', emailTabDisabledHint: '请在「安全与认证」选项卡中启用邮箱验证后,再配置 SMTP 设置。', diff --git a/frontend/src/views/admin/SettingsView.vue b/frontend/src/views/admin/SettingsView.vue index b1bf447e..93beacc5 100644 --- a/frontend/src/views/admin/SettingsView.vue +++ b/frontend/src/views/admin/SettingsView.vue @@ -3760,6 +3760,15 @@
{{ t('admin.settings.features.channelMonitor.description') }}
+
+
+ {{ t('admin.settings.features.availableChannels.description') }} +
+
+
+ {{ t('admin.settings.features.availableChannels.enabledHint') }} +
+