Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion intelligence/ts/examples/web-chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Run example:

```bash
pnpm i && pnpm build
pnpm i
pnpm dev
```

or simply:

```bash
pnpm start
```
7 changes: 4 additions & 3 deletions intelligence/ts/examples/web-chat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@
</head>

<body>
<h1>Minimal Vite Chat</h1>
<h1 id="title">Minimal Vite Chat</h1>
<div>
<input id="chatInput" type="text" placeholder="Type your message..." />
<button id="sendButton">Send</button>
<button id="loadButton">Load</button>
</div>
<div id="chatLog">
<p>Chat log will appear here...</p>
<div>
<p id="loading"></p>
</div>
<div id="chatLog"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
9 changes: 3 additions & 6 deletions intelligence/ts/examples/web-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc",
"start": "pnpm i && pnpm build && http-server ."
"start": "pnpm i && vite"
},
"keywords": [],
"author": "",
"dependencies": {
"@flwr/flwr": "^0.1.3",
"cross-spawn": "^7.0.5"
"@flwr/flwr": "^0.1.3"
},
"devDependencies": {
"typescript": "^5.6.3",
"vite": "^6.2.0",
"http-server": "^14.1.1"
"vite": "^6.2.0"
}
}
Loading