mirror of
https://github.com/BillyOutlast/drop.git
synced 2026-02-04 00:31:17 +01:00
* feat: game specialisation, auto-guess extensions * fix: enforce specialisation specific schema at API level * fix: lint * feat: partial work on depot endpoints * feat: bump torrential * feat: dummy version creation for depot uploads * fix: lint * fix: types * fix: lint * feat: depot version import * fix: lint * fix: remove any type * fix: lint * fix: push update interval * fix: cpu usage calculation * feat: delta version support * feat: style tweaks for selectlaunch.vue * fix: lint
29 lines
938 B
Vue
29 lines
938 B
Vue
<template>
|
|
<div class="flex flex-row items-center gap-x-2">
|
|
<img
|
|
:src="rawIcon ? game.icon : useObject(game.icon)"
|
|
class="w-12 h-12 rounded-sm object-cover"
|
|
/>
|
|
<div class="flex flex-col items-left">
|
|
<h1 class="font-semibold font-display text-lg text-zinc-100">
|
|
{{ game.name }}
|
|
<span
|
|
v-if="game.sourceName"
|
|
class="inline-flex items-center rounded-md bg-blue-600/50 px-2 py-1 text-xs font-medium text-blue-400 ring-1 ring-inset ring-blue-700/10"
|
|
>{{ game.sourceName }}</span
|
|
>
|
|
</h1>
|
|
<p class="text-sm text-zinc-400">{{ game.description }}</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { GameMetadataSearchResult } from "~/server/internal/metadata/types";
|
|
|
|
const { game, rawIcon = true } = defineProps<{
|
|
game: Omit<GameMetadataSearchResult, "year"> & { sourceName?: string };
|
|
rawIcon?: boolean;
|
|
}>();
|
|
</script>
|