mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
feat(content): new Feathery Friends daterange
Also fixes up some style oddities in quest modals
This commit is contained in:
@@ -26,7 +26,10 @@
|
|||||||
class="content"
|
class="content"
|
||||||
>
|
>
|
||||||
<div class="inner-content">
|
<div class="inner-content">
|
||||||
<questDialogContent :item="item" />
|
<questDialogContent
|
||||||
|
:item="item"
|
||||||
|
:abbreviated="true"
|
||||||
|
/>
|
||||||
<div
|
<div
|
||||||
v-if="!item.locked"
|
v-if="!item.locked"
|
||||||
class="purchase-amount"
|
class="purchase-amount"
|
||||||
@@ -131,11 +134,6 @@
|
|||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.questInfo {
|
|
||||||
width: 70%;
|
|
||||||
margin: 0 auto 10px auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-sidebar {
|
.right-sidebar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -350px;
|
right: -350px;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
<questInfo
|
<questInfo
|
||||||
class="questInfo"
|
class="questInfo"
|
||||||
:quest="item"
|
:quest="item"
|
||||||
|
:abbreviated="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,42 +1,43 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div
|
||||||
|
class="d-flex flex-column justify-content-center"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="row"
|
v-if="quest.collect"
|
||||||
|
class="table-row m-auto"
|
||||||
>
|
>
|
||||||
<div
|
<dt>{{ $t('collect') + ':' }}</dt>
|
||||||
v-if="quest.collect"
|
<dd>
|
||||||
class="table-row"
|
<div
|
||||||
>
|
v-for="(collect, key) of quest.collect"
|
||||||
<dt>{{ $t('collect') + ':' }}</dt>
|
:key="key"
|
||||||
<dd>
|
>
|
||||||
<div
|
<span>{{ collect.count }} {{ getCollectText(collect) }}</span>
|
||||||
v-for="(collect, key) of quest.collect"
|
</div>
|
||||||
:key="key"
|
</dd>
|
||||||
>
|
|
||||||
<span>{{ collect.count }} {{ getCollectText(collect) }}</span>
|
|
||||||
</div>
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
v-if="quest.boss"
|
|
||||||
class="table-row"
|
|
||||||
>
|
|
||||||
<dt>{{ $t('bossHP') + ':' }}</dt>
|
|
||||||
<dd>{{ quest.boss.hp }}</dd>
|
|
||||||
</div>
|
|
||||||
<div class="table-row">
|
|
||||||
<dt>{{ $t('difficulty') + ':' }}</dt>
|
|
||||||
<dd>
|
|
||||||
<div
|
|
||||||
v-for="(star, index) of stars()"
|
|
||||||
:key="index"
|
|
||||||
class="svg-icon inline icon-16"
|
|
||||||
v-html="icons[star]"
|
|
||||||
></div>
|
|
||||||
</dd>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="quest.event">
|
<div
|
||||||
|
v-if="quest.boss"
|
||||||
|
class="table-row m-auto"
|
||||||
|
>
|
||||||
|
<dt>{{ $t('bossHP') + ':' }}</dt>
|
||||||
|
<dd>{{ quest.boss.hp }}</dd>
|
||||||
|
</div>
|
||||||
|
<div class="table-row m-auto">
|
||||||
|
<dt>{{ $t('difficulty') + ':' }}</dt>
|
||||||
|
<dd>
|
||||||
|
<div
|
||||||
|
v-for="(star, index) of stars()"
|
||||||
|
:key="index"
|
||||||
|
class="svg-icon inline icon-16"
|
||||||
|
v-html="icons[star]"
|
||||||
|
></div>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="quest.event && !abbreviated"
|
||||||
|
class="m-auto"
|
||||||
|
>
|
||||||
{{ limitedString }}
|
{{ limitedString }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -131,6 +132,10 @@ export default {
|
|||||||
quest: {
|
quest: {
|
||||||
type: Object,
|
type: Object,
|
||||||
},
|
},
|
||||||
|
abbreviated: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -21,8 +21,9 @@ const bundles = {
|
|||||||
'harpy',
|
'harpy',
|
||||||
'owl',
|
'owl',
|
||||||
],
|
],
|
||||||
|
event: EVENTS.potions202105,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBetween('2019-05-09', '2019-06-02');
|
return moment().isBefore(EVENTS.potions202105.end);
|
||||||
},
|
},
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
class: 'quest_bundle_featheredFriends',
|
class: 'quest_bundle_featheredFriends',
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
|
|||||||
purchaseType: 'bundles',
|
purchaseType: 'bundles',
|
||||||
path: `bundles.${item.key}`,
|
path: `bundles.${item.key}`,
|
||||||
pinType: 'bundles',
|
pinType: 'bundles',
|
||||||
|
event: item.event,
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case 'quests': // eslint-disable-line no-case-declarations
|
case 'quests': // eslint-disable-line no-case-declarations
|
||||||
|
|||||||
Reference in New Issue
Block a user