f7a720204a
- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用 - 添加所有子项目的完整源代码 - 保留原始 .git 为 .git.bak 备份
66 lines
2.5 KiB
HTML
66 lines
2.5 KiB
HTML
<!doctype html>
|
|
<html data-theme="light" data-color-scheme="default">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
<meta name="application-name" content="NomiFun" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
<meta name="apple-mobile-web-app-title" content="NomiFun" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="theme-color" content="#4E5969" />
|
|
<link rel="icon" type="image/png" href="./pwa/icon-192.png" />
|
|
<link rel="manifest" href="./manifest.webmanifest" />
|
|
<link rel="apple-touch-icon" href="./pwa/icon-180.png" />
|
|
<title>NomiFun</title>
|
|
<script>
|
|
// Node-global shim for the Tauri/web webview. The renderer was ported from
|
|
// Electron (where `process` exists in the renderer) and still reads a few
|
|
// `process.env.*` keys at module-eval time — e.g. WEBUI_DEFAULT_PORT in
|
|
// common/config/constants.ts. Vite replaces `process.env.NODE_ENV` but NOT
|
|
// other `process.env.*`, so in dev those survive to runtime and throw
|
|
// "process is not defined", aborting the whole module graph → white screen.
|
|
// This classic script runs before the deferred `type="module"` entry, so
|
|
// the shim is in place before any app code evaluates.
|
|
window.process = window.process || { env: {} };
|
|
</script>
|
|
<script>
|
|
// Synchronously restore theme from localStorage to prevent theme flash
|
|
(function () {
|
|
try {
|
|
var theme = localStorage.getItem('__nomifun_theme');
|
|
var colorScheme = localStorage.getItem('__nomifun_colorScheme');
|
|
if (theme) {
|
|
document.documentElement.setAttribute('data-theme', theme);
|
|
}
|
|
if (colorScheme) {
|
|
document.documentElement.setAttribute('data-color-scheme', colorScheme);
|
|
}
|
|
} catch (e) {}
|
|
})();
|
|
</script>
|
|
<style>
|
|
html,
|
|
body,
|
|
#root {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
// Set arco-theme on body synchronously
|
|
try {
|
|
var t = localStorage.getItem('__nomifun_theme');
|
|
if (t) document.body.setAttribute('arco-theme', t);
|
|
} catch (e) {}
|
|
</script>
|
|
<div id="root"></div>
|
|
<script type="module" src="./src/renderer/main.tsx"></script>
|
|
</body>
|
|
</html>
|