mirror of
https://github.com/gromlab-ru/slm-design.git
synced 2026-08-22 07:30:16 +03:00
30 lines
772 B
Vue
30 lines
772 B
Vue
|
|
<script setup lang="ts">
|
|||
|
|
import { computed } from 'vue'
|
|||
|
|
import { useData } from 'vitepress'
|
|||
|
|
import DefaultTheme from 'vitepress/theme'
|
|||
|
|
import DocSetHeader from './DocSetHeader.vue'
|
|||
|
|
|
|||
|
|
const { Layout } = DefaultTheme
|
|||
|
|
const { lang } = useData()
|
|||
|
|
|
|||
|
|
const bannerText = computed(() =>
|
|||
|
|
lang.value.startsWith('ru')
|
|||
|
|
? 'SLM 2.0 DRAFT / Не заменяет действующую документацию'
|
|||
|
|
: 'SLM 2.0 DRAFT / Not the current stable documentation',
|
|||
|
|
)
|
|||
|
|
</script>
|
|||
|
|
|
|||
|
|
<template>
|
|||
|
|
<Layout>
|
|||
|
|
<template #layout-top>
|
|||
|
|
<div class="draft-banner">
|
|||
|
|
<span class="draft-banner__mark" aria-hidden="true" />
|
|||
|
|
{{ bannerText }}
|
|||
|
|
</div>
|
|||
|
|
</template>
|
|||
|
|
<template #sidebar-nav-before>
|
|||
|
|
<DocSetHeader />
|
|||
|
|
</template>
|
|||
|
|
</Layout>
|
|||
|
|
</template>
|