mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +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
|
// 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'},
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user