238af440e3
* feat(plugin-workflow): add loop instruction * fix(plugin-workflow): fix lint error * feat(plugin-workflow): add loop variable in client * feat(plugin-workflow): refactor and add job list to nodes in execution * feat(plugin-workflow): allow to query multiple records * fix(plugin-workflow): fix i18n * fix(plugin-workflow): fix undefined value in component * fix(plugin-workflow): fix parse context value with current node * fix(plugin-workflow): fix revision with scope variable * test(plugin-workflow): add failing case * fix(plugin-workflow): fix revision with scope variable * chore(plugin-workflow): fix lint errors * fix(plugin-workflow): fix workflow canvas page style * fix(plugin-workflow): revert abstracted node config drawer back to each node * fix(plugin-workflow): fix parallel extra call * fix(plugin-workflow): fix parallel branch end * fix(plugin-workflow): fix jobs variable in processor * fix(plugin-workflow): fix workflow canvas scroll style * fix(plugin-workflow): fix slowly opening job modal * fix(plugin-workflow): fix cycling reference
25 lines
668 B
TypeScript
25 lines
668 B
TypeScript
import React from 'react';
|
|
import { Tag } from 'antd';
|
|
import { cx } from '@emotion/css';
|
|
|
|
import { Branch } from './Branch';
|
|
import { lang } from './locale';
|
|
import { branchBlockClass, nodeCardClass, nodeMetaClass } from './style';
|
|
import { TriggerConfig } from './triggers';
|
|
|
|
export function CanvasContent({ entry }) {
|
|
return (
|
|
<div className="workflow-canvas">
|
|
<TriggerConfig />
|
|
<div className={branchBlockClass}>
|
|
<Branch entry={entry} />
|
|
</div>
|
|
<div className={cx('end', nodeCardClass)}>
|
|
<div className={cx(nodeMetaClass)}>
|
|
<Tag color="#333">{lang('End')}</Tag>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|