2022-03-20 08:56:28 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2022-09-05 09:47:30 +00:00
|
|
|
|
2023-01-08 11:24:12 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2023-01-16 15:45:55 +00:00
|
|
|
<meta name="viewport"
|
|
|
|
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
2023-01-08 11:24:12 +00:00
|
|
|
<base href="/" />
|
2023-05-23 18:53:53 +00:00
|
|
|
<link rel="apple-touch-icon" href="/.client/logo.png">
|
2023-01-16 15:45:55 +00:00
|
|
|
<title>SilverBullet</title>
|
2023-01-08 11:24:12 +00:00
|
|
|
<script>
|
2023-05-23 18:53:53 +00:00
|
|
|
// Some global variables we need to make this work
|
2023-01-08 11:24:12 +00:00
|
|
|
Deno = {
|
|
|
|
args: [],
|
|
|
|
build: {
|
|
|
|
arch: "x86_64",
|
|
|
|
},
|
2023-05-23 18:53:53 +00:00
|
|
|
core: {
|
|
|
|
runMicrotasks() {
|
|
|
|
// console.log("Not supported");
|
|
|
|
},
|
|
|
|
setHasTickScheduled() {
|
|
|
|
// console.log("Not supported");
|
|
|
|
}
|
|
|
|
},
|
2023-01-08 11:24:12 +00:00
|
|
|
env: {
|
|
|
|
get(key) {
|
|
|
|
// return undefined;
|
2022-10-10 12:50:21 +00:00
|
|
|
},
|
2023-01-08 11:24:12 +00:00
|
|
|
},
|
|
|
|
errors: {
|
|
|
|
AlreadyExists: class extends Error { },
|
2022-07-22 11:44:28 +00:00
|
|
|
}
|
2023-01-08 11:24:12 +00:00
|
|
|
};
|
2023-05-23 18:53:53 +00:00
|
|
|
window.silverBulletConfig = {
|
|
|
|
// These {{VARIABLES}} are replaced by http_server.ts
|
|
|
|
spaceFolderPath: "{{SPACE_PATH}}",
|
|
|
|
syncEndpoint: "{{SYNC_ENDPOINT}}",
|
|
|
|
};
|
|
|
|
// But in case these variables aren't replaced by the server, fall back fully static mode (no sync)
|
|
|
|
if (window.silverBulletConfig.spaceFolderPath.includes("{{")) {
|
|
|
|
window.silverBulletConfig = {
|
|
|
|
spaceFolderPath: "",
|
|
|
|
syncEndpoint: "/.fs"
|
|
|
|
};
|
2023-01-08 11:24:12 +00:00
|
|
|
}
|
2023-05-23 18:53:53 +00:00
|
|
|
</script>
|
2023-02-28 09:07:20 +00:00
|
|
|
<style id="custom-styles">
|
2023-01-08 11:24:12 +00:00
|
|
|
</style>
|
2023-05-23 18:53:53 +00:00
|
|
|
<link rel="stylesheet" href="/.client/main.css" />
|
|
|
|
<script type="module" src="/.client/client.js"></script>
|
|
|
|
<link rel="manifest" href="/.client/manifest.json" />
|
|
|
|
<link rel="icon" type="image/x-icon" href="/.client/favicon.png" />
|
2023-01-08 11:24:12 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2023-01-16 15:45:55 +00:00
|
|
|
<div id="sb-root">
|
|
|
|
</div>
|
2023-01-08 11:24:12 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|