feat(cloudflare): 新增全局托管开关并发布 v1.8.0

This commit is contained in:
2026-09-30 11:56:56 +08:00
parent 1434cfd72b
commit 2d0f63517b
17 changed files with 198 additions and 27 deletions
+5
View File
@@ -517,4 +517,9 @@ export const api = {
method: 'POST',
body: JSON.stringify({ account_id: accountId, token, kind }),
}, 60_000),
setCfEnabled: (enabled: boolean) =>
request<CfAppSettings>('/api/cloudflare/enabled', {
method: 'POST',
body: JSON.stringify({ enabled }),
}),
}
+2
View File
@@ -1102,6 +1102,7 @@ export interface CfTunnelPayload {
export interface CfAppSettings {
account_id: string
enabled: boolean
default_token_configured: boolean
default_token_masked: string
api_token_configured: boolean
@@ -1112,6 +1113,7 @@ export interface CfAppSettings {
export interface CfAppSettingsInput {
account_id: string
enabled?: boolean
token: string
api_token: string
mirror: string