mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 07:42:40 +10:00
feat: game metadata rating support
This commit is contained in:
@ -103,9 +103,7 @@
|
||||
'w-4 h-4',
|
||||
]"
|
||||
/>
|
||||
<span class="text-zinc-600"
|
||||
>({{ game.mReviewCount }} reviews)</span
|
||||
>
|
||||
<span class="text-zinc-600">({{ 0 }} reviews)</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -220,7 +218,8 @@ const platforms = game.versions
|
||||
.flat()
|
||||
.filter((e, i, u) => u.indexOf(e) === i);
|
||||
|
||||
const rating = Math.round(game.mReviewRating * 5);
|
||||
// const rating = Math.round(game.mReviewRating * 5);
|
||||
const rating = Math.round(0 * 5);
|
||||
const ratingArray = Array(5)
|
||||
.fill(null)
|
||||
.map((_, i) => i + 1 <= rating);
|
||||
|
||||
Reference in New Issue
Block a user