mirror of
https://github.com/Roslund/sthlm-mesh.git
synced 2026-07-04 17:01:54 +02:00
deploy: 8848d19ee7
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -27,7 +27,7 @@ async function deviceRolesChart() {
|
||||
|
||||
// Dynamically size the container based on the number of elements
|
||||
const chartContainer = document.getElementById('deviceRolesContainer');
|
||||
chartContainer.style.height = `${labels.length *35}px`;
|
||||
chartContainer.style.height = `${labels.length *35 + 50}px`;
|
||||
|
||||
const backgroundColors = labels.map(label => {
|
||||
if (label == "ROUTER_CLIENT") return 'rgb(196, 36, 18)';
|
||||
|
||||
@@ -33,8 +33,6 @@ async function firmwareVersionGraph() {
|
||||
count
|
||||
}));
|
||||
|
||||
console.log(statsArray)
|
||||
|
||||
// Sort by firmware version descending
|
||||
const sorted = statsArray.sort((a, b) => b.version.localeCompare(a.version));
|
||||
|
||||
@@ -42,7 +40,7 @@ async function firmwareVersionGraph() {
|
||||
const counts = sorted.map(entry => entry.count);
|
||||
|
||||
const chartContainer = document.getElementById('firmwareVersionContainer');
|
||||
chartContainer.style.height = `${labels.length * 35}px`;
|
||||
chartContainer.style.height = `${labels.length * 35 + 50}px`;
|
||||
|
||||
new Chart(ctx, {
|
||||
type: 'bar',
|
||||
|
||||
@@ -29,7 +29,7 @@ async function hardwareStatsGraph() {
|
||||
|
||||
// Adjust chart height based on number of items
|
||||
const chartContainer = document.getElementById('hardwareChartContainer');
|
||||
chartContainer.style.height = `${labels.length * 25}px`;
|
||||
chartContainer.style.height = `${labels.length * 25 + 50}px`;
|
||||
|
||||
|
||||
new Chart(ctx, {
|
||||
|
||||
@@ -17,7 +17,7 @@ async function mostActiveNodesGraph() {
|
||||
|
||||
// Adjust chart height based on number of items
|
||||
const chartContainer = document.getElementById('mostActiveNodesContainer');
|
||||
chartContainer.style.height = `${labels.length * 25}px`;
|
||||
chartContainer.style.height = `${labels.length * 22 + 50}px`;
|
||||
|
||||
const backgroundColors = counts.map(count => {
|
||||
if (count < 100) return '#7EB26D'; // Green
|
||||
|
||||
@@ -134,7 +134,7 @@ async function portnumDistributionChart(nodeId = null) {
|
||||
});
|
||||
|
||||
const chartContainer = document.getElementById('portnumDistributionContainer');
|
||||
chartContainer.style.height = `${labels.length * 35}px`;
|
||||
chartContainer.style.height = `${labels.length * 35 + 50}px`;
|
||||
|
||||
if (chartInstance) chartInstance.destroy();
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ async function positionPrecisionGraph() {
|
||||
const backgroundColors = sorted.map(entry => getPositionColor(entry.precision));
|
||||
|
||||
const chartContainer = document.getElementById('positionPrecisionContainer');
|
||||
chartContainer.style.height = `${labels.length *35}px`;
|
||||
chartContainer.style.height = `${labels.length * 35 + 50}px`;
|
||||
|
||||
new Chart(ctx, {
|
||||
type: 'bar',
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://sthlm-mesh.se/docs/settings/</loc><lastmod>2025-02-26T18:39:36+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/device_role/</loc><lastmod>2025-02-26T18:42:15+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/position/</loc><lastmod>2025-02-22T09:11:26+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/mqtt/</loc><lastmod>2025-03-31T19:16:34+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/neighbor_info/</loc><lastmod>2025-02-23T20:48:06+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/kartor/</loc><lastmod>2025-03-08T20:11:28+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/solar_nodes/</loc><lastmod>2025-04-12T20:27:51+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/communities/</loc><lastmod>2025-02-23T20:48:06+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/categories/</loc></url><url><loc>https://sthlm-mesh.se/docs/</loc><lastmod>2025-03-03T22:48:04+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/messages/</loc><lastmod>2025-04-10T17:24:25+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/meetups/</loc><lastmod>2025-04-10T07:31:33+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/about/</loc><lastmod>2025-02-23T18:02:23+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/status/</loc><lastmod>2025-04-17T22:19:32+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/</loc><lastmod>2025-04-13T13:44:19+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/tags/</loc></url></urlset>
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://sthlm-mesh.se/docs/settings/</loc><lastmod>2025-02-26T18:39:36+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/device_role/</loc><lastmod>2025-02-26T18:42:15+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/position/</loc><lastmod>2025-02-22T09:11:26+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/mqtt/</loc><lastmod>2025-03-31T19:16:34+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/neighbor_info/</loc><lastmod>2025-02-23T20:48:06+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/kartor/</loc><lastmod>2025-03-08T20:11:28+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/solar_nodes/</loc><lastmod>2025-04-12T20:27:51+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/docs/communities/</loc><lastmod>2025-02-23T20:48:06+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/categories/</loc></url><url><loc>https://sthlm-mesh.se/docs/</loc><lastmod>2025-03-03T22:48:04+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/messages/</loc><lastmod>2025-04-10T17:24:25+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/meetups/</loc><lastmod>2025-04-10T07:31:33+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/about/</loc><lastmod>2025-02-23T18:02:23+01:00</lastmod></url><url><loc>https://sthlm-mesh.se/status/</loc><lastmod>2025-04-19T22:10:43+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/</loc><lastmod>2025-04-13T13:44:19+02:00</lastmod></url><url><loc>https://sthlm-mesh.se/tags/</loc></url></urlset>
|
||||
+7
-7
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user