33 lines
1.4 KiB
HTML
33 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>HWLAB 云工作台</title>
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
<script>
|
|
(function () {
|
|
var hash = window.location.hash;
|
|
var path = window.location.pathname.replace(/\/+$/g, "") || "/";
|
|
if (path !== "/" && path !== "/workspace") return;
|
|
if (hash && hash !== "#/workspace" && hash !== "#/") return;
|
|
var projectId = "prj_device_pod_workbench";
|
|
window.HWLAB_CLOUD_WEB_EARLY_WORKSPACE_BOOTSTRAP = fetch("/auth/workspace-bootstrap?projectId=" + encodeURIComponent(projectId), {
|
|
credentials: "same-origin",
|
|
headers: { accept: "application/json" }
|
|
}).then(function (response) {
|
|
return response.json().catch(function () { return null; }).then(function (body) {
|
|
return { ok: response.ok, status: response.status, data: body, projectId: projectId };
|
|
});
|
|
}).catch(function (error) {
|
|
return { ok: false, status: 0, data: null, error: String(error && error.message ? error.message : error), projectId: projectId };
|
|
});
|
|
}());
|
|
</script>
|
|
</head>
|
|
<body data-auth-state="checking">
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|