This commit is contained in:
24
frontend/app/pages/calculator3d.vue
Normal file
24
frontend/app/pages/calculator3d.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<script setup lang="ts">
|
||||
/* The 3D calculator's own address. Usually the space fills the page here;
|
||||
but when the book has this page open — laid on it from the search popup,
|
||||
beside the open articles — the pane holds the instance, and this host
|
||||
says nothing over it (the way the article route lets the book draw its
|
||||
pages). */
|
||||
|
||||
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('calc3d.metaTitle'),
|
||||
description: () => t('calc3d.metaDescription'),
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Calculator3DStage v-if="!heldByBook" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user