mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
Use import syntax
This commit is contained in:
parent
b7cd46a6fe
commit
301ce56a5b
6 changed files with 7 additions and 11 deletions
|
|
@ -1,5 +1,5 @@
|
|||
let each = require('lodash').each;
|
||||
let t = require('../helpers/translator');
|
||||
import {each} from 'lodash';
|
||||
import t from '../helpers/translator';
|
||||
|
||||
const DROP_EGGS = [
|
||||
'Wolf',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
let t = require('./helpers/translator');
|
||||
import t from './helpers/translator';
|
||||
|
||||
const NUMBER_OF_QUESTIONS = 12;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
require('coffee-script');
|
||||
var i18n = require('../../../../script/i18n.coffee');
|
||||
import i18n from '../../../../script/i18n.coffee';
|
||||
|
||||
var t = function(string, vars) {
|
||||
var func = function(lang) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
let each = require('lodash').each;
|
||||
import {each} from 'lodash';
|
||||
|
||||
let mysterySets = {
|
||||
201402: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
'use strict';
|
||||
|
||||
var t = require('../helpers/translator.js');
|
||||
import t from '../helpers/translator';
|
||||
|
||||
/*
|
||||
---------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
let t = require('./helpers/translator');
|
||||
import t from './helpers/translator';
|
||||
|
||||
let stable = {
|
||||
pets: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue