2017-03-01 16:10:48 +00:00
|
|
|
import each from 'lodash/each';
|
2019-11-27 18:10:56 +00:00
|
|
|
import moment from 'moment';
|
2016-03-03 03:36:27 +00:00
|
|
|
import t from './translation';
|
2015-09-17 01:28:46 +00:00
|
|
|
|
2019-10-08 14:57:10 +00:00
|
|
|
const mysterySets = {
|
2015-09-17 01:28:46 +00:00
|
|
|
301404: {
|
|
|
|
|
start: '3014-03-24',
|
|
|
|
|
end: '3014-04-02',
|
|
|
|
|
},
|
|
|
|
|
301405: {
|
|
|
|
|
start: '3014-04-24',
|
|
|
|
|
end: '3014-05-02',
|
|
|
|
|
},
|
2017-03-14 19:31:10 +00:00
|
|
|
301703: {
|
|
|
|
|
start: '3017-03-14',
|
|
|
|
|
end: '3017-04-02',
|
|
|
|
|
},
|
|
|
|
|
301704: {
|
|
|
|
|
start: '3017-04-14',
|
|
|
|
|
end: '3017-05-02',
|
|
|
|
|
},
|
2015-12-13 04:03:17 +00:00
|
|
|
// @TODO: Remove wondercon from mystery-sets
|
2015-11-15 16:08:40 +00:00
|
|
|
wondercon: {
|
2015-09-17 01:28:46 +00:00
|
|
|
start: '2014-03-24',
|
2015-11-15 16:08:40 +00:00
|
|
|
end: '2014-04-01',
|
|
|
|
|
},
|
2015-09-17 01:28:46 +00:00
|
|
|
};
|
2019-11-27 18:10:56 +00:00
|
|
|
const FIRST_MYSTERY_SET = moment('2014-02-01');
|
|
|
|
|
|
|
|
|
|
for (
|
|
|
|
|
let mysteryMonth = FIRST_MYSTERY_SET;
|
2021-04-02 20:50:20 +00:00
|
|
|
moment(mysteryMonth).startOf('month').isSameOrBefore(moment().add(1, 'months'));
|
2019-11-27 18:10:56 +00:00
|
|
|
mysteryMonth = moment(mysteryMonth).add(1, 'months')
|
|
|
|
|
) {
|
|
|
|
|
const setKey = moment(mysteryMonth).format('YYYYMM');
|
|
|
|
|
mysterySets[setKey] = {
|
|
|
|
|
start: moment(mysteryMonth).startOf('month').format('YYYY-MM-DD'),
|
|
|
|
|
end: moment(mysteryMonth).endOf('month').format('YYYY-MM-DD'),
|
|
|
|
|
};
|
|
|
|
|
}
|
2015-09-17 01:28:46 +00:00
|
|
|
|
2015-11-15 16:08:40 +00:00
|
|
|
each(mysterySets, (value, key) => {
|
2015-11-15 17:04:17 +00:00
|
|
|
value.key = key;
|
2015-12-13 04:03:17 +00:00
|
|
|
value.text = t(`mysterySet${key}`);
|
2017-08-14 17:15:32 +00:00
|
|
|
value.class = `shop_set_mystery_${key}`;
|
2015-09-17 01:28:46 +00:00
|
|
|
});
|
|
|
|
|
|
2019-10-01 15:53:48 +00:00
|
|
|
export default mysterySets;
|