From 161ba35ff6014dcb72ef0598b665ebe588eb24c0 Mon Sep 17 00:00:00 2001 From: Daniel Klein Date: Tue, 17 Sep 2024 08:11:35 +0200 Subject: [PATCH] feat(rating): calculate and show rating based on github data --- components/Card.vue | 120 ++++++++++------- components/Project/ProjectRating.vue | 92 +++++-------- composables/useData.ts | 187 ++++++++++++++++++--------- types/rank.ts | 22 ++++ utils/score.ts | 50 +++++++ 5 files changed, 298 insertions(+), 173 deletions(-) create mode 100644 types/rank.ts create mode 100644 utils/score.ts diff --git a/components/Card.vue b/components/Card.vue index 7881b79..07b8ea5 100644 --- a/components/Card.vue +++ b/components/Card.vue @@ -1,12 +1,14 @@