Compare commits
No commits in common. "6fc8de170b8b91656c9bd8a372c5475932f1191c" and "cca2c5ffd91674afe2f3bc85066f50b0d2e15501" have entirely different histories.
6fc8de170b
...
cca2c5ffd9
1 changed files with 43 additions and 7 deletions
|
@ -12,8 +12,7 @@
|
|||
</NuxtLink>
|
||||
<div id="servers-list">
|
||||
<NuxtLink v-for="guild of guilds" :href="`/servers/${guild.uuid}`">
|
||||
<img v-if="guild.icon" class="server-icon" :src="guild.icon" :alt="guild.name"/>
|
||||
<Icon v-else name="lucide:server" class="server-icon white" :alt="guild.name" />
|
||||
<Icon name="lucide:server" class="white" size="2rem" />
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -27,6 +26,48 @@ import type { GuildResponse } from '~/types/interfaces';
|
|||
const loading = useState("loading", () => false);
|
||||
|
||||
const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
||||
|
||||
//const servers = await fetchWithApi("/servers") as { uuid: string, name: string, description: string }[];
|
||||
//console.log("servers:", servers);
|
||||
const members = [
|
||||
{
|
||||
id: "3287484395",
|
||||
displayName: "SauceyRed"
|
||||
},
|
||||
{
|
||||
id: "3287484395",
|
||||
displayName: "SauceyRed"
|
||||
},
|
||||
{
|
||||
id: "3287484395",
|
||||
displayName: "SauceyRed"
|
||||
},
|
||||
{
|
||||
id: "3287484395",
|
||||
displayName: "SauceyRed"
|
||||
},
|
||||
{
|
||||
id: "3287484395",
|
||||
displayName: "SauceyRed"
|
||||
},
|
||||
{
|
||||
id: "3287484395",
|
||||
displayName: "SauceyRed"
|
||||
},
|
||||
{
|
||||
id: "3287484395",
|
||||
displayName: "SauceyRed"
|
||||
},
|
||||
{
|
||||
id: "3287484395",
|
||||
displayName: "SauceyRed"
|
||||
},
|
||||
{
|
||||
id: "3287484395",
|
||||
displayName: "SauceyRed"
|
||||
}
|
||||
];
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
@ -77,11 +118,6 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
|||
padding-right: .5dvw;
|
||||
}
|
||||
|
||||
.server-icon {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
#current-info {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue