2021-01-21 11:36:18 +08:00
< template >
< v -app >
2021-01-22 03:47:58 +08:00
< Header / >
2021-01-22 06:24:50 +08:00
2021-01-21 11:36:18 +08:00
< v -main >
< v -container >
2021-02-04 17:34:24 +08:00
< Announcement v -for = " ( announcement , idx ) in announcements " :key ="idx" :announcement ="announcement" / >
2021-01-22 06:24:50 +08:00
2021-01-21 11:36:18 +08:00
< nuxt / >
< / v - c o n t a i n e r >
< / v - m a i n >
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 - a p p >
< / 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' ;
2021-02-04 17:34:24 +08:00
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
2021-02-04 17:34:24 +08:00
@ Component ( {
components : {
Header ,
Footer ,
Announcement ,
2021-02-06 03:50:18 +08:00
HangarSnackbar ,
2021-02-04 17:34:24 +08:00
} ,
} )
2021-01-21 11:36:18 +08:00
export default class DefaultLayout extends Vue {
title = 'Hangar' ;
2021-01-22 06:24:50 +08:00
// 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-22 06:24:50 +08:00
} ,
] ;
2021-01-21 11:36:18 +08:00
}
< / script >