This commit is contained in:
2026-02-23 23:56:39 +03:00
parent 25750fee51
commit 2cc21bb284
15 changed files with 340 additions and 94 deletions

View File

@@ -1,20 +1,18 @@
<script setup lang="ts">
import ChatView from '@/views/ChatView.vue'
import LoginView from '@/views/LoginView.vue'
import { useAuthStore } from '@/stores/auth.ts'
import { computed } from 'vue'
import SignInView from '@/views/SignInView.vue'
const authStore = useAuthStore()
const isAuth = computed(() => !!authStore.token)
</script>
<template>
<v-app>
<v-main class="chat-fullscreen">
<v-container fluid class="h-100 pa-0">
<chat-view v-if="isAuth" />
<login-view v-else />
<chat-view v-if="authStore.isAuth" />
<sign-in-view v-else />
<!-- <sign-in-view />-->
</v-container>
</v-main>
</v-app>
@@ -24,7 +22,4 @@ const isAuth = computed(() => !!authStore.token)
.chat-fullscreen {
height: 100vh;
}
.message-shaped {
border-radius: 0 24px;
}
</style>