Version 1.0.0 - Frontend

This commit is contained in:
2025-08-29 00:22:08 +02:00
parent b5dc2a9e37
commit 01b089f1f6
83 changed files with 5613 additions and 245 deletions

View File

@@ -0,0 +1,39 @@
<template>
<div class="channel-message">
<Tag color="var(--text-error)" v-if="!globalStore.currentChannel"><span class="tag-channel"><span>Vous</span> <span>êtes</span> déconnecté </span></Tag>
<Tag color="var(--text-success)" v-else><span class="tag-channel">Connecté <span>à</span> <Icon icon="fa-solid fa-volume-up"/> {{ globalStore.currentChannel.name }}</span></Tag>
</div>
</template>
<script setup>
import { useGlobalStore } from '@/stores/globalStore';
import Tag from '@/components/UI/Tag.vue';
import { onMounted } from 'vue';
import { updateChannel } from '@/utils/Logic';
const globalStore = useGlobalStore();
onMounted(() => {
updateChannel()
})
</script>
<style scoped>
.channel-message {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
}
.channel-message p {
margin: 0;
}
.tag-channel {
font-size: 1.2em;
display: flex;
align-items: center;
gap: 3px;
}
</style>