Move meshtastic mqtt project to meshcore usb project
This commit is contained in:
+183
-369
@@ -28,14 +28,8 @@ body {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Screen Management */
|
||||
.screen {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
.screen { min-height: 100vh; }
|
||||
.hidden { display: none !important; }
|
||||
|
||||
/* Login Screen */
|
||||
.login-container {
|
||||
@@ -43,7 +37,7 @@ body {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
|
||||
}
|
||||
|
||||
.login-box {
|
||||
@@ -55,18 +49,8 @@ body {
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.login-box h1 {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
text-align: center;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
text-align: center;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
.login-box h1 { font-size: 2rem; margin-bottom: 0.5rem; text-align: center; }
|
||||
.subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; }
|
||||
|
||||
/* Header */
|
||||
.header {
|
||||
@@ -79,9 +63,18 @@ body {
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 1.5rem;
|
||||
color: var(--text-primary);
|
||||
.header-left { display: flex; align-items: center; gap: 1rem; }
|
||||
.header h1 { font-size: 1.5rem; color: var(--text-primary); }
|
||||
|
||||
.device-badge {
|
||||
background: #eff6ff;
|
||||
color: #1d4ed8;
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 1rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
font-family: monospace;
|
||||
border: 1px solid #bfdbfe;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
@@ -90,7 +83,7 @@ body {
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.mqtt-status {
|
||||
.serial-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
@@ -105,14 +98,9 @@ body {
|
||||
background-color: var(--secondary-color);
|
||||
}
|
||||
|
||||
.status-dot.connected {
|
||||
background-color: var(--success-color);
|
||||
}
|
||||
.status-dot.connected { background-color: var(--success-color); }
|
||||
|
||||
.user-info {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
.user-info { color: var(--text-secondary); font-size: 0.875rem; }
|
||||
|
||||
.data-last-received {
|
||||
display: flex;
|
||||
@@ -122,11 +110,9 @@ body {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.data-label {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.data-label { opacity: 0.7; }
|
||||
|
||||
/* Navigation Tabs */
|
||||
/* Navigation */
|
||||
.nav-tabs {
|
||||
background: var(--surface-color);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
@@ -147,29 +133,13 @@ body {
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.nav-tab:hover {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
.nav-tab:hover { color: var(--primary-color); }
|
||||
.nav-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
|
||||
|
||||
.nav-tab.active {
|
||||
color: var(--primary-color);
|
||||
border-bottom-color: var(--primary-color);
|
||||
}
|
||||
|
||||
/* Content Area */
|
||||
.content {
|
||||
padding: 2rem;
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tab-content.active {
|
||||
display: block;
|
||||
}
|
||||
/* Content */
|
||||
.content { padding: 2rem; max-width: 1400px; margin: 0 auto; }
|
||||
.tab-content { display: none; }
|
||||
.tab-content.active { display: block; }
|
||||
|
||||
/* Stats Grid */
|
||||
.stats-grid {
|
||||
@@ -189,20 +159,9 @@ body {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.stat-icon { font-size: 2.5rem; }
|
||||
.stat-value { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
|
||||
.stat-label { font-size: 0.875rem; color: var(--text-secondary); }
|
||||
|
||||
/* Panel */
|
||||
.panel {
|
||||
@@ -213,34 +172,30 @@ body {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.panel h2 {
|
||||
font-size: 1.25rem;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
.panel h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-primary); }
|
||||
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
|
||||
.panel-header h2 { margin: 0; }
|
||||
|
||||
/* Device Info */
|
||||
.device-info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
.device-info-item {
|
||||
background: var(--bg-color);
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 0.375rem;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.panel-header h2 {
|
||||
margin: 0;
|
||||
}
|
||||
.device-info-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
|
||||
.device-info-value { font-size: 0.95rem; font-family: monospace; color: var(--text-primary); font-weight: 600; }
|
||||
|
||||
/* Forms */
|
||||
.form-group {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
.form-group { margin-bottom: 1.5rem; }
|
||||
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 500; }
|
||||
|
||||
.form-group input,
|
||||
.form-group select {
|
||||
@@ -258,19 +213,14 @@ body {
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
}
|
||||
.form-row { display: flex; gap: 0.5rem; align-items: center; }
|
||||
.form-row input { flex: 1; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 0.375rem; font-size: 1rem; }
|
||||
.form-row input:focus { outline: none; border-color: var(--primary-color); }
|
||||
.form-row select { min-width: 140px; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 0.375rem; font-size: 0.9rem; }
|
||||
|
||||
.form-row input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.form-row select {
|
||||
min-width: 120px;
|
||||
}
|
||||
.radio-group { display: flex; gap: 1.5rem; }
|
||||
.radio-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; color: var(--text-primary); }
|
||||
.radio-label input[type="radio"] { width: auto; }
|
||||
|
||||
/* Buttons */
|
||||
.btn {
|
||||
@@ -281,75 +231,30 @@ body {
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: var(--primary-hover);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: var(--secondary-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: #475569;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background-color: var(--danger-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-danger:hover {
|
||||
background-color: #dc2626;
|
||||
}
|
||||
.btn-primary { background-color: var(--primary-color); color: white; }
|
||||
.btn-primary:hover { background-color: var(--primary-hover); }
|
||||
.btn-secondary { background-color: var(--secondary-color); color: white; }
|
||||
.btn-secondary:hover { background-color: #475569; }
|
||||
.btn-danger { background-color: var(--danger-color); color: white; }
|
||||
.btn-danger:hover { background-color: #dc2626; }
|
||||
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
|
||||
/* Messages */
|
||||
.message-list {
|
||||
max-height: 600px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.message-list { max-height: 600px; overflow-y: auto; }
|
||||
|
||||
.message-item {
|
||||
padding: 1rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
.message-item { padding: 1rem; border-bottom: 1px solid var(--border-color); }
|
||||
.message-item:last-child { border-bottom: none; }
|
||||
.message-item.outbound { background: #f0f9ff; }
|
||||
|
||||
.message-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.message-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; align-items: center; }
|
||||
.message-from { font-weight: 600; color: var(--text-primary); }
|
||||
.message-time { font-size: 0.875rem; color: var(--text-secondary); }
|
||||
.message-text { color: var(--text-primary); }
|
||||
|
||||
.message-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.message-from {
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.message-time {
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.message-text {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.message-meta {
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.message-meta { margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); display: flex; gap: 0.75rem; flex-wrap: wrap; }
|
||||
|
||||
.message-channel {
|
||||
display: inline-block;
|
||||
@@ -361,7 +266,19 @@ body {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Nodes Grid */
|
||||
.message-badge {
|
||||
display: inline-block;
|
||||
padding: 0.125rem 0.5rem;
|
||||
border-radius: 0.25rem;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.badge-direct { background: #eff6ff; color: #1d4ed8; }
|
||||
.badge-channel { background: #f0fdf4; color: #166534; }
|
||||
.badge-delivered { background: #d1fae5; color: #065f46; }
|
||||
|
||||
/* Contacts Grid */
|
||||
.nodes-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
@@ -377,28 +294,12 @@ body {
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.node-card:hover {
|
||||
box-shadow: var(--shadow);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.node-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
|
||||
.node-card.favourite { border-color: #fbbf24; background: #fffbeb; }
|
||||
|
||||
.node-card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: start;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.node-name {
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.node-id {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
font-family: monospace;
|
||||
}
|
||||
.node-card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.75rem; }
|
||||
.node-name { font-weight: 600; color: var(--text-primary); }
|
||||
.node-id { font-size: 0.75rem; color: var(--text-secondary); font-family: monospace; }
|
||||
|
||||
.node-badge {
|
||||
padding: 0.25rem 0.5rem;
|
||||
@@ -407,212 +308,125 @@ body {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.node-badge.online {
|
||||
background-color: #d1fae5;
|
||||
color: #065f46;
|
||||
}
|
||||
.node-badge.online { background-color: #d1fae5; color: #065f46; }
|
||||
.node-badge.offline { background-color: #fee2e2; color: #991b1b; }
|
||||
.node-badge.type-chat { background: #eff6ff; color: #1d4ed8; }
|
||||
.node-badge.type-repeater { background: #f0fdf4; color: #166534; }
|
||||
.node-badge.type-room { background: #fdf4ff; color: #7e22ce; }
|
||||
.node-badge.type-sensor { background: #fff7ed; color: #9a3412; }
|
||||
|
||||
.node-badge.offline {
|
||||
background-color: #fee2e2;
|
||||
color: #991b1b;
|
||||
}
|
||||
.node-info { font-size: 0.875rem; color: var(--text-secondary); }
|
||||
.node-info-row { display: flex; justify-content: space-between; margin-bottom: 0.25rem; }
|
||||
|
||||
.node-info {
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.node-info-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
/* Ports List */
|
||||
.ports-list { margin-top: 1rem; }
|
||||
.port-item { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); font-family: monospace; font-size: 0.9rem; }
|
||||
|
||||
/* Map */
|
||||
.map-container {
|
||||
height: 600px;
|
||||
border-radius: 0.5rem;
|
||||
overflow: hidden;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.map-controls {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.map-container { height: 600px; border-radius: 0.5rem; overflow: hidden; margin-bottom: 1rem; }
|
||||
.map-controls { display: flex; gap: 0.5rem; }
|
||||
|
||||
/* Modal */
|
||||
.modal {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1000;
|
||||
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
|
||||
background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background: var(--surface-color);
|
||||
padding: 2rem;
|
||||
border-radius: 0.5rem;
|
||||
max-width: 600px;
|
||||
width: 90%;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
position: relative;
|
||||
background: var(--surface-color); padding: 2rem; border-radius: 0.5rem;
|
||||
max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.modal-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); }
|
||||
.modal-close:hover { color: var(--text-primary); }
|
||||
.node-detail { margin-top: 1rem; }
|
||||
|
||||
.modal-close:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.detail-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); }
|
||||
.detail-label { font-weight: 500; color: var(--text-secondary); }
|
||||
.detail-value { color: var(--text-primary); font-family: monospace; word-break: break-all; max-width: 60%; text-align: right; }
|
||||
|
||||
.node-detail {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.detail-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0.75rem 0;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.detail-label {
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.detail-value {
|
||||
color: var(--text-primary);
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* Error Messages */
|
||||
.error-message {
|
||||
color: var(--danger-color);
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Success Messages */
|
||||
.success-message {
|
||||
color: var(--success-color);
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
/* Error / Success */
|
||||
.error-message { color: var(--danger-color); font-size: 0.875rem; margin-top: 0.5rem; margin-bottom: 1rem; }
|
||||
.success-message { color: var(--success-color); font-size: 0.875rem; margin-top: 0.5rem; }
|
||||
|
||||
/* Empty State */
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 3rem;
|
||||
color: var(--text-secondary);
|
||||
.empty-state { text-align: center; padding: 3rem; color: var(--text-secondary); }
|
||||
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
|
||||
|
||||
/* Notification */
|
||||
.notification {
|
||||
position: fixed; top: 1rem; right: 1rem; padding: 1rem 1.5rem;
|
||||
border-radius: 0.5rem; box-shadow: var(--shadow-lg); z-index: 2000;
|
||||
max-width: 350px; animation: slideIn 0.3s ease;
|
||||
}
|
||||
|
||||
.empty-state-icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 1rem;
|
||||
.notification.success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success-color); }
|
||||
.notification.warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning-color); }
|
||||
.notification.error { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger-color); }
|
||||
.notification.info { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--primary-color); }
|
||||
|
||||
@keyframes slideIn {
|
||||
from { transform: translateX(100%); opacity: 0; }
|
||||
to { transform: translateX(0); opacity: 1; }
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.header {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.nav-tabs {
|
||||
overflow-x: auto;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.form-row select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.nodes-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.header { flex-direction: column; gap: 1rem; align-items: flex-start; }
|
||||
.header-right { width: 100%; justify-content: space-between; }
|
||||
.nav-tabs { overflow-x: auto; padding: 0 1rem; }
|
||||
.content { padding: 1rem; }
|
||||
.stats-grid { grid-template-columns: 1fr; }
|
||||
.form-row { flex-direction: column; }
|
||||
.form-row select { width: 100%; }
|
||||
.nodes-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
/* Scrollbar Styling */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
/* Scrollbar */
|
||||
::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
::-webkit-scrollbar-track { background: var(--bg-color); }
|
||||
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--bg-color);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--border-color);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--secondary-color);
|
||||
}
|
||||
|
||||
/* Loading Indicator */
|
||||
/* Loading */
|
||||
.loading {
|
||||
display: inline-block;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
border: 2px solid var(--border-color);
|
||||
border-top-color: var(--primary-color);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
display: inline-block; width: 1rem; height: 1rem;
|
||||
border: 2px solid var(--border-color); border-top-color: var(--primary-color);
|
||||
border-radius: 50%; animation: spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* Map marker pulse animation for newly heard nodes */
|
||||
@keyframes markerPulse {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 0 0 rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.6);
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 0 10px rgba(255, 255, 255, 0);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 0 0 rgba(255, 255, 255, 0);
|
||||
}
|
||||
0% { transform: scale(1); box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0.7); }
|
||||
50% { transform: scale(1.6); box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 0 10px rgba(255,255,255,0); }
|
||||
100% { transform: scale(1); box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0); }
|
||||
}
|
||||
|
||||
.settings-form { max-width: 400px; }
|
||||
|
||||
/* Message filter tabs */
|
||||
.msg-filter-tabs {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
background: var(--bg-color);
|
||||
padding: 0.25rem;
|
||||
border-radius: 0.375rem;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.msg-filter-btn {
|
||||
padding: 0.375rem 0.75rem;
|
||||
border: none;
|
||||
background: transparent;
|
||||
border-radius: 0.25rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.msg-filter-btn:hover { color: var(--primary-color); }
|
||||
.msg-filter-btn.active { background: var(--surface-color); color: var(--primary-color); box-shadow: var(--shadow); }
|
||||
|
||||
+63
-31
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Meshtastic MQTT Dashboard</title>
|
||||
<title>MeshCore Dashboard</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="http://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
||||
</head>
|
||||
@@ -12,8 +12,8 @@
|
||||
<div id="login-screen" class="screen">
|
||||
<div class="login-container">
|
||||
<div class="login-box">
|
||||
<h1>Meshtastic Dashboard</h1>
|
||||
<p class="subtitle">MQTT Monitoring & Control</p>
|
||||
<h1>MeshCore Dashboard</h1>
|
||||
<p class="subtitle">USB Serial Monitor</p>
|
||||
<form id="login-form">
|
||||
<div class="form-group">
|
||||
<label for="username">Username</label>
|
||||
@@ -32,15 +32,15 @@
|
||||
|
||||
<!-- Main Dashboard -->
|
||||
<div id="dashboard-screen" class="screen hidden">
|
||||
<!-- Header -->
|
||||
<header class="header">
|
||||
<div class="header-left">
|
||||
<h1>Meshtastic Dashboard</h1>
|
||||
<h1>MeshCore Dashboard</h1>
|
||||
<span id="device-name-badge" class="device-badge hidden"></span>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<span class="mqtt-status" id="mqtt-status">
|
||||
<span class="serial-status" id="serial-status">
|
||||
<span class="status-dot"></span>
|
||||
MQTT
|
||||
USB
|
||||
</span>
|
||||
<span class="data-last-received" id="data-last-received" title="Time since last data update">
|
||||
<span class="data-label">Last data:</span> <span id="data-timer">0s ago</span>
|
||||
@@ -50,16 +50,14 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Navigation -->
|
||||
<nav class="nav-tabs">
|
||||
<button class="nav-tab active" data-tab="overview">Overview</button>
|
||||
<button class="nav-tab" data-tab="map">Map</button>
|
||||
<button class="nav-tab" data-tab="messages">Messages</button>
|
||||
<button class="nav-tab" data-tab="nodes">Nodes</button>
|
||||
<button class="nav-tab" data-tab="contacts">Contacts</button>
|
||||
<button class="nav-tab" data-tab="settings">Settings</button>
|
||||
</nav>
|
||||
|
||||
<!-- Tab Contents -->
|
||||
<div class="content">
|
||||
<!-- Overview Tab -->
|
||||
<div id="overview-tab" class="tab-content active">
|
||||
@@ -67,8 +65,8 @@
|
||||
<div class="stat-card">
|
||||
<div class="stat-icon">📡</div>
|
||||
<div class="stat-info">
|
||||
<div class="stat-value" id="stat-nodes">0</div>
|
||||
<div class="stat-label">Active Nodes</div>
|
||||
<div class="stat-value" id="stat-contacts">0</div>
|
||||
<div class="stat-label">Contacts</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
@@ -94,6 +92,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="device-info-panel" class="panel hidden">
|
||||
<h2>Device</h2>
|
||||
<div id="device-info-content" class="device-info-grid"></div>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<h2>Recent Messages</h2>
|
||||
<div id="recent-messages" class="message-list"></div>
|
||||
@@ -113,13 +116,32 @@
|
||||
<div class="panel">
|
||||
<h2>Send Message</h2>
|
||||
<form id="send-message-form" class="message-form">
|
||||
<div class="form-group">
|
||||
<div class="radio-group">
|
||||
<label class="radio-label">
|
||||
<input type="radio" name="msg-type" value="direct" id="type-direct" checked>
|
||||
Direct
|
||||
</label>
|
||||
<label class="radio-label">
|
||||
<input type="radio" name="msg-type" value="channel" id="type-channel">
|
||||
Channel
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<input type="text" id="message-text" placeholder="Type your message..." required>
|
||||
<select id="message-from">
|
||||
<option value="474572292">!1c496604</option>
|
||||
<select id="message-to-contact" title="Select contact">
|
||||
<option value="">-- Select contact --</option>
|
||||
</select>
|
||||
<select id="message-channel">
|
||||
<!-- Options populated dynamically from config -->
|
||||
<select id="message-channel-idx" class="hidden" title="Select channel">
|
||||
<option value="0">Public (Ch 0)</option>
|
||||
<option value="1">Channel 1</option>
|
||||
<option value="2">Channel 2</option>
|
||||
<option value="3">Channel 3</option>
|
||||
<option value="4">Channel 4</option>
|
||||
<option value="5">Channel 5</option>
|
||||
<option value="6">Channel 6</option>
|
||||
<option value="7">Channel 7</option>
|
||||
</select>
|
||||
<button type="submit" class="btn btn-primary">Send</button>
|
||||
</div>
|
||||
@@ -128,38 +150,50 @@
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel-header">
|
||||
<h2>Message History</h2>
|
||||
<button id="refresh-messages-btn" class="btn btn-secondary">Refresh</button>
|
||||
<h2>Messages</h2>
|
||||
<div style="display:flex;gap:0.5rem;align-items:center">
|
||||
<div class="msg-filter-tabs" id="msg-filter-tabs">
|
||||
<button class="msg-filter-btn active" data-filter="all">All</button>
|
||||
<button class="msg-filter-btn" data-filter="channel" data-ch="0">Public (Ch 0)</button>
|
||||
<button class="msg-filter-btn" data-filter="direct">Direct</button>
|
||||
</div>
|
||||
<button id="refresh-messages-btn" class="btn btn-secondary">Refresh</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="message-history" class="message-list"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Nodes Tab -->
|
||||
<div id="nodes-tab" class="tab-content">
|
||||
<!-- Contacts Tab -->
|
||||
<div id="contacts-tab" class="tab-content">
|
||||
<div class="panel">
|
||||
<div class="panel-header">
|
||||
<h2>Meshtastic Nodes</h2>
|
||||
<button id="refresh-nodes-btn" class="btn btn-secondary">Refresh</button>
|
||||
<h2>MeshCore Contacts</h2>
|
||||
<button id="refresh-contacts-btn" class="btn btn-secondary">Refresh</button>
|
||||
</div>
|
||||
<div id="nodes-grid" class="nodes-grid"></div>
|
||||
<div id="contacts-grid" class="nodes-grid"></div>
|
||||
</div>
|
||||
|
||||
<!-- Node Detail Modal -->
|
||||
<div id="node-modal" class="modal hidden">
|
||||
<div id="contact-modal" class="modal hidden">
|
||||
<div class="modal-content">
|
||||
<span class="modal-close">×</span>
|
||||
<h2>Node Details</h2>
|
||||
<div id="node-detail" class="node-detail"></div>
|
||||
<h2>Contact Details</h2>
|
||||
<div id="contact-detail" class="node-detail"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Settings Tab -->
|
||||
<div id="settings-tab" class="tab-content">
|
||||
<div class="panel">
|
||||
<h2>Serial Port</h2>
|
||||
<div id="port-info"></div>
|
||||
<div id="available-ports" class="ports-list"></div>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<h2>Data Management</h2>
|
||||
<p>Purge old data from the database to free up space.</p>
|
||||
<p>Purge old data from the database.</p>
|
||||
<form id="purge-form" class="settings-form">
|
||||
<div class="form-group">
|
||||
<label for="purge-hours">Keep data from the last:</label>
|
||||
@@ -182,16 +216,14 @@
|
||||
|
||||
<div class="panel">
|
||||
<h2>About</h2>
|
||||
<p>Meshtastic MQTT Dashboard - A complete monitoring solution for Meshtastic networks.</p>
|
||||
<p>MeshCore USB Dashboard — Monitor and control your MeshCore network over USB serial.</p>
|
||||
<p>Version 1.0.0</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="http://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
||||
<script src="http://unpkg.com/d3@7/dist/d3.min.js"></script>
|
||||
<script src="js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+589
-1144
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user