Update ed-forge import paths

This commit is contained in:
Felix Linker
2021-12-27 16:14:50 +01:00
parent d9763f2db7
commit c5bbeacc6a
15 changed files with 16 additions and 16 deletions

View File

@@ -5,7 +5,7 @@ import { stopCtxPropagation } from '../utils/UtilityFunctions';
import cn from 'classnames';
import { MountFixed, MountGimballed, MountTurret } from './SvgIcons';
import FuzzySearch from 'react-fuzzy';
import { getModuleInfo } from 'ed-forge/lib/data/items';
import { getModuleInfo } from 'ed-forge/lib/src/data/items';
import { groupBy, mapValues, sortBy } from 'lodash';
import autoBind from 'auto-bind';

View File

@@ -8,7 +8,7 @@ import TranslatedComponent from './TranslatedComponent';
import { ShoppingIcon } from './SvgIcons';
import autoBind from 'auto-bind';
import { assign, differenceBy, sortBy, reverse } from 'lodash';
import { FUEL_CAPACITY } from 'ed-forge/lib/ship-stats';
import { FUEL_CAPACITY } from 'ed-forge/lib/src/ship-stats';
/**
* Cost Section

View File

@@ -4,7 +4,7 @@ import TranslatedComponent from './TranslatedComponent';
import PieChart from './PieChart';
import VerticalBarChart from './VerticalBarChart';
import autoBind from 'auto-bind';
import { ARMOUR_METRICS, MODULE_PROTECTION_METRICS, SHIELD_METRICS } from 'ed-forge/lib/ship-stats';
import { ARMOUR_METRICS, MODULE_PROTECTION_METRICS, SHIELD_METRICS } from 'ed-forge/lib/src/ship-stats';
/**
* Defence information

View File

@@ -2,7 +2,7 @@ import React from 'react';
import autoBind from 'auto-bind';
import Persist from '../stores/Persist';
import PropTypes from 'prop-types';
import { getBlueprintUuid, getExperimentalUuid } from 'ed-forge/lib/data/blueprints';
import { getBlueprintUuid, getExperimentalUuid } from 'ed-forge/lib/src/data/blueprints';
import { Loader, MatIcon } from '../components/SvgIcons';
import request from 'superagent';
import { chain, entries } from 'lodash';

View File

@@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import TranslatedComponent from './TranslatedComponent';
import Slider from '../components/Slider';
import { moduleReduce } from 'ed-forge/lib/helper';
import { moduleReduce } from 'ed-forge/lib/src/helper';
/**
* Engagement range slider

View File

@@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import TranslatedComponent from './TranslatedComponent';
import LineChart from '../components/LineChart';
import { getBoostMultiplier, getSpeedMultipliers } from 'ed-forge/lib/stats/SpeedProfile';
import { getBoostMultiplier, getSpeedMultipliers } from 'ed-forge/lib/src/stats/SpeedProfile';
import { ShipProps } from 'ed-forge';
const { LADEN_MASS } = ShipProps;

View File

@@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import TranslatedComponent from './TranslatedComponent';
import LineChart from '../components/LineChart';
import { calculateJumpRange } from 'ed-forge/lib/stats/JumpRangeProfile';
import { calculateJumpRange } from 'ed-forge/lib/src/stats/JumpRangeProfile';
import { ShipProps } from 'ed-forge';
const { LADEN_MASS } = ShipProps;

View File

@@ -9,8 +9,8 @@ import {
blueprintTooltip,
specialToolTip
} from '../utils/BlueprintFunctions';
import { getBlueprintInfo, getExperimentalInfo } from 'ed-forge/lib/data/blueprints';
import { getModuleInfo } from 'ed-forge/lib/data/items';
import { getBlueprintInfo, getExperimentalInfo } from 'ed-forge/lib/src/data/blueprints';
import { getModuleInfo } from 'ed-forge/lib/src/data/items';
import { SHOW } from '../shipyard/StatsMapping';
/**

View File

@@ -5,7 +5,7 @@ import PieChart from './PieChart';
import { MountFixed, MountGimballed, MountTurret } from './SvgIcons';
import { Ship } from 'ed-forge';
import autoBind from 'auto-bind';
import { DAMAGE_METRICS } from 'ed-forge/lib/ship-stats';
import { DAMAGE_METRICS } from 'ed-forge/lib/src/ship-stats';
import { clone, mapValues, mergeWith, reverse, sortBy, sum, toPairs, values } from 'lodash';
/**

View File

@@ -5,7 +5,7 @@ import cn from 'classnames';
import TranslatedComponent from './TranslatedComponent';
import { wrapCtxMenu } from '../utils/UtilityFunctions';
import { Ship } from 'ed-forge';
import { POWER_METRICS } from 'ed-forge/lib/ship-stats';
import { POWER_METRICS } from 'ed-forge/lib/src/ship-stats';
import autoBind from 'auto-bind';
/**

View File

@@ -8,7 +8,7 @@ import ModificationsMenu from './ModificationsMenu';
import { stopCtxPropagation, wrapCtxMenu } from '../utils/UtilityFunctions';
import { blueprintTooltip } from '../utils/BlueprintFunctions';
import { Module } from 'ed-forge';
import { TYPES } from 'ed-forge/lib/data/slots';
import { TYPES } from 'ed-forge/lib/src/data/slots';
import autoBind from 'auto-bind';
import { toPairs } from 'lodash';

View File

@@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import TranslatedComponent from './TranslatedComponent';
import LineChart from '../components/LineChart';
import { moduleReduce } from 'ed-forge/lib/helper';
import { moduleReduce } from 'ed-forge/lib/src/helper';
import { chain, keys, mapValues, values } from 'lodash';
const DAMAGE_DEALT_COLORS = ['#FFFFFF', '#FF0000', '#00FF00', '#7777FF', '#FFFF00', '#FF00FF', '#00FFFF', '#777777'];

View File

@@ -5,7 +5,7 @@ import Page from './Page';
import Router from '../Router';
import Persist from '../stores/Persist';
import { Factory, Ship } from 'ed-forge';
import { OBJECT_EVENT } from 'ed-forge/lib/Ship';
import { OBJECT_EVENT } from 'ed-forge/lib/src/Ship';
import { outfitURL } from '../utils/UrlGenerators';
import {
FloppyDisk,

View File

@@ -2,7 +2,7 @@ import React from 'react';
import Page from './Page';
import cn from 'classnames';
import { Factory } from 'ed-forge';
import { JUMP_METRICS } from 'ed-forge/lib/ship-stats';
import { JUMP_METRICS } from 'ed-forge/lib/src/ship-stats';
import { SizeMap } from '../shipyard/Constants';
import Link from '../components/Link';

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { Module } from 'ed-forge';
import { getBlueprintInfo, getExperimentalInfo } from 'ed-forge/lib/data/blueprints';
import { getBlueprintInfo, getExperimentalInfo } from 'ed-forge/lib/src/data/blueprints';
import { fromPairs, keys, uniq } from 'lodash';
/**