From 1e166b673b82a70914449ca4007400ca5330ee29 Mon Sep 17 00:00:00 2001 From: Julien Date: Sat, 30 Nov 2024 21:46:44 +0100 Subject: [PATCH] fix: some bugfixes --- app/services/packages_data_refresher.ts | 2 +- inertia/assets/icons/adonis_icon.svg | 2 +- inertia/components/package_logo.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/packages_data_refresher.ts b/app/services/packages_data_refresher.ts index 2963b6e..f2b07e2 100644 --- a/app/services/packages_data_refresher.ts +++ b/app/services/packages_data_refresher.ts @@ -83,7 +83,7 @@ export class PackagesDataRefresher { 'packageName', packages.map((pkg) => ({ packageName: pkg.name, - githubStars: pkg.stars, + githubStars: pkg.stars || 0, weeklyDownloads: pkg.downloads ? pkg.downloads : 0, firstReleaseAt: pkg.firstReleaseAt ? DateTime.fromISO(pkg.firstReleaseAt) : null, lastReleaseAt: pkg.lastReleaseAt ? DateTime.fromISO(pkg.lastReleaseAt) : null, diff --git a/inertia/assets/icons/adonis_icon.svg b/inertia/assets/icons/adonis_icon.svg index 7ce246e..c24f1bc 100644 --- a/inertia/assets/icons/adonis_icon.svg +++ b/inertia/assets/icons/adonis_icon.svg @@ -1,4 +1,4 @@ - diff --git a/inertia/components/package_logo.vue b/inertia/components/package_logo.vue index 28f3e13..701bee9 100644 --- a/inertia/components/package_logo.vue +++ b/inertia/components/package_logo.vue @@ -9,7 +9,7 @@ defineProps<{ }>() function iconPlaceholder({ category }: PackageInfo) { - return categories.find((c) => c.label === category)?.icon || 'i-fluent-emoji-package-24-regular' + return categories.find((c) => c.label === category)?.icon || 'i-carbon-ibm-data-product-exchange' }