Files
moon-i2p/extensions/firefox-i2p-torrent/ui.css
T
nandi 4bb81f1b80
check / check (macos-latest) (push) Failing after 26s
check / check (windows-latest) (push) Failing after 26s
check / check (ubuntu-latest) (push) Failing after 29s
feat: add diagnostics report to Firefox torrent extension
- Add a Diagnostics panel to the extension popup and manager page with copy and refresh actions
- Collect extension settings, router API status, torrents, DHT nodes, and a tail of the router log into one report
- Add a native host `diagnostics` command that reports router PID, active ports, log path, and log summary counters
- Export data dir, log file, router PID, and SAM port from the AppImage launcher
- Start the router with `--debug` so the log tail has detailed output
- Bump extension version to 0.1.4 and request clipboardWrite permission
2026-11-28 19:28:39 -08:00

260 lines
4.0 KiB
CSS

:root {
color-scheme: dark;
--bg: #0b1120;
--card: #131c31;
--border: #23304d;
--text: #e2e8f0;
--muted: #94a3b8;
--accent: #6d5dfc;
--teal: #14b8a6;
--danger: #ef4444;
--warn: #f59e0b;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 13px;
line-height: 1.45;
}
body.popup {
width: 450px;
min-height: 540px;
padding: 12px;
}
body.manager {
max-width: 980px;
margin: 0 auto;
padding: 20px;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 12px;
}
.brand {
display: flex;
align-items: center;
gap: 8px;
font-weight: 700;
font-size: 15px;
}
.brand img {
width: 24px;
height: 24px;
}
.pill {
display: inline-block;
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 600;
background: #1e293b;
color: var(--muted);
}
.pill.online {
background: rgba(20, 184, 166, 0.18);
color: #5eead4;
}
.pill.offline {
background: rgba(239, 68, 68, 0.18);
color: #fca5a5;
}
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px 12px;
margin-bottom: 10px;
}
.card h2 {
margin: 0 0 8px 0;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
display: flex;
justify-content: space-between;
align-items: center;
}
.grid-2 {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.stat {
background: rgba(15, 23, 42, 0.55);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 7px;
padding: 6px 8px;
}
.stat-label {
font-size: 11px;
color: var(--muted);
}
.stat-val {
font-size: 13px;
font-weight: 600;
word-break: break-all;
}
.mono {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 11px;
}
.row {
display: flex;
gap: 6px;
align-items: center;
}
input[type="text"],
input[type="number"] {
width: 100%;
background: #0b1222;
color: var(--text);
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px 8px;
font-size: 12px;
}
button {
background: var(--accent);
color: #fff;
border: 0;
border-radius: 6px;
padding: 6px 10px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
}
button.secondary {
background: #1e293b;
color: var(--text);
border: 1px solid var(--border);
}
button.danger {
background: rgba(239, 68, 68, 0.2);
color: #fca5a5;
border: 1px solid rgba(239, 68, 68, 0.35);
}
button:disabled {
opacity: 0.5;
cursor: default;
}
.dropzone {
margin-top: 8px;
border: 1px dashed var(--border);
border-radius: 8px;
padding: 8px;
text-align: center;
color: var(--muted);
cursor: pointer;
}
.dropzone.drag {
border-color: var(--teal);
color: var(--text);
}
.torrent-item {
padding: 8px 0;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.torrent-item:first-child {
border-top: 0;
padding-top: 0;
}
.progress-track {
width: 100%;
height: 6px;
background: #0b1222;
border-radius: 999px;
overflow: hidden;
margin: 5px 0;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent), var(--teal));
}
.msg {
font-size: 12px;
margin-top: 6px;
min-height: 16px;
color: #5eead4;
}
.msg.err {
color: #fca5a5;
}
details summary {
cursor: pointer;
color: var(--muted);
font-size: 12px;
}
.node-list {
max-height: 130px;
overflow-y: auto;
margin-top: 6px;
font-size: 11px;
}
.node-row {
padding: 3px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
pre.diag-log {
margin: 8px 0 0 0;
background: #0b1222;
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px;
font-size: 11px;
line-height: 1.4;
max-height: 300px;
overflow: auto;
white-space: pre-wrap;
word-break: break-all;
color: var(--text);
}
body.popup pre.diag-log {
max-height: 180px;
}