mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
* Added more styles to user profile modal and replaced memberDetail * Added notify library * Added edit avator * Added notification menu updates * Fixed lint issues * Added group invite functionality * Added many achievement modals * Added initial quest modals * Added guild, drops, and rebirth modals * Added the reset of the achievement modals and fixed lint
46 lines
1.2 KiB
Vue
46 lines
1.2 KiB
Vue
<template lang="pug">
|
|
b-modal#new-stuff(:title="$t('newStuff')", size='lg', :hide-footer="true")
|
|
.modal-header
|
|
| {{ this.$t('newStuff') }} by
|
|
a(target='_blank', href='https://twitter.com/Mihakuu') Bailey
|
|
.modal-body.new-stuff-modal.modal-fixed-height
|
|
div(:class="baileyClass")
|
|
br
|
|
br
|
|
div(ng-bind-html='latestBaileyMessage')
|
|
.modal-footer
|
|
a.btn.btn-info(href='http://habitica.wikia.com/wiki/Whats_New', target='_blank') {{ this.$t('newsArchive') }}
|
|
button.btn.btn-default(@click='close()') {{ this.$t('cool') }}
|
|
button.btn.btn-warning(@click='dismissAlert(); close()') {{ this.$t('dismissAlert') }}
|
|
</template>
|
|
|
|
<script>
|
|
import bModal from 'bootstrap-vue/lib/components/modal';
|
|
|
|
export default {
|
|
components: {
|
|
bModal,
|
|
},
|
|
data () {
|
|
let worldDmg = {
|
|
bailey: true,
|
|
};
|
|
|
|
return {
|
|
baileyClass: {
|
|
'npc_bailey_broken': worldDmg.bailey, // eslint-disable-line
|
|
'npc_bailey': !worldDmg.bailey, // eslint-disable-line
|
|
},
|
|
};
|
|
},
|
|
mounted () {
|
|
// @TODO: $http.get('/new-stuff.html') ?
|
|
},
|
|
methods: {
|
|
close () {
|
|
this.$root.$emit('hide::modal', 'new-stuff');
|
|
},
|
|
},
|
|
};
|
|
</script>
|