Merge remote-tracking branch 'upstream/main' into feature/sogou-web-search-default

# Conflicts:
#	pkg/tools/web.go
#	pkg/tools/web_test.go
This commit is contained in:
SiYue-ZO
2026-04-15 13:28:05 +08:00
43 changed files with 2901 additions and 334 deletions
+5 -4
View File
@@ -41,9 +41,7 @@ export async function postLauncherDashboardLogout(): Promise<boolean> {
return res.ok
}
export type SetupResult =
| { ok: true }
| { ok: false; error: string }
export type SetupResult = { ok: true } | { ok: false; error: string }
export async function postLauncherDashboardSetup(
password: string,
@@ -53,7 +51,10 @@ export async function postLauncherDashboardSetup(
method: "POST",
headers: { "Content-Type": "application/json" },
credentials: "same-origin",
body: JSON.stringify({ password: password.trim(), confirm: confirm.trim() }),
body: JSON.stringify({
password: password.trim(),
confirm: confirm.trim(),
}),
})
if (res.ok) return { ok: true }
let msg = "Unknown error"