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
This commit is contained in:
1 parent
9aa15f9ae8
commit
4bb81f1b80
9 files changed
+486
-1
No files matched your search
@@ -13,6 +13,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<span id="router-pill" class="pill offline">Offline</span>
|
||||
<button id="header-diag-btn" class="secondary" type="button">Diagnostics</button>
|
||||
<button id="start-router-btn">Start Router</button>
|
||||
<button id="stop-router-btn" class="secondary" style="display:none;">Stop Router</button>
|
||||
</div>
|
||||
@@ -85,6 +86,18 @@
|
||||
<div id="torrents-list">No torrents added yet.</div>
|
||||
</section>
|
||||
|
||||
<section id="diagnostics-card" class="card">
|
||||
<h2>
|
||||
<span>Diagnostics & Verbose Logs</span>
|
||||
<span class="row">
|
||||
<button id="copy-diag-btn" type="button">Copy Diagnostics</button>
|
||||
<button id="refresh-diag-btn" class="secondary" type="button">Refresh</button>
|
||||
</span>
|
||||
</h2>
|
||||
<div id="diag-status" class="msg"></div>
|
||||
<pre id="diagnostics-log" class="mono diag-log">Loading diagnostics...</pre>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2><span>Extension & Router Settings</span></h2>
|
||||
<form id="settings-form">
|
||||
|
||||
Reference in new issue
Block a user