140 lines
3.4 KiB
HTML
140 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
width: 320px;
|
|
min-height: 200px;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: #111827;
|
|
color: #e5e7eb;
|
|
}
|
|
.header {
|
|
padding: 12px 16px;
|
|
background: #0a0f1a;
|
|
border-bottom: 1px solid #374151;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.header h1 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #c9a84c;
|
|
}
|
|
.content { padding: 12px; }
|
|
.url {
|
|
font-size: 11px;
|
|
color: #9ca3af;
|
|
margin-bottom: 12px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.entry {
|
|
padding: 10px;
|
|
background: #1f2937;
|
|
border: 1px solid #374151;
|
|
border-radius: 6px;
|
|
margin-bottom: 8px;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.entry:hover { border-color: #c9a84c; }
|
|
.entry-title { font-weight: 500; }
|
|
.entry-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }
|
|
.entry-l2 { color: #fbbf24; }
|
|
.empty {
|
|
text-align: center;
|
|
color: #6b7280;
|
|
padding: 24px;
|
|
}
|
|
.settings-link {
|
|
font-size: 11px;
|
|
color: #c9a84c;
|
|
text-decoration: none;
|
|
display: block;
|
|
text-align: center;
|
|
padding: 8px;
|
|
border-top: 1px solid #374151;
|
|
}
|
|
.settings-link:hover { text-decoration: underline; }
|
|
|
|
/* Settings view */
|
|
.settings { display: none; padding: 12px; }
|
|
.settings.active { display: block; }
|
|
.settings label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #9ca3af;
|
|
margin-bottom: 4px;
|
|
}
|
|
.settings input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
margin-bottom: 12px;
|
|
background: #1f2937;
|
|
border: 1px solid #374151;
|
|
border-radius: 4px;
|
|
color: #e5e7eb;
|
|
font-size: 12px;
|
|
}
|
|
.settings input:focus {
|
|
outline: none;
|
|
border-color: #c9a84c;
|
|
}
|
|
.btn {
|
|
width: 100%;
|
|
padding: 10px;
|
|
background: #c9a84c;
|
|
color: #0a0f1a;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
.btn:hover { background: #d4af5a; }
|
|
.btn-secondary {
|
|
background: #374151;
|
|
color: #e5e7eb;
|
|
}
|
|
.btn-secondary:hover { background: #4b5563; }
|
|
.status {
|
|
font-size: 11px;
|
|
text-align: center;
|
|
padding: 8px;
|
|
border-radius: 4px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.status.success { background: #064e3b; color: #34d399; }
|
|
.status.error { background: #7f1d1d; color: #fca5a5; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<span>🔐</span>
|
|
<h1>ClawVault</h1>
|
|
</div>
|
|
|
|
<div id="matchView" class="content">
|
|
<div class="url" id="currentUrl"></div>
|
|
<div id="matches"></div>
|
|
<a href="#" class="settings-link" id="settingsLink">⚙️ Settings</a>
|
|
</div>
|
|
|
|
<div id="settingsView" class="settings">
|
|
<div id="settingsStatus"></div>
|
|
<label>Vault URL</label>
|
|
<input type="text" id="vaultUrl" placeholder="http://localhost:8765">
|
|
<label>API Token</label>
|
|
<input type="password" id="apiToken" placeholder="Your API token">
|
|
<button class="btn" id="saveSettings">Save Settings</button>
|
|
<button class="btn btn-secondary" id="backToMatches" style="margin-top: 8px;">← Back</button>
|
|
</div>
|
|
|
|
<script src="popup.js"></script>
|
|
</body>
|
|
</html>
|