feat(runtime): 即梦本机运行时 - 接入安全生成闭环与桌面本机渠道

Refs #225

Co-authored-by: zkhyww <127009345+zkhyww@users.noreply.github.com>
This commit is contained in:
ddCat
2026-08-15 12:45:29 +08:00
parent f549767cda
commit 914717cae6
179 changed files with 49746 additions and 1897 deletions

View File

@@ -1,18 +1,18 @@
import React from "react";
import { createRoot } from "react-dom/client";
import "antd/dist/reset.css";
import "./styles/globals.css";
import { RouterProvider } from "react-router";
import { runLocalRuntimeBootstrap } from "@/services/local-runtime-bootstrap";
import { AppProviders } from "@/components/layout/app-providers";
import { router } from "@/router";
document.body.style.fontFamily = '"SF Pro Display","SF Pro Text","PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif';
createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<AppProviders>
<RouterProvider router={router} />
</AppProviders>
</React.StrictMode>,
runLocalRuntimeBootstrap(
{
get href() {
return window.location.href;
},
replaceUrl(url) {
window.history.replaceState(window.history.state, "", url);
},
removeStorageItem(key) {
window.localStorage.removeItem(key);
},
},
() => {
void import("./application");
},
);