2022-03-27 07:51:48 +00:00
|
|
|
import { css } from '@emotion/css';
|
|
|
|
|
|
|
|
export const workflowPageClass = css`
|
2023-05-16 01:45:45 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-toolbar {
|
2022-05-12 04:19:25 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2023-05-16 01:45:45 +00:00
|
|
|
position: relative;
|
2022-05-12 04:19:25 +00:00
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
background: #fff;
|
2023-05-16 01:45:45 +00:00
|
|
|
border-bottom: 1px solid #e7e7e7;
|
2022-05-12 04:19:25 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
header {
|
2022-05-12 04:19:25 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-11-13 10:12:56 +00:00
|
|
|
min-height: 2rem;
|
2022-05-12 04:19:25 +00:00
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
aside {
|
2022-05-12 04:19:25 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-04-25 05:12:14 +00:00
|
|
|
gap: 0.5em;
|
2022-05-12 04:19:25 +00:00
|
|
|
}
|
2022-11-13 10:12:56 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-versions {
|
|
|
|
label {
|
|
|
|
margin-right: 0.5em;
|
2022-11-13 10:12:56 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-12 04:19:25 +00:00
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-canvas {
|
2023-05-16 01:45:45 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
overflow: auto;
|
|
|
|
width: 100%;
|
2022-03-27 07:51:48 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
padding: 2em;
|
2023-03-29 10:16:46 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.end {
|
2023-03-29 10:16:46 +00:00
|
|
|
cursor: default;
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
&:hover {
|
|
|
|
box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
|
2023-03-29 10:16:46 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-27 07:51:48 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-05-12 04:19:25 +00:00
|
|
|
export const workflowVersionDropdownClass = css`
|
2023-04-25 05:12:14 +00:00
|
|
|
.ant-dropdown-menu-item {
|
|
|
|
.ant-dropdown-menu-title-content {
|
2022-05-12 04:19:25 +00:00
|
|
|
text-align: right;
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
time {
|
2022-05-12 04:19:25 +00:00
|
|
|
margin-left: 0.5rem;
|
|
|
|
color: #999;
|
|
|
|
font-size: 80%;
|
|
|
|
}
|
2023-04-02 05:24:25 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
strong {
|
2023-04-02 05:24:25 +00:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
> .enabled {
|
|
|
|
strong {
|
2023-04-02 05:24:25 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
> .unexecuted {
|
|
|
|
strong {
|
2023-04-02 05:24:25 +00:00
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
}
|
2022-05-12 04:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-03-27 07:51:48 +00:00
|
|
|
export const branchBlockClass = css`
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
:before {
|
|
|
|
content: '';
|
2022-03-27 07:51:48 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2023-04-25 05:12:14 +00:00
|
|
|
left: calc(50% - 0.5px);
|
2022-03-27 07:51:48 +00:00
|
|
|
width: 1px;
|
|
|
|
background-color: #f0f2f5;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const branchClass = css`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
2023-05-16 01:45:45 +00:00
|
|
|
min-width: 20em;
|
2022-03-27 07:51:48 +00:00
|
|
|
padding: 0 2em;
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-node-list {
|
2022-03-27 07:51:48 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-branch-lines {
|
2022-03-27 07:51:48 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 1px;
|
|
|
|
background-color: #ddd;
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
:before,
|
|
|
|
:after {
|
|
|
|
content: '';
|
2022-03-27 07:51:48 +00:00
|
|
|
position: absolute;
|
|
|
|
height: 1px;
|
|
|
|
background-color: #ddd;
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
:before {
|
2022-03-27 07:51:48 +00:00
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
:after {
|
2022-03-27 07:51:48 +00:00
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
:not(:first-child):not(:last-child) {
|
|
|
|
:before,
|
|
|
|
:after {
|
2022-03-27 07:51:48 +00:00
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
:last-child:not(:first-child) {
|
|
|
|
:before,
|
|
|
|
:after {
|
2022-03-27 07:51:48 +00:00
|
|
|
right: 50%;
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
:first-child:not(:last-child) {
|
|
|
|
:before,
|
|
|
|
:after {
|
2022-03-27 07:51:48 +00:00
|
|
|
left: 50%;
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const nodeBlockClass = css`
|
2022-04-06 07:25:56 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
2022-03-27 07:51:48 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const nodeClass = css`
|
2022-04-06 07:25:56 +00:00
|
|
|
flex-shrink: 0;
|
2022-03-27 07:51:48 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const nodeCardClass = css`
|
2023-03-03 16:19:11 +00:00
|
|
|
position: relative;
|
2022-03-27 07:51:48 +00:00
|
|
|
width: 20em;
|
|
|
|
background: #fff;
|
|
|
|
padding: 1em;
|
2023-04-25 05:12:14 +00:00
|
|
|
box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
|
|
|
|
border-radius: 0.5em;
|
2023-03-03 16:19:11 +00:00
|
|
|
cursor: pointer;
|
2023-04-25 05:12:14 +00:00
|
|
|
transition: box-shadow 0.3s ease;
|
2023-03-03 16:19:11 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
&.configuring {
|
|
|
|
box-shadow: 0 0.25em 1em rgba(0, 100, 200, 0.25);
|
2023-03-03 16:19:11 +00:00
|
|
|
}
|
2022-04-23 15:49:24 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-node-remove-button {
|
2023-05-16 01:45:45 +00:00
|
|
|
position: absolute;
|
2023-04-25 05:12:14 +00:00
|
|
|
right: 0.5em;
|
|
|
|
top: 0.5em;
|
2022-04-23 15:49:24 +00:00
|
|
|
color: #999;
|
|
|
|
opacity: 0;
|
2023-04-25 05:12:14 +00:00
|
|
|
transition: opacity 0.3s ease;
|
2022-04-23 15:49:24 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
&[disabled] {
|
2022-05-12 04:19:25 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-04-23 15:49:24 +00:00
|
|
|
&:hover {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-16 01:45:45 +00:00
|
|
|
> .workflow-node-job-button {
|
|
|
|
position: absolute;
|
|
|
|
top: 1rem;
|
|
|
|
right: 1rem;
|
2022-10-30 03:54:14 +00:00
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.ant-input {
|
2023-03-03 16:19:11 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
&:not(:focus) {
|
|
|
|
transition: background-color 0.3s ease, border-color 0.3s ease;
|
2023-03-03 16:19:11 +00:00
|
|
|
border-color: #f7f7f7;
|
|
|
|
background-color: #f7f7f7;
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
&:not(:disabled):hover {
|
2023-03-03 16:19:11 +00:00
|
|
|
border-color: #eee;
|
|
|
|
background-color: #eee;
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
&:disabled:hover {
|
2023-03-03 16:19:11 +00:00
|
|
|
border-color: #f7f7f7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-node-config-button {
|
2023-03-03 16:19:11 +00:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
&:hover {
|
|
|
|
box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.25);
|
2023-03-03 16:19:11 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-node-remove-button {
|
2022-04-23 15:49:24 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2022-03-27 07:51:48 +00:00
|
|
|
`;
|
|
|
|
|
2023-05-16 01:45:45 +00:00
|
|
|
export const nodeJobButtonClass = css`
|
|
|
|
display: flex;
|
|
|
|
width: 1.25rem;
|
|
|
|
height: 1.25rem;
|
|
|
|
min-width: 1.25rem;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 0.8em;
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
&[type='button'] {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tag {
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
line-height: 18px;
|
|
|
|
margin-right: 0;
|
|
|
|
border-radius: 50%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-03-27 07:51:48 +00:00
|
|
|
export const nodeHeaderClass = css`
|
2022-04-23 15:49:24 +00:00
|
|
|
position: relative;
|
2022-03-27 07:51:48 +00:00
|
|
|
`;
|
|
|
|
|
2022-04-30 07:44:03 +00:00
|
|
|
export const nodeMetaClass = css`
|
2023-04-25 05:12:14 +00:00
|
|
|
margin-bottom: 0.5em;
|
2023-03-03 16:19:11 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-node-id {
|
2023-03-03 16:19:11 +00:00
|
|
|
color: #999;
|
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
&:before {
|
|
|
|
content: '#';
|
2023-03-03 16:19:11 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-30 07:44:03 +00:00
|
|
|
`;
|
|
|
|
|
2022-03-27 07:51:48 +00:00
|
|
|
export const nodeTitleClass = css`
|
2022-10-30 03:54:14 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-03-27 07:51:48 +00:00
|
|
|
font-weight: normal;
|
2023-04-25 05:12:14 +00:00
|
|
|
.workflow-node-id {
|
2022-03-27 07:51:48 +00:00
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const nodeSubtreeClass = css`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
align-items: center;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const addButtonClass = css`
|
|
|
|
flex-shrink: 0;
|
|
|
|
padding: 2em 0;
|
2023-03-03 16:19:11 +00:00
|
|
|
|
2023-04-25 05:12:14 +00:00
|
|
|
> .ant-btn {
|
|
|
|
&:disabled {
|
2023-03-03 16:19:11 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
2022-03-27 07:51:48 +00:00
|
|
|
`;
|