December 2024 and Winter Wonderland 2025 build (#15358)

* feat(content): Winter 2025 build by @CuriousMagpie

* fix(content): add more WW

* fix(content): add more WW

* chore(subproj): update habitica-images

* fix(gala): December 2024 is Winter 2025

* fix(content): lint, background typo, 0 index month

* fix(content): add missing mystery set name

* fix(content): roll back erroneous month indexing

* fix(tests): no 13th month, consider releases in schedule test

* update gear strings

* fix(seasonal): show quest modal

* fix(seasonal): use category-item component

* chore(subproj): update habitica-images

---------

Co-authored-by: CuriousMagpie <eilatan@gmail.com>
This commit is contained in:
Kalista Payne
2024-11-19 11:44:22 -06:00
committed by GitHub
parent 5c734cfa00
commit 1ed61a3d3d
17 changed files with 161 additions and 16 deletions
@@ -163,14 +163,7 @@
slot="itemBadge"
slot-scope="ctx"
>
<span
class="badge-top"
@click.prevent.stop="togglePinned(ctx.item)"
>
<pin-badge
:pinned="ctx.item.pinned"
/>
</span>
<category-item :item="ctx.item" />
</template>
</shopItem>
</div>
@@ -178,6 +171,23 @@
</div>
</div>
</div>
<buy-quest-modal
:item="selectedItemToBuy || {}"
:price-type="selectedItemToBuy ? selectedItemToBuy.currency : ''"
:with-pin="true"
>
<template
slot="item"
slot-scope="ctx"
>
<item
class="flat"
:item="ctx.item"
:item-content-class="ctx.item.class"
:show-popover="false"
/>
</template>
</buy-quest-modal>
</div>
</template>
@@ -346,11 +356,17 @@ import svgWizard from '@/assets/svg/wizard.svg';
import svgRogue from '@/assets/svg/rogue.svg';
import svgHealer from '@/assets/svg/healer.svg';
import BuyQuestModal from '../quests/buyQuestModal.vue';
import CategoryItem from '../market/categoryItem';
import FilterGroup from '@/components/ui/filterGroup';
import FilterSidebar from '@/components/ui/filterSidebar';
import { worldStateMixin } from '@/mixins/worldState';
export default {
components: {
BuyQuestModal,
CategoryItem,
FilterGroup,
FilterSidebar,
Checkbox,
PinBadge,
@@ -386,6 +402,7 @@ export default {
featuredGearBought: false,
currentEvent: null,
backgroundUpdate: new Date(),
selectedItemToBuy: null,
imageURLs: {
background: '',
npc: '',
@@ -550,7 +567,12 @@ export default {
return false;
},
itemSelected (item) {
this.$root.$emit('buyModal::showItem', item);
if (item.type === 'quests') {
this.selectedItemToBuy = item;
this.$root.$emit('bv::show::modal', 'buy-quest-modal');
} else {
this.$root.$emit('buyModal::showItem', item);
}
},
},
};