Fixed url field parsing issues
This commit is contained in:
@@ -6,6 +6,7 @@ import { GetIconInfo } from "../views/Workflows.jsx";
|
|||||||
import { sortByKey } from "../views/AngularWorkflow.jsx";
|
import { sortByKey } from "../views/AngularWorkflow.jsx";
|
||||||
import { useTheme } from "@material-ui/core/styles";
|
import { useTheme } from "@material-ui/core/styles";
|
||||||
import NestedMenuItem from "material-ui-nested-menu-item";
|
import NestedMenuItem from "material-ui-nested-menu-item";
|
||||||
|
import theme from '../theme';
|
||||||
//import NestedMenuItem from "./NestedMenu.jsx";
|
//import NestedMenuItem from "./NestedMenu.jsx";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -162,7 +163,7 @@ const ParsedAction = (props) => {
|
|||||||
getAppAuthentication,
|
getAppAuthentication,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const theme = useTheme();
|
//const theme = useTheme();
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
|
||||||
const [expansionModalOpen, setExpansionModalOpen] = React.useState(false);
|
const [expansionModalOpen, setExpansionModalOpen] = React.useState(false);
|
||||||
@@ -385,10 +386,8 @@ const ParsedAction = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const AppActionArguments = (props) => {
|
const AppActionArguments = (props) => {
|
||||||
const [selectedActionParameters, setSelectedActionParameters] =
|
const [selectedActionParameters, setSelectedActionParameters] = React.useState([]);
|
||||||
React.useState([]);
|
const [selectedVariableParameter, setSelectedVariableParameter] = React.useState("");
|
||||||
const [selectedVariableParameter, setSelectedVariableParameter] =
|
|
||||||
React.useState("");
|
|
||||||
const [actionlist, setActionlist] = React.useState([]);
|
const [actionlist, setActionlist] = React.useState([]);
|
||||||
const [jsonList, setJsonList] = React.useState([]);
|
const [jsonList, setJsonList] = React.useState([]);
|
||||||
const [showDropdown, setShowDropdown] = React.useState(false);
|
const [showDropdown, setShowDropdown] = React.useState(false);
|
||||||
@@ -1106,16 +1105,20 @@ const ParsedAction = (props) => {
|
|||||||
var disabled = false;
|
var disabled = false;
|
||||||
var rows = "5";
|
var rows = "5";
|
||||||
var openApiHelperText = "This is an OpenAPI specific field";
|
var openApiHelperText = "This is an OpenAPI specific field";
|
||||||
|
/*
|
||||||
if (
|
if (
|
||||||
selectedApp.generated &&
|
selectedApp.generated &&
|
||||||
data.name === "url" &&
|
data.name === "url" &&
|
||||||
data.required &&
|
data.required &&
|
||||||
data.configuration &&
|
data.configuration
|
||||||
hideExtraTypes
|
|
||||||
) {
|
) {
|
||||||
|
//&&
|
||||||
|
//hideExtraTypes
|
||||||
|
|
||||||
//console.log("GENERATED WITH DATA: ", data);
|
//console.log("GENERATED WITH DATA: ", data);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (selectedApp.generated && data.name === "headers") {
|
if (selectedApp.generated && data.name === "headers") {
|
||||||
//console.log("HEADER: ", data)
|
//console.log("HEADER: ", data)
|
||||||
@@ -1888,7 +1891,6 @@ const ParsedAction = (props) => {
|
|||||||
>
|
>
|
||||||
{data.configuration === true ? (
|
{data.configuration === true ? (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
color="primary"
|
|
||||||
title={`Authenticate ${selectedApp.name}`}
|
title={`Authenticate ${selectedApp.name}`}
|
||||||
placement="top"
|
placement="top"
|
||||||
>
|
>
|
||||||
@@ -1898,8 +1900,8 @@ const ParsedAction = (props) => {
|
|||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
marginRight: 10,
|
marginRight: 10,
|
||||||
|
color: "rgba(255,255,255,0.6)",
|
||||||
}}
|
}}
|
||||||
color="primary"
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setAuthenticationModalOpen(true);
|
setAuthenticationModalOpen(true);
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ const Body = {
|
|||||||
display: "flex",
|
display: "flex",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
color: "white",
|
color: "white",
|
||||||
|
position: "relative",
|
||||||
//textAlign: "center",
|
//textAlign: "center",
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -80,10 +81,12 @@ const Docs = (props) => {
|
|||||||
const SideBar = {
|
const SideBar = {
|
||||||
maxWidth: 250,
|
maxWidth: 250,
|
||||||
flex: 1,
|
flex: 1,
|
||||||
position: "fixed",
|
position: "sticky",
|
||||||
|
top: 100,
|
||||||
maxHeight: "83vh",
|
maxHeight: "83vh",
|
||||||
overflowX: "hidden",
|
overflowX: "hidden",
|
||||||
overflowY: "auto",
|
overflowY: "auto",
|
||||||
|
zIndex: 10003,
|
||||||
};
|
};
|
||||||
|
|
||||||
const fetchDocList = () => {
|
const fetchDocList = () => {
|
||||||
@@ -299,8 +302,8 @@ const Docs = (props) => {
|
|||||||
flex: "1",
|
flex: "1",
|
||||||
maxWidth: mobile ? "100%" : 750,
|
maxWidth: mobile ? "100%" : 750,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
paddingBottom: 200,
|
paddingBottom: 100,
|
||||||
marginLeft: mobile ? 0 : 275,
|
marginLeft: mobile ? 0 : 50,
|
||||||
};
|
};
|
||||||
|
|
||||||
function OuterLink(props) {
|
function OuterLink(props) {
|
||||||
@@ -655,7 +658,7 @@ const Docs = (props) => {
|
|||||||
|
|
||||||
// Padding and zIndex etc set because of footer in cloud.
|
// Padding and zIndex etc set because of footer in cloud.
|
||||||
const loadedCheck = (
|
const loadedCheck = (
|
||||||
<div style={{minHeight: 1000, paddingBottom: 150, zIndex: 50000, }}>
|
<div style={{minHeight: 1000, paddingBottom: 100, zIndex: 50000, }}>
|
||||||
<BrowserView>{postDataBrowser}</BrowserView>
|
<BrowserView>{postDataBrowser}</BrowserView>
|
||||||
<MobileView>{postDataMobile}</MobileView>
|
<MobileView>{postDataMobile}</MobileView>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user