feat(device/detail): update BinarySensors component, add Chart component for sensor data visualization and add update-iconfont.sh

This commit is contained in:
Tran Anh Tuan
2026-02-05 10:09:59 +07:00
parent 256ce06ea2
commit 8af31a0435
12 changed files with 871 additions and 24 deletions

22
src/utils/chart.ts Normal file
View File

@@ -0,0 +1,22 @@
import {
BarElement,
CategoryScale,
Chart as ChartJS,
Filler,
Legend,
LinearScale,
LineElement,
PointElement,
Tooltip,
} from 'chart.js';
ChartJS.register(
CategoryScale,
LinearScale,
PointElement,
LineElement,
BarElement,
Filler,
Tooltip,
Legend,
);