Fix progress template rendering
mindflux-ci / build (push) Successful in 23s

This commit is contained in:
AliceDarkest
2026-07-13 22:45:37 +02:00
parent 07f6693954
commit c665857ce8
2 changed files with 20 additions and 3 deletions
+4 -2
View File
@@ -87,6 +87,8 @@
const track = css.getPropertyValue('--surface-2').trim() || '#2c2c2c';
const tick = css.getPropertyValue('--text').trim() || '#f1f1f1';
const grid = css.getPropertyValue('--border').trim() || '#333';
const xpPercentage = /*[[${xpPercentage}]]*/ 0;
const weeklyMinutes = /*[[${weekly.minutes}]]*/ [0, 0, 0, 0, 0, 0, 0];
// Kreisdiagramm
const ctx = document.getElementById('progressCircle').getContext('2d');
@@ -94,7 +96,7 @@
type: 'doughnut',
data: {
datasets: [{
data: [/*[[${xpPercentage}]]*/ 0, 100 - /*[[${xpPercentage}]]*/ 0],
data: [xpPercentage, 100 - xpPercentage],
backgroundColor: [accent, track],
borderWidth: 0
}]
@@ -115,7 +117,7 @@
labels: ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'],
datasets: [{
label: 'Spielzeit (Minuten)',
data: /*[[${weekly.minutes}]]*/ [0, 0, 0, 0, 0, 0, 0],
data: weeklyMinutes,
backgroundColor: accent,
borderRadius: 6
}]