Moves util/workflow.jsx to components/Workflow/WorkflowUtils.jsx and updates imports

This commit is contained in:
mabashian 2020-01-24 11:54:08 -05:00
parent eddb6e1faf
commit 492ea0616e
11 changed files with 10 additions and 10 deletions

View File

@ -4,7 +4,7 @@ import { withI18n } from '@lingui/react';
import { t } from '@lingui/macro';
import { bool, func, shape } from 'prop-types';
import { PlusIcon } from '@patternfly/react-icons';
import { constants as wfConstants } from '@util/workflow';
import { constants as wfConstants } from '@components/Workflow/WorkflowUtils';
import {
WorkflowActionTooltip,
WorkflowActionTooltipItem,

View File

@ -5,7 +5,7 @@ import {
getLinkOverlayPoints,
layoutGraph,
getTranslatePointsForZoom,
} from './workflow';
} from './WorkflowUtils';
describe('getScaleAndOffsetToFit', () => {
const gBoundingClientRect = {

View File

@ -4,7 +4,7 @@ import { t } from '@lingui/macro';
import styled from 'styled-components';
import { shape } from 'prop-types';
import { CardBody as PFCardBody } from '@patternfly/react-core';
import { layoutGraph } from '@util/workflow';
import { layoutGraph } from '@components/Workflow/WorkflowUtils';
import ContentError from '@components/ContentError';
import ContentLoading from '@components/ContentLoading';
import { WorkflowJobsAPI } from '@api';

View File

@ -4,7 +4,7 @@ import { arrayOf, bool, shape, func } from 'prop-types';
import {
getScaleAndOffsetToFit,
getTranslatePointsForZoom,
} from '@util/workflow';
} from '@components/Workflow/WorkflowUtils';
import {
WorkflowOutputLink,
WorkflowOutputNode,

View File

@ -4,7 +4,7 @@ import {
generateLine,
getLinePoints,
getLinkOverlayPoints,
} from '@util/workflow';
} from '@components/Workflow/WorkflowUtils';
function WorkflowOutputLink({ link, nodePositions, onUpdateLinkHelp }) {
const ref = useRef(null);

View File

@ -7,7 +7,7 @@ import { func, shape } from 'prop-types';
import { StatusIcon } from '@components/Sparkline';
import { WorkflowNodeTypeLetter } from '@components/Workflow';
import { secondsToHHMMSS } from '@util/dates';
import { constants as wfConstants } from '@util/workflow';
import { constants as wfConstants } from '@components/Workflow/WorkflowUtils';
const NodeG = styled.g`
cursor: ${props => (props.job ? 'pointer' : 'default')};

View File

@ -5,7 +5,7 @@ import { t } from '@lingui/macro';
import styled from 'styled-components';
import { shape } from 'prop-types';
import { BaseSizes, Title, TitleLevel } from '@patternfly/react-core';
import { layoutGraph } from '@util/workflow';
import { layoutGraph } from '@components/Workflow/WorkflowUtils';
import ContentError from '@components/ContentError';
import ContentLoading from '@components/ContentLoading';
import {

View File

@ -8,7 +8,7 @@ import {
getScaleAndOffsetToFit,
constants as wfConstants,
getTranslatePointsForZoom,
} from '@util/workflow';
} from '@components/Workflow/WorkflowUtils';
import {
WorkflowHelp,
WorkflowKey,

View File

@ -8,7 +8,7 @@ import {
generateLine,
getLinePoints,
getLinkOverlayPoints,
} from '@util/workflow';
} from '@components/Workflow/WorkflowUtils';
import {
WorkflowActionTooltip,
WorkflowActionTooltipItem,

View File

@ -10,7 +10,7 @@ import {
PlusIcon,
TrashAltIcon,
} from '@patternfly/react-icons';
import { constants as wfConstants } from '@util/workflow';
import { constants as wfConstants } from '@components/Workflow/WorkflowUtils';
import {
WorkflowActionTooltip,
WorkflowActionTooltipItem,