Es2015ify the js content

This commit is contained in:
Blade Barringer
2015-09-17 08:03:33 -05:00
parent eaaac546b9
commit d20354dd47
5 changed files with 13 additions and 19 deletions

View File

@@ -1,10 +1,8 @@
'use strict';
// IMPORTANT: The end date should be one to two days AFTER the actual end of
// the event, to allow people in different timezones to still buy the
// event gear up until at least the actual end of the event.
var events = {
let events = {
winter: {start:'2013-12-31',end:'2014-02-01'},
birthday: {start:'2013-01-30',end:'2014-02-01'},
spring: {start:'2014-03-21',end:'2014-05-01'},

View File

@@ -1,15 +1,13 @@
'use strict';
let t = require('./helpers/translator.js');
var t = require('./helpers/translator.js');
const NUMBER_OF_QUESTIONS = 12;
var NUMBER_OF_QUESTIONS = 12;
var faq = {};
let faq = {};
faq.questions = [];
for (var i = 0; i < NUMBER_OF_QUESTIONS; i++) {
var question = {
let question = {
question: t('faqQuestion' + i),
ios: t('iosFaqAnswer' + i),
web: t('webFaqAnswer' + i)

View File

@@ -4,6 +4,8 @@ _ = require 'lodash'
moment = require 'moment'
t = require './helpers/translator.js'
require('babel/register')
###
---------------------------------------------------------------
Gear (Weapons, Armor, Head, Shield)

View File

@@ -1,8 +1,6 @@
'use strict';
let each = require('lodash').each;
var each = require('lodash').each;
var mysterySets = {
let mysterySets = {
201402: {
start: '2014-02-22',
end: '2014-02-28',
@@ -114,8 +112,8 @@ var mysterySets = {
}
};
each(mysterySets, function(value, key) {
value.key = key;
each(mysterySets, (objectSet, name) => {
objectSet.key = name;
});
module.exports = mysterySets;

View File

@@ -1,8 +1,6 @@
'use strict';
let t = require('./helpers/translator.js');
var t = require('./helpers/translator.js');
var stable = {
let stable = {
pets: {
'Mammoth-Base': t('mammoth'),
'MantisShrimp-Base': t('mantisShrimp')