JSn1nj4 58c4fcd506 Fix sellModal data caching (#11044)
* Several deps set to "optional" in lock file

This was done automatically when running `npm i` on Windows.

Node v10.15.2
NPM 6.4.1

* Begin working on issue #10687

Key files to look into:
- website/client/components/inventory/item.vue
- website/client/components/shops/market/sellModal.vue

File notes for me:

item.vue: provides wrapper for displaying item data.

sellModel.vue: for displaying items player intends to sell
- lines 10-21: check `item` computed property and load `item` component
- lines 151-153: ask how return line is evaluated to an `item`

The last one could be important to figuring out this caching issue.
Since the property is computed, it's possible that line is evaluating to
a truthy value that Vue is seeing as unchanged, even if the actual
`item` object is different each time.

* Pick up from sellModal.vue:155

This is where the item context seems to be set. The Vue dev tools
indicate that the `<item>` component is updating. It's only the `item`
reference inside of the `<sellModal>` component that isn't updating.

Issue #10687

* Remove (v-once) directive

This was preventing data referenced within nested elements from
updating.

Issue #10687

* Revert package-lock.json to "develop" version

This removes the "optional" settings that were automatically added by NPM to a handful of dependencies while working on PR #11044.

* Attempt to rerun tests

The most recent change shouldn't have caused tests to fail.
2019-03-21 16:52:00 -05:00
2017-10-12 16:44:28 +02:00
2019-01-24 11:21:52 +00:00
2018-12-14 15:14:50 -06:00
2019-03-15 10:31:08 -05:00
2018-03-15 19:59:36 +01:00
2016-12-28 09:33:24 +01:00
2016-09-07 08:44:57 -05:00
2016-12-26 16:04:36 +01:00
2019-02-14 13:25:40 -06:00
2018-12-04 17:28:27 -06:00
2018-12-04 17:28:27 -06:00
2018-12-04 17:28:27 -06:00
2016-06-21 06:42:20 -05:00
2019-03-21 16:36:16 -05:00
2019-03-21 16:36:16 -05:00
2016-05-23 13:58:31 +02:00
2019-01-24 11:21:52 +00:00
2019-01-24 11:21:52 +00:00

Habitica Build Status Code Climate Coverage Status Bountysource Open Source Helpers

Greenkeeper badge

Habitica is an open source habit building program which treats your life like a Role Playing Game. Level up as you succeed, lose HP as you fail, earn money to buy weapons and armor.

We need more programmers! Your assistance will be greatly appreciated.

For an introduction to the technologies used and how the software is organized, refer to Guidance for Blacksmiths.

To set up a local install of Habitica for development and testing on various platforms, see Setting up Habitica Locally.

S
Description
A habit tracker app which treats your goals like a Role Playing Game.
Readme 1.9 GiB
Languages
JavaScript 51.7%
Vue 23.8%
CSS 23.7%
SCSS 0.7%