stream day 3

This commit is contained in:
Zoe
2023-01-05 19:16:43 -06:00
parent c55cf2867b
commit 108bb6d6fb
11 changed files with 257 additions and 63 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="flex bg-zinc-700 w-60 h-screen shadow-sm text-white select-none">
<div class="flex bg-[hsl(223,calc(1*6.9%),19.8%)] min-w-60 w-60 h-screen shadow-sm text-white select-none">
<div class="w-full"
v-if="server">
<div class="flex p-4 border-b border-zinc-600/80">
@@ -22,20 +22,6 @@
d="M5 9h14M5 15h14M11 4L7 20M17 4l-4 16" />
</svg> {{ channel.name }}
</div>
<div class="flex text-center hover:bg-zinc-600/70 px-2 py-1.5 w-full transition-colors rounded drop-shadow-sm"
v-for="channel in server.channels"
:key="channel.id">
<svg width="24"
height="24"
viewBox="0 0 24 24">
<path fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M5 9h14M5 15h14M11 4L7 20M17 4l-4 16" />
</svg> {{ channel.name }}
</div>
</div>
</div>
@@ -43,22 +29,12 @@
</template>
<script lang="ts">
import { useUserStore } from '~/stores/user'
import { useServerStore } from '~/stores/servers'
export default {
data() {
return {
user: useUserStore().user,
server: useServerStore().servers[useServerStore().activeServer]
}
},
mounted() {
const route = useRoute()
if (route.path.includes('@me')) {
this.server = useServerStore().dms[useServerStore().activeServer]
}
}
console.log(useServerStore().currentServer, useServerStore().servers)
},
props: ['server', 'user']
}
</script>