Added Docs update, missing images and Tenzir pipelines

This commit is contained in:
Frikky
2024-02-26 23:15:57 +01:00
parent 7c43245a88
commit e682a7d2a7
7 changed files with 461 additions and 75 deletions
+5 -3
View File
@@ -1261,7 +1261,7 @@ If you're interested, please let me know a time that works for you, or set up a
};
const rerunCloudWorkflows = (environment) => {
toast("Starting execution reruns. This can run in the background.")
toast("Starting execution reruns. This can run in the background.")
fetch(
`${globalUrl}/api/v1/environments/${environment.id}/rerun`,
{
@@ -1292,6 +1292,7 @@ If you're interested, please let me know a time that works for you, or set up a
const abortEnvironmentWorkflows = (environment) => {
//console.log("Aborting all workflows started >10 minutes ago, not finished");
toast("Clearing the queue - this may take some time. A new will show up when finished.")
fetch(
`${globalUrl}/api/v1/environments/${environment.id}/stop?deleteall=true`,
@@ -1306,7 +1307,9 @@ If you're interested, please let me know a time that works for you, or set up a
toast("Failed aborting dangling workflows");
return;
} else {
toast("Aborted all dangling workflows");
toast("Successfully cleared the queue")
getEnvironments()
}
return response.json();
@@ -4597,7 +4600,6 @@ If you're interested, please let me know a time that works for you, or set up a
<Button
variant={"outlined"}
style={{ }}
disabled={isCloud && environment.Name.toLowerCase() !== "cloud"}
onClick={() => {
console.log("Should clear executions for: ", environment);
File diff suppressed because one or more lines are too long
+13 -2
View File
@@ -118,8 +118,6 @@ export const Img = (props) => {
export const CodeHandler = (props) => {
const propvalue = props.value !== undefined && props.value !== null ? props.value : props.children !== undefined && props.children !== null && props.children.length > 0 ? props.children[0] : ""
const validate = validateJson(propvalue)
var newprop = propvalue
@@ -137,6 +135,17 @@ export const CodeHandler = (props) => {
//}
}
// Need to check if it's singletick or multi
console.log("PROP: ", propvalue, props)
if (props.inline === true) {
// Show it inline
return (
<span style={{backgroundColor: theme.palette.inputColor, display: "inline", whiteSpace: "pre-wrap", padding: "6px 3px 6px 3px", }}>
{newprop}
</span>
)
}
return (
<div
style={{
@@ -145,6 +154,8 @@ export const CodeHandler = (props) => {
maxWidth: "100%",
backgroundColor: theme.palette.inputColor,
overflowY: "auto",
// Have it inline
borderRadius: theme.palette.borderRadius,
}}
>
{validate.valid === true ?