Fixed broken code modal popup

This commit is contained in:
frikky
2022-01-29 02:04:41 +01:00
parent 8e10dc7cad
commit 3dda16cfe7
4 changed files with 11 additions and 8 deletions
+5 -5
View File
@@ -139,15 +139,15 @@ class AppBase:
try:
new_input = input_data.split()
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
# 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:
return json.dumps(new_input)
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
@@ -165,7 +165,7 @@ class AppBase:
else:
self.logger.warning(f"[ERROR] Magic output not defined.")
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
# Try it with some magic
@@ -2871,7 +2871,7 @@ class AppBase:
except Exception as 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)
if isinstance(newres, tuple):
self.logger.info(f"[INFO] Handling return as tuple: {newres}")
+2 -2
View File
@@ -1,7 +1,7 @@
version: '3'
services:
frontend:
build: ./frontend
#build: ./frontend
image: ghcr.io/frikky/shuffle-frontend:nightly
container_name: shuffle-frontend
hostname: shuffle-frontend
@@ -16,7 +16,7 @@ services:
depends_on:
- backend
backend:
build: ./backend
#build: ./backend
image: ghcr.io/frikky/shuffle-backend:nightly
container_name: shuffle-backend
hostname: ${BACKEND_HOSTNAME}
@@ -82,6 +82,8 @@ const CodeEditor = (props) => {
return (
<Dialog
disableEnforceFocus={true}
hideBackdrop={true}
open={expansionModalOpen}
onClose={() => {
//setExpansionModalOpen(false)
@@ -93,6 +95,7 @@ const CodeEditor = (props) => {
minWidth: 600,
padding: 25,
border: theme.palette.defaultBorder,
zIndex: 10012,
},
}}
>
+1 -1
View File
@@ -2823,7 +2823,7 @@ const Workflows = (props) => {
workflowDelay += 75
} else {
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} />
</Grid>
)