-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
80 lines (72 loc) · 3.03 KB
/
popup.html
File metadata and controls
80 lines (72 loc) · 3.03 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Context DB Manager</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="container">
<header>
<h1>Context DB Manager</h1>
<div class="server-status" id="serverStatus">
<span class="status-dot" id="statusDot"></span>
<span id="statusText">Checking server...</span>
</div>
</header>
<main>
<!-- Database Management Section -->
<section class="section">
<h2>Your Context Databases</h2>
<div class="database-list" id="databaseList">
<!-- Databases will be loaded here -->
</div>
<div class="create-db-form">
<input type="text" id="newDbName" placeholder="Enter new database name">
<button id="createDbBtn" class="btn primary">Create Database</button>
</div>
</section>
<!-- Search Section -->
<section class="section">
<h2>Search Context</h2>
<div class="search-form">
<select id="searchDbSelect">
<option value="">Select database to search</option>
</select>
<input type="text" id="searchQuery" placeholder="Enter search query (Ctrl+K to focus)">
<button id="searchBtn" class="btn secondary">Search</button>
</div>
<div class="search-options">
<label class="search-option">
<input type="checkbox" id="searchAllDbs"> Search all databases
</label>
<select id="searchLimit">
<option value="5">5 results</option>
<option value="10" selected>10 results</option>
<option value="20">20 results</option>
</select>
</div>
<div class="search-results" id="searchResults">
<!-- Search results will appear here -->
</div>
</section>
<!-- Settings Section -->
<section class="section">
<h2>Settings</h2>
<div class="setting-item">
<label for="serverUrl">Local Server URL:</label>
<input type="text" id="serverUrl" value="http://localhost:8000" placeholder="http://localhost:8000">
<button id="saveSettingsBtn" class="btn secondary">Save</button>
</div>
<div class="setting-item">
<label>
<input type="checkbox" id="enableContextMenu"> Enable right-click context menu
</label>
</div>
</section>
</main>
</div>
<script src="popup.js"></script>
</body>
</html>