feat(panel): implement admin maintenance window settings page

This commit is contained in:
Lemon-miaow committed 2026-07-03 02:46:50 +08:00
1 parent 55592ed123
commit 804459c08d
11 files changed
+462 -4

No files matched your search

+5
View File
@@ -18,6 +18,7 @@ import type {
WhitelistImage,
WhitelistResult,
Submission,
UpdateWindow,
} from "./types";
import { loadConfig } from "./config";
import i18next from "i18next";
@@ -301,6 +302,10 @@ export const api = {
requestRaw<Submission>("POST", `/me/submissions/${id}/context`, file, {
"Content-Type": "application/x-gzip",
}),
getUpdateWindow: () => request<UpdateWindow>("GET", "/updates/window"),
setUpdateWindow: (window: UpdateWindow) => request<UpdateWindow>("PUT", "/updates/window", window),
};
/**