fix: rewrite LND UI with inline CSS matching electrs-ui design
Replace Tailwind CDN dependency with all-inline CSS in <style> block, matching the proven electrs-ui approach. Fixes broken styling on HTTPS servers where CSP blocks external scripts. Design system: glass-card, info-card, icon-box, stat-row, field-row, conn-layout, qr-box, modal with tabs — all matching electrs-ui. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1f0d51865d
commit
ec916892de
@ -3,269 +3,171 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||
<title>LND - Archipelago</title>
|
||||
<link rel="stylesheet" href="tailwind.css">
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; min-height: 100vh; color: white; overflow-x: hidden; }
|
||||
.bg-layer { position: fixed; inset: 0; z-index: -10; background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(30,30,50,0.95) 100%); }
|
||||
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); z-index: -5; }
|
||||
.glass-card { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.18); }
|
||||
.info-card { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(24px); border-radius: 16px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
|
||||
.info-card-button { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(24px); border-radius: 16px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; color: rgba(255,255,255,0.9); transition: all 0.3s ease; }
|
||||
.info-card-button:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
|
||||
.info-card-button:active { transform: translateY(1px); }
|
||||
.glass-button { background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.9); transition: all 0.3s ease; cursor: pointer; }
|
||||
.glass-button:hover { color: white; background-color: rgba(0, 0, 0, 0.7); }
|
||||
.glass-button:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.container { max-width: 56rem; margin: 0 auto; padding: 2rem; padding-bottom: 4rem; }
|
||||
.flex { display: flex; }
|
||||
.flex-col { flex-direction: column; }
|
||||
.items-center { align-items: center; }
|
||||
.items-start { align-items: start; }
|
||||
.justify-between { justify-content: space-between; }
|
||||
.gap-2 { gap: 0.5rem; }
|
||||
.gap-3 { gap: 0.75rem; }
|
||||
.gap-4 { gap: 1rem; }
|
||||
.gap-6 { gap: 1.5rem; }
|
||||
.flex-1 { flex: 1; }
|
||||
.flex-shrink-0 { flex-shrink: 0; }
|
||||
.min-w-0 { min-width: 0; }
|
||||
.mb-1 { margin-bottom: 0.25rem; }
|
||||
.mb-2 { margin-bottom: 0.5rem; }
|
||||
.mb-3 { margin-bottom: 0.75rem; }
|
||||
.mb-4 { margin-bottom: 1rem; }
|
||||
.mb-6 { margin-bottom: 1.5rem; }
|
||||
.mb-8 { margin-bottom: 2rem; }
|
||||
.mt-2 { margin-top: 0.5rem; }
|
||||
.mt-4 { margin-top: 1rem; }
|
||||
.p-2 { padding: 0.5rem; }
|
||||
.p-3 { padding: 0.75rem; }
|
||||
.p-4 { padding: 1rem; }
|
||||
.p-6 { padding: 1.5rem; }
|
||||
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
|
||||
.px-4 { padding-left: 1rem; padding-right: 1rem; }
|
||||
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
|
||||
.py-1-5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
|
||||
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
|
||||
.py-2-5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
|
||||
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
|
||||
.grid { display: grid; }
|
||||
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
|
||||
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
|
||||
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
|
||||
.rounded-lg { border-radius: 0.5rem; }
|
||||
.rounded-xl { border-radius: 0.75rem; }
|
||||
.rounded-full { border-radius: 9999px; }
|
||||
.overflow-hidden { overflow: hidden; }
|
||||
.transition-all { transition: all 0.3s ease; }
|
||||
.text-xs { font-size: 0.75rem; }
|
||||
.text-sm { font-size: 0.875rem; }
|
||||
.text-lg { font-size: 1.125rem; }
|
||||
.text-xl { font-size: 1.25rem; }
|
||||
.text-2xl { font-size: 1.5rem; }
|
||||
.text-3xl { font-size: 1.875rem; }
|
||||
.font-bold { font-weight: 700; }
|
||||
.font-semibold { font-weight: 600; }
|
||||
.font-medium { font-weight: 500; }
|
||||
.font-mono { font-family: monospace; }
|
||||
.uppercase { text-transform: uppercase; }
|
||||
.tracking-wide { letter-spacing: 0.05em; }
|
||||
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.w-full { width: 100%; }
|
||||
.text-white { color: white; }
|
||||
.text-white-90 { color: rgba(255,255,255,0.9); }
|
||||
.text-white-80 { color: rgba(255,255,255,0.8); }
|
||||
.text-white-70 { color: rgba(255,255,255,0.7); }
|
||||
.text-white-60 { color: rgba(255,255,255,0.6); }
|
||||
.text-white-50 { color: rgba(255,255,255,0.5); }
|
||||
.text-white-45 { color: rgba(255,255,255,0.45); }
|
||||
.text-white-40 { color: rgba(255,255,255,0.4); }
|
||||
.text-green { color: #4ade80; }
|
||||
.text-orange { color: #fb923c; }
|
||||
.text-red { color: #f87171; }
|
||||
.bg-green { background: #4ade80; }
|
||||
.bg-yellow { background: #facc15; }
|
||||
.bg-red { background: #f87171; }
|
||||
.icon-box { width: 4rem; height: 4rem; border-radius: 0.5rem; background: rgba(139, 92, 246, 0.2); display: flex; align-items: center; justify-content: center; }
|
||||
.icon-box-sm { width: 3rem; height: 3rem; border-radius: 0.5rem; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
|
||||
.status-dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
|
||||
.status-dot-sm { width: 0.625rem; height: 0.625rem; border-radius: 9999px; display: inline-block; }
|
||||
.relative { position: relative; }
|
||||
.version-text { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
|
||||
min-height: 100vh;
|
||||
color: white;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
/* Logo border matching electrs icon-box but with LND purple accent */
|
||||
.logo-border { width: 4rem; height: 4rem; border-radius: 0.5rem; background: rgba(139, 92, 246, 0.2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
|
||||
.logo-border img { width: 3rem; height: 3rem; object-fit: contain; }
|
||||
|
||||
.bg-perspective-container {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: -10;
|
||||
perspective: 1000px;
|
||||
perspective-origin: 50% 50%;
|
||||
overflow: hidden;
|
||||
}
|
||||
/* Stat row inside info-card */
|
||||
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; background: rgba(255,255,255,0.05); border-radius: 0.5rem; }
|
||||
|
||||
.bg-layer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: url('assets/img/bg-intro.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
transition: all 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
||||
transform-style: preserve-3d;
|
||||
opacity: 1;
|
||||
transform: translateZ(0) scale(1);
|
||||
}
|
||||
/* Balance cards */
|
||||
.balance-card { padding: 1rem; background: rgba(0,0,0,0.3); border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.08); }
|
||||
|
||||
.overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
z-index: -5;
|
||||
pointer-events: none;
|
||||
}
|
||||
/* Ping animation */
|
||||
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
|
||||
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; position: absolute; inset: 0; }
|
||||
|
||||
/* Glass card - Archipelago standard with gradient border */
|
||||
.glass-card {
|
||||
position: relative;
|
||||
background: rgba(0, 0, 0, 0.60);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
box-shadow:
|
||||
0 8px 24px rgba(0, 0, 0, 0.45),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
||||
border-radius: 1rem;
|
||||
overflow-x: hidden;
|
||||
overflow-y: visible;
|
||||
border: none;
|
||||
}
|
||||
/* Connection details */
|
||||
.conn-select { width: 100%; padding: 0.75rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; color: white; font-size: 0.875rem; font-weight: 500; appearance: none; cursor: pointer; outline: none; background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
|
||||
.conn-select:focus { border-color: rgba(255,255,255,0.25); }
|
||||
.conn-select option { background: #1a1a2e; color: white; }
|
||||
.conn-layout { display: flex; flex-direction: column; gap: 1.5rem; }
|
||||
@media (min-width: 640px) { .conn-layout { flex-direction: row; } }
|
||||
.qr-box { flex-shrink: 0; width: 196px; height: 196px; background: white; border-radius: 0.75rem; padding: 0.5rem; display: flex; align-items: center; justify-content: center; }
|
||||
.qr-box img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
|
||||
.conn-fields { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
|
||||
.field-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.45); margin-bottom: 0.25rem; }
|
||||
.field-row { display: flex; align-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; overflow: hidden; }
|
||||
.field-value { flex: 1; padding: 0.625rem 0.875rem; font-family: monospace; font-size: 0.9375rem; color: rgba(255,255,255,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.copy-btn { padding: 0.625rem 0.75rem; background: none; border: none; border-left: 1px solid rgba(255,255,255,0.1); cursor: pointer; color: rgba(255,255,255,0.4); transition: all 0.2s ease; display: flex; align-items: center; }
|
||||
.copy-btn:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05); }
|
||||
.copy-btn.copied { color: #4ade80; }
|
||||
.field-row-split { display: flex; gap: 0.75rem; }
|
||||
.field-row-split > div { flex: 1; }
|
||||
.help-text { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
|
||||
|
||||
.glass-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
padding: 2px;
|
||||
background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), transparent);
|
||||
-webkit-mask:
|
||||
linear-gradient(#fff 0 0) content-box,
|
||||
linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.glass-card > * {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* Glass button - Archipelago standard (secondary actions) */
|
||||
.glass-button {
|
||||
background-color: rgba(0, 0, 0, 0.6);
|
||||
backdrop-filter: blur(18px);
|
||||
-webkit-backdrop-filter: blur(18px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.glass-button:hover {
|
||||
color: white;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
/* Info card - Archipelago standard (display only, no hover) */
|
||||
.info-card {
|
||||
position: relative;
|
||||
background: rgba(0, 0, 0, 0.60);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
box-shadow:
|
||||
0 8px 24px rgba(0, 0, 0, 0.45),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.info-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
padding: 2px;
|
||||
background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), transparent);
|
||||
-webkit-mask:
|
||||
linear-gradient(#fff 0 0) content-box,
|
||||
linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Interactive button - Same as info-card but with hover effects */
|
||||
.info-card-button {
|
||||
position: relative;
|
||||
background: rgba(0, 0, 0, 0.60);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
box-shadow:
|
||||
0 8px 24px rgba(0, 0, 0, 0.45),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
transition: all 0.3s ease;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
|
||||
.info-card-button::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
padding: 2px;
|
||||
background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), transparent);
|
||||
-webkit-mask:
|
||||
linear-gradient(#fff 0 0) content-box,
|
||||
linear-gradient(#fff 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
pointer-events: none;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.info-card-button:hover {
|
||||
transform: translateY(-2px);
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
box-shadow:
|
||||
0 12px 32px rgba(0, 0, 0, 0.6),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
||||
color: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
.info-card-button:hover::before {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
|
||||
}
|
||||
|
||||
.info-card-button:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
padding-bottom: 4rem;
|
||||
}
|
||||
|
||||
/* Logo gradient border */
|
||||
.logo-gradient-border {
|
||||
position: relative;
|
||||
border-radius: 16px;
|
||||
padding: 3px;
|
||||
background: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
|
||||
box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.logo-gradient-border::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 3px;
|
||||
border-radius: 13px;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.logo-gradient-border img,
|
||||
.logo-gradient-border svg {
|
||||
border-radius: 13px;
|
||||
display: block;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
}
|
||||
|
||||
@keyframes ping {
|
||||
75%, 100% {
|
||||
transform: scale(2);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.animate-ping {
|
||||
animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
||||
}
|
||||
|
||||
.modal-tab { transition: all 0.2s ease; }
|
||||
/* Modal */
|
||||
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 50; align-items: center; justify-content: center; padding: 1rem; }
|
||||
.modal-overlay.visible { display: flex; }
|
||||
.modal-content { max-width: 42rem; width: 100%; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; }
|
||||
.modal-body { overflow-y: auto; flex: 1; min-height: 0; }
|
||||
.modal-tab { flex: 1; padding: 0.5rem 1rem; text-align: center; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; color: rgba(255,255,255,0.6); background: none; border: none; }
|
||||
.modal-tab.active { background: rgba(255,255,255,0.2); color: white; }
|
||||
.modal-tab:not(.active) { color: rgba(255,255,255,0.6); }
|
||||
.modal-tab:not(.active):hover { color: rgba(255,255,255,0.9); }
|
||||
.tab-panel { display: none; }
|
||||
.tab-panel.active { display: block; }
|
||||
.logs-box { background: rgba(0,0,0,0.4); border-radius: 0.5rem; padding: 1rem; font-family: monospace; font-size: 0.75rem; color: rgba(255,255,255,0.8); white-space: pre-wrap; word-break: break-all; min-height: 200px; }
|
||||
|
||||
/* Responsive grid */
|
||||
@media (min-width: 768px) {
|
||||
.md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
|
||||
.md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
|
||||
.md-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
|
||||
.md-flex-row { flex-direction: row; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg-perspective-container">
|
||||
<div class="bg-layer"></div>
|
||||
</div>
|
||||
<div class="bg-layer"></div>
|
||||
<div class="overlay"></div>
|
||||
|
||||
<div class="container">
|
||||
<!-- Header - Glass card with logo and Settings button top-right -->
|
||||
<!-- Header -->
|
||||
<div class="glass-card p-6 mb-6">
|
||||
<div class="flex items-start justify-between gap-4">
|
||||
<div class="flex items-start gap-4 flex-1 min-w-0">
|
||||
<div class="flex-shrink-0">
|
||||
<div class="logo-gradient-border">
|
||||
<img
|
||||
src="assets/img/app-icons/lnd.svg"
|
||||
alt="LND"
|
||||
class="w-16 h-16"
|
||||
style="object-fit: contain; padding: 8px;"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-1 min-w-0">
|
||||
<h1 class="text-3xl font-bold text-white mb-2">LND</h1>
|
||||
<p class="text-white/70">Lightning Network Daemon for instant Bitcoin payments</p>
|
||||
<p class="text-sm text-white/60 mt-2" id="headerNetwork">—</p>
|
||||
</div>
|
||||
<div class="flex flex-col md-flex-row items-center gap-4">
|
||||
<div class="logo-border flex-shrink-0">
|
||||
<img src="assets/img/app-icons/lnd.svg" alt="LND" />
|
||||
</div>
|
||||
<button
|
||||
onclick="openSettings()"
|
||||
class="flex-shrink-0 flex items-center gap-2 px-4 py-2.5 glass-button rounded-lg text-sm font-medium"
|
||||
>
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
||||
<div class="flex-1 min-w-0">
|
||||
<div class="flex items-center gap-3">
|
||||
<h1 class="text-2xl font-bold text-white">LND</h1>
|
||||
</div>
|
||||
<p class="text-white-70">Lightning Network Daemon for instant Bitcoin payments</p>
|
||||
<p class="text-sm text-white-60 mt-2" id="headerNetwork">—</p>
|
||||
</div>
|
||||
<button onclick="openSettings()" class="glass-button flex items-center gap-2 px-4 py-2-5 rounded-lg text-sm font-medium flex-shrink-0">
|
||||
<svg style="width:1.25rem;height:1.25rem" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 010 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 010-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z" />
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
|
||||
</svg>
|
||||
@ -276,88 +178,89 @@
|
||||
|
||||
<!-- Summary strip -->
|
||||
<div class="glass-card p-6 mb-6">
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
|
||||
<div class="info-card flex items-center justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="relative">
|
||||
<div class="w-3 h-3 rounded-full bg-green-400" id="statusDot"></div>
|
||||
<div class="absolute inset-0 w-3 h-3 rounded-full bg-green-400 animate-ping opacity-75" id="statusPing" style="display:none"></div>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-sm font-medium text-white">Node Status</p>
|
||||
<p class="text-xs text-white/60" id="summaryNodeStatus">—</p>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 md-grid-cols-4 gap-3">
|
||||
<div class="info-card flex items-center gap-3">
|
||||
<div class="relative" style="width:0.75rem;height:0.75rem">
|
||||
<div class="status-dot bg-green" id="statusDot"></div>
|
||||
<div class="status-dot bg-green animate-ping" id="statusPing" style="display:none;opacity:0.75"></div>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-xs text-white-60 mb-1">Node Status</p>
|
||||
<p class="text-sm font-medium text-white" id="summaryNodeStatus">—</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info-card flex items-center gap-3">
|
||||
<span style="font-size:1.5rem;color:#fb923c;font-weight:700">⚡</span>
|
||||
<div>
|
||||
<p class="text-xs text-white-60 mb-1">Channels</p>
|
||||
<p class="text-sm font-medium text-orange" id="channelCount">0</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info-card flex items-center justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<span class="text-2xl text-orange-500 font-bold">⚡</span>
|
||||
<div class="status-dot-sm bg-green" id="restDot"></div>
|
||||
<div>
|
||||
<p class="text-sm font-medium text-white">Channels</p>
|
||||
<p class="text-xs text-orange-500 font-medium" id="channelCount">0</p>
|
||||
<p class="text-xs text-white-60 mb-1">REST API</p>
|
||||
<p class="text-sm font-medium text-white" id="summaryRestStatus">—</p>
|
||||
</div>
|
||||
</div>
|
||||
<button onclick="openSettings(); setSettingsTab('rest');" class="glass-button px-3 py-1-5 rounded-lg text-xs font-medium">Settings</button>
|
||||
</div>
|
||||
<div class="info-card flex items-center justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="relative">
|
||||
<div class="w-3 h-3 rounded-full bg-green-400" id="restDot"></div>
|
||||
</div>
|
||||
<div class="status-dot-sm bg-green" id="grpcDot"></div>
|
||||
<div>
|
||||
<p class="text-sm font-medium text-white">REST API</p>
|
||||
<p class="text-xs text-white/60" id="summaryRestStatus">—</p>
|
||||
<p class="text-xs text-white-60 mb-1">gRPC</p>
|
||||
<p class="text-sm font-medium text-white" id="summaryGrpcStatus">—</p>
|
||||
</div>
|
||||
</div>
|
||||
<button onclick="openSettings(); setSettingsTab('rest');" class="px-3 py-1.5 glass-button rounded text-xs font-medium">Settings</button>
|
||||
</div>
|
||||
<div class="info-card flex items-center justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="relative">
|
||||
<div class="w-3 h-3 rounded-full bg-green-400" id="grpcDot"></div>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-sm font-medium text-white">gRPC</p>
|
||||
<p class="text-xs text-white/60" id="summaryGrpcStatus">—</p>
|
||||
</div>
|
||||
</div>
|
||||
<button onclick="openSettings(); setSettingsTab('logs');" class="px-3 py-1.5 glass-button rounded text-xs font-medium">Logs</button>
|
||||
<button onclick="openSettings(); setSettingsTab('logs');" class="glass-button px-3 py-1-5 rounded-lg text-xs font-medium">Logs</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main content: placeholder for wallet (balance, Receive, Send, recent activity) -->
|
||||
<!-- Wallet -->
|
||||
<div class="glass-card p-6 mb-8">
|
||||
<h2 class="text-xl font-semibold text-white mb-4">Wallet</h2>
|
||||
<p class="text-white/60 text-sm mb-4">Balance, Receive, and Send will appear here when connected to your node.</p>
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
|
||||
<div class="p-4 bg-white/5 rounded-lg">
|
||||
<p class="text-xs text-white/50 uppercase tracking-wide mb-1">Spendable</p>
|
||||
<p class="text-lg font-semibold text-white" id="balanceSpendable">—</p>
|
||||
<div class="flex items-start gap-4 mb-4">
|
||||
<div class="icon-box-sm flex-shrink-0">
|
||||
<svg style="width:1.5rem;height:1.5rem;color:#fb923c" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="p-4 bg-white/5 rounded-lg">
|
||||
<p class="text-xs text-white/50 uppercase tracking-wide mb-1">Lightning</p>
|
||||
<p class="text-lg font-semibold text-white" id="balanceLightning">—</p>
|
||||
<div class="flex-1">
|
||||
<h2 class="text-xl font-semibold text-white mb-1">Wallet</h2>
|
||||
<p class="text-white-60 text-sm">Balance, Receive, and Send will appear here when connected to your node.</p>
|
||||
</div>
|
||||
<div class="p-4 bg-white/5 rounded-lg">
|
||||
<p class="text-xs text-white/50 uppercase tracking-wide mb-1">Total</p>
|
||||
<p class="text-lg font-semibold text-white" id="balanceTotal">—</p>
|
||||
</div>
|
||||
<div class="grid grid-cols-1 md-grid-cols-3 gap-3 mb-4">
|
||||
<div class="balance-card">
|
||||
<p class="text-xs text-white-50 uppercase tracking-wide mb-1">Spendable</p>
|
||||
<p class="text-lg font-semibold text-white" id="balanceSpendable">—</p>
|
||||
</div>
|
||||
<div class="balance-card">
|
||||
<p class="text-xs text-white-50 uppercase tracking-wide mb-1">Lightning</p>
|
||||
<p class="text-lg font-semibold text-white" id="balanceLightning">—</p>
|
||||
</div>
|
||||
<div class="balance-card">
|
||||
<p class="text-xs text-white-50 uppercase tracking-wide mb-1">Total</p>
|
||||
<p class="text-lg font-semibold text-white" id="balanceTotal">—</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex gap-4">
|
||||
<button class="px-6 py-3 glass-button rounded-lg font-medium text-white/90 hover:text-white transition-colors" disabled>Receive</button>
|
||||
<button class="px-6 py-3 glass-button rounded-lg font-medium text-white/90 hover:text-white transition-colors" disabled>Send</button>
|
||||
<button class="glass-button px-6 py-3 rounded-lg font-medium" disabled>Receive</button>
|
||||
<button class="glass-button px-6 py-3 rounded-lg font-medium" disabled>Send</button>
|
||||
</div>
|
||||
<p class="text-white/50 text-xs mt-4">Recent activity will be listed here.</p>
|
||||
<p class="text-white-50 text-xs mt-4">Recent activity will be listed here.</p>
|
||||
</div>
|
||||
|
||||
<!-- Connect Your Wallet -->
|
||||
<div class="glass-card p-6 mb-8">
|
||||
<h2 class="text-xl font-semibold text-white mb-1">Connect Your Wallet</h2>
|
||||
<p class="text-white/70 text-sm mb-4" id="connSubtitle">Use a wallet like Zeus, Zap, or BlueWallet to connect remotely.</p>
|
||||
<p class="text-white-70 text-sm mb-4" id="connSubtitle">Use a wallet like Zeus, Zap, or BlueWallet to connect remotely.</p>
|
||||
|
||||
<!-- Mode selector -->
|
||||
<div class="mb-4">
|
||||
<select id="connMode" onchange="updateConnInfo()" class="w-full px-4 py-3 bg-white/5 border border-white/10 rounded-lg text-white text-sm font-medium appearance-none cursor-pointer focus:outline-none focus:border-white/25" style="background-image: url('data:image/svg+xml;utf8,<svg fill=\"white\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>'); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;">
|
||||
<select id="connMode" onchange="updateConnInfo()" class="conn-select">
|
||||
<option value="rest-tor">REST (Tor)</option>
|
||||
<option value="rest-local">REST (Local Network)</option>
|
||||
<option value="grpc-tor">gRPC (Tor)</option>
|
||||
@ -366,147 +269,147 @@
|
||||
</div>
|
||||
|
||||
<!-- Connection display -->
|
||||
<div class="flex flex-col sm:flex-row gap-6" id="connDisplay">
|
||||
<div class="flex-shrink-0 w-48 h-48 bg-white rounded-xl flex items-center justify-center p-2" id="lndQrBox">
|
||||
<div class="text-gray-400 text-xs text-center">Loading...</div>
|
||||
<div class="conn-layout" id="connDisplay">
|
||||
<div class="qr-box" id="lndQrBox">
|
||||
<div style="color:#999;font-size:12px;text-align:center;padding:2rem">Loading...</div>
|
||||
</div>
|
||||
<div class="flex-1 space-y-3">
|
||||
<div class="conn-fields">
|
||||
<div>
|
||||
<div class="text-[11px] font-semibold uppercase tracking-wide text-white/45 mb-1">Host</div>
|
||||
<div class="flex items-center bg-white/5 border border-white/10 rounded-lg overflow-hidden">
|
||||
<span class="flex-1 px-3 py-2.5 font-mono text-sm text-white/90 truncate" id="connHost">—</span>
|
||||
<button onclick="copyEl('connHost', this)" class="px-3 py-2.5 border-l border-white/10 text-white/40 hover:text-white/80 hover:bg-white/5 transition-colors">
|
||||
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2" stroke-width="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" stroke-width="2"/></svg>
|
||||
<div class="field-label">Host</div>
|
||||
<div class="field-row">
|
||||
<span class="field-value" id="connHost">—</span>
|
||||
<button class="copy-btn" onclick="copyEl('connHost', this)" title="Copy">
|
||||
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2" ry="2" stroke-width="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" stroke-width="2"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex gap-3">
|
||||
<div class="flex-1">
|
||||
<div class="text-[11px] font-semibold uppercase tracking-wide text-white/45 mb-1">Port</div>
|
||||
<div class="flex items-center bg-white/5 border border-white/10 rounded-lg overflow-hidden">
|
||||
<span class="flex-1 px-3 py-2.5 font-mono text-sm text-white/90" id="connPort">—</span>
|
||||
<button onclick="copyEl('connPort', this)" class="px-3 py-2.5 border-l border-white/10 text-white/40 hover:text-white/80 hover:bg-white/5 transition-colors">
|
||||
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2" stroke-width="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" stroke-width="2"/></svg>
|
||||
<div class="field-row-split">
|
||||
<div>
|
||||
<div class="field-label">Port</div>
|
||||
<div class="field-row">
|
||||
<span class="field-value" id="connPort">—</span>
|
||||
<button class="copy-btn" onclick="copyEl('connPort', this)" title="Copy">
|
||||
<svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2" ry="2" stroke-width="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" stroke-width="2"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<div class="text-[11px] font-semibold uppercase tracking-wide text-white/45 mb-1">Protocol</div>
|
||||
<div class="flex items-center bg-white/5 border border-white/10 rounded-lg overflow-hidden">
|
||||
<span class="flex-1 px-3 py-2.5 font-mono text-sm text-white/90" id="connProto">—</span>
|
||||
<div>
|
||||
<div class="field-label">Protocol</div>
|
||||
<div class="field-row">
|
||||
<span class="field-value" id="connProto">—</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button onclick="copyLndconnectUri()" class="w-full mt-2 px-4 py-2.5 glass-button rounded-lg text-sm font-medium text-white/90 hover:text-white transition-colors" id="copyUriBtn">Copy lndconnect URI</button>
|
||||
<button onclick="copyLndconnectUri()" class="glass-button w-full mt-2 px-4 py-2-5 rounded-lg text-sm font-medium" id="copyUriBtn">Copy lndconnect URI</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-4 pt-4 border-t border-white/8 text-sm text-white/50 leading-relaxed">
|
||||
Scan the QR code with <strong class="text-white/80">Zeus</strong>, <strong class="text-white/80">Zap</strong>, or <strong class="text-white/80">BlueWallet</strong> to connect. Tor mode recommended for remote access.
|
||||
<div class="help-text">
|
||||
Scan the QR code with <strong style="color:rgba(255,255,255,0.8)">Zeus</strong>, <strong style="color:rgba(255,255,255,0.8)">Zap</strong>, or <strong style="color:rgba(255,255,255,0.8)">BlueWallet</strong> to connect. Tor mode recommended for remote access.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tabbed Settings Modal -->
|
||||
<div class="modal hidden fixed inset-0 bg-black/80 backdrop-blur-sm z-50 items-center justify-center p-4" id="settingsModal">
|
||||
<div class="glass-card p-6 max-w-2xl w-full max-h-[85vh] overflow-hidden flex flex-col">
|
||||
<div class="modal-overlay" id="settingsModal">
|
||||
<div class="glass-card p-6 modal-content">
|
||||
<div class="flex justify-between items-center mb-4 flex-shrink-0">
|
||||
<h2 class="text-2xl font-bold text-white">Settings</h2>
|
||||
<button onclick="closeSettings()" class="glass-button px-3 py-2 rounded-lg text-xl font-medium">×</button>
|
||||
<button onclick="closeSettings()" class="glass-button px-3 py-2 rounded-lg text-xl font-medium">×</button>
|
||||
</div>
|
||||
<div class="flex gap-2 mb-4 flex-shrink-0 glass-card p-2 rounded-lg">
|
||||
<button class="modal-tab flex-1 px-4 py-2 rounded-lg text-sm font-medium active" data-tab="node">Node Status</button>
|
||||
<button class="modal-tab flex-1 px-4 py-2 rounded-lg text-sm font-medium" data-tab="rest">REST API</button>
|
||||
<button class="modal-tab flex-1 px-4 py-2 rounded-lg text-sm font-medium" data-tab="grpc">gRPC</button>
|
||||
<button class="modal-tab flex-1 px-4 py-2 rounded-lg text-sm font-medium" data-tab="logs">Logs</button>
|
||||
<div class="flex gap-2 mb-4 flex-shrink-0" style="background:rgba(255,255,255,0.06);border-radius:0.5rem;padding:0.25rem">
|
||||
<button class="modal-tab active" data-tab="node">Node Status</button>
|
||||
<button class="modal-tab" data-tab="rest">REST API</button>
|
||||
<button class="modal-tab" data-tab="grpc">gRPC</button>
|
||||
<button class="modal-tab" data-tab="logs">Logs</button>
|
||||
</div>
|
||||
<div class="overflow-y-auto flex-1 min-h-0 space-y-4">
|
||||
<div class="modal-body" style="display:flex;flex-direction:column;gap:1rem">
|
||||
<!-- Node Status tab -->
|
||||
<div id="panel-node" class="tab-panel active">
|
||||
<div class="flex items-start gap-4 mb-4">
|
||||
<div class="flex-shrink-0 w-12 h-12 rounded-lg bg-white/10 flex items-center justify-center">
|
||||
<svg class="w-6 h-6 text-white/80" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg>
|
||||
<div class="icon-box-sm flex-shrink-0">
|
||||
<svg style="width:1.5rem;height:1.5rem;color:rgba(255,255,255,0.8)" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<h3 class="text-lg font-semibold text-white mb-1">Node Status</h3>
|
||||
<p class="text-white/70 text-sm">Lightning node information</p>
|
||||
<p class="text-white-70 text-sm">Lightning node information</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="space-y-3">
|
||||
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
|
||||
<span class="text-white/80 text-sm">Node Status</span>
|
||||
<span class="text-green-400 text-sm font-medium" id="modalNodeStatus">—</span>
|
||||
<div style="display:flex;flex-direction:column;gap:0.75rem">
|
||||
<div class="stat-row">
|
||||
<span class="text-white-80 text-sm">Node Status</span>
|
||||
<span class="text-green text-sm font-medium" id="modalNodeStatus">—</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
|
||||
<span class="text-white/80 text-sm">Network</span>
|
||||
<span class="text-white/60 text-sm" id="modalNetwork">—</span>
|
||||
<div class="stat-row">
|
||||
<span class="text-white-80 text-sm">Network</span>
|
||||
<span class="text-white-60 text-sm" id="modalNetwork">—</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
|
||||
<span class="text-white/80 text-sm">Version</span>
|
||||
<span class="text-white/60 text-sm" id="modalVersion">—</span>
|
||||
<div class="stat-row">
|
||||
<span class="text-white-80 text-sm">Version</span>
|
||||
<span class="text-white-60 text-sm" id="modalVersion">—</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-4 space-y-3">
|
||||
<div class="p-3 bg-white/5 rounded-lg">
|
||||
<div style="display:flex;flex-direction:column;gap:0.75rem;margin-top:1rem">
|
||||
<div class="stat-row" style="flex-direction:column;align-items:flex-start">
|
||||
<div class="font-semibold text-white mb-1">Network Mode</div>
|
||||
<div class="text-white/70 text-sm" id="modalNetworkMode">—</div>
|
||||
<div class="text-white-70 text-sm" id="modalNetworkMode">—</div>
|
||||
</div>
|
||||
<div class="p-3 bg-white/5 rounded-lg">
|
||||
<div class="stat-row" style="flex-direction:column;align-items:flex-start">
|
||||
<div class="font-semibold text-white mb-1">Bitcoin Backend</div>
|
||||
<div class="text-white/70 text-sm" id="modalBitcoinBackend">—</div>
|
||||
<div class="text-white-70 text-sm" id="modalBitcoinBackend">—</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- REST API tab -->
|
||||
<div id="panel-rest" class="tab-panel">
|
||||
<div class="flex items-start gap-4 mb-4">
|
||||
<div class="flex-shrink-0 w-12 h-12 rounded-lg bg-white/10 flex items-center justify-center">
|
||||
<svg class="w-6 h-6 text-white/80" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01" /></svg>
|
||||
<div class="icon-box-sm flex-shrink-0">
|
||||
<svg style="width:1.5rem;height:1.5rem;color:rgba(255,255,255,0.8)" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01" /></svg>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<h3 class="text-lg font-semibold text-white mb-1">REST API</h3>
|
||||
<p class="text-white/70 text-sm">HTTP REST API access</p>
|
||||
<p class="text-white-70 text-sm">HTTP REST API access</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="space-y-3">
|
||||
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
|
||||
<span class="text-white/80 text-sm">REST Endpoint</span>
|
||||
<span class="text-white/60 text-sm font-mono" id="modalRestEndpoint">—</span>
|
||||
<div style="display:flex;flex-direction:column;gap:0.75rem">
|
||||
<div class="stat-row">
|
||||
<span class="text-white-80 text-sm">REST Endpoint</span>
|
||||
<span class="text-white-60 text-sm font-mono" id="modalRestEndpoint">—</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
|
||||
<span class="text-white/80 text-sm">API Status</span>
|
||||
<span class="text-green-400 text-sm font-medium" id="modalRestStatus">—</span>
|
||||
<div class="stat-row">
|
||||
<span class="text-white-80 text-sm">API Status</span>
|
||||
<span class="text-green text-sm font-medium" id="modalRestStatus">—</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
|
||||
<span class="text-white/80 text-sm">API Version</span>
|
||||
<span class="text-white/60 text-sm" id="modalRestVersion">v1</span>
|
||||
<div class="stat-row">
|
||||
<span class="text-white-80 text-sm">API Version</span>
|
||||
<span class="text-white-60 text-sm" id="modalRestVersion">v1</span>
|
||||
</div>
|
||||
</div>
|
||||
<button class="mt-4 w-full info-card-button text-sm font-medium py-3 rounded-lg" onclick="copyRESTInfo()">Copy REST Info</button>
|
||||
<button class="info-card-button w-full mt-4 text-sm font-medium py-3 rounded-lg" onclick="copyRESTInfo()" style="text-align:center;display:block">Copy REST Info</button>
|
||||
</div>
|
||||
<!-- gRPC tab -->
|
||||
<div id="panel-grpc" class="tab-panel">
|
||||
<div class="flex items-start gap-4 mb-4">
|
||||
<div class="flex-shrink-0 w-12 h-12 rounded-lg bg-white/10 flex items-center justify-center">
|
||||
<svg class="w-6 h-6 text-white/80" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01" /></svg>
|
||||
<div class="icon-box-sm flex-shrink-0">
|
||||
<svg style="width:1.5rem;height:1.5rem;color:rgba(255,255,255,0.8)" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01" /></svg>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<h3 class="text-lg font-semibold text-white mb-1">gRPC Connection</h3>
|
||||
<p class="text-white/70 text-sm">High-performance gRPC API</p>
|
||||
<p class="text-white-70 text-sm">High-performance gRPC API</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="space-y-3">
|
||||
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
|
||||
<span class="text-white/80 text-sm">gRPC Host</span>
|
||||
<span class="text-white/60 text-sm font-mono" id="modalGrpcHost">—</span>
|
||||
<div style="display:flex;flex-direction:column;gap:0.75rem">
|
||||
<div class="stat-row">
|
||||
<span class="text-white-80 text-sm">gRPC Host</span>
|
||||
<span class="text-white-60 text-sm font-mono" id="modalGrpcHost">—</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
|
||||
<span class="text-white/80 text-sm">gRPC Status</span>
|
||||
<span class="text-green-400 text-sm font-medium" id="modalGrpcStatus">—</span>
|
||||
<div class="stat-row">
|
||||
<span class="text-white-80 text-sm">gRPC Status</span>
|
||||
<span class="text-green text-sm font-medium" id="modalGrpcStatus">—</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-between p-3 bg-white/5 rounded-lg">
|
||||
<span class="text-white/80 text-sm">P2P Port</span>
|
||||
<span class="text-white/60 text-sm font-mono">9735</span>
|
||||
<div class="stat-row">
|
||||
<span class="text-white-80 text-sm">P2P Port</span>
|
||||
<span class="text-white-60 text-sm font-mono">9735</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -514,9 +417,9 @@
|
||||
<div id="panel-logs" class="tab-panel">
|
||||
<div class="flex justify-between items-center mb-3">
|
||||
<h3 class="text-lg font-semibold text-white">Node Logs</h3>
|
||||
<button onclick="loadLogs()" class="px-3 py-1.5 glass-button rounded text-xs font-medium">Refresh</button>
|
||||
<button onclick="loadLogs()" class="glass-button px-3 py-1-5 rounded-lg text-xs font-medium">Refresh</button>
|
||||
</div>
|
||||
<div class="bg-black/40 rounded-lg p-4 font-mono text-xs text-white/80 whitespace-pre-wrap break-all min-h-[200px]" id="logsContent">Loading logs...</div>
|
||||
<div class="logs-box" id="logsContent">Loading logs...</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -555,13 +458,11 @@
|
||||
}
|
||||
|
||||
function openSettings() {
|
||||
document.getElementById('settingsModal').classList.remove('hidden');
|
||||
document.getElementById('settingsModal').classList.add('flex');
|
||||
document.getElementById('settingsModal').classList.add('visible');
|
||||
}
|
||||
|
||||
function closeSettings() {
|
||||
document.getElementById('settingsModal').classList.add('hidden');
|
||||
document.getElementById('settingsModal').classList.remove('flex');
|
||||
document.getElementById('settingsModal').classList.remove('visible');
|
||||
}
|
||||
|
||||
function applyLiveData(data) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user