From d8e1ba3811fbd7c0b48f57dd5410911037ac1815 Mon Sep 17 00:00:00 2001 From: Gemma Black Date: Tue, 3 Sep 2024 15:32:46 +0200 Subject: [PATCH] Refactored ratings object into a dictionary for easier lookups --- src/components/EPCRating.vue | 32 +++++++++---------- src/util.ts | 60 ++++++++++++++++++++---------------- 2 files changed, 50 insertions(+), 42 deletions(-) diff --git a/src/components/EPCRating.vue b/src/components/EPCRating.vue index a0993d6..526ae08 100644 --- a/src/components/EPCRating.vue +++ b/src/components/EPCRating.vue @@ -36,34 +36,34 @@ const yPotentialPos = computed(() => calcuateVerticalPositionInSVG(getRating(pro - + - + - + - + - + - + - + - + - + - + - + - + - + - + -