feat: 设置功能

This commit is contained in:
Wxw-Gu
2026-07-30 09:49:56 +08:00
parent 0adb064681
commit 77adc744e0
27 changed files with 1430 additions and 17 deletions
+25
View File
@@ -0,0 +1,25 @@
export type AppUpdateStatus =
| 'idle'
| 'checking'
| 'available'
| 'not-available'
| 'downloading'
| 'downloaded'
| 'error'
| 'unsupported'
export interface AppUpdateState {
status: AppUpdateStatus
currentVersion: string
version?: string
percent?: number
transferred?: number
total?: number
bytesPerSecond?: number
message?: string
}
export interface AppUpdateCheckResult {
success: boolean
state: AppUpdateState
}
+15
View File
@@ -0,0 +1,15 @@
export type CacheClearScope = 'bootstrap' | 'electron' | 'all'
export interface CacheSummaryItem {
id: 'bootstrap' | 'electron'
label: string
description: string
sizeBytes: number
fileCount: number
}
export interface CacheSummary {
items: CacheSummaryItem[]
totalBytes: number
updatedAt: number
}