This commit is contained in:
25
frontend/app/pages/lean.vue
Normal file
25
frontend/app/pages/lean.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<script setup lang="ts">
|
||||
/* The Lean editor's own address. Usually the editor fills the page here;
|
||||
but when the book has this page open — laid on it from the sidebar or
|
||||
the search popup, beside the open articles — the pane holds the live
|
||||
session, and this host says nothing over it (the way the article route
|
||||
lets the book draw its pages). The editor itself is the wiki's own
|
||||
(`LeanWorkbench`): Monaco loads client-side, so the route is SSR-safe. */
|
||||
|
||||
definePageMeta({ transition: { name: 'page', mode: 'out-in' } })
|
||||
|
||||
const route = useRoute()
|
||||
const { t } = useI18n()
|
||||
const { tabs } = useArticleTabs()
|
||||
|
||||
const heldByBook = computed(() => tabAt(tabs.value, route.path)?.tool != null)
|
||||
|
||||
useSeoMeta({
|
||||
title: () => t('lean.metaTitle'),
|
||||
description: () => t('lean.metaDescription'),
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<LeanWorkbench v-if="!heldByBook" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user