mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 22:16:00 -03:30
Moves util/workflow.jsx to components/Workflow/WorkflowUtils.jsx and updates imports
This commit is contained in:
@@ -4,7 +4,7 @@ import { withI18n } from '@lingui/react';
|
|||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import { bool, func, shape } from 'prop-types';
|
import { bool, func, shape } from 'prop-types';
|
||||||
import { PlusIcon } from '@patternfly/react-icons';
|
import { PlusIcon } from '@patternfly/react-icons';
|
||||||
import { constants as wfConstants } from '@util/workflow';
|
import { constants as wfConstants } from '@components/Workflow/WorkflowUtils';
|
||||||
import {
|
import {
|
||||||
WorkflowActionTooltip,
|
WorkflowActionTooltip,
|
||||||
WorkflowActionTooltipItem,
|
WorkflowActionTooltipItem,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
getLinkOverlayPoints,
|
getLinkOverlayPoints,
|
||||||
layoutGraph,
|
layoutGraph,
|
||||||
getTranslatePointsForZoom,
|
getTranslatePointsForZoom,
|
||||||
} from './workflow';
|
} from './WorkflowUtils';
|
||||||
|
|
||||||
describe('getScaleAndOffsetToFit', () => {
|
describe('getScaleAndOffsetToFit', () => {
|
||||||
const gBoundingClientRect = {
|
const gBoundingClientRect = {
|
||||||
@@ -4,7 +4,7 @@ import { t } from '@lingui/macro';
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { shape } from 'prop-types';
|
import { shape } from 'prop-types';
|
||||||
import { CardBody as PFCardBody } from '@patternfly/react-core';
|
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 ContentError from '@components/ContentError';
|
||||||
import ContentLoading from '@components/ContentLoading';
|
import ContentLoading from '@components/ContentLoading';
|
||||||
import { WorkflowJobsAPI } from '@api';
|
import { WorkflowJobsAPI } from '@api';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { arrayOf, bool, shape, func } from 'prop-types';
|
|||||||
import {
|
import {
|
||||||
getScaleAndOffsetToFit,
|
getScaleAndOffsetToFit,
|
||||||
getTranslatePointsForZoom,
|
getTranslatePointsForZoom,
|
||||||
} from '@util/workflow';
|
} from '@components/Workflow/WorkflowUtils';
|
||||||
import {
|
import {
|
||||||
WorkflowOutputLink,
|
WorkflowOutputLink,
|
||||||
WorkflowOutputNode,
|
WorkflowOutputNode,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
generateLine,
|
generateLine,
|
||||||
getLinePoints,
|
getLinePoints,
|
||||||
getLinkOverlayPoints,
|
getLinkOverlayPoints,
|
||||||
} from '@util/workflow';
|
} from '@components/Workflow/WorkflowUtils';
|
||||||
|
|
||||||
function WorkflowOutputLink({ link, nodePositions, onUpdateLinkHelp }) {
|
function WorkflowOutputLink({ link, nodePositions, onUpdateLinkHelp }) {
|
||||||
const ref = useRef(null);
|
const ref = useRef(null);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { func, shape } from 'prop-types';
|
|||||||
import { StatusIcon } from '@components/Sparkline';
|
import { StatusIcon } from '@components/Sparkline';
|
||||||
import { WorkflowNodeTypeLetter } from '@components/Workflow';
|
import { WorkflowNodeTypeLetter } from '@components/Workflow';
|
||||||
import { secondsToHHMMSS } from '@util/dates';
|
import { secondsToHHMMSS } from '@util/dates';
|
||||||
import { constants as wfConstants } from '@util/workflow';
|
import { constants as wfConstants } from '@components/Workflow/WorkflowUtils';
|
||||||
|
|
||||||
const NodeG = styled.g`
|
const NodeG = styled.g`
|
||||||
cursor: ${props => (props.job ? 'pointer' : 'default')};
|
cursor: ${props => (props.job ? 'pointer' : 'default')};
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { t } from '@lingui/macro';
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { shape } from 'prop-types';
|
import { shape } from 'prop-types';
|
||||||
import { BaseSizes, Title, TitleLevel } from '@patternfly/react-core';
|
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 ContentError from '@components/ContentError';
|
||||||
import ContentLoading from '@components/ContentLoading';
|
import ContentLoading from '@components/ContentLoading';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
getScaleAndOffsetToFit,
|
getScaleAndOffsetToFit,
|
||||||
constants as wfConstants,
|
constants as wfConstants,
|
||||||
getTranslatePointsForZoom,
|
getTranslatePointsForZoom,
|
||||||
} from '@util/workflow';
|
} from '@components/Workflow/WorkflowUtils';
|
||||||
import {
|
import {
|
||||||
WorkflowHelp,
|
WorkflowHelp,
|
||||||
WorkflowKey,
|
WorkflowKey,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
generateLine,
|
generateLine,
|
||||||
getLinePoints,
|
getLinePoints,
|
||||||
getLinkOverlayPoints,
|
getLinkOverlayPoints,
|
||||||
} from '@util/workflow';
|
} from '@components/Workflow/WorkflowUtils';
|
||||||
import {
|
import {
|
||||||
WorkflowActionTooltip,
|
WorkflowActionTooltip,
|
||||||
WorkflowActionTooltipItem,
|
WorkflowActionTooltipItem,
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import {
|
|||||||
PlusIcon,
|
PlusIcon,
|
||||||
TrashAltIcon,
|
TrashAltIcon,
|
||||||
} from '@patternfly/react-icons';
|
} from '@patternfly/react-icons';
|
||||||
import { constants as wfConstants } from '@util/workflow';
|
import { constants as wfConstants } from '@components/Workflow/WorkflowUtils';
|
||||||
import {
|
import {
|
||||||
WorkflowActionTooltip,
|
WorkflowActionTooltip,
|
||||||
WorkflowActionTooltipItem,
|
WorkflowActionTooltipItem,
|
||||||
|
|||||||
Reference in New Issue
Block a user