{appApiView}
@@ -4545,7 +4548,7 @@ const AngularWorkflow = (props) => {
executionData.results.map(data => {
var showResult = data.result.trim()
showResult.split(" None").join(" \"None\"")
- //showResult = replaceAll(showResult, " None", " \"None\"");
+ //showResult = replaceAll(showResult, " None", " \"None\"")
var jsonvalid = true
try {
JSON.parse(showResult)
@@ -4569,7 +4572,7 @@ const AngularWorkflow = (props) => {
{jsonvalid ?
@@ -4872,4 +4875,4 @@ const AngularWorkflow = (props) => {
)
}
-export default AngularWorkflow;
+export default AngularWorkflow
diff --git a/frontend/src/App.js b/frontend/src/App.js
index e40d7660..af034001 100644
--- a/frontend/src/App.js
+++ b/frontend/src/App.js
@@ -147,13 +147,13 @@ const App = (message, props) => {
// This is a mess hahahah
return (
-
-
-
- {includedData}
-
-
-
+
+
+
+ {includedData}
+
+
+
);
};
diff --git a/frontend/src/AppCreator.js b/frontend/src/AppCreator.js
index 67803be1..98aa7146 100644
--- a/frontend/src/AppCreator.js
+++ b/frontend/src/AppCreator.js
@@ -372,30 +372,6 @@ const AppCreator = (props) => {
securitySchemes = data.components.securitySchemes
}
- // FIXME: Have multiple authentication options?
- if (securitySchemes !== undefined) {
- for (const [key, value] of Object.entries(securitySchemes)) {
- if (value.scheme === "bearer") {
- setAuthenticationOption("Bearer auth")
- break
- } else if (value.type === "apiKey") {
- setAuthenticationOption("API key")
-
- value.in = value.in.charAt(0).toUpperCase() + value.in.slice(1);
- setParameterLocation(value.in)
- if (!apikeySelection.includes(value.in)) {
- console.log("APIKEY SELECT: ", apikeySelection)
- alert.error("Might be error in setting up API key authentication")
- }
-
- setParameterName(value.name)
- break
- } else if (value.scheme === "basic") {
- setAuthenticationOption("Basic auth")
- break
- }
- }
- }
console.log(data)
@@ -451,9 +427,36 @@ const AppCreator = (props) => {
}
}
+
+ // FIXME: Have multiple authentication options?
+ if (securitySchemes !== undefined) {
+ for (const [key, value] of Object.entries(securitySchemes)) {
+ if (value.scheme === "bearer") {
+ setAuthenticationOption("Bearer auth")
+ break
+ } else if (value.type === "apiKey") {
+ setAuthenticationOption("API key")
+
+ value.in = value.in.charAt(0).toUpperCase() + value.in.slice(1);
+ setParameterLocation(value.in)
+ if (!apikeySelection.includes(value.in)) {
+ console.log("APIKEY SELECT: ", apikeySelection)
+ alert.error("Might be error in setting up API key authentication")
+ }
+
+ console.log("PARAM NAME: ", value.name)
+ setParameterName(value.name)
+ break
+ } else if (value.scheme === "basic") {
+ setAuthenticationOption("Basic auth")
+ break
+ }
+ }
+ }
+
setActions(newActions)
}
-
+
// Saving the app that's been configured.
const submitApp = () => {
alert.info("Uploading and building app " + name)
@@ -810,7 +813,7 @@ const AppCreator = (props) => {
id="standard-required"
margin="normal"
variant="outlined"
- defaultValue={parameterName}
+ value={parameterName}
helperText={
Can't be empty. Can't contain any of the following characters: !#$%&'^+-._~|]+$
}
onChange={e => setParameterName(e.target.value)}
InputProps={{
@@ -926,11 +929,13 @@ const AppCreator = (props) => {
{data.method} - {url} - {data.name}
+ {/*