fix: batch 2 audit fixes — diffSettings notify fields, slog migration, frontend constants
H5: diffSettings now tracks 5 balance/quota notify fields in audit log
M15: log.Printf audit log migrated to slog.Info, removed "log" import
M14: New frontend/src/constants/account.ts with shared constants
QuotaNotifyToggle.vue uses QUOTA_THRESHOLD_TYPE_FIXED/PERCENTAGE
L2: UsageTable.vue uses BILLING_MODE_TOKEN/IMAGE from billingMode.ts
This commit is contained in:
10
frontend/src/constants/account.ts
Normal file
10
frontend/src/constants/account.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/** WebSearch emulation mode values (must match backend WebSearchMode* constants in account.go) */
|
||||
export const WEB_SEARCH_MODE_DEFAULT = 'default' as const
|
||||
export const WEB_SEARCH_MODE_ENABLED = 'enabled' as const
|
||||
export const WEB_SEARCH_MODE_DISABLED = 'disabled' as const
|
||||
export type WebSearchMode = typeof WEB_SEARCH_MODE_DEFAULT | typeof WEB_SEARCH_MODE_ENABLED | typeof WEB_SEARCH_MODE_DISABLED
|
||||
|
||||
/** Quota notification threshold type values (must match thresholdType* constants in balance_notify_service.go) */
|
||||
export const QUOTA_THRESHOLD_TYPE_FIXED = 'fixed' as const
|
||||
export const QUOTA_THRESHOLD_TYPE_PERCENTAGE = 'percentage' as const
|
||||
export type QuotaThresholdType = typeof QUOTA_THRESHOLD_TYPE_FIXED | typeof QUOTA_THRESHOLD_TYPE_PERCENTAGE
|
||||
Reference in New Issue
Block a user