Matteo Pagliazzi
85fb5f33aa
fix test lint
2019-10-08 20:45:38 +02:00
Sabe Jones
3a8312832c
feat(content): new freebie glasses
...
Fixes #11171
2019-05-30 15:13:23 -05:00
Sabe Jones
6f7cd96e9f
Improved number validation ( #11131 )
...
* fix(purchasing): more number validation
* test(purchasing): add error cases
Also refactor NaN check and create client mixin
* fix(purchasing): cover "purchase" cases
2019-04-23 15:19:49 -05:00
Matteo Pagliazzi
0b8ce63c76
WIP: Improve User model performances ( #10832 )
...
* wip: define items as mixed objects
* add default owned gear
* mark modified
* more mark modified
* more mark modified
* more mark modified
* more mark modified
* fix common tests
* fix common tests
* update mongoose
* add itemsUtils
* use new util function in hall controller
* add tests for items utils
* update website/server to mark all items as modified
* start updating common code
* update login incentives
* update unlock
* remove changes to package-lock.json
* remove changes to package.json
2019-04-01 19:24:18 +02:00
Sabe Jones
97b99c0550
fix(tests): correct for new content, fix lint
2018-05-29 22:54:00 +00:00
negue
c26696a9eb
moving developer-only strings to api/common messages ( #10258 )
...
* move translatable string to apiMessages
* use apiMessages instead of res.t for groupIdRequired / keepOrRemove
* move pageMustBeNumber to apiMessages
* change apimessages
* move missingKeyParam to apiMessages
* move more strings to apiMessages
* fix lint
* revert lodash imports to fix tests
* fix webhook test
* fix test
* rollback key change of `keepOrRemove`
* remove unneeded `req.language` param
* extract more messages from i18n
* add missing `missingTypeParam` message
* Split api- and commonMessages
* fix test
* fix sanity
* merge messages to an object, rename commonMessage to errorMessage
* apiMessages -> apiError, commonMessages -> errorMessage, extract messages to separate objects
* fix test
* module.exports
2018-05-04 16:00:19 -05:00
SabreCat
9f06d78db6
Revert "moving developer-only strings to api messages ( #10188 )"
...
This reverts commit a42cb0e3ab . Testing hypothesis that this was causing Staging to break.
2018-04-15 17:09:15 +00:00
negue
a42cb0e3ab
moving developer-only strings to api messages ( #10188 )
...
* move translatable string to apiMessages
* use apiMessages instead of res.t for groupIdRequired / keepOrRemove
* move pageMustBeNumber to apiMessages
* change apimessages
* move missingKeyParam to apiMessages
* move more strings to apiMessages
* fix lint
* revert lodash imports to fix tests
* fix webhook test
* fix test
* rollback key change of `keepOrRemove`
* remove unneeded `req.language` param
* extract more messages from i18n
* add missing `missingTypeParam` message
2018-04-14 16:13:13 +02:00
negue
54153ec299
Refactor Purchase API - Part 1 ( #9714 )
...
* move to shops/purchase
* move files to /buy/ instead of /purchase/
* refactor buy.js - add more itemtypes
* revert moving special purchases to buy
* only use buyOp from api-routes
* fix buying potion client-side
* undo import buy instead of purchase
* enable potion bulk purchase - use buyGear as fallback (as before)
* move quantity purchase inside buyHealthPotion
* move quantity purchase inside buyQuest
* move quantity purchase inside buySpecialSpell + add analytics
* remove unused quantity variable - set req.type on specialKeys
* fix `buyKnownKeys` on buy api
* test buy-special-spell if not enough gold
* more buy ops coverage
* fix lint
* buyMysterySet: test for window.confirm, buyQuest: check for Masterclassers unlock
* fix test & lint
* re-create package-lock.json to travis build ?
* use global.window instead of method argument
* add back canOwn checks
* remove buyMysterySet confirm request
2018-02-10 11:14:40 +01:00
Keith Holliday
7fe2504906
Bulk purchasing ( #9196 )
...
* Moved buy tests
* Added mystery buy to buy.js
* Added quest purchasing to buy
* Added buy special
* Moved integration tests to buy folder
* Removed buyGear dependency
* Removed buyArmoire dependency
* Removed buyHealthPotion dependency
* Removed myster, quest and special dependency
* Replaced functions with factory
* Added bulk purchasing to common
* Added bulk purchasing to the api
* Added bulk purchasing to client
* Refactored purchasing function to reduce long method
* Added bulk purchase to gem purchases
* Added bulk purchasing to api
* Added bulk purchasing to gem items on client
* Removed bulk from equipment
* Removed recentlyPurchased
* Fixed style issues and prevented puchasing more gems than are left
* Fixed lint
* Fixed missing keys
* Fixed gem amount notice
* Added quest modal to pinned item
* Added bulk purchase to gem modal
* Fixed styles
* Fixed bulk purchase for spells
* Fixed modal size
* Hid autofill
2017-10-23 16:05:35 -05:00