-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathindex.html
More file actions
144 lines (137 loc) · 5.98 KB
/
Copy pathindex.html
File metadata and controls
144 lines (137 loc) · 5.98 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!doctype html>
<html lang="en">
<head>
<!-- Polyfill for three.js TSL WebGPU enum access.
Three.js assumes self.GPUShaderStage exists when self is defined,
but many browsers have self without WebGPU support. -->
<script>
if (typeof self !== 'undefined' && !self.GPUShaderStage) {
self.GPUShaderStage = Object.freeze({ VERTEX: 1, FRAGMENT: 2, COMPUTE: 4 });
}
if (typeof self !== 'undefined' && !self.GPUBufferUsage) {
self.GPUBufferUsage = Object.freeze({
MAP_READ: 1, MAP_WRITE: 2, COPY_SRC: 4, COPY_DST: 8,
INDEX: 16, VERTEX: 32, UNIFORM: 64, STORAGE: 128,
INDIRECT: 256, QUERY_RESOLVE: 512
});
}
if (typeof self !== 'undefined' && !self.GPUTextureUsage) {
self.GPUTextureUsage = Object.freeze({
COPY_SRC: 1, COPY_DST: 2, TEXTURE_BINDING: 4,
STORAGE_BINDING: 8, RENDER_ATTACHMENT: 16
});
}
if (typeof self !== 'undefined' && !self.GPUColorWrite) {
self.GPUColorWrite = Object.freeze({
RED: 1, GREEN: 2, BLUE: 4, ALPHA: 8, ALL: 15
});
}
if (typeof self !== 'undefined' && !self.GPUMapMode) {
self.GPUMapMode = Object.freeze({ READ: 1, WRITE: 2 });
}
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="__APP_THEME_COLOR__" />
<meta name="color-scheme" content="dark light" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self' electrobun://* https://* http://localhost:* http://127.0.0.1:*;
script-src 'self' 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval' http://localhost:* http://127.0.0.1:* https://*;
style-src 'self' 'unsafe-inline' http://localhost:* http://127.0.0.1:* https://*;
connect-src 'self' blob: data: eliza-local-agent: http://localhost:* ws://localhost:* wss://localhost:* http://127.0.0.1:* ws://127.0.0.1:* wss://127.0.0.1:* https://* https://*:* wss://* wss://*:* ws://* ws://*:*;
img-src 'self' data: blob: http://localhost:* http://127.0.0.1:* https://*;
media-src 'self' blob: http://localhost:* http://127.0.0.1:* https://*;
frame-src 'self' http://localhost:* http://127.0.0.1:* https://*;
worker-src 'self' blob:;
font-src 'self' data: http://localhost:* http://127.0.0.1:* https://*;" />
<title>__APP_NAME__</title>
<meta name="description" content="__APP_DESCRIPTION__" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="__APP_URL__" />
<meta property="og:title" content="__APP_NAME__" />
<meta property="og:description" content="__APP_DESCRIPTION__" />
<meta property="og:image" content="__APP_SHARE_IMAGE__" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="__APP_URL__" />
<meta property="twitter:title" content="__APP_NAME__" />
<meta property="twitter:description" content="__APP_DESCRIPTION__" />
<meta property="twitter:image" content="__APP_SHARE_IMAGE__" />
<link rel="icon" type="image/png" sizes="256x256" href="/favicon-256x256.png" />
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<style>
/* Prevent flash of unstyled content */
html,
body {
margin: 0;
padding: 0;
background-color: #08080a;
color: #e8e8ec;
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Safe areas are consumed by app CSS variables and fixed shell controls. */
</style>
</head>
<body>
<div id="root"></div>
<!-- Node polyfills — inline sync script ensures they're available before any ESM module evaluates -->
<script>
if (typeof globalThis.process === "undefined") {
globalThis.process = {
env: { NODE_ENV: "development" },
cwd: () => "/",
platform: "browser",
version: "v0.0.0",
versions: {},
nextTick: (cb) => { Promise.resolve().then(cb); },
stdout: { write: () => {} },
stderr: { write: () => {} },
argv: [],
pid: 0,
exit: () => {},
on: function() { return this; },
off: function() { return this; },
emit: () => {},
browser: true,
};
}
if (typeof globalThis.Buffer === "undefined") {
globalThis.Buffer = {
alloc: (n) => new Uint8Array(n),
from: (a, enc) => {
if (typeof a === "string") {
if (enc === "base64") {
const b = atob(a);
const u = new Uint8Array(b.length);
for (let i = 0; i < b.length; i++) u[i] = b.charCodeAt(i);
return u;
}
return new TextEncoder().encode(a);
}
return new Uint8Array(a);
},
isBuffer: () => false,
concat: (bufs) => {
const total = bufs.reduce((s, b) => s + b.length, 0);
const result = new Uint8Array(total);
let offset = 0;
bufs.forEach((b) => { result.set(b, offset); offset += b.length; });
return result;
},
byteLength: (s) => new TextEncoder().encode(s).length,
};
}
</script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>