Repository navigation
Expand file tree
/
Copy pathdocs-window.html
More file actions
54 lines (54 loc) · 2.71 KB
/
Copy pathdocs-window.html
File metadata and controls
54 lines (54 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'sha256-6qdN/3tXDmoPyxhxo6tXxpao2pCLfKbuaydcJghJE7I='; style-src 'self' 'sha256-qtbaIyhrMEKWyPSvYgJJXmNg/iaIvdb5aF0p+/V6R+o='; style-src-elem 'self' 'unsafe-inline'; style-src-attr 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none';" />
<title>Tether Documentation</title>
<script>
// Main supplies a validated palette for built-in and local themes alike.
(function () {
try {
var params = new URLSearchParams(location.search);
var palette = JSON.parse(params.get('palette') || '{}');
var root = document.documentElement;
var allowed = ['--bg-primary', '--bg-sidebar', '--bg-header', '--bg-hover', '--bg-active', '--text-primary', '--text-secondary', '--text-muted', '--border-color', '--accent', '--status-running', '--status-waiting', '--status-idle', '--status-dead', '--btn-primary-text', '--surface-1', '--surface-2', '--surface-3', '--surface-4'];
allowed.forEach(function (key) {
if (typeof palette[key] === 'string' && /^#[\da-f]{6}([\da-f]{2})?$/i.test(palette[key])) root.style.setProperty(key, palette[key]);
});
if (/^(0(\.\d+)?|1(\.0+)?)$/.test(palette['--shadow-opacity'])) root.style.setProperty('--shadow-opacity', palette['--shadow-opacity']);
var dark = params.get('dark') !== 'false';
root.style.colorScheme = dark ? 'dark' : 'light';
root.style.setProperty('--inner-highlight', dark ? 'inset 0 1px 0 rgba(255, 255, 255, 0.04)' : '0 0 0 0 transparent');
root.dataset.theme = params.get('theme') || 'mocha';
} catch (_) { /* Keep the default palette if startup data is unavailable. */ }
})();
</script>
<style>
html, body {
height: 100%;
margin: 0;
background: var(--bg-primary, #1e1e2e);
color: var(--text-primary, #cdd6f4);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
overflow: hidden;
}
#docs-root {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.docs-boot__text {
font-size: 13px;
color: var(--text-muted, #a0a4ba);
}
</style>
</head>
<body>
<div id="docs-root">
<span class="docs-boot__text">Loading documentation…</span>
</div>
<script type="module" src="/src/docs-renderer/index.ts"></script>
</body>
</html>