mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Es2015ify the js content
This commit is contained in:
@@ -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'},
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -4,6 +4,8 @@ _ = require 'lodash'
|
||||
moment = require 'moment'
|
||||
t = require './helpers/translator.js'
|
||||
|
||||
require('babel/register')
|
||||
|
||||
###
|
||||
---------------------------------------------------------------
|
||||
Gear (Weapons, Armor, Head, Shield)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user