-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
59 lines (56 loc) · 2.28 KB
/
popup.html
File metadata and controls
59 lines (56 loc) · 2.28 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>
<head>
<meta charset="UTF-8">
<title>DifyHelper设置</title>
<script src="./tailwind.js"></script>
</head>
<body class="w-96 p-4 bg-gray-50">
<div class="space-y-4">
<!-- API配置部分 -->
<div class="space-y-2">
<label class="block text-sm font-medium text-gray-700">API地址</label>
<input type="text" id="apiUrl" placeholder="输入Dify API地址"
class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
</div>
<!-- Token添加部分 -->
<div class="space-y-2">
<label class="block text-sm font-medium text-gray-700">添加Token</label>
<div class="flex space-x-2">
<input type="text" id="tokenInput" placeholder="输入Token"
class="flex-1 px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<button id="addToken"
class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">
添加
</button>
</div>
</div>
<!-- 应用列表 -->
<div class="space-y-2">
<h3 class="text-sm font-medium text-gray-700">应用列表</h3>
<div id="tokenAppList" class="space-y-2 max-h-48 overflow-y-auto">
<!-- Token和应用信息会在这里动态显示 -->
</div>
</div>
<!-- 功能设置部分 -->
<div class="space-y-2">
<h3 class="text-sm font-medium text-gray-700">功能设置</h3>
<div class="space-y-3">
<div class="space-y-2">
<label class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<input type="checkbox" id="enableBaiduSearch" class="rounded text-indigo-600 focus:ring-indigo-500">
<span class="text-sm text-gray-700">百度搜索增强</span>
</div>
<span class="text-xs text-gray-500">Beta</span>
</label>
<div class="text-xs text-gray-500 pl-6">
在百度搜索结果页面添加AI解释框
</div>
</div>
</div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>