mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-12-09 06:32:43 +08:00
e1ea6eb2c5
* formatting * remove imports from 'vue-property-decorator' * only notify of version reviews if its the last open review that is reviewed
27 lines
626 B
Vue
27 lines
626 B
Vue
<template>
|
|
<v-alert :color="announcement.color" dense>
|
|
{{ announcement.text }}
|
|
</v-alert>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { Component, Prop, Vue } from 'nuxt-property-decorator';
|
|
import { Announcement as AnnouncementObject } from 'hangar-api';
|
|
import { PropType } from 'vue';
|
|
|
|
@Component
|
|
export default class Announcement extends Vue {
|
|
@Prop({ type: Object as PropType<AnnouncementObject>, required: true })
|
|
announcement!: AnnouncementObject;
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.v-alert {
|
|
text-align: center;
|
|
margin-bottom: 1rem;
|
|
flex: 0 0 100%;
|
|
max-width: 100%;
|
|
}
|
|
</style>
|