initial commit

This commit is contained in:
2025-02-12 22:13:31 +01:00
commit 047b2e9f4a
52 changed files with 8552 additions and 0 deletions

View File

@ -0,0 +1,43 @@
<script setup lang="ts">
import { convertFileSrc } from '@tauri-apps/api/core';
import { ModEntry } from '../types';
defineProps({
mod: Object as () => ModEntry,
modelValue: Boolean,
localIcon: Boolean,
showNamespace: Boolean,
showVersion: Boolean,
});
</script>
<template>
<img
:src="localIcon ? convertFileSrc(mod?.icon ?? '') : mod?.icon"
class="self-center rounded-sm"
width="32px"
height="32px"
/>
<label class="m-3 align-middle text grow z-5 h-50px" for="switch">
<div>
<span class="text-lg">
{{ mod?.name ?? 'Untitled' }}
</span>
<span
v-if="showNamespace && mod?.namespace"
class="text-sm opacity-75"
>
by&nbsp;{{ mod.namespace }}
</span>
<span
v-if="showVersion && mod?.version"
class="text-sm opacity-75 m-2"
>
{{ mod.version ?? '?.?.?' }}
</span>
</div>
<div class="text-sm opacity-75">
{{ mod?.description ?? 'No description' }}
</div>
</label>
</template>