forked from p15670423/monkey
Change to deep linking forteawesome images. This is because webpack doesn't seem to minimize the imports properly.
Saves 80kb
This commit is contained in:
parent
564f9a2cc6
commit
d5b659c3cd
|
@ -2,7 +2,8 @@ import React from 'react';
|
|||
import {BrowserRouter as Router, NavLink, Redirect, Route, Switch} from 'react-router-dom';
|
||||
import {Col, Grid, Row} from 'react-bootstrap';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { faCheck, faUndo } from '@fortawesome/free-solid-svg-icons'
|
||||
import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck'
|
||||
import { faUndo } from '@fortawesome/free-solid-svg-icons/faUndo'
|
||||
|
||||
import RunServerPage from 'components/pages/RunServerPage';
|
||||
import ConfigurePage from 'components/pages/ConfigurePage';
|
||||
|
|
|
@ -8,8 +8,8 @@ import '../../styles/Tooltip.scss';
|
|||
import {Col} from 'react-bootstrap';
|
||||
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faCircle as faCircle } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faCircle as faCircleThin } from '@fortawesome/free-regular-svg-icons';
|
||||
import { faCircle as faCircle } from '@fortawesome/free-solid-svg-icons/faCircle';
|
||||
import { faCircle as faCircleThin } from '@fortawesome/free-regular-svg-icons/faCircle';
|
||||
|
||||
class ConfigMatrixComponent extends AuthComponent {
|
||||
constructor(props) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { faHandPointLeft } from '@fortawesome/free-solid-svg-icons'
|
||||
import { faHandPointLeft } from '@fortawesome/free-solid-svg-icons/faHandPointLeft'
|
||||
import Toggle from 'react-toggle';
|
||||
import {OverlayTrigger, Tooltip} from 'react-bootstrap';
|
||||
import download from 'downloadjs'
|
||||
|
|
|
@ -2,7 +2,8 @@ import React from 'react';
|
|||
import {Col, Modal} from 'react-bootstrap';
|
||||
import {Link} from 'react-router-dom';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { faStopCircle, faMinus } from '@fortawesome/free-solid-svg-icons'
|
||||
import { faStopCircle } from '@fortawesome/free-solid-svg-icons/faStopCircle'
|
||||
import { faMinus } from '@fortawesome/free-solid-svg-icons/faMinus'
|
||||
import PreviewPaneComponent from 'components/map/preview-pane/PreviewPane';
|
||||
import {ReactiveGraph} from 'components/reactive-graph/ReactiveGraph';
|
||||
import {getOptions, edgeGroupToColor} from 'components/map/MapOptions';
|
||||
|
|
|
@ -5,7 +5,9 @@ import CopyToClipboard from 'react-copy-to-clipboard';
|
|||
import GridLoader from 'react-spinners/GridLoader';
|
||||
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faClipboard, faCheck, faSync } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faClipboard } from '@fortawesome/free-solid-svg-icons/faClipboard';
|
||||
import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';
|
||||
import { faSync } from '@fortawesome/free-solid-svg-icons/faSync';
|
||||
|
||||
import {Link} from 'react-router-dom';
|
||||
import AuthComponent from '../AuthComponent';
|
||||
|
@ -327,7 +329,7 @@ class RunMonkeyPageComponent extends AuthComponent {
|
|||
Choose the operating system where you want to run the monkey
|
||||
{this.state.ips.length > 1 ? ', and the interface to communicate with.' : '.'}
|
||||
</p>
|
||||
<Nav bsStyle='pills' id={'bootstrap-override'} className={'runOnOsButtons'}
|
||||
<Nav bsStyle='pills' id={'bootstrap-override'} className={'runOnOsButtons'}
|
||||
justified activeKey={this.state.selectedOs} onSelect={this.setSelectedOs}>
|
||||
<NavItem key='windows-32' eventKey='windows-32'>Windows (32 bit)</NavItem>
|
||||
<NavItem key='windows-64' eventKey='windows-64'>Windows (64 bit)</NavItem>
|
||||
|
|
|
@ -3,7 +3,10 @@ import {Col, Button} from 'react-bootstrap';
|
|||
import '../../styles/Collapse.scss';
|
||||
import '../../styles/report/AttackReport.scss';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import {faCircle, faEye, faEyeSlash, faRadiation} from '@fortawesome/free-solid-svg-icons';
|
||||
import {faCircle} from '@fortawesome/free-solid-svg-icons/faCircle';
|
||||
import {faRadiation} from '@fortawesome/free-solid-svg-icons/faRadiation';
|
||||
import {faEye} from '@fortawesome/free-solid-svg-icons/faEye';
|
||||
import {faEyeSlash} from '@fortawesome/free-solid-svg-icons/faEyeSlash';
|
||||
|
||||
import ReportHeader, {ReportTypes} from './common/ReportHeader';
|
||||
import {ScanStatus} from '../attack/techniques/Helpers';
|
||||
|
|
|
@ -16,7 +16,7 @@ import SecurityIssuesGlance from './common/SecurityIssuesGlance';
|
|||
import PrintReportButton from './common/PrintReportButton';
|
||||
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faMinus } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faMinus } from '@fortawesome/free-solid-svg-icons/faMinus';
|
||||
|
||||
let guardicoreLogoImage = require('../../images/guardicore-logo.png');
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import Collapse from '@kunukn/react-collapse';
|
|||
|
||||
import AttackReport from '../AttackReport';
|
||||
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
|
||||
import {faQuestionCircle} from '@fortawesome/free-solid-svg-icons';
|
||||
import {faQuestionCircle} from '@fortawesome/free-solid-svg-icons/faQuestionCircle';
|
||||
|
||||
const classNames = require('classnames');
|
||||
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
import React from 'react';
|
||||
import Collapse from '@kunukn/react-collapse';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { faQuestionCircle, faChevronUp, faChevronDown, faToggleOn } from '@fortawesome/free-solid-svg-icons'
|
||||
import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons/faQuestionCircle'
|
||||
import { faChevronUp } from '@fortawesome/free-solid-svg-icons/faChevronUp'
|
||||
import { faChevronDown } from '@fortawesome/free-solid-svg-icons/faChevronDown'
|
||||
import { faToggleOn } from '@fortawesome/free-solid-svg-icons/faToggleON'
|
||||
|
||||
import {Button} from 'react-bootstrap';
|
||||
import AttackReport from '../AttackReport';
|
||||
|
|
|
@ -4,7 +4,7 @@ import {Badge, Button} from 'react-bootstrap';
|
|||
import * as PropTypes from 'prop-types';
|
||||
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faList } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faList } from '@fortawesome/free-solid-svg-icons/faList';
|
||||
|
||||
export default class EventsButton extends Component {
|
||||
constructor(props) {
|
||||
|
|
|
@ -3,7 +3,7 @@ import {Button} from 'react-bootstrap';
|
|||
import * as PropTypes from 'prop-types';
|
||||
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faDownload } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faDownload } from '@fortawesome/free-solid-svg-icons/faDownload';
|
||||
|
||||
export default class ExportEventsButton extends Component {
|
||||
render() {
|
||||
|
|
|
@ -3,7 +3,13 @@ import {statusToLabelType} from './StatusLabel';
|
|||
import * as PropTypes from 'prop-types';
|
||||
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faDatabase, faUser, faWifi, faCloud, faLaptop, faEyeSlash, faCogs } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faDatabase } from '@fortawesome/free-solid-svg-icons/faDatabase';
|
||||
import { faUser } from '@fortawesome/free-solid-svg-icons/faUser';
|
||||
import { faWifi } from '@fortawesome/free-solid-svg-icons/faWifi';
|
||||
import { faCloud } from '@fortawesome/free-solid-svg-icons/faCloud';
|
||||
import { faLaptop } from '@fortawesome/free-solid-svg-icons/faLaptop';
|
||||
import { faEyeSlash } from '@fortawesome/free-solid-svg-icons/faEyeSlash';
|
||||
import { faCogs } from '@fortawesome/free-solid-svg-icons/faCogs';
|
||||
|
||||
const pillarToIcon = {
|
||||
'Data': faDatabase,
|
||||
|
|
|
@ -5,7 +5,7 @@ import {NavLink} from 'react-router-dom';
|
|||
import {Panel} from 'react-bootstrap';
|
||||
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faChevronDown } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faChevronDown } from '@fortawesome/free-solid-svg-icons/faChevronDown';
|
||||
|
||||
|
||||
class ZeroTrustReportLegend extends Component {
|
||||
|
|
|
@ -2,7 +2,10 @@ import React, {Component} from 'react';
|
|||
import * as PropTypes from 'prop-types';
|
||||
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faCheck, faExclamationTriangle, faBomb, faQuestion } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';
|
||||
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons/faExclamationTriangle';
|
||||
import { faBomb } from '@fortawesome/free-solid-svg-icons/faBomb';
|
||||
import { faQuestion } from '@fortawesome/free-solid-svg-icons/faQuestion';
|
||||
|
||||
const statusToIcon = {
|
||||
'Passed': faCheck,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faDownload } from '@fortawesome/free-solid-svg-icons';
|
||||
import { faDownload } from '@fortawesome/free-solid-svg-icons/faDownload';
|
||||
|
||||
class VersionComponent extends React.Component {
|
||||
constructor(props) {
|
||||
|
|
Loading…
Reference in New Issue