mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-18 12:07:01 +08:00
feat: 设置功能
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user