Files
EasyCLIProxyAPI/src/appUpdateModel.ts
T
lzt404 462766d0d2 feat: split core views and add Windows portable auto-update
- split the core page into Home and Version Management
- add responsive layouts and navigation
- implement portable update checks, progress, verification, replacement, and rollback
- generate Windows update packages and release manifests
- add updater, navigation, and release workflow tests
2026-07-24 15:36:58 +08:00

10 lines
271 B
TypeScript

export type AppUpdateIndicatorState = 'available' | 'processing' | null;
export function appUpdateIndicatorState(
hasUpdate: boolean,
processing: boolean,
): AppUpdateIndicatorState {
if (processing) return 'processing';
return hasUpdate ? 'available' : null;
}