From 30ec8a43cfe5e5e7e142ad0382613734649a014b Mon Sep 17 00:00:00 2001
From: hypercross
- 请输入你的名字和角色来加入会话。
+ 输入你的名字和角色,选择或新建一个会话。
连接到 {window.location.host}
@@ -86,7 +118,7 @@ export const ConnectDialog: Component = () => {
type="text"
value={playerName()}
onInput={(e) => setPlayerName(e.currentTarget.value)}
- onKeyDown={(e) => e.key === "Enter" && handleConnect()}
+ onKeyDown={(e) => e.key === "Enter" && handleCreate()}
placeholder="你的名字"
class="w-full border border-gray-300 rounded px-3 py-1.5 text-sm"
autofocus
@@ -106,14 +138,52 @@ export const ConnectDialog: Component = () => {
))}
会话
++ {stream.connected ? "还没有会话" : "正在加载会话…"} +
+{error()}
{error()}
-