feat(update): 支持 Docker Compose 页面一键升级并发布 v1.3.0

This commit is contained in:
2026-09-27 18:43:34 +08:00
parent 32dfe3b6de
commit 163df0c5b0
29 changed files with 1541 additions and 10 deletions
+3
View File
@@ -36,6 +36,7 @@ import type {
SettingsMap,
SystemLogEntry,
NotifyTestPayload,
UpdateStatus,
} from './types'
export function asList<T>(value: T[] | null | undefined): T[] {
@@ -96,6 +97,8 @@ async function requestWithSignal<T>(path: string, init?: RequestInit, signal?: A
export const api = {
getVersion: () => request<AppVersion>('/api/version'),
getUpdateStatus: () => request<UpdateStatus>('/api/system/update/status'),
applyUpdate: () => request<UpdateStatus>('/api/system/update/apply', { method: 'POST' }),
authStatus: () => request<AuthStatus>('/api/auth/status'),
login: (username: string, password: string) =>
request<{ message: string }>('/api/auth/login', {