mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Moves util/workflow.jsx to components/Workflow/WorkflowUtils.jsx and updates imports
This commit is contained in:
parent
eddb6e1faf
commit
492ea0616e
@ -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,
|
||||
|
||||
@ -5,7 +5,7 @@ import {
|
||||
getLinkOverlayPoints,
|
||||
layoutGraph,
|
||||
getTranslatePointsForZoom,
|
||||
} from './workflow';
|
||||
} from './WorkflowUtils';
|
||||
|
||||
describe('getScaleAndOffsetToFit', () => {
|
||||
const gBoundingClientRect = {
|
||||
@ -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';
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -4,7 +4,7 @@ import {
|
||||
generateLine,
|
||||
getLinePoints,
|
||||
getLinkOverlayPoints,
|
||||
} from '@util/workflow';
|
||||
} from '@components/Workflow/WorkflowUtils';
|
||||
|
||||
function WorkflowOutputLink({ link, nodePositions, onUpdateLinkHelp }) {
|
||||
const ref = useRef(null);
|
||||
|
||||
@ -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')};
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -8,7 +8,7 @@ import {
|
||||
getScaleAndOffsetToFit,
|
||||
constants as wfConstants,
|
||||
getTranslatePointsForZoom,
|
||||
} from '@util/workflow';
|
||||
} from '@components/Workflow/WorkflowUtils';
|
||||
import {
|
||||
WorkflowHelp,
|
||||
WorkflowKey,
|
||||
|
||||
@ -8,7 +8,7 @@ import {
|
||||
generateLine,
|
||||
getLinePoints,
|
||||
getLinkOverlayPoints,
|
||||
} from '@util/workflow';
|
||||
} from '@components/Workflow/WorkflowUtils';
|
||||
import {
|
||||
WorkflowActionTooltip,
|
||||
WorkflowActionTooltipItem,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user