mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Use import syntax
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
let each = require('lodash').each;
|
import {each} from 'lodash';
|
||||||
let t = require('../helpers/translator');
|
import t from '../helpers/translator';
|
||||||
|
|
||||||
const DROP_EGGS = [
|
const DROP_EGGS = [
|
||||||
'Wolf',
|
'Wolf',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
let t = require('./helpers/translator');
|
import t from './helpers/translator';
|
||||||
|
|
||||||
const NUMBER_OF_QUESTIONS = 12;
|
const NUMBER_OF_QUESTIONS = 12;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
require('coffee-script');
|
require('coffee-script');
|
||||||
var i18n = require('../../../../script/i18n.coffee');
|
import i18n from '../../../../script/i18n.coffee';
|
||||||
|
|
||||||
var t = function(string, vars) {
|
var t = function(string, vars) {
|
||||||
var func = function(lang) {
|
var func = function(lang) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
let each = require('lodash').each;
|
import {each} from 'lodash';
|
||||||
|
|
||||||
let mysterySets = {
|
let mysterySets = {
|
||||||
201402: {
|
201402: {
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
'use strict';
|
import t from '../helpers/translator';
|
||||||
|
|
||||||
var t = require('../helpers/translator.js');
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
---------------------------------------------------------------
|
---------------------------------------------------------------
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
let t = require('./helpers/translator');
|
import t from './helpers/translator';
|
||||||
|
|
||||||
let stable = {
|
let stable = {
|
||||||
pets: {
|
pets: {
|
||||||
|
|||||||
Reference in New Issue
Block a user