Added HTTP catch-all failures and file namespace downloads
This commit is contained in:
@@ -341,7 +341,7 @@ const ParsedAction = (props) => {
|
||||
})
|
||||
|
||||
const changeActionParameter = (event, count, data) => {
|
||||
console.log(event)
|
||||
//console.log(event)
|
||||
if (data.name.startsWith("${") && data.name.endsWith("}")) {
|
||||
// PARAM FIX - Gonna use the ID field, even though it's a hack
|
||||
const paramcheck = selectedAction.parameters.find(param => param.name === "body")
|
||||
@@ -833,12 +833,12 @@ const ParsedAction = (props) => {
|
||||
}
|
||||
|
||||
const clickedFieldId = "rightside_field_"+count
|
||||
//<TextareaAutosize
|
||||
// <CodeMirror
|
||||
var datafield =
|
||||
//<TextareaAutosize
|
||||
|
||||
<CodeMirror
|
||||
<TextField
|
||||
disabled={disabled}
|
||||
style={{backgroundColor: theme.palette.inputColor, borderRadius: theme.palette.borderRadius, border: selectedActionParameters[count].required || selectedActionParameters[count].configuration ? "2px solid #f85a3e" : "", color: "white", width: "100%", fontSize: "1em",}}
|
||||
style={{backgroundColor: theme.palette.inputColor, borderRadius: theme.palette.borderRadius, border: selectedActionParameters[count].required || selectedActionParameters[count].configuration ? "2px solid #f85a3e" : "", color: "white", width: "100%", fontSize: "1em", }}
|
||||
InputProps={{
|
||||
style:{
|
||||
color: "white",
|
||||
@@ -847,23 +847,23 @@ const ParsedAction = (props) => {
|
||||
maxWidth: "95%",
|
||||
fontSize: "1em",
|
||||
},
|
||||
// endAdornment: (
|
||||
// hideExtraTypes ? null :
|
||||
// <InputAdornment position="end">
|
||||
// <Tooltip title="Autocomplete the text" placement="top">
|
||||
// <AddCircleOutlineIcon style={{cursor: "pointer"}} onClick={(event) => {
|
||||
// setMenuPosition({
|
||||
// top: event.pageY+10,
|
||||
// left: event.pageX+10,
|
||||
// })
|
||||
// setShowDropdownNumber(count)
|
||||
// setShowDropdown(true)
|
||||
// setShowAutocomplete(true)
|
||||
// }}/>
|
||||
// </Tooltip>
|
||||
// </InputAdornment>
|
||||
|
||||
// )
|
||||
endAdornment: (
|
||||
hideExtraTypes ? null :
|
||||
<InputAdornment position="end">
|
||||
<Tooltip title="Autocomplete the text" placement="top">
|
||||
<AddCircleOutlineIcon style={{cursor: "pointer"}} onClick={(event) => {
|
||||
setMenuPosition({
|
||||
top: event.pageY+10,
|
||||
left: event.pageX+10,
|
||||
})
|
||||
setShowDropdownNumber(count)
|
||||
setShowDropdown(true)
|
||||
setShowAutocomplete(true)
|
||||
}}/>
|
||||
</Tooltip>
|
||||
</InputAdornment>
|
||||
|
||||
)
|
||||
}}
|
||||
fullWidth
|
||||
multiline={multiline}
|
||||
@@ -879,20 +879,20 @@ const ParsedAction = (props) => {
|
||||
rows={rows}
|
||||
color="primary"
|
||||
defaultValue={data.value}
|
||||
|
||||
value={data.value}
|
||||
options={{
|
||||
theme: 'gruvbox-dark',
|
||||
keyMap: 'sublime',
|
||||
mode: 'python',
|
||||
}}
|
||||
height = {200}
|
||||
//value={data.value}
|
||||
//options={{
|
||||
// theme: 'gruvbox-dark',
|
||||
// keyMap: 'sublime',
|
||||
// mode: 'python',
|
||||
//}}
|
||||
//height={multiline ? 50 : 150}
|
||||
|
||||
type={placeholder.includes("***") || (data.configuration && (data.name.toLowerCase().includes("api") || data.name.toLowerCase().includes("key") || data.name.toLowerCase().includes("pass"))) ? "password" : "text"}
|
||||
placeholder={placeholder}
|
||||
|
||||
onChange={(event) => {
|
||||
changeActionParameterCodemirror(event, count, data)
|
||||
//changeActionParameterCodemirror(event, count, data)
|
||||
changeActionParameter(event, count, data)
|
||||
}}
|
||||
|
||||
helperText={selectedApp.generated && selectedApp.activated && data.name === "body" ?
|
||||
|
||||
@@ -1612,7 +1612,7 @@ const AngularWorkflow = (props) => {
|
||||
var hiddenNodes = []
|
||||
const onNodeDragStop = (event, selectedAction) => {
|
||||
const nodedata = event.target.data()
|
||||
console.log("IN NODE DRAG STOP: ", nodedata)
|
||||
//console.log("IN NODE DRAG STOP: ", nodedata)
|
||||
if (nodedata.id === selectedAction.id) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ export const GetIconInfo = (action) => {
|
||||
{"key": "cache_get", "values": ["get_cache"]},
|
||||
{"key": "filter", "values": ["filter", "route", "router",]},
|
||||
{"key": "merge", "values": ["join", "merge"]},
|
||||
{"key": "search", "values": ["search", "find", "locate", "index",]},
|
||||
{"key": "search", "values": ["search", "find", "locate", "index", "analyze", "anal",]},
|
||||
{"key": "list", "values": ["list", "head", "options"]},
|
||||
{"key": "download", "values": ["capture", "get", "download", "return", "hello_world", "curl",]},
|
||||
{"key": "add", "values": ["add"]},
|
||||
|
||||
Reference in New Issue
Block a user