update: data source

This commit is contained in:
tao.chen
2026-08-14 11:59:06 +08:00
parent 225a585499
commit 480e1cc638
15 changed files with 432 additions and 559 deletions
+2 -2
View File
@@ -18,11 +18,11 @@ import { bindSchedulesApi } from "../features/schedules/state/schedulesStore";
import "../styles/platform.css";
type ActivePage = "home" | "scripts" | "data-resources" | "schedules" | "system";
type ActivePage = "home" | "scripts" | "schedules" | "system";
function pageFromPath(pathname: string): ActivePage {
const page = pathname.replace(/^\/+|\/+$/g, "");
return ["scripts", "data-resources", "schedules", "system"].includes(page)
return ["scripts", "schedules", "system"].includes(page)
? (page as ActivePage)
: "home";
}