Fixed broken code modal popup
This commit is contained in:
@@ -139,15 +139,15 @@ class AppBase:
|
|||||||
try:
|
try:
|
||||||
new_input = input_data.split()
|
new_input = input_data.split()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.info(f"[ERROR] Failed to run magic parser (1): {e}")
|
self.logger.info(f"[ERROR] Failed to run magic parser during split (1): {e}")
|
||||||
return input_data
|
return input_data
|
||||||
|
|
||||||
# Won't ever touch this one?
|
# Won't ever touch this one?
|
||||||
if isinstance(input_data, list) or isinstance(input_data, object):
|
if isinstance(new_input, list) or isinstance(new_input, object):
|
||||||
try:
|
try:
|
||||||
return json.dumps(new_input)
|
return json.dumps(new_input)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.info(f"[ERROR] Failed to run magic parser: {e}")
|
self.logger.info(f"[ERROR] Failed to run magic parser (3): {e}")
|
||||||
|
|
||||||
return new_input
|
return new_input
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ class AppBase:
|
|||||||
else:
|
else:
|
||||||
self.logger.warning(f"[ERROR] Magic output not defined.")
|
self.logger.warning(f"[ERROR] Magic output not defined.")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.warning(f"[ERROR] Failed to run magic autoparser: {e}")
|
self.logger.warning(f"[ERROR] Failed to run magic autoparser (send result): {e}")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Try it with some magic
|
# Try it with some magic
|
||||||
@@ -2871,7 +2871,7 @@ class AppBase:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.warning("[ERROR] Failed to parse coroutine value for old app: {e}")
|
self.logger.warning("[ERROR] Failed to parse coroutine value for old app: {e}")
|
||||||
|
|
||||||
self.logger.info("\n[INFO] Returned from execution with types %s" % type(newres))
|
self.logger.info("\n[INFO] Returned from execution with type(s) %s" % type(newres))
|
||||||
#self.logger.info("\n[INFO] Returned from execution with %s of types %s" % (newres, type(newres)))#, newres)
|
#self.logger.info("\n[INFO] Returned from execution with %s of types %s" % (newres, type(newres)))#, newres)
|
||||||
if isinstance(newres, tuple):
|
if isinstance(newres, tuple):
|
||||||
self.logger.info(f"[INFO] Handling return as tuple: {newres}")
|
self.logger.info(f"[INFO] Handling return as tuple: {newres}")
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
build: ./frontend
|
#build: ./frontend
|
||||||
image: ghcr.io/frikky/shuffle-frontend:nightly
|
image: ghcr.io/frikky/shuffle-frontend:nightly
|
||||||
container_name: shuffle-frontend
|
container_name: shuffle-frontend
|
||||||
hostname: shuffle-frontend
|
hostname: shuffle-frontend
|
||||||
@@ -16,7 +16,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
backend:
|
backend:
|
||||||
build: ./backend
|
#build: ./backend
|
||||||
image: ghcr.io/frikky/shuffle-backend:nightly
|
image: ghcr.io/frikky/shuffle-backend:nightly
|
||||||
container_name: shuffle-backend
|
container_name: shuffle-backend
|
||||||
hostname: ${BACKEND_HOSTNAME}
|
hostname: ${BACKEND_HOSTNAME}
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ const CodeEditor = (props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
|
disableEnforceFocus={true}
|
||||||
|
hideBackdrop={true}
|
||||||
open={expansionModalOpen}
|
open={expansionModalOpen}
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
//setExpansionModalOpen(false)
|
//setExpansionModalOpen(false)
|
||||||
@@ -93,6 +95,7 @@ const CodeEditor = (props) => {
|
|||||||
minWidth: 600,
|
minWidth: 600,
|
||||||
padding: 25,
|
padding: 25,
|
||||||
border: theme.palette.defaultBorder,
|
border: theme.palette.defaultBorder,
|
||||||
|
zIndex: 10012,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2823,7 +2823,7 @@ const Workflows = (props) => {
|
|||||||
workflowDelay += 75
|
workflowDelay += 75
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<Grid item xs={4} style={{ padding: "12px 10px 12px 10px" }}>
|
<Grid key={index} item xs={4} style={{ padding: "12px 10px 12px 10px" }}>
|
||||||
<WorkflowPaper key={index} data={data} />
|
<WorkflowPaper key={index} data={data} />
|
||||||
</Grid>
|
</Grid>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user