From d3c72c3aa72f2fd4103d8bc88b67ce0e2b8b35c9 Mon Sep 17 00:00:00 2001 From: pikaro Date: Tue, 13 Oct 2026 09:07:49 +0000 Subject: [PATCH] =?UTF-8?q?v1.20.0:=20temas=20con=20letra=20propia=20?= =?UTF-8?q?=E2=80=94=20Cypherpunk,=20=C3=81mbar=20pulido,=20Piedra=20y=20A?= =?UTF-8?q?rchivo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - cada tema define sans/mono/serif; los fontFamily fijos pasan a C.mono - retirados Slate y Claro (se migran solos) - instalar-fuentes.sh añade Lora, Source Serif 4 y Courier Prime (faltan hashes) --- CHANGELOG.md | 21 ++ dashboard.html | 729 +++++++++++++++++++++++--------------------- instalar-fuentes.sh | 24 ++ 3 files changed, 418 insertions(+), 356 deletions(-) mode change 100755 => 100644 instalar-fuentes.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index c4ca1e3..20bf326 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,27 @@ y el versionado sigue [Versionado Semántico](https://semver.org/lang/es/): - **PARCHE** — arreglos de errores --- +## [1.20.0] — 2026-10-13 +### Cambiado — temas con personalidad +- **Cada tema trae ahora su letra**, no solo sus colores (`sans`, `mono`, + `serif` en `THEMES`). Antes los 336 `fontFamily:"monospace"` estaban + escritos a mano; ahora todos leen `C.mono`. +- **Temas: Cypherpunk · Ámbar · Piedra · Archivo.** + - *Cypherpunk*: sin cambios. + - *Ámbar*, pulido: fósforo de monitor antiguo, todo en letra de terminal, + brillo leve y líneas de barrido muy tenues; el texto deja de ser amarillo + chillón y el rojo de error se distingue del naranja. + - *Piedra* (nuevo): oscuro cálido, rojo teja y crema; títulos en Lora. + - *Archivo* (nuevo, claro): papel y tinta; Source Serif 4 y Courier Prime, + esquinas rectas y sin brillos. + - *Slate* y *Claro* se retiran. Quien los tuviera guardados pasa a + Cypherpunk y Archivo respectivamente. +- `instalar-fuentes.sh` instala también Lora, Source Serif 4 y Courier Prime + (OFL, Fontsource) y genera `vendor/fonts/temas.css`. **Faltan sus hashes**: + ejecutar `./instalar-fuentes.sh --hashes ~/fuentes-prueba` y pegarlos en + `ESPERADOS`. Mientras no estén instaladas, cada tema usa una letra parecida + del sistema. + ## [1.19.0] — 2026-10-13 ### Cambiado — experiencia de uso (primera ronda) Principio que guía esta ronda: **la app informa, no aconseja.** diff --git a/dashboard.html b/dashboard.html index d51417c..89ae5d1 100644 --- a/dashboard.html +++ b/dashboard.html @@ -26,11 +26,28 @@ @keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} } button:disabled { opacity:0.4; cursor:not-allowed !important; } input::placeholder { color: #4a6380; } + /* ── Retoques por tema (lo que los estilos en línea no alcanzan) ── */ + body[data-tema=piedra] [style*="box-shadow"], body[data-tema=archivo] [style*="box-shadow"] { box-shadow:none !important; } + body[data-tema=piedra] [style*="border-radius"]:not([style*="50%"]) { border-radius:3px !important; } + body[data-tema=archivo] [style*="border-radius"]:not([style*="50%"]) { border-radius:0 !important; } + body[data-tema=archivo] input::placeholder { color:#9b9282; } + body[data-tema=piedra] input::placeholder { color:#6c6157; } + body[data-tema=amber] input::placeholder { color:#6e5226; } + /* Los botones no heredan la letra por defecto: en los temas con letra propia, que la hereden. */ + body[data-tema=amber] :is(button,input,select,textarea), body[data-tema=piedra] :is(button,input,select,textarea), body[data-tema=archivo] :is(button,input,select,textarea) { font-family:inherit; } + /* Ámbar: fósforo de monitor antiguo — brillo leve y líneas de barrido muy tenues. */ + body[data-tema=amber] h2, body[data-tema=amber] [style*="font-weight: 700"] { text-shadow:0 0 7px rgba(255,176,0,0.35); } + body[data-tema=amber]::after { content:""; position:fixed; inset:0; pointer-events:none; z-index:200; + background:repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.12) 2px 3px); } + ::-webkit-scrollbar-thumb { background: #1a2d42; } + +
@@ -52,6 +69,14 @@ return isMobile; } + // Cada tema trae sus colores Y su letra. La letra es lo que da carácter: + // con solo cambiar colores, todos los temas parecían el mismo. + // sans → texto corrido mono → datos, cifras, etiquetas + // serif → títulos (si el tema los quiere con serifa; si no, null) + // Las fuentes nuevas (Lora, Source Serif 4, Courier Prime) se sirven desde + // el propio nodo como las IBM Plex — ver instalar-fuentes.sh. Si aún no + // están instaladas, cada pila cae en una letra parecida del sistema. + const LETRA_TERMINAL = { sans:"'IBM Plex Sans','Helvetica Neue',sans-serif", mono:"monospace", serif:null, italica:false }; const THEMES = { cypherpunk: { bg:"#05080d", bgCard:"#090e16", bgHover:"#0d1520", @@ -63,51 +88,39 @@ red:"#f56565", redMuted:"rgba(245,101,101,0.08)", t1:"#dde6f0", t2:"#6b88a8", t3:"#3a4d63", headerBg:"rgba(5,8,13,0.93)", + ...LETRA_TERMINAL, }, amber: { - bg:"#0a0800", bgCard:"#110f00", bgHover:"#1a1500", - border:"#2a2000", borderBright:"#3d3000", - green:"#ffb300", greenMuted:"rgba(255,179,0,0.08)", - amber:"#ff8c00", amberMuted:"rgba(255,140,0,0.08)", - purple:"#ffcc44", purpleMuted:"rgba(255,204,68,0.08)", - blue:"#ffd966", blueMuted:"rgba(255,217,102,0.08)", - red:"#ff4400", redMuted:"rgba(255,68,0,0.08)", - t1:"#ffe066", t2:"#a8862e", t3:"#5c4810", - headerBg:"rgba(10,8,0,0.95)", + bg:"#0b0802", bgCard:"#110c04", bgHover:"#181107", border:"#2b1f0b", borderBright:"#3f2e12", green:"#ffb000", greenMuted:"rgba(255,176,0,0.09)", amber:"#ff8f1f", amberMuted:"rgba(255,143,31,0.09)", purple:"#ffc857", purpleMuted:"rgba(255,200,87,0.09)", blue:"#e0a64a", blueMuted:"rgba(224,166,74,0.09)", red:"#ff5533", redMuted:"rgba(255,85,51,0.09)", t1:"#ffd48a", t2:"#b8893f", t3:"#6e5226", headerBg:"rgba(11,8,2,0.95)", + sans:"monospace", mono:"monospace", serif:null, italica:false, // fósforo: todo en terminal }, - slate: { - bg:"#0e1117", bgCard:"#151b24", bgHover:"#1c2533", - border:"#1e2d3d", borderBright:"#2a3f57", - green:"#38bdf8", greenMuted:"rgba(56,189,248,0.08)", - amber:"#7dd3fc", amberMuted:"rgba(125,211,252,0.08)", - purple:"#a5b4fc", purpleMuted:"rgba(165,180,252,0.08)", - blue:"#38bdf8", blueMuted:"rgba(56,189,248,0.08)", - red:"#f87171", redMuted:"rgba(248,113,113,0.08)", - t1:"#e2eaf4", t2:"#6b8cad", t3:"#34495f", - headerBg:"rgba(14,17,23,0.95)", + piedra: { + bg:"#14110f", bgCard:"#1b1714", bgHover:"#231e1a", border:"#2c2520", borderBright:"#3d342d", green:"#93b083", greenMuted:"rgba(147,176,131,0.09)", amber:"#d6a145", amberMuted:"rgba(214,161,69,0.09)", purple:"#cf6a57", purpleMuted:"rgba(207,106,87,0.09)", blue:"#c8b79a", blueMuted:"rgba(200,183,154,0.09)", red:"#e0533f", redMuted:"rgba(224,83,63,0.09)", t1:"#eee6da", t2:"#a59886", t3:"#6c6157", headerBg:"rgba(20,17,15,0.95)", + sans:"'IBM Plex Sans','Helvetica Neue',sans-serif", mono:"monospace", serif:"'Lora',Charter,Georgia,serif", italica:false }, - light: { - bg:"#f4f6f9", bgCard:"#ffffff", bgHover:"#edf0f5", - border:"#dde3ec", borderBright:"#c8d2e0", - green:"#059669", greenMuted:"rgba(5,150,105,0.08)", - amber:"#d97706", amberMuted:"rgba(217,119,6,0.08)", - purple:"#7c3aed", purpleMuted:"rgba(124,58,237,0.08)", - blue:"#0284c7", blueMuted:"rgba(2,132,199,0.08)", - red:"#dc2626", redMuted:"rgba(220,38,38,0.08)", - t1:"#0f172a", t2:"#475569", t3:"#94a3b8", - headerBg:"rgba(244,246,249,0.97)", + archivo: { + bg:"#f2ede3", bgCard:"#f9f6ef", bgHover:"#ebe5d8", border:"#dcd3c1", borderBright:"#c7bca6", green:"#2e5a43", greenMuted:"rgba(46,90,67,0.09)", amber:"#946510", amberMuted:"rgba(148,101,16,0.09)", purple:"#1e2a46", purpleMuted:"rgba(30,42,70,0.09)", blue:"#3a5878", blueMuted:"rgba(58,88,120,0.09)", red:"#a5221b", redMuted:"rgba(165,34,27,0.09)", t1:"#1c1a17", t2:"#5b544a", t3:"#9b9282", headerBg:"rgba(242,237,227,0.96)", + sans:"'Source Serif 4',Charter,'Bitstream Charter',Georgia,serif", mono:"'Courier Prime','Courier 10 Pitch','Courier New',monospace", serif:"'Source Serif 4',Charter,'Bitstream Charter',Georgia,serif", italica:true }, }; const THEME_META = [ { id:"cypherpunk", label:"Cypherpunk", dot:"#00e87a" }, - { id:"amber", label:"Ámbar", dot:"#ffb300" }, - { id:"slate", label:"Slate", dot:"#38bdf8" }, - { id:"light", label:"Claro", dot:"#059669" }, + { id:"amber", label:"Ámbar", dot:"#ffb000" }, + { id:"piedra", label:"Piedra", dot:"#cf6a57" }, + { id:"archivo", label:"Archivo (claro)", dot:"#f2ede3" }, ]; + // Slate y Claro se retiraron en la v1.20: quien los tuviera guardados + // pasa al más parecido en vez de quedarse con un tema que ya no existe. + const TEMA_RETIRADO = { slate:"cypherpunk", light:"archivo" }; let C = THEMES.cypherpunk; - const setTheme = id => { C = THEMES[id] || THEMES.cypherpunk; }; + const setTheme = id => { + C = THEMES[id] || THEMES.cypherpunk; + // Lo que no se puede tocar desde los estilos en línea (esquinas, fondo + // de la página al estirar, brillos) va por CSS según data-tema. + try { document.body.dataset.tema = THEMES[id] ? id : "cypherpunk"; document.body.style.background = C.bg; } catch {} + }; const MOCK_FEES = { fastestFee:42, halfHourFee:28, hourFee:18, economyFee:8, minimumFee:3 }; const MOCK_MEMPOOL = { count:14821, vsize:28400000, total_fee:310000000 }; @@ -2719,10 +2732,14 @@ mb: b => `${(b/1e6).toFixed(2)} MB`, }; - const Badge = ({children, color}) => { const c=color||C.green; return {children}; }; + const Badge = ({children, color}) => { const c=color||C.green; return {children}; }; const Card = ({children, style, glow, innerRef}) =>
{children}
; - const SectionTitle = ({children, accent, icon}) => { const a=accent||C.green; return
{icon&&{icon}}

{children}

; }; - const Tag = ({label,value,color}) =>
{label}{value!=null?value:"-"}
; + const SectionTitle = ({children, accent, icon}) => { const a=accent||C.green; + const h2 = C.serif + ? {margin:0,fontSize:"1.08rem",fontFamily:C.serif,fontWeight:600,fontStyle:C.italica?"italic":"normal",letterSpacing:"0.01em",color:a} + : {margin:0,fontSize:"0.68rem",fontFamily:C.mono,textTransform:"uppercase",letterSpacing:"0.2em",color:a}; + return
{icon&&{icon}}

{children}

; }; + const Tag = ({label,value,color}) =>
{label}{value!=null?value:"-"}
; // ── Enlace a TU instancia de Mempool ──────────────────────────────── // Se construye siempre desde la URL que has configurado, nunca desde una @@ -2739,7 +2756,7 @@ return ( {e.currentTarget.style.color=C.blue;e.currentTarget.style.borderColor=C.blue+"60";}} onMouseLeave={e=>{e.currentTarget.style.color=C.t2;e.currentTarget.style.borderColor=C.border;}}> {texto || "ver en Mempool ↗"} @@ -2747,7 +2764,7 @@ ); }; const Pulse = ({color}) => ; - const Spinner = () =>
◌ cargando
; + const Spinner = () =>
◌ cargando
; // El aviso de demo ya no va pestaña a pestaña: lo da EstadoNodoBanner, // una sola vez y arriba, y además avisa cuando HAY nodo pero no contesta. const DemoBanner = () => null; @@ -2756,21 +2773,21 @@ const h = useNodeHealth(base); const caja = (color, fondo, titulo, texto) => (
-
{titulo}
+
{titulo}
{texto}
- +
); if (!base) return caja(C.amber, C.amberMuted, "MODO DEMOSTRACIÓN · DATOS DE EJEMPLO", "No hay ningún nodo configurado: todo lo que ves son datos de ejemplo, no reales. Para ver los tuyos, pon la dirección de tu nodo en Ajustes."); if (h.fallos.size === 0) return null; if (h.oks.size === 0) return caja(C.red, C.redMuted, "TU NODO NO RESPONDE · LO QUE VES ES DE EJEMPLO", - No hay respuesta de {base}. Los datos de esta pantalla son de ejemplo, no reales. Comprueba en Ajustes la dirección y si empieza por http:// o https://, que el nodo esté encendido y que Tailscale esté conectado.); + No hay respuesta de {base}. Los datos de esta pantalla son de ejemplo, no reales. Comprueba en Ajustes la dirección y si empieza por http:// o https://, que el nodo esté encendido y que Tailscale esté conectado.); return caja(C.amber, C.amberMuted, "TU NODO RESPONDE A MEDIAS", Algunas partes no contestan ({[...h.fallos.keys()].join(", ")}). Donde ponga EJEMPLO, esos datos no son reales.); } - const EjemploAviso = ({texto}) =>
EJEMPLO · {texto||"Sin nodo no se puede consultar lo que has buscado: esto es un resultado de ejemplo para que veas cómo funciona."}
; + const EjemploAviso = ({texto}) =>
EJEMPLO · {texto||"Sin nodo no se puede consultar lo que has buscado: esto es un resultado de ejemplo para que veas cómo funciona."}
; // Qué ha escrito la persona en el buscador. Antes cualquier cosa (hasta // "hola") devolvía una dirección de demo, como si existiera. @@ -2785,7 +2802,7 @@ const Segmentos = ({opciones, valor, onCambio, color}) => (
{opciones.map(o=>( - + ))}
); @@ -2799,11 +2816,11 @@ ]; return ( -
¿Qué quieres hacer?
+
¿Qué quieres hacer?
{acciones.map(a=>( ))} @@ -2819,7 +2836,7 @@ const s=size||80, r=s/2-8, circ=2*Math.PI*r, fill=circ*(score/100); const centerText = label != null ? label : score; const centerSize = label != null ? s*0.16 : s*0.22; - return {centerText}; + return {centerText}; } const CertaintyBadge = ({level}) => { const map={CERTEZA:C.green,PROBABLE:C.amber,POSIBLE:C.blue}; return {level}; }; @@ -2965,9 +2982,9 @@ {check.informational?"·":(check.positive&&!check.pass)?"✓":check.pass?"✓":"✗"} - {check.label} + {check.label} {!check.pass&&!check.positive&&check.actionability&&( - )} {!check.informational&&!check.pass&&check.penalty>0&&( -
+
Peso en la banda: {check.penalty>=40?"alto":check.penalty>=20?"medio":"bajo"}
)} {!isProblem&&check.didactic&&(
{showDidactic===check.id&&( @@ -3097,16 +3114,16 @@ return (
- Privacidad + Privacidad
))} {/* Level filter */} @@ -3769,12 +3786,12 @@ border:`1px solid ${filter===f?(f==="error"?C.red:f==="warn"?C.amber:C.blue)+"60":C.border}`, background:filter===f?(f==="error"?C.redMuted:f==="warn"?C.amberMuted:C.blueMuted):"none", color:filter===f?(f==="error"?C.red:f==="warn"?C.amber:C.blue):C.t2, - fontFamily:"monospace",fontSize:"0.68rem",cursor:"pointer", + fontFamily:C.mono,fontSize:"0.68rem",cursor:"pointer", }}>{f==="all"?"todos":f} ))}
@@ -3783,7 +3800,7 @@
{!loading && filtered.length===0 &&
Sin entradas{filter!=="all"?` de nivel "${filter}"`:""}.
} @@ -3796,7 +3813,7 @@ ))}
-
+
{filtered.length} entradas · auto-refresh 30s {lastUpdated && última actualización: {lastUpdated}}
@@ -3880,27 +3897,27 @@ {/* Comisiones — el contexto para decidir */} {fees&&( -
Comisiones ahora (según la mempool)
+
Comisiones ahora (según la mempool)
{[{label:"Próx. bloque",val:`${fees.fastestFee} sat/vB`,color:C.red},{label:"30 min",val:`${fees.halfHourFee} sat/vB`,color:C.amber},{label:"1 hora",val:`${fees.hourFee} sat/vB`,color:C.green},{label:"Económico",val:`${fees.economyFee} sat/vB`,color:C.t2},{label:"Mínimo",val:`${fees.minimumFee} sat/vB`,color:C.t3}].map(f=>( -
{f.label}
{f.val}
+
{f.label}
{f.val}
))}
{/* La pregunta real */}
-
Si pagas… ¿cuándo entra?
+
Si pagas… ¿cuándo entra?
setTarifa(e.target.value)} type="number" min="0" step="0.1" placeholder="sat/vB" - style={{width:110,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"8px 10px",color:C.t1,fontFamily:"monospace",fontSize:"0.72rem",outline:"none"}}/> + style={{width:110,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"8px 10px",color:C.t1,fontFamily:C.mono,fontSize:"0.72rem",outline:"none"}}/> {estimacion&&( - + {estimacion.fuera ? `No entra en los próximos ${estimacion.bloques} bloques${estimacion.minUlt!=null?` — el último proyectado admite desde ${estimacion.minUlt} sat/vB`:""}. Tendría que esperar a que baje la demanda.` : `Entraría en el bloque +${estimacion.posicion} — unos ${estimacion.minutos} minutos de media.`} )}
-
+
Estimación sobre la mempool de ahora mismo: si llegan transacciones con más comisión, tu sitio se retrasa. Y diez minutos es la media entre bloques, no una promesa.
@@ -3912,14 +3929,14 @@ {mempool&&(
{[{label:"Transacciones",val:fmt.num(mempool.count),color:C.amber},{label:"vSize total",val:fmt.mb(mempool.vsize),color:C.blue},{label:"Comisiones",val:fmt.sbtc(mempool.total_fee),color:C.green}].map(s=>( -
{s.label}
{s.val}
+
{s.label}
{s.val}
))}
)} {proyectados&&proyectados.length>0&&( -
Bloques proyectados
+
Bloques proyectados
{proyectados.slice(0,4).map((block,i)=>{ const feeRange = block.feeRange || []; const maxFee = Math.round(Math.max(...feeRange, 1)); @@ -3928,9 +3945,9 @@ return (
- +{i+1} bloque{i>0?"s":""} - {fmt.num(block.nTx)} txs - {esElTuyo&&← tu transacción} + +{i+1} bloque{i>0?"s":""} + {fmt.num(block.nTx)} txs + {esElTuyo&&← tu transacción}
{minFee}–{maxFee} sat/vB{fmt.mb(block.blockVSize)}
@@ -3942,7 +3959,7 @@ {/* El corte: aquí acaba lo que se espera y empieza lo que ya está */}
- ahora + ahora
@@ -3950,21 +3967,21 @@ {blocks.map((b,i)=>(
selectBlock(b)} style={{display:"grid",gridTemplateColumns:"90px 1fr auto",alignItems:"center",gap:12,padding:"10px 14px",borderRadius:6,cursor:"pointer",background:selected&&selected.id===b.id?C.purpleMuted:C.bgCard,border:`1px solid ${selected&&selected.id===b.id?C.purple+"50":C.border}`}} onMouseEnter={e=>e.currentTarget.style.background=C.bgHover} onMouseLeave={e=>e.currentTarget.style.background=selected&&selected.id===b.id?C.purpleMuted:C.bgCard}> -
#{fmt.num(b.height)}
{fmt.ago(b.timestamp)}
-
{fmt.hash(b.id)}
{fmt.num(b.tx_count)} txs{fmt.mb(b.size)}{b.extras&&b.extras.pool&&{b.extras.pool.name}}
-
{b.extras&&b.extras.totalFees!=null&&<>
{fmt.sbtc(b.extras.totalFees)}
fees
}
+
#{fmt.num(b.height)}
{fmt.ago(b.timestamp)}
+
{fmt.hash(b.id)}
{fmt.num(b.tx_count)} txs{fmt.mb(b.size)}{b.extras&&b.extras.pool&&{b.extras.pool.name}}
+
{b.extras&&b.extras.totalFees!=null&&<>
{fmt.sbtc(b.extras.totalFees)}
fees
}
))} {selected&&(
- Bloque #{fmt.num(selected.height)} + Bloque #{fmt.num(selected.height)}
- +
-
{selected.id}
+
{selected.id}
@@ -3973,11 +3990,11 @@
-
Primeras Transacciones
+
Primeras Transacciones
{!blockTxs&&} {blockTxs&&blockTxs.slice(0,5).map((tx,i)=>(
- {fmt.hash(tx.txid)} + {fmt.hash(tx.txid)}
{tx.fee} sat{tx.size}B
))} @@ -3987,7 +4004,7 @@ {/* Histórico de comisiones — para saber si hoy es caro o barato */}
-
+
◈ Comisiones de la última semana
{feeStats&&( @@ -3999,7 +4016,7 @@ )}
{!feeHistory ? : } -
+
sat/vB por hora · los fines de semana suelen ser más baratos
@@ -4055,10 +4072,10 @@ {yLabels.map((v,i) => ( - {v} + {v} ))} {xLabels.map(({i,label}) => ( - {label} + {label} ))} ); @@ -4109,14 +4126,14 @@
setQuery(e.target.value)} onKeyDown={e=>e.key==="Enter"&&search()} placeholder="txid · dirección · altura · block hash" - style={{flex:1,background:C.bgCard,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"11px 14px",color:C.t1,fontFamily:"monospace",fontSize:"0.78rem",outline:"none"}} + style={{flex:1,background:C.bgCard,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"11px 14px",color:C.t1,fontFamily:C.mono,fontSize:"0.78rem",outline:"none"}} onFocus={e=>e.target.style.borderColor=C.purple} onBlur={e=>e.target.style.borderColor=C.borderBright} /> -
- {err&&
Error: {err}
} + {err&&
Error: {err}
} {loading&&} {!base&&!loading&&!err&&} {!result&&!base&&!loading&&!err&&{window.__setTab&&window.__setTab("auditoria",q);}}/>} @@ -4158,25 +4175,25 @@ return ( -
+
✓ Verificar Transacción Propia
setTxid(e.target.value)} onKeyDown={e=>e.key==="Enter"&&verify()} placeholder="Pega aquí tu txid para verificar" - style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"9px 12px",color:C.t1,fontFamily:"monospace",fontSize:"0.75rem",outline:"none"}} + style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"9px 12px",color:C.t1,fontFamily:C.mono,fontSize:"0.75rem",outline:"none"}} onFocus={e=>e.target.style.borderColor=C.green} onBlur={e=>e.target.style.borderColor=C.borderBright} /> -
- {err&&
{err}
} + {err&&
{err}
} {result&&(
- {fmt.hash(result.tx.txid)} + {fmt.hash(result.tx.txid)} {statusLabel}
@@ -4387,12 +4404,12 @@ return( -
+
◎ Mapa de UTXOs
{utxos&&utxos.length>0&&(
- {err&&
{err}
} + {err&&
{err}
} {loading&&} {utxos&&utxos.length>0&&(
@@ -4427,7 +4444,7 @@ {/* Patrón temporal */} {temporalPattern&&(
- ⏱ {temporalPattern} + ⏱ {temporalPattern}
)} @@ -4446,11 +4463,11 @@
- {fmt.hash(u.txid)}:{u.vout} + {fmt.hash(u.txid)}:{u.vout}
- {priv.score}/100 - {sharePct}% + {priv.score}/100 + {sharePct}%
@@ -4461,8 +4478,8 @@ {/* Value + block */}
0?6:0}}> - {fmt.btc(u.value)} - + {fmt.btc(u.value)} + {u.status?.confirmed?`bloque #${fmt.num(u.status.block_height)}`:"⏳ pendiente"}
@@ -4471,7 +4488,7 @@ {priv.issues.length>0&&(
{priv.issues.map((issue,j)=>( - {issue.label} @@ -4488,7 +4505,7 @@ {[{color:C.green,label:"Buena privacidad"},{color:C.amber,label:"Revisar"},{color:C.red,label:"Problema grave"}].map(l=>(
- {l.label} + {l.label}
))}
@@ -5349,11 +5366,11 @@ {mempoolUrl ? ( + style={{fontSize:"0.64rem",fontFamily:C.mono,color:C.blue,textDecoration:"none",wordBreak:"break-all"}}> {abrevTxid(txData.txid)} ↗ ) : ( - + {abrevTxid(txData.txid)} )} @@ -5361,14 +5378,14 @@ onMouseEnter={()=>setHover(true)} onMouseLeave={()=>setHover(false)} onClick={()=>setHover(h=>!h)} title="Ver detalle" - style={{padding:"0 6px",background:hover?C.borderBright:"transparent",border:`1px solid ${C.borderBright}`,borderRadius:4,color:C.t2,fontFamily:"monospace",fontSize:"0.58rem",cursor:"pointer",lineHeight:"1.5"}}> + style={{padding:"0 6px",background:hover?C.borderBright:"transparent",border:`1px solid ${C.borderBright}`,borderRadius:4,color:C.t2,fontFamily:C.mono,fontSize:"0.58rem",cursor:"pointer",lineHeight:"1.5"}}> {detalle.nIn}→{detalle.nOut} ⓘ {/* Tooltip de detalle: aparece al pasar el ratón o tocar la pastilla i→o */} {hover&&(
-
+
Estructura {detalle.nIn} in → {detalle.nOut} out
Fluyó {fmt.num(fluyo)} sat · {detalle.btc} BTC
{detalle.bloque!=null @@ -5381,7 +5398,7 @@ )}
{ana?.band&&( - {ana.band} + {ana.band} )}
{/* Barra visual de cantidad: el ojo capta proporción sin leer cifras */} @@ -5389,13 +5406,13 @@
- + {fmt.num(fluyo)} sat{txData.status?.block_time&&` · ${fmt.date(txData.status.block_time)}`}
{marcas.length>0&&(
- {marcas.map((m,j)=>({m.txt}))} + {marcas.map((m,j)=>({m.txt}))}
)} {esCoinbase&&( @@ -5410,16 +5427,16 @@ return (
- ↑ origen del input #{i+1} · {fmt.num(vin.prevout?.value||0)} sat + ↑ origen del input #{i+1} · {fmt.num(vin.prevout?.value||0)} sat {!h.child&&!h.loading&&( )} - {h.loading&&consultando…} + {h.loading&&consultando…}
- {h.err&&
{h.err}
} + {h.err&&
{h.err}
} {h.child&&}
); @@ -5496,11 +5513,11 @@ return (
- Rastro de procedencia + Rastro de procedencia
{Object.keys(raiz).length>0&&( )} @@ -5511,12 +5528,12 @@ {resumenDistancia.length>0 ? (
-
+
Atención: el rastro toca {resumenDistancia.map(r=>r.cat.replace(/^.. /,"")).join(", ")}
{resumenDistancia.map((r,j)=>( - + {r.cat} · a {r.dist} {r.dist===1?"salto":"saltos"} ))} @@ -5527,7 +5544,7 @@
) : explorados>0 ? (
-
+
Camino limpio
@@ -5540,7 +5557,7 @@ nada hacia atrás, estas monedas se crearon aquí. */} {((tx.vin||[]).some(v=>v.is_coinbase||v.coinbase) || (tx.vin||[]).length===0 || (tx.vin||[]).every(v=>!v.txid)) ? (
-
⛏️ Origen del rastro: transacción coinbase
+
⛏️ Origen del rastro: transacción coinbase
Estas monedas se crearon aquí, como recompensa de minado. No vienen de ninguna transacción anterior — es el principio de su historia en la cadena.
@@ -5550,20 +5567,20 @@ return (
-
+
Input #{i+1}{fmt.num(vin.prevout?.value||0)} sat {vin.prevout?.scriptpubkey_address&&} {vin.txid&&}
{!est.child&&!est.loading&&( )} - {est.loading&&consultando…} + {est.loading&&consultando…}
- {est.err&&
{est.err}
} + {est.err&&
{est.err}
} {est.child&&}
); @@ -5761,11 +5778,11 @@ {showWalletPanel&&(
-
WALLET WATCH-ONLY (xpub)
+
WALLET WATCH-ONLY (xpub)
- Pega tu xpub/zpub desde Sparrow: Settings → Keystore → Master Public Key. La derivación ocurre en tu navegador: el xpub no se envía a ninguna parte. + Pega tu xpub/zpub desde Sparrow: Settings → Keystore → Master Public Key. La derivación ocurre en tu navegador: el xpub no se envía a ninguna parte.
{/* Este aviso no es adorno. La versión anterior decía solo "el xpub no sale del navegador", que es cierto y a la vez @@ -5781,11 +5798,11 @@
{walletAddrs?(
-
✓ {walletAddrs.receive.length} direcciones de recepción + {walletAddrs.change.length} de cambio derivadas
+
✓ {walletAddrs.receive.length} direcciones de recepción + {walletAddrs.change.length} de cambio derivadas
Las direcciones de tus txs analizadas se marcan automáticamente como tuyas. Compara estas con Sparrow para verificar:
{walletAddrs.receive.slice(0,3).map((a,i)=>( -
+
recep #{i}: {a}
))} @@ -5793,15 +5810,15 @@
-
{walletScanning&&walletProgress&&( -
{walletProgress}
+
{walletProgress}
)}
):( @@ -5809,23 +5826,23 @@ setXpubInput(e.target.value)} onKeyDown={e=>e.key==="Enter"&&loadWallet()} placeholder="xpub... o zpub..." - style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"8px 12px",color:C.t1,fontFamily:"monospace",fontSize:"0.7rem",outline:"none"}} + style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"8px 12px",color:C.t1,fontFamily:C.mono,fontSize:"0.7rem",outline:"none"}} />
)} - {!walletAddrs&&
Direcciones a derivar por rama (recepción y cambio). Más direcciones = más cobertura pero más tiempo de cálculo.
} - {xpubError&&
{xpubError}
} + {!walletAddrs&&
Direcciones a derivar por rama (recepción y cambio). Más direcciones = más cobertura pero más tiempo de cálculo.
} + {xpubError&&
{xpubError}
} )} @@ -5833,14 +5850,14 @@ {/* Cabecera del informe con exportación */}
-
INFORME DE WALLET
+
INFORME DE WALLET
+ }} style={{padding:"3px 10px",background:"none",border:`1px solid ${C.border}`,borderRadius:4,color:C.t2,fontFamily:C.mono,fontSize:"0.6rem",cursor:"pointer"}}>↓ JSON + }} style={{padding:"3px 10px",background:"none",border:`1px solid ${C.border}`,borderRadius:4,color:C.t2,fontFamily:C.mono,fontSize:"0.6rem",cursor:"pointer"}}>↓ MD
@@ -5878,7 +5895,7 @@ leída parece una dirección sin actividad. */} {walletReport.scanErrors&&walletReport.scanErrors.length>0&&(
-
+
⚠ Informe incompleto — {walletReport.scanErrors.length} consulta(s) al nodo fallaron
@@ -5886,12 +5903,12 @@
{walletReport.scanErrors.slice(0,6).map((e,i)=>( -
+
{e.addr} ({e.branch}) — {e.message} · {e.phase}
))} {walletReport.scanErrors.length>6&&( -
…y {walletReport.scanErrors.length-6} más
+
…y {walletReport.scanErrors.length-6} más
)}
@@ -5902,7 +5919,7 @@ saber que está ahí. */} {walletReport.polvoSinGastar&&walletReport.polvoSinGastar.length>0&&(
-
+
⚠ Has recibido {walletReport.polvoSinGastar.length} moneda(s) de polvo sin gastar
@@ -5911,17 +5928,17 @@
{walletReport.polvoSinGastar.slice(0,6).map((p,i)=>( -
+
{fmt.num(p.value)} sat · {p.address} · {p.txid.slice(0,16)}…:{p.vout} {p.tecnico&& · por debajo del mínimo económico}
))} - {walletReport.polvoSinGastar.length>6&&
…y {walletReport.polvoSinGastar.length-6} más
} + {walletReport.polvoSinGastar.length>6&&
…y {walletReport.polvoSinGastar.length-6} más
}
)} {walletReport.polvoRecibido&&walletReport.polvoSinGastar&&walletReport.polvoRecibido.length>walletReport.polvoSinGastar.length&&( -
+
Además, {walletReport.polvoRecibido.length - walletReport.polvoSinGastar.length} moneda(s) de polvo que recibiste ya se gastaron. Si se mezclaron con otras monedas tuyas, esa vinculación ya está hecha y no se puede deshacer — figura en los clusters de abajo si es el caso. Se indica para que sepas de dónde viene, no para preocuparte por algo que ya pasó.
)} @@ -5931,7 +5948,7 @@ dirección a otra no vincula nada nuevo y no merece alarma. */} {walletReport.autoenviosDaninos && walletReport.autoenviosDaninos.length > 0 && (
-
+
{walletReport.autoenviosDaninos.length} autoenvío(s) que ataron direcciones tuyas
@@ -5939,15 +5956,15 @@
{walletReport.autoenviosDaninos.slice(0,6).map(a=>( -
+
{a.vinculadas} direcciones atadas {" · "}{a.time ? new Date(a.time*1000).toLocaleDateString("es-ES") : "sin confirmar"} {" · "}
))} - {walletReport.autoenviosDaninos.length>6&&
…y {walletReport.autoenviosDaninos.length-6} más
} + {walletReport.autoenviosDaninos.length>6&&
…y {walletReport.autoenviosDaninos.length-6} más
}
-
+
Ya está hecho y no se deshace. Para adelante: si de verdad necesitas mover monedas entre direcciones tuyas, muévelas de una en una, y solo cuando su origen ya estuviera relacionado.
@@ -5956,7 +5973,7 @@ {/* Bloque 1: Salud general */}
- {walletReport.health.band} + {walletReport.health.band}
@@ -5971,8 +5988,8 @@ {label:"Clusters",v:walletReport.clusters.length,warn:walletReport.clusters.length>0}, ].map(({label,v,warn})=>(
-
{label}
-
{v}
+
{label}
+
{v}
))}
@@ -5982,7 +5999,7 @@ {/* Bloque 2: Clusters de vinculación */} {walletReport.clusters.length>0&&(
-
CLUSTERS DE VINCULACIÓN
+
CLUSTERS DE VINCULACIÓN
{walletReport.clusters.map((cluster,i)=>{ const reasons=walletReport.linkReasons.filter(r=>r.addrs.some(a=>cluster.includes(a))); @@ -5990,11 +6007,11 @@ return (
-
Cluster {i+1}
+
Cluster {i+1}
-
{cluster.length} dirs.
+
{cluster.length} dirs.
{reasons.length>0&&(
@@ -6004,12 +6021,12 @@ )}
{cluster.slice(0,4).map((a,j)=>( -
+
{labels?.get(a)&&🏷 {labels.get(a)}} {a.slice(0,14)}…{a.slice(-8)}
))} - {cluster.length>4&&
+{cluster.length-4} más
} + {cluster.length>4&&
+{cluster.length-4} más
}
); @@ -6018,7 +6035,7 @@
)} {walletReport.clusters.length===0&&( -
+
✓ No se detectan clusters de vinculación entre tus monedas.
)} @@ -6026,7 +6043,7 @@ {/* Bloque 3: Historial */} {walletReport.history.length>0&&(
-
HISTORIAL — {walletReport.history.length} TRANSACCIONES
+
HISTORIAL — {walletReport.history.length} TRANSACCIONES
{walletReport.history.map((t,i)=>{ const bandColor=t.band==="ALTA"?C.green:t.band==="MEDIA"?C.amber:t.band==="BAJA"?C.red:C.t2; @@ -6036,14 +6053,14 @@ onMouseEnter={e=>e.currentTarget.style.borderColor=bandColor} onMouseLeave={e=>e.currentTarget.style.borderColor=C.border}>
-
+
{t.time?new Date(t.time*1000).toLocaleDateString("es-ES",{day:"2-digit",month:"2-digit",year:"2-digit"}):"pendiente"}
-
+
{labels?.get(t.txid)&&🏷} {t.txid.slice(0,20)}…
-
{t.band||"—"}
+
{t.band||"—"}
{/* El clic en la fila abre el análisis interno; este enlace lleva al explorador, y por eso corta la propagación: son dos destinos distintos. */} @@ -6060,27 +6077,27 @@ )} {walletReport?.error&&( -
Error al analizar el wallet: {walletReport.error}
+
Error al analizar el wallet: {walletReport.error}
)} {showLabelModal&&(
-
IMPORTAR ETIQUETAS BIP-329
+
IMPORTAR ETIQUETAS BIP-329
- Exporta tus etiquetas desde Sparrow: File → Export → Export Labels. El archivo .jsonl se carga en memoria — no sale del navegador. + Exporta tus etiquetas desde Sparrow: File → Export → Export Labels. El archivo .jsonl se carga en memoria — no sale del navegador.
{labelInfo&&(
-
✓ {labelInfo.file} — {labelInfo.count} etiquetas cargadas
+
✓ {labelInfo.file} — {labelInfo.count} etiquetas cargadas
{[...labels.entries()].map(([ref,lbl])=>(
- {ref.length>20?ref.slice(0,10)+"…"+ref.slice(-8):ref} - {lbl} + {ref.length>20?ref.slice(0,10)+"…"+ref.slice(-8):ref} + {lbl}
))}
@@ -6093,7 +6110,7 @@ {labels.size>0&&( )} @@ -6101,18 +6118,18 @@ )} -
ANALIZAR TRANSACCIÓN — introduce un txid
+
ANALIZAR TRANSACCIÓN — introduce un txid
setQuery(e.target.value)} onKeyDown={e=>e.key==="Enter"&&analyze()} placeholder="txid (64 caracteres hex)" - style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"11px 14px",color:C.t1,fontFamily:"monospace",fontSize:"0.78rem",outline:"none"}} + style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"11px 14px",color:C.t1,fontFamily:C.mono,fontSize:"0.78rem",outline:"none"}} onFocus={e=>e.target.style.borderColor=C.purple} onBlur={e=>e.target.style.borderColor=C.borderBright} /> -
- {err&&
{err}
} + {err&&
{err}
}
{loading&&} @@ -6124,14 +6141,14 @@
- TRANSACCIÓN ANALIZADA + TRANSACCIÓN ANALIZADA
-
{tx.txid}
+
{tx.txid}
{labels&&labels.get(tx.txid)&&(
🏷 - {labels.get(tx.txid)} + {labels.get(tx.txid)}
)}
@@ -6147,7 +6164,7 @@
{walletAddrs&&tx.vout&&tx.vout.some(o=>myAddr(o.scriptpubkey_address))&&(
-
OUTPUTS DE TU WALLET
+
OUTPUTS DE TU WALLET
{tx.vout.map((o,i)=>{ const mine = myAddr(o.scriptpubkey_address); @@ -6155,10 +6172,10 @@ const lbl = labels?.get(o.scriptpubkey_address); return (
- {mine==="cambio"?"↺ cambio":"↓ recepción"} - {fmt.sats(o.value)} - {lbl&&· {lbl}} - {o.scriptpubkey_address?.slice(0,12)}… + {mine==="cambio"?"↺ cambio":"↓ recepción"} + {fmt.sats(o.value)} + {lbl&&· {lbl}} + {o.scriptpubkey_address?.slice(0,12)}…
); })} @@ -6307,22 +6324,22 @@ PERITAJE FORENSE -
+
Rastrea fondos robados o perdidos hacia adelante, salto a salto, desde la transacción de origen hasta un punto de parada natural (custodio identificado, dilución, CoinJoin, o fondos aún sin gastar). A demanda: tú decides cuándo se explora el siguiente salto — nada corre sin que lo pidas, igual que el rastro de procedencia hacia atrás. Todo sobre tu propio nodo — nada sale de tu red.
setTxidInput(e.target.value)} disabled={!!trace} placeholder="txid de origen (64 caracteres hex)" - style={{flex:3,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"10px 12px",color:C.t1,fontFamily:"monospace",fontSize:"0.72rem",outline:"none",opacity:trace?0.5:1}} + style={{flex:3,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"10px 12px",color:C.t1,fontFamily:C.mono,fontSize:"0.72rem",outline:"none",opacity:trace?0.5:1}} /> setVoutInput(e.target.value)} type="number" min="0" disabled={!!trace} placeholder="vout" title="Índice del output robado dentro de esa transacción" - style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"10px 12px",color:C.t1,fontFamily:"monospace",fontSize:"0.72rem",outline:"none",opacity:trace?0.5:1}} + style={{flex:1,background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"10px 12px",color:C.t1,fontFamily:C.mono,fontSize:"0.72rem",outline:"none",opacity:trace?0.5:1}} /> setAmountInput(e.target.value)} type="number" step="0.00000001" min="0" disabled={!!trace} placeholder="Importe estimado robado en BTC (opcional — activa la detección de dilución)" - style={{background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"10px 12px",color:C.t1,fontFamily:"monospace",fontSize:"0.72rem",outline:"none",opacity:trace?0.5:1}} + style={{background:C.bg,border:`1px solid ${C.borderBright}`,borderRadius:6,padding:"10px 12px",color:C.t1,fontFamily:C.mono,fontSize:"0.72rem",outline:"none",opacity:trace?0.5:1}} />