Matteo Pagliazzi
98c019a0b6
Upgrade lodash to v4 and lint more files ( #8495 )
...
* common: import lodash modules separately
* remove test/content from .eslintignore, fix with eslint --fix content/index
* lint test/content
* lint content/index except for lodash methods
* upgrade server/models
* upgrade server/middlewares and server/libs
* port server/controllers/top-level
* port server/controllers/api-v3
* port views and tests
* client old port lodash and _(, missing _.
* upgrade client-old
* port common/script (root level files only)
* port common/script/fns
* port common/libs
* port common/script/ops
* port common/script/content and common/script/libs/shops.js
* misc fixes
* misc fixes
* misc fixes
* more tests fixes
* fix payments test stubbing, down to 2 failing tests
* remove more instances of lodash wrapping
* fix bug where toObject does not clone object
* fix tests
* upgrade migration or add lodash 4 note
* update shrinkwrap
* fix linting
* upgrade eslint-config-habitrpg
* update shrinkwrap
* recompile shrinkwrap
2017-03-01 17:10:48 +01:00
Alyssa Batula
d2756278c3
Only unequip Gen 1 pets/mounts when releasing pets/mounts, fixes #5366 ( #8119 )
...
* Only unequip Gen 1 pets/mounts when releasing pets/mounts
* Changed mount declaration to match releasePets
* Check if a pet/mount is a drop type instead of checking for its name in the list of pets
* Changed references to pet and mount to petInfo and mountInfo for consistency with releasePets and releaseMounts
* Test that releasePets, releaseMounts, and releaseBoth do not unequip quest pets
* Fixed test names, and tests verify that a pet/mount is/is not a drop pet/mount on release
* Removed unneeded comments
2016-10-20 22:00:15 -05:00
Kaitlin Hipkin
5f0c1687b5
Remove unused v2 code from /website/common/script ( #8034 )
...
* remove apiv2 behavior from ops
* remove apiv2 behavior from fns
2016-09-22 21:23:46 -05:00
Blade Barringer
81b7eeeb71
Common reorg ( #8025 )
...
* Re-organize common folder
* fix: Correct paths in tests
* fix: move new content to proper folder
* chore: Move audio folder to assets
* Move sprites to sprites assets directory
* Move css sprites to assets directory
* Split out readmes for common code and sprites
* Move images to assets directory
* Move destinatin of shared browserified file
* remove unused file
* move compiled js to client-old
* Fix karma tests
* fix: Correct paths for sprites
2016-09-16 17:18:07 +02:00