mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
* Added api token to page * Fixed wiki link * Added categoires * Removed extra create challenge button. Add prize model and user balance deduction * Added pending filter * Added member sort * Added confirmation for leaving * Filtered tavern * Added redirect to newly created guild * Made guild links routerlinks * Fixed wiki link and added fetch recent messages * Show backgrounds only on edit. Fixed glasses equip * Added link to register page * Added yesterdailies * Added achievement footer * Update guild badges * Added avatar to achievement avatar component * More guild crests updates * Achievement footer and avatar added * Added notification read * Removed duplicate string
29 lines
771 B
Vue
29 lines
771 B
Vue
<template lang="pug">
|
|
.modal-footer(style='margin-top:0', ng-init='loadWidgets()')
|
|
.container-fluid
|
|
.row.text-center
|
|
.col-4
|
|
a.twitter-share-button(:href='twitterLink') {{ $t('tweet') }}
|
|
.col-4
|
|
.fb-share-button(:data-href='achievementLink', data-layout='button')
|
|
.col-4
|
|
a.tumblr-share-button(:data-href='achievementLink', data-notes='none')
|
|
</template>
|
|
|
|
<script>
|
|
// @TODO:
|
|
let BASE_URL = 'https://habitica.com';
|
|
|
|
export default {
|
|
data () {
|
|
let tweet = this.$t('achievementShare');
|
|
|
|
return {
|
|
tweet,
|
|
achievementLink: `${BASE_URL}/social/achievement`,
|
|
twitterLink: `https://twitter.com/intent/tweet?text=${tweet}&via=habitica&url=${BASE_URL}/social/achievement&count=none`,
|
|
};
|
|
},
|
|
};
|
|
</script>
|