summaryrefslogtreecommitdiffstats
path: root/html/src/index.tsx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:54:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:54:31 +0000
commit3b4936b6f2b870f9f2444ebb6ce1ca2de3f49d9f (patch)
treec91ab0ac9447b25f91c05e901212c2142fb95953 /html/src/index.tsx
parentInitial commit. (diff)
downloadttyd-3b4936b6f2b870f9f2444ebb6ce1ca2de3f49d9f.tar.xz
ttyd-3b4936b6f2b870f9f2444ebb6ce1ca2de3f49d9f.zip
Adding upstream version 1.7.4.upstream/1.7.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'html/src/index.tsx')
-rw-r--r--html/src/index.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/html/src/index.tsx b/html/src/index.tsx
new file mode 100644
index 0000000..738fcd5
--- /dev/null
+++ b/html/src/index.tsx
@@ -0,0 +1,9 @@
+if (process.env.NODE_ENV === 'development') {
+ require('preact/debug');
+}
+import 'whatwg-fetch';
+import { h, render } from 'preact';
+import { App } from './components/app';
+import './style/index.scss';
+
+render(<App />, document.body);