refactor(dashboard,history): replace ViewModels with Pinia stores and improve backend

This commit is contained in:
2026-08-05 09:23:18 +02:00
parent a0387126de
commit 90930cd223
29 changed files with 1372 additions and 237 deletions
@@ -29,6 +29,7 @@ export interface PricePoint {
const props = defineProps<{
data: PricePoint[];
color?: string;
}>();
const chartData = computed(() => ({
@@ -36,8 +37,10 @@ const chartData = computed(() => ({
datasets: [
{
data: props.data.map((d) => d.value),
borderColor: '#4ba66a',
backgroundColor: 'rgba(75, 166, 106, 0.1)',
borderColor: props.color || '#4ba66a',
backgroundColor: props.color
? `${props.color}1a`
: 'rgba(75, 166, 106, 0.1)',
fill: true,
tension: 0.4,
pointRadius: 2,