mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-20 21:59:40 +02:00
Some checks are pending
Docker Nightly Production / Backend Server Tests (push) Waiting to run
Docker Nightly Production / Frontend and End-to-End Tests (push) Waiting to run
Docker Nightly Production / Build Tagged Release (push) Blocked by required conditions
Docker Nightly Production / Notify Discord (push) Blocked by required conditions
* remove username/password banner * remove divider
40 lines
978 B
Vue
40 lines
978 B
Vue
<template>
|
|
<v-app dark>
|
|
<TheSnackbar />
|
|
|
|
<v-banner v-if="isDemo" sticky>
|
|
<div class="text-center">
|
|
<b> {{ $t("demo.info_message_with_version", { version: version }) }} </b>
|
|
</div>
|
|
</v-banner>
|
|
|
|
<v-main>
|
|
<v-scroll-x-transition>
|
|
<Nuxt />
|
|
</v-scroll-x-transition>
|
|
</v-main>
|
|
</v-app>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { computed, defineComponent, useContext } from "@nuxtjs/composition-api";
|
|
import TheSnackbar from "~/components/Layout/LayoutParts/TheSnackbar.vue";
|
|
import { useAppInfo } from "~/composables/api";
|
|
export default defineComponent({
|
|
components: { TheSnackbar },
|
|
setup() {
|
|
const appInfo = useAppInfo();
|
|
|
|
const isDemo = computed(() => appInfo?.value?.demoStatus || false);
|
|
|
|
const { i18n } = useContext();
|
|
const version = computed(() => appInfo?.value?.version || i18n.t("about.unknown-version"));
|
|
|
|
return {
|
|
appInfo,
|
|
isDemo,
|
|
version,
|
|
};
|
|
},
|
|
});
|
|
</script>
|