feat: implement version display with commit hash and date
This commit is contained in:
@@ -167,6 +167,16 @@
|
||||
{{ userInitials }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Версия сборки (всегда внизу) -->
|
||||
<div v-if="!sidebarCollapsed" class="px-4 py-3 border-t border-gray-200 text-xs text-gray-500">
|
||||
{{ versionStore.getFormattedVersion(t) }}
|
||||
</div>
|
||||
<div v-else class="p-2 border-t border-gray-200 flex justify-center">
|
||||
<div class="text-xs text-gray-500 font-mono" :title="versionStore.getFormattedVersion(t)">
|
||||
{{ versionStore.version?.commitHash?.slice(0, 6) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
@@ -256,9 +266,11 @@ import { useSettingsStore } from '@/stores/settings'
|
||||
import { useUserStore } from '@/stores/user'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useNotification } from '@/composables/useNotification'
|
||||
import { useVersionStore } from '@/stores/version'
|
||||
|
||||
const { notification, showNotification } = useNotification()
|
||||
const settings = useSettingsStore()
|
||||
const versionStore = useVersionStore()
|
||||
const userStore = useUserStore()
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
|
||||
Reference in New Issue
Block a user