Hangar/frontend/layouts/default.vue

44 lines
1.1 KiB
Vue
Raw Normal View History

2021-01-21 11:36:18 +08:00
<template>
<v-app>
2021-01-22 03:47:58 +08:00
<Header />
2021-01-21 11:36:18 +08:00
<v-main>
<v-container>
<Announcement v-for="(announcement, idx) in announcements" :key="idx" :announcement="announcement" />
2021-01-21 11:36:18 +08:00
<nuxt />
</v-container>
</v-main>
2021-02-06 03:50:18 +08:00
<HangarSnackbar />
2021-01-22 03:47:58 +08:00
<Footer />
2021-01-21 11:36:18 +08:00
</v-app>
</template>
2021-02-06 03:50:18 +08:00
<script lang="ts">
2021-01-21 11:36:18 +08:00
import { Component, Vue } from 'nuxt-property-decorator';
import Header from '~/components/layouts/Header';
import Footer from '~/components/layouts/Footer';
import Announcement from '~/components/layouts/Announcement';
2021-02-06 03:50:18 +08:00
import HangarSnackbar from '~/components/layouts/HangarSnackbar.vue';
2021-01-21 11:36:18 +08:00
@Component({
components: {
Header,
Footer,
Announcement,
2021-02-06 03:50:18 +08:00
HangarSnackbar,
},
})
2021-01-21 11:36:18 +08:00
export default class DefaultLayout extends Vue {
title = 'Hangar';
// TODO fetch from server
announcements = [
{
text:
'This is a staging server for testing purposes. Data could be deleted at any time. email confirmations are disabled. If you wanna help test, sneak into #hangar-dev',
2021-01-24 04:27:15 +08:00
color: 'red lighten-1',
},
];
2021-01-21 11:36:18 +08:00
}
</script>