feat(import): overhauled version importing

This commit is contained in:
DecDuck
2024-12-31 00:04:50 +11:00
parent 02d6346b01
commit 39d7ce7d1b
9 changed files with 631 additions and 181 deletions

View File

@ -72,7 +72,7 @@
>
<component
v-for="platform in platforms"
:is="icons[platform]"
:is="PLATFORM_ICONS[platform]"
class="text-blue-600 w-6 h-6"
/>
<span
@ -217,10 +217,7 @@ const rating = Math.round(game.mReviewRating * 5);
const ratingArray = Array(5)
.fill(null)
.map((_, i) => i + 1 <= rating);
const icons = {
[PlatformClient.Linux]: IconsLinuxLogo,
[PlatformClient.Windows]: IconsWindowsLogo,
};
useHead({
title: game.mName,