0233f7b486
* Links stay white on hover * Fixed task icon color * Disabled plus button when needed * Fixed difficulty color * Fixed task reward color * Updated create styles * Fixed group plan link * Fixed second group test modal * Added login incentives * Fixed group notification clear * Show baily correctly * Styled armoire notification * Fixed contributor achievement styles * Fixed death * Fixed drop styles * Fixed invited friend modal * Fixed joined challenge achievement style * Fixed joined guild style * Fixed level up styles * Updated low health styles * Fixed bailey styles * Updated quest completed * Added soem conditionals to hide modals * Added rebirth styles * Fixed rebirth enable styles * Fixed streak styles * Fixed testing modals * Fixed ultimate gear achievement * Fixed won challenge * Set user to welcomed if created on mobile * Removed old default tasks * Began adding more options to avatar * Added change class * Inbox to messages * Moved profile to menu * Added user modal for viewing a user and send message * Fixed conversations * Fixed lint * Fixed challenges sending to server * Added challenge progress view * Fixed group sync after pay * Fixed some group accepting features * Fixed initial chat loading * Fixed some exitence errors * Added user names to assigned * Added upgrade link * Began adding new payment flow * Added default tasks * Updated avatar styles * Updated tutorial styles * Rebuilt notifications and styles * Updated upload script * Fixed lint * Added default tasks back to mobile and added updated tests * More test fixes
66 lines
1.7 KiB
Vue
66 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(: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 scope>
|
|
.achievement-karaoke-2x {
|
|
margin: 0 auto;
|
|
margin-top: 6em;
|
|
}
|
|
|
|
.avatar {
|
|
margin-left: 0em;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
import { mapState } from 'client/libs/store';
|
|
import bModal from 'bootstrap-vue/lib/components/modal';
|
|
import markdownDirective from 'client/directives/markdown';
|
|
import Avatar from '../avatar';
|
|
|
|
export default {
|
|
components: {
|
|
bModal,
|
|
Avatar,
|
|
},
|
|
directives: {
|
|
markdown: markdownDirective,
|
|
},
|
|
computed: {
|
|
...mapState({user: 'user.data'}),
|
|
},
|
|
data () {
|
|
let tweet = this.$t('wonChallengeShare');
|
|
return {
|
|
tweet,
|
|
};
|
|
},
|
|
methods: {
|
|
close () {
|
|
this.$root.$emit('hide::modal', 'won-challenge');
|
|
},
|
|
},
|
|
};
|
|
</script>
|