diff --git a/package-lock.json b/package-lock.json index 4ede53b72a..b82b7dfa3e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "habitica", - "version": "5.22.2", + "version": "5.22.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "habitica", - "version": "5.22.2", + "version": "5.22.3", "hasInstallScript": true, "dependencies": { "@babel/core": "^7.22.10", diff --git a/package.json b/package.json index 8457571696..22fc2361f8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "habitica", "description": "A habit tracker app which treats your goals like a Role Playing Game.", - "version": "5.22.2", + "version": "5.22.3", "main": "./website/server/index.js", "dependencies": { "@babel/core": "^7.22.10", diff --git a/website/client/src/components/shops/buyModal.vue b/website/client/src/components/shops/buyModal.vue index b373accaae..e50d4d542e 100644 --- a/website/client/src/components/shops/buyModal.vue +++ b/website/client/src/components/shops/buyModal.vue @@ -541,10 +541,6 @@ margin: auto -1rem -1rem; } - // .pt-015 { - // padding-top: 0.15rem; - // } - .gems-left { height: 32px; background-color: $green-100; @@ -596,8 +592,10 @@ import moment from 'moment'; import planGemLimits from '@/../../common/script/libs/planGemLimits'; import { drops as dropEggs } from '@/../../common/script/content/eggs'; import { drops as dropPotions } from '@/../../common/script/content/hatching-potions'; -import spellsMixin from '@/mixins/spells'; +import { avatarEditorUtilities } from '@/mixins/avatarEditUtilities'; import numberInvalid from '@/mixins/numberInvalid'; +import spellsMixin from '@/mixins/spells'; +import sync from '@/mixins/sync'; import svgClose from '@/assets/svg/close.svg'; import svgGold from '@/assets/svg/gold.svg'; @@ -644,7 +642,15 @@ export default { CountdownBanner, numberIncrement, }, - mixins: [buyMixin, currencyMixin, notifications, numberInvalid, spellsMixin], + mixins: [ + avatarEditorUtilities, + buyMixin, + currencyMixin, + notifications, + numberInvalid, + spellsMixin, + sync, + ], props: { // eslint-disable-next-line vue/require-default-prop item: { @@ -754,7 +760,7 @@ export default { this.selectedAmountToBuy = 1; }, - buyItem () { + async buyItem () { // @TODO: I think we should buying to the items. // Turn the items into classes, and use polymorphism if (this.item.buy) { @@ -827,7 +833,10 @@ export default { return; } - if (this.genericPurchase) { + if (this.item.purchaseType === 'customization') { + await this.unlock(this.item.path); + this.sync(); + } else if (this.genericPurchase) { this.makeGenericPurchase(this.item, 'buyModal', this.selectedAmountToBuy); this.purchased(this.item.text); } diff --git a/website/client/src/components/shops/customizations/index.vue b/website/client/src/components/shops/customizations/index.vue index a7d0233b3b..1c7bfc57aa 100644 --- a/website/client/src/components/shops/customizations/index.vue +++ b/website/client/src/components/shops/customizations/index.vue @@ -51,6 +51,7 @@ div:nth-of-type(8n) { - margin-right: 0px; - } - } - .npc { background-repeat: no-repeat; } diff --git a/website/client/src/components/shops/market/index.vue b/website/client/src/components/shops/market/index.vue index dae59eca2b..0a6b21f549 100644 --- a/website/client/src/components/shops/market/index.vue +++ b/website/client/src/components/shops/market/index.vue @@ -35,6 +35,7 @@ :hide-pinned="hidePinned" :hide-locked="hideLocked" :search-by="searchTextThrottled" + class="mb-4" />
@@ -121,6 +122,10 @@ height: 112px; } + .items { + max-width: 944px; + } + .market { .avatar { cursor: default; diff --git a/website/client/src/components/ui/itemRows.vue b/website/client/src/components/ui/itemRows.vue index 0dae56b50e..52d850ab14 100644 --- a/website/client/src/components/ui/itemRows.vue +++ b/website/client/src/components/ui/itemRows.vue @@ -18,7 +18,7 @@

@@ -29,7 +29,11 @@ @import '~@/assets/scss/colors.scss'; .item-rows { - margin-right: -1.5rem; + max-width: 944px; + } + + .btn-show-more { + max-width: 920px; } @@ -64,6 +68,10 @@ export default { maxItemsPerRow: { type: Number, }, + foldButton: { + type: Boolean, + default: true, + }, }, data () { return { @@ -82,7 +90,7 @@ export default { }, }, created () { - this.showAll = this.$_openedItemRows_isToggled(this.type); + this.showAll = this.$_openedItemRows_isToggled(this.type) || !this.foldButton; }, methods: { toggleItemsToShow () { diff --git a/website/client/src/components/ui/layoutSection.vue b/website/client/src/components/ui/layoutSection.vue index cabc28e630..956f06d384 100644 --- a/website/client/src/components/ui/layoutSection.vue +++ b/website/client/src/components/ui/layoutSection.vue @@ -1,5 +1,5 @@