feat(frontend): add factory reset button with confirmation dialog

Add resetAppConfig API function, AlertDialog-confirmed factory reset
button in config page, and i18n keys for en/zh/pt-br locales.
This commit is contained in:
SiYue-ZO committed 2026-05-18 13:53:34 +08:00
1 parent f53222f6a4
commit 3f653161e3
7 files changed
+110 -11

No files matched your search

+6
View File
@@ -77,6 +77,12 @@ export async function patchAppConfig(
})
}
export async function resetAppConfig(): Promise<ConfigActionResponse> {
return request<ConfigActionResponse>("/api/config/reset", {
method: "POST",
})
}
// WeChat QR login flow API
export interface WeixinFlowResponse {