Initial commit

This commit is contained in:
2025-05-06 12:41:50 +00:00
commit aec7504e67
33 changed files with 15916 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<script setup lang="ts">
import { useUserStore } from "~/store/user.store";
export interface Props {
id: string;
}
const userStore = useUserStore();
const props = defineProps<Props>();
const user = await userStore.fetchUser(props.id);
</script>
<template>
<div class="user">
<img loading="lazy" class="user-avatar"
:src="`https://cdn.discordapp.com/avatars/${user?.id}/${user?.avatar}.webp?size=32`" />
{{ user?.username }}
</div>
</template>
<style lang="css">
div.user {
display: flex;
align-items: center;
}
img.user-avatar {
height: 32px;
border-radius: 50%;
}
</style>