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-10-10 07:01:44 +00:00
|
|
|
<meta name="theme-color" content="#e1e1e1" media="(prefers-color-scheme: light)">
|
|
|
|
<meta name="theme-color" content="#262626" media="(prefers-color-scheme: dark)">
|
|
|
|
|
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
|
2023-08-29 19:17:29 +00:00
|
|
|
spaceFolderPath: "{{SPACE_PATH}}",
|
2023-08-30 15:25:54 +00:00
|
|
|
syncOnly: "{{SYNC_ONLY}}" === "true",
|
2023-12-17 10:46:18 +00:00
|
|
|
clientEncryption: "{{CLIENT_ENCRYPTION}}" === "true",
|
2023-05-23 18:53:53 +00:00
|
|
|
};
|
2023-08-30 15:25:54 +00:00
|
|
|
// But in case these variables aren't replaced by the server, fall back sync only mode
|
2023-05-23 18:53:53 +00:00
|
|
|
if (window.silverBulletConfig.spaceFolderPath.includes("{{")) {
|
|
|
|
window.silverBulletConfig = {
|
|
|
|
spaceFolderPath: "",
|
2023-08-30 15:25:54 +00:00
|
|
|
syncOnly: true,
|
2023-12-17 10:46:18 +00:00
|
|
|
clientEncryption: false,
|
2023-05-23 18:53:53 +00:00
|
|
|
};
|
2023-01-08 11:24:12 +00:00
|
|
|
}
|
2023-05-23 18:53:53 +00:00
|
|
|
</script>
|
|
|
|
<link rel="stylesheet" href="/.client/main.css" />
|
2023-07-10 06:44:37 +00:00
|
|
|
<style id="custom-styles"></style>
|
2023-05-23 18:53:53 +00:00
|
|
|
<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>
|