- Firefox extension: add start.html/css/js as homepage and new-tab page (manifest bumped to 0.1.5, .xpi rebuilt). Shows router readiness, tunnel/NetDB/DHT tiles, torrents, and a .i2p/magnet address bar. - openManager message now accepts an optional hash and reuses any open manager tab. - Android: default page is file:///android_asset/start.html, backed by a MoonI2pStart JS bridge (status, torrents, open URL, diagnostics, copy .b32). Blocks file: navigation from the WebView. - RouterService: add fetchLocalApiJsonOrNull for bounded local API reads. - Built-in .i2p destinations reordered (NotBob, Postman first); README updated to match.
154 lines
5.6 KiB
HTML
154 lines
5.6 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Moon I2P Start Page</title>
|
|
<link rel="stylesheet" href="ui.css" />
|
|
<link rel="stylesheet" href="start.css" />
|
|
</head>
|
|
<body class="start-page">
|
|
<main class="start-wrap">
|
|
<header class="start-header">
|
|
<div class="brand">
|
|
<img src="icon.svg" alt="" />
|
|
<div>
|
|
<div>Moon I2P</div>
|
|
<div class="brand-sub">Private .i2p Browser & BitTorrent/DHT Router</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<span id="status-pill" class="pill offline">Checking...</span>
|
|
<button id="start-router-btn" type="button" style="display:none;">Start Router</button>
|
|
</div>
|
|
</header>
|
|
|
|
<section id="warmup-banner" class="warmup-banner">
|
|
<div>
|
|
<div id="warmup-title" class="warmup-title">Connecting to bundled moon-i2p router...</div>
|
|
<div id="warmup-detail" class="warmup-detail">
|
|
Checking tunnel pool and NetDB readiness. .i2p browsing works automatically once tunnels are up.
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="card nav-card">
|
|
<form id="nav-form" class="nav-form">
|
|
<input
|
|
id="nav-input"
|
|
type="text"
|
|
autocomplete="off"
|
|
spellcheck="false"
|
|
autofocus
|
|
placeholder="Enter .i2p domain (e.g. notbob.i2p), .b32.i2p address, or magnet: link..."
|
|
/>
|
|
<button type="submit">Go</button>
|
|
</form>
|
|
<div id="nav-msg" class="msg"></div>
|
|
</section>
|
|
|
|
<section class="telemetry-grid" aria-label="Router Telemetry">
|
|
<div class="tile">
|
|
<div class="stat-label">Tunnels</div>
|
|
<div id="tile-tunnels-val" class="stat-val">--</div>
|
|
<div id="tile-tunnels-sub" class="tile-sub">Waiting for router</div>
|
|
</div>
|
|
<div class="tile">
|
|
<div class="stat-label">NetDB Peers</div>
|
|
<div id="tile-netdb-val" class="stat-val">--</div>
|
|
<div id="tile-netdb-sub" class="tile-sub">-- floodfills</div>
|
|
</div>
|
|
<div class="tile">
|
|
<div class="stat-label">I2P DHT</div>
|
|
<div id="tile-dht-val" class="stat-val">--</div>
|
|
<div id="tile-dht-sub" class="tile-sub">Proto 17 / 18</div>
|
|
</div>
|
|
<button id="torrents-tile" class="tile tile-btn" type="button">
|
|
<div class="stat-label">Torrents</div>
|
|
<div id="tile-torrents-val" class="stat-val">0 active</div>
|
|
<div id="tile-torrents-sub" class="tile-sub">Open manager</div>
|
|
</button>
|
|
</section>
|
|
|
|
<section class="action-strip">
|
|
<div class="action-buttons">
|
|
<button id="open-manager-btn" type="button">Torrents & DHT Manager</button>
|
|
<button id="open-diag-btn" class="secondary" type="button">Diagnostics & Logs</button>
|
|
</div>
|
|
<span id="proxy-pill" class="pill">Proxy: 127.0.0.1:4444</span>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 class="section-heading">
|
|
<span>Built-in .i2p Destinations</span>
|
|
<span>Zero-lookup aliases ready</span>
|
|
</h2>
|
|
<div class="sites-grid">
|
|
<a class="site-card" href="http://notbob.i2p/">
|
|
<div class="site-top">
|
|
<span class="site-title">NotBob Directory</span>
|
|
<span class="tag-pill">Directory</span>
|
|
</div>
|
|
<div class="site-host mono">notbob.i2p</div>
|
|
<div class="site-desc">Uptime-monitored directory of live .i2p eepsites</div>
|
|
</a>
|
|
|
|
<a class="site-card" href="http://tracker2.postman.i2p/">
|
|
<div class="site-top">
|
|
<span class="site-title">Postman Tracker</span>
|
|
<span class="tag-pill">Torrents</span>
|
|
</div>
|
|
<div class="site-host mono">tracker2.postman.i2p</div>
|
|
<div class="site-desc">Public I2P BitTorrent tracker & torrent index</div>
|
|
</a>
|
|
|
|
<a class="site-card" href="http://insulaocculta.i2p/">
|
|
<div class="site-top">
|
|
<span class="site-title">Insula Occulta</span>
|
|
<span class="tag-pill">Torrents</span>
|
|
</div>
|
|
<div class="site-host mono">insulaocculta.i2p</div>
|
|
<div class="site-desc">I2P music & media torrent tracker</div>
|
|
</a>
|
|
|
|
<a class="site-card" href="http://stats.i2p/">
|
|
<div class="site-top">
|
|
<span class="site-title">I2P Stats</span>
|
|
<span class="tag-pill">Network</span>
|
|
</div>
|
|
<div class="site-host mono">stats.i2p</div>
|
|
<div class="site-desc">Network health, router stats & hosts.txt addressbook</div>
|
|
</a>
|
|
|
|
<a class="site-card" href="http://zzz.i2p/">
|
|
<div class="site-top">
|
|
<span class="site-title">zzz.i2p</span>
|
|
<span class="tag-pill">Community</span>
|
|
</div>
|
|
<div class="site-host mono">zzz.i2p</div>
|
|
<div class="site-desc">I2P developer forums & protocol proposals</div>
|
|
</a>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="active-torrents-card" class="card" style="display:none;">
|
|
<h2>
|
|
<span>Active Torrents (<span id="active-torrents-count">0</span>)</span>
|
|
<button id="open-manager-btn-2" class="secondary" type="button">Open Manager</button>
|
|
</h2>
|
|
<div id="active-torrents-list"></div>
|
|
</section>
|
|
|
|
<footer class="start-footer">
|
|
<div id="footer-proxy" class="mono">Proxy: 127.0.0.1:4444</div>
|
|
<div class="b32-wrap">
|
|
<span class="stat-label">Torrent .b32.i2p:</span>
|
|
<span id="footer-b32" class="mono b32-text" title="--">--</span>
|
|
<button id="copy-b32-btn" class="secondary" type="button">Copy .b32</button>
|
|
</div>
|
|
</footer>
|
|
</main>
|
|
|
|
<script src="start.js"></script>
|
|
</body>
|
|
</html>
|