mirror of
https://github.com/RunLit/Bambu-Run.git
synced 2026-06-22 22:19:03 +01:00
docker deployment patch with verification and broken UI fixes (#1)
* bypass bambu cloud api opencb requirement * project root add to managepy * update instruction to do migration; mqtt login more verbose * migrations up to date model * use migrations from django migrate * print full token to copy paste * allow local network hosts * added side bar toggle * removed standalone css from dashboard css * added icon and fixed text trunction issue * fixed chart missing whitenoise and not rendering * aded favicon and fixed ui issues
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.no-data-message {
|
||||
font-size: 0.9rem;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Card styling */
|
||||
.infra-card-warning {
|
||||
background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
|
||||
|
||||
@@ -4,10 +4,30 @@
|
||||
let nozzleTempChart, bedTempChart, printProgressChart, fanSpeedsChart;
|
||||
let wifiSignalChart, amsConditionsChart, layerProgressChart, filamentTimelineChart;
|
||||
|
||||
function showNoDataMessage(canvasId) {
|
||||
const canvas = document.getElementById(canvasId);
|
||||
if (!canvas) return;
|
||||
const container = canvas.closest('.chart-container');
|
||||
if (!container) return;
|
||||
canvas.style.display = 'none';
|
||||
const msg = document.createElement('div');
|
||||
msg.className = 'no-data-message d-flex align-items-center justify-content-center h-100 text-body-secondary';
|
||||
msg.textContent = 'No data available for this period';
|
||||
container.appendChild(msg);
|
||||
}
|
||||
|
||||
function initPrinterCharts(printerData, apiUrl) {
|
||||
// Apply filament card colors
|
||||
applyFilamentColors();
|
||||
|
||||
// If no data, show placeholder messages and exit early
|
||||
if (!printerData.timestamps || printerData.timestamps.length === 0) {
|
||||
['nozzleTempChart', 'bedTempChart', 'printProgressChart', 'fanSpeedsChart',
|
||||
'wifiSignalChart', 'amsConditionsChart', 'layerProgressChart', 'filamentTimelineChart'
|
||||
].forEach(showNoDataMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
// Register the annotation plugin
|
||||
if (typeof Chart !== 'undefined' && typeof ChartAnnotation !== 'undefined') {
|
||||
Chart.register(ChartAnnotation);
|
||||
|
||||
1672
bambu_run/static/bambu_run/vendors/coreui-icons-free.svg
vendored
Normal file
1672
bambu_run/static/bambu_run/vendors/coreui-icons-free.svg
vendored
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 410 KiB |
Reference in New Issue
Block a user