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
@@ -10,6 +10,7 @@ import LectureCard from '@/components/ui/LectureCard.vue'
import ProgressBar from '@/components/ui/ProgressBar.vue'
import AchievementBadge from '@/components/ui/AchievementBadge.vue'
import EmptyState from '@/components/ui/EmptyState.vue'
import { formatUserName } from '@/utils/formatUserName'
const auth = useAuthStore()
const lectures = useLecturesStore()
@@ -39,7 +40,7 @@ onMounted(async () => {
<div class="dashboard page-content">
<div class="dashboard-welcome">
<div>
<h1 class="page-title">Добрый день, {{ user.name.split(' ')[0] }}! 👋</h1>
<h1 class="page-title">Добрый день, {{ formatUserName(user.name) }}! 👋</h1>
<p class="text-secondary">{{ user.institute }} · {{ user.direction }} · {{ user.year }} курс</p>
</div>
<div class="quick-actions">