feat: добавил функцию форматирования имени пользователя и применил её в верхней панели и на главной странице
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 8s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 11s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 24s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 6s

This commit is contained in:
2026-05-11 02:04:42 +03:00
parent 610c15c9fd
commit fc380c7c51
3 changed files with 16 additions and 2 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import { useAuthStore } from '@/stores/auth'
import { useUserStore } from '@/stores/user'
import CoinChip from '@/components/ui/CoinChip.vue'
import SearchInput from '@/components/ui/SearchInput.vue'
import { formatUserName } from '@/utils/formatUserName'
const auth = useAuthStore()
const userStore = useUserStore()
@@ -65,7 +66,7 @@ function openProfile() {
@keydown.space.prevent="openProfile"
>
<span class="avatar-icon">👤</span>
<span class="avatar-name" v-if="auth.user">{{ auth.user.name.split(' ')[0] }}</span>
<span class="avatar-name" v-if="auth.user">{{ formatUserName(auth.user.name) }}</span>
</div>
</div>
</header>