Skip to content

Commit 58338f9

Browse files
committed
Demo build
1 parent 1e99f88 commit 58338f9

7 files changed

+1896
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
It was originally developed as part of **Telegram JavaScript contest** and now powers the official [**Telegram Web**](https://github.com/Ajaxy/telegram-tt) client. This repo is an extracted version of the framework.
66

7+
**Demo:** https://ajaxy.github.io/teact/demo
8+
79
### TODO
810

911
Anyone is welcome to contribute.

demo/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TeactDOM.render(
99
function App() {
1010
return (
1111
<div>
12-
<h2>Hello world</h2>
12+
<h2>Hello Teact!</h2>
1313

1414
<Child />
1515
<Checkbox />

demo/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = (_env, { mode = 'production' }) => {
2121
filename: '[name].[contenthash].js',
2222
chunkFilename: '[id].[chunkhash].js',
2323
assetModuleFilename: '[name].[contenthash][ext]',
24-
path: path.resolve(__dirname, 'dist'),
24+
path: path.resolve(__dirname, '../docs/demo'),
2525
clean: true,
2626
},
2727

docs/demo/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en" translate="no" class="notranslate">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
7+
<title>Teact Demo App</title>
8+
<script defer src="main.16c32c1ba43ea117e20c.js"></script></head>
9+
10+
<body>
11+
<div id="root"></div>
12+
<div id="portals"></div>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)