mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
43 lines
1.4 KiB
2 years ago
|
<script lang="ts" setup>
|
||
|
import { navigateTo } from '#app'
|
||
2 years ago
|
const { isLoading } = useGlobal()
|
||
|
const { sharedView } = useSharedView()
|
||
2 years ago
|
</script>
|
||
|
|
||
|
<script lang="ts">
|
||
|
export default {
|
||
|
name: 'SharedView',
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<a-layout id="nc-app">
|
||
2 years ago
|
<a-layout class="!flex-col bg-white">
|
||
2 years ago
|
<a-layout-header class="flex !bg-primary items-center text-white pl-3 pr-4 shadow-lg">
|
||
|
<div class="transition-all duration-200 p-2 cursor-pointer transform hover:scale-105" @click="navigateTo('/')">
|
||
|
<img width="35" alt="NocoDB" src="~/assets/img/icons/512x512-trans.png" />
|
||
|
</div>
|
||
2 years ago
|
<div>
|
||
|
<div class="flex justify-center items-center">
|
||
2 years ago
|
<div class="flex items-center gap-2 ml-3 text-white">
|
||
2 years ago
|
<template v-if="isLoading">
|
||
2 years ago
|
<span class="text-white">{{ $t('general.loading') }}</span>
|
||
2 years ago
|
|
||
2 years ago
|
<MdiReload :class="{ 'animate-infinite animate-spin ': isLoading }" />
|
||
2 years ago
|
</template>
|
||
2 years ago
|
<div v-else class="text-xl font-semibold truncate text-white nc-shared-view-title">
|
||
2 years ago
|
{{ sharedView?.title }}
|
||
2 years ago
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
2 years ago
|
<div class="flex-1" />
|
||
|
</a-layout-header>
|
||
|
|
||
|
<div class="w-full overflow-hidden" style="height: calc(100% - var(--header-height))">
|
||
|
<slot />
|
||
|
</div>
|
||
|
</a-layout>
|
||
|
</a-layout>
|
||
|
</template>
|