mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-20 03:31:13 +10:00
* feat: database redist support * feat: rearchitecture of database schemas, migration reset, and #180 * feat: import redists * fix: giantbomb logging bug * feat: partial user platform support + statusMessage -> message * feat: add user platform filters to store view * fix: sanitize svg uploads ... copilot suggested this I feel dirty. * feat: beginnings of platform & redist management * feat: add server side redist patching * fix: update drop-base commit * feat: import of custom platforms & file extensions * fix: redelete platform * fix: remove platform * feat: uninstall commands, new R UI * checkpoint: before migrating to nuxt v4 * update to nuxt 4 * fix: fixes for Nuxt v4 update * fix: remaining type issues * feat: initial feedback to import other kinds of versions * working commit * fix: lint * feat: redist import
44 lines
1.1 KiB
Vue
44 lines
1.1 KiB
Vue
<template>
|
|
<table v-if="items.length > 0" class="w-full mt-4 space-y-6">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-white/10">
|
|
<tr v-for="item in items" :key="`${item.rank}-${item.name}`">
|
|
<td
|
|
class="my-2 size-7 rounded-sm bg-zinc-950 ring ring-zinc-800 inline-flex items-center justify-center font-bold font-display text-blue-500"
|
|
>
|
|
{{ item.rank }}
|
|
</td>
|
|
<td class="w-full font-bold px-2">{{ item.name }}</td>
|
|
<td
|
|
class="text-right text-sm font-semibold text-zinc-500 whitespace-nowrap"
|
|
>
|
|
{{ item.value }}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p
|
|
v-else
|
|
class="w-full p-2 text-center uppercase text-sm font-display font-bold text-zinc-700"
|
|
>
|
|
{{ $t("common.noData") }}
|
|
</p>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
export type RankItem = {
|
|
rank: number;
|
|
name: string;
|
|
value: string;
|
|
};
|
|
const { items } = defineProps<{
|
|
items: RankItem[];
|
|
}>();
|
|
</script>
|