mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
* update bootstrap-vue to 1.0.0-beta.9 - remove all individual bootstrap components and use BootstrapVue into Vue * change modal action names from show::modal to bv::show::modal * check if drops are undefined * fix modal widths - sellModal now using input instead of dropbox * upgrade to bootstrap 4.0beta * include package-lock changes * fix app menu dropdown position * upgrade bootstrap to beta2 (was missing grid offset and other fixes) - refix header menu position * fix tags popup (auto width to max not working) - fix filter panel width (adding width: 100% works until max-width) * show hide logo on different screensize (new css breakpoints - http://getbootstrap.com/docs/4.0/utilities/display/ ) * fix package-lock? * fix active button style / app header toggle button * fix package-lock ! * update package lock after merge - new mixin "openedItemRows" to save the "show more/show less" in stable * mixin naming style * fix buyQuestModal marginTop * fix customMenuDropdown position * fix userDropdown items
67 lines
1.7 KiB
Vue
67 lines
1.7 KiB
Vue
<template lang="pug">
|
|
b-modal#won-challenge(:title="$t('wonChallenge')", size='md', :hide-footer="true")
|
|
.modal-body.text-center
|
|
h4(v-markdown='user.achievements.challenges[user.achievements.challenges.length - 1]')
|
|
.row
|
|
.col-4
|
|
.achievement-karaoke-2x
|
|
.col-4
|
|
// @TODO: +generatedAvatar({sleep: false})
|
|
avatar.avatar(:member='user', :avatar-only='true')
|
|
.col-4
|
|
.achievement-karaoke-2x
|
|
p {{ $t('congratulations') }}
|
|
br
|
|
button.btn.btn-primary(@click='close()') {{ $t('hurray') }}
|
|
.modal-footer
|
|
.col-3
|
|
a.twitter-share-button(href='https://twitter.com/intent/tweet?text=#{tweet}&via=habitica&url=#{env.BASE_URL}/social/won-challenge&count=none') {{ $t('tweet') }}
|
|
.col-4(style='margin-left:.8em')
|
|
.fb-share-button(data-href='#{env.BASE_URL}/social/won-challenge', data-layout='button')
|
|
.col-4(style='margin-left:.8em')
|
|
a.tumblr-share-button(data-href='#{env.BASE_URL}/social/won-challenge', data-notes='none')
|
|
</template>
|
|
|
|
<style scoped>
|
|
.achievement-karaoke-2x {
|
|
margin: 0 auto;
|
|
margin-top: 6em;
|
|
}
|
|
|
|
.avatar {
|
|
width: 140px;
|
|
margin: 0 auto;
|
|
margin-bottom: 1.5em;
|
|
margin-top: 1.5em;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
import { mapState } from 'client/libs/store';
|
|
import markdownDirective from 'client/directives/markdown';
|
|
import Avatar from '../avatar';
|
|
|
|
export default {
|
|
components: {
|
|
Avatar,
|
|
},
|
|
directives: {
|
|
markdown: markdownDirective,
|
|
},
|
|
computed: {
|
|
...mapState({user: 'user.data'}),
|
|
},
|
|
data () {
|
|
let tweet = this.$t('wonChallengeShare');
|
|
return {
|
|
tweet,
|
|
};
|
|
},
|
|
methods: {
|
|
close () {
|
|
this.$root.$emit('bv::hide::modal', 'won-challenge');
|
|
},
|
|
},
|
|
};
|
|
</script>
|