mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
* toggle pinned state of items server + client * pin quests / add pin src * add officially pinned items and api to get in app rewards * update schema and get items deatils * update pin actions to the new logic * show countBadge only with a number * extract getPinKey - pin seasonal items * togglePinned in buy-dialogs * add pinKey to shop items * wip * wip * fix path * togglePinnedItem as common.op / use in client * fix linting * pinning: getItemInfo and save in db path and type * make api more consistent, fix bugs * updates * fix bugs * update actions to current api * marketGear * change to pinType * add mystery_set to getItemInfo * fix isPinned * ignore animals * list shopItems (initial) * shopItem now has default popoverconent, itemclass and price / currency - list pinned items as rewards - attributes to gear * show buyModal for the rewards * show mystery_set icon * add info whether item is suggested * write migration, fix style issues * pin potion and armoire * make potion, armoire not unpinnable * show notes for armoire and potion, add default items for new users * show unpin notification * add/remove pinned gear on class-change * remove pinned & add new gear on purchase - refactoring pinning methods - fixes * always allow to purchase armoire * highlight item if suggested
203 lines
3.3 KiB
JavaScript
203 lines
3.3 KiB
JavaScript
import each from 'lodash/each';
|
|
import t from './translation';
|
|
|
|
let mysterySets = {
|
|
201402: {
|
|
start: '2014-02-22',
|
|
end: '2014-02-28',
|
|
},
|
|
201403: {
|
|
start: '2014-03-24',
|
|
end: '2014-04-02',
|
|
},
|
|
201404: {
|
|
start: '2014-04-24',
|
|
end: '2014-05-02',
|
|
},
|
|
201405: {
|
|
start: '2014-05-21',
|
|
end: '2014-06-02',
|
|
},
|
|
201406: {
|
|
start: '2014-06-23',
|
|
end: '2014-07-02',
|
|
},
|
|
201407: {
|
|
start: '2014-07-23',
|
|
end: '2014-08-02',
|
|
},
|
|
201408: {
|
|
start: '2014-08-23',
|
|
end: '2014-09-02',
|
|
},
|
|
201409: {
|
|
start: '2014-09-24',
|
|
end: '2014-10-02',
|
|
},
|
|
201410: {
|
|
start: '2014-10-24',
|
|
end: '2014-11-02',
|
|
},
|
|
201411: {
|
|
start: '2014-11-24',
|
|
end: '2014-12-02',
|
|
},
|
|
201412: {
|
|
start: '2014-12-25',
|
|
end: '2015-01-02',
|
|
},
|
|
201501: {
|
|
start: '2015-01-26',
|
|
end: '2015-02-02',
|
|
},
|
|
201502: {
|
|
start: '2015-02-24',
|
|
end: '2015-03-02',
|
|
},
|
|
201503: {
|
|
start: '2015-03-25',
|
|
end: '2015-04-02',
|
|
},
|
|
201504: {
|
|
start: '2015-04-24',
|
|
end: '2015-05-02',
|
|
},
|
|
201505: {
|
|
start: '2015-05-25',
|
|
end: '2015-06-02',
|
|
},
|
|
201506: {
|
|
start: '2015-06-25',
|
|
end: '2015-07-02',
|
|
},
|
|
201507: {
|
|
start: '2015-07-24',
|
|
end: '2015-08-02',
|
|
},
|
|
201508: {
|
|
start: '2015-08-23',
|
|
end: '2015-09-02',
|
|
},
|
|
201509: {
|
|
start: '2015-09-24',
|
|
end: '2015-10-02',
|
|
},
|
|
201510: {
|
|
start: '2015-10-26',
|
|
end: '2015-11-02',
|
|
},
|
|
201511: {
|
|
start: '2015-11-25',
|
|
end: '2015-12-02',
|
|
},
|
|
201512: {
|
|
start: '2015-12-23',
|
|
end: '2016-01-02',
|
|
},
|
|
201601: {
|
|
start: '2016-01-26',
|
|
end: '2016-02-02',
|
|
},
|
|
201602: {
|
|
start: '2016-02-24',
|
|
end: '2016-03-02',
|
|
},
|
|
201603: {
|
|
start: '2016-03-24',
|
|
end: '2016-04-02',
|
|
},
|
|
201604: {
|
|
start: '2016-04-25',
|
|
end: '2016-05-02',
|
|
},
|
|
201605: {
|
|
start: '2016-05-25',
|
|
end: '2016-06-02',
|
|
},
|
|
201606: {
|
|
start: '2016-06-23',
|
|
end: '2016-07-02',
|
|
},
|
|
201607: {
|
|
start: '2016-07-26',
|
|
end: '2016-08-02',
|
|
},
|
|
201608: {
|
|
start: '2016-08-23',
|
|
end: '2016-09-02',
|
|
},
|
|
201609: {
|
|
start: '2016-09-22',
|
|
end: '2016-10-02',
|
|
},
|
|
201610: {
|
|
start: '2016-10-25',
|
|
end: '2016-11-02',
|
|
},
|
|
201611: {
|
|
start: '2016-11-22',
|
|
end: '2016-12-02',
|
|
},
|
|
201612: {
|
|
start: '2016-12-21',
|
|
end: '2017-01-02',
|
|
},
|
|
201701: {
|
|
start: '2017-01-24',
|
|
end: '2017-02-02',
|
|
},
|
|
201702: {
|
|
start: '2017-02-21',
|
|
end: '2017-03-02',
|
|
},
|
|
201703: {
|
|
start: '2017-03-23',
|
|
end: '2017-04-02',
|
|
},
|
|
201704: {
|
|
start: '2017-04-25',
|
|
end: '2017-05-02',
|
|
},
|
|
201705: {
|
|
start: '2017-05-23',
|
|
end: '2017-06-02',
|
|
},
|
|
201706: {
|
|
start: '2017-06-22',
|
|
end: '2017-07-02',
|
|
},
|
|
201707: {
|
|
start: '2017-07-25',
|
|
end: '2017-08-02',
|
|
},
|
|
301404: {
|
|
start: '3014-03-24',
|
|
end: '3014-04-02',
|
|
},
|
|
301405: {
|
|
start: '3014-04-24',
|
|
end: '3014-05-02',
|
|
},
|
|
301703: {
|
|
start: '3017-03-14',
|
|
end: '3017-04-02',
|
|
},
|
|
301704: {
|
|
start: '3017-04-14',
|
|
end: '3017-05-02',
|
|
},
|
|
// @TODO: Remove wondercon from mystery-sets
|
|
wondercon: {
|
|
start: '2014-03-24',
|
|
end: '2014-04-01',
|
|
},
|
|
};
|
|
|
|
each(mysterySets, (value, key) => {
|
|
value.key = key;
|
|
value.text = t(`mysterySet${key}`);
|
|
value.class = `shop_set_mystery_${key}`;
|
|
});
|
|
|
|
module.exports = mysterySets;
|