-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
59 lines (55 loc) · 2.13 KB
/
popup.html
File metadata and controls
59 lines (55 loc) · 2.13 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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ClawTab</title>
</head>
<body>
<main class="app">
<header class="app__header">
<h1>ClawTab</h1>
<p>面向当前标签页内容的浏览器自动化助手</p>
</header>
<section class="settings">
<details>
<summary>OpenClaw Connector 设置</summary>
<form id="config-form" class="settings__form">
<label class="settings__field">
<span>Base URL</span>
<input id="config-base-url" type="url" placeholder="http://127.0.0.1:18789/v1" />
</label>
<label class="settings__field">
<span>Token</span>
<input id="config-token" type="password" placeholder="OpenClaw Gateway Token" />
</label>
<label class="settings__field">
<span>Model</span>
<input id="config-model" type="text" placeholder="openclaw/default" />
</label>
<label class="settings__field">
<span>Agent ID</span>
<input id="config-agent-id" type="text" placeholder="main" />
</label>
<p id="config-status" class="settings__status"></p>
<button class="composer__submit" type="submit">保存配置</button>
</form>
</details>
</section>
<section id="messages" class="messages" aria-live="polite"></section>
<form id="chat-form" class="composer">
<textarea
id="chat-input"
class="composer__input"
rows="4"
placeholder="问我当前网页在讲什么,或直接问价格 / 热点 / 视频总结..."
></textarea>
<div class="composer__actions">
<button id="reset-button" class="composer__secondary" type="button">清空对话</button>
<button id="submit-button" class="composer__submit" type="submit">发送</button>
</div>
</form>
</main>
<script type="module" src="/src/popup/index.ts"></script>
</body>
</html>