feat: 完善登录角色切换和本地代理
This commit is contained in:
@@ -14,6 +14,7 @@ import type {
|
||||
CreateMemberPayload,
|
||||
DashboardSummary,
|
||||
EnvironmentName,
|
||||
ForgotPasswordPayload,
|
||||
HealthState,
|
||||
IntegrationConfigKey,
|
||||
IntegrationConfigState,
|
||||
@@ -140,6 +141,8 @@ interface BackendIntegrationConfigItem {
|
||||
configured?: string[]
|
||||
missing?: string[]
|
||||
optional?: string[]
|
||||
enabled?: string[]
|
||||
disabled?: string[]
|
||||
note?: string
|
||||
variableHelp?: Record<string, BackendVariableHelpValue>
|
||||
variableDescriptions?: Record<string, unknown>
|
||||
@@ -259,6 +262,11 @@ export const devopsApi = {
|
||||
return data
|
||||
},
|
||||
|
||||
async forgotPassword(payload: ForgotPasswordPayload): Promise<void> {
|
||||
await http.post('/auth/forgot-password', payload)
|
||||
lastDataSource = 'backend'
|
||||
},
|
||||
|
||||
async logout(): Promise<void> {
|
||||
await http.post('/auth/logout')
|
||||
lastDataSource = 'backend'
|
||||
@@ -594,6 +602,8 @@ function sanitizeIntegrationConfigStatus(
|
||||
const configured = sanitizeVariableNames(item.configured)
|
||||
const missing = sanitizeVariableNames(item.missing)
|
||||
const optional = sanitizeVariableNames(item.optional)
|
||||
const enabled = sanitizeVariableNames(item.enabled)
|
||||
const disabled = sanitizeVariableNames(item.disabled)
|
||||
const variableHelp = sanitizeVariableHelp(item)
|
||||
|
||||
return {
|
||||
@@ -604,6 +614,8 @@ function sanitizeIntegrationConfigStatus(
|
||||
configured,
|
||||
missing,
|
||||
optional,
|
||||
enabled,
|
||||
disabled,
|
||||
note: sanitizeIntegrationNote(item.note),
|
||||
...(Object.keys(variableHelp).length > 0 ? { variableHelp } : {}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user