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 // 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 // the event, to allow people in different timezones to still buy the
// event gear up until at least the actual end of the event. // 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'}, winter: {start:'2013-12-31',end:'2014-02-01'},
birthday: {start:'2013-01-30',end:'2014-02-01'}, birthday: {start:'2013-01-30',end:'2014-02-01'},
spring: {start:'2014-03-21',end:'2014-05-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; let faq = {};
var faq = {};
faq.questions = []; faq.questions = [];
for (var i = 0; i < NUMBER_OF_QUESTIONS; i++) { for (var i = 0; i < NUMBER_OF_QUESTIONS; i++) {
var question = { let question = {
question: t('faqQuestion' + i), question: t('faqQuestion' + i),
ios: t('iosFaqAnswer' + i), ios: t('iosFaqAnswer' + i),
web: t('webFaqAnswer' + i) web: t('webFaqAnswer' + i)

View File

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

View File

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

View File

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