feat: add built-in Moon I2P start page to Firefox and Android
check / check (macos-latest) (push) Failing after 27s
check / check (windows-latest) (push) Failing after 26s
check / check (ubuntu-latest) (push) Failing after 30s

- 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.
This commit is contained in:
nandi committed 2026-11-28 20:24:28 -08:00
1 parent 9d3df6e100
commit 7139a64544
11 files changed
+1355 -37

No files matched your search

+254
View File
@@ -0,0 +1,254 @@
body.start-page {
min-height: 100vh;
margin: 0;
padding: 28px 18px 40px;
background:
radial-gradient(900px 420px at 50% -80px, rgba(109, 93, 252, 0.2), transparent 70%),
radial-gradient(640px 320px at 85% 0%, rgba(20, 184, 166, 0.12), transparent 65%),
var(--bg);
}
.start-wrap {
max-width: 920px;
margin: 0 auto;
}
.start-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
}
.brand-sub {
font-size: 12px;
font-weight: 500;
color: var(--muted);
}
.pill.booting {
background: rgba(245, 158, 11, 0.18);
color: #fcd34d;
}
.warmup-banner {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px 14px;
margin-bottom: 14px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.warmup-banner.is-booting {
border-color: rgba(245, 158, 11, 0.55);
background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), var(--card) 55%);
}
.warmup-banner.is-ready {
border-color: rgba(20, 184, 166, 0.45);
background: linear-gradient(90deg, rgba(20, 184, 166, 0.1), var(--card) 55%);
}
.warmup-banner.is-offline {
border-color: rgba(239, 68, 68, 0.45);
}
.warmup-title {
font-weight: 700;
font-size: 13px;
}
.warmup-detail {
color: var(--muted);
font-size: 12px;
margin-top: 2px;
}
.nav-card {
padding: 14px;
margin-bottom: 14px;
}
.nav-form {
display: flex;
gap: 8px;
align-items: center;
}
.nav-form input[type="text"] {
padding: 10px 12px;
font-size: 14px;
border-radius: 8px;
}
.nav-form button {
padding: 10px 18px;
font-size: 14px;
border-radius: 8px;
}
.telemetry-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
margin-bottom: 14px;
}
.tile {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 11px 12px;
text-align: left;
}
.tile-btn {
width: 100%;
font: inherit;
color: inherit;
cursor: pointer;
transition: border-color 0.15s ease, transform 0.15s ease;
}
.tile-btn:hover {
border-color: var(--accent);
}
.tile-sub {
margin-top: 3px;
font-size: 11px;
color: var(--muted);
}
.action-strip {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 18px;
}
.action-buttons {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.section-heading {
margin: 0 0 10px 0;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
display: flex;
justify-content: space-between;
align-items: center;
}
.sites-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 10px;
margin-bottom: 16px;
}
.site-card {
display: flex;
flex-direction: column;
gap: 6px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px 14px;
color: var(--text);
text-decoration: none;
transition: border-color 0.15s ease, background 0.15s ease;
}
.site-card:hover,
.site-card:focus-visible {
border-color: var(--accent);
background: #17213a;
outline: none;
}
.site-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.site-title {
font-weight: 700;
font-size: 14px;
}
.tag-pill {
display: inline-block;
padding: 2px 7px;
border-radius: 999px;
font-size: 10px;
font-weight: 600;
background: rgba(109, 93, 252, 0.18);
color: #c4b5fd;
white-space: nowrap;
}
.site-host {
color: #5eead4;
}
.site-desc {
font-size: 12px;
color: var(--muted);
}
.start-footer {
margin-top: 16px;
padding-top: 12px;
border-top: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
font-size: 12px;
color: var(--muted);
}
.b32-wrap {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
min-width: 0;
}
.b32-text {
max-width: 420px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text);
}
@media (max-width: 720px) {
.telemetry-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 460px) {
.nav-form {
flex-direction: column;
align-items: stretch;
}
}