mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
Tidy-ups
This commit is contained in:
@@ -50,7 +50,7 @@ export default class ModificationsMenu extends TranslatedComponent {
|
|||||||
* @return {React.Component} List
|
* @return {React.Component} List
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
let { language, tooltip, termtip } = this.context;
|
let { tooltip, termtip } = this.context;
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn('select', this.props.className)}
|
className={cn('select', this.props.className)}
|
||||||
|
|||||||
@@ -26,8 +26,7 @@ export default class OffenceSummary extends TranslatedComponent {
|
|||||||
render() {
|
render() {
|
||||||
let ship = this.props.ship;
|
let ship = this.props.ship;
|
||||||
let { language, tooltip, termtip } = this.context;
|
let { language, tooltip, termtip } = this.context;
|
||||||
let { formats, translate, units } = language;
|
let { formats, translate } = language;
|
||||||
let hide = tooltip.bind(null, null);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import SlotSection from './SlotSection';
|
|||||||
import StandardSlot from './StandardSlot';
|
import StandardSlot from './StandardSlot';
|
||||||
import Module from '../shipyard/Module';
|
import Module from '../shipyard/Module';
|
||||||
import { diffDetails } from '../utils/SlotFunctions';
|
import { diffDetails } from '../utils/SlotFunctions';
|
||||||
import * as ModuleUtils from '../shipyard/ModuleUtils';
|
|
||||||
import * as ShipRoles from '../shipyard/ShipRoles';
|
import * as ShipRoles from '../shipyard/ShipRoles';
|
||||||
import { stopCtxPropagation } from '../utils/UtilityFunctions';
|
import { stopCtxPropagation } from '../utils/UtilityFunctions';
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import React from 'react';
|
|||||||
import { Modifications, Modules, Ships } from 'coriolis-data/dist';
|
import { Modifications, Modules, Ships } from 'coriolis-data/dist';
|
||||||
import Module from '../shipyard/Module';
|
import Module from '../shipyard/Module';
|
||||||
import Ship from '../shipyard/Ship';
|
import Ship from '../shipyard/Ship';
|
||||||
import * as ModuleUtils from '../shipyard/ModuleUtils';
|
|
||||||
|
|
||||||
|
|
||||||
// mapping from fd's ship model names to coriolis'
|
// mapping from fd's ship model names to coriolis'
|
||||||
const SHIP_FD_NAME_TO_CORIOLIS_NAME = {
|
const SHIP_FD_NAME_TO_CORIOLIS_NAME = {
|
||||||
@@ -240,7 +238,6 @@ export function shipFromJson(json) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add internal compartments
|
// Add internal compartments
|
||||||
let internalClassNum = -1;
|
|
||||||
let internalSlotNum = 1;
|
let internalSlotNum = 1;
|
||||||
for (let i in shipTemplate.slots.internal) {
|
for (let i in shipTemplate.slots.internal) {
|
||||||
const internalClassNum = shipTemplate.slots.internal[i];
|
const internalClassNum = shipTemplate.slots.internal[i];
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import * as Utils from './/UtilityFunctions';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a URL for the outiffing page
|
* Generates a URL for the outiffing page
|
||||||
* @param {String} shipId Ship Id
|
* @param {String} shipId Ship Id
|
||||||
|
|||||||
Reference in New Issue
Block a user