Compare commits
No commits in common. "5fdee2dbffbdda625c5cdd860c1c4ec83f71f4d4" and "9ed1d1d0f31274765d74f72b271e37c801adfc59" have entirely different histories.
5fdee2dbff
...
9ed1d1d0f3
|
|
@ -17,4 +17,4 @@ COPY . .
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
CMD ["gunicorn", "--timeout", "600", "--workers", "1", "--bind", "0.0.0.0:5000", "app:app"]
|
CMD ["gunicorn", "--timeout", "600", "--workers", "2", "--bind", "0.0.0.0:5000", "app:app"]
|
||||||
|
|
|
||||||
|
|
@ -225,75 +225,61 @@ export default function KennzahlenTable({
|
||||||
</Box>
|
</Box>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
) : (
|
) : (
|
||||||
<Tooltip
|
<Box
|
||||||
title={hasNoValue ?
|
sx={{
|
||||||
<>
|
border: `2px solid ${borderColor}`,
|
||||||
<b>Problem</b>
|
borderRadius: 1,
|
||||||
<br />
|
padding: "4px 8px",
|
||||||
Es wurden keine Kennzahlen gefunden. Bitte ergänzen!
|
display: "flex",
|
||||||
</> : ""
|
alignItems: "center",
|
||||||
}
|
justifyContent: "space-between",
|
||||||
placement="bottom"
|
width: "100%",
|
||||||
arrow
|
cursor: "text",
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<span>
|
<Box
|
||||||
<Box
|
sx={{
|
||||||
sx={{
|
display: "flex",
|
||||||
border: `2px solid ${borderColor}`,
|
alignItems: "center",
|
||||||
borderRadius: 1,
|
gap: 1,
|
||||||
padding: "4px 8px",
|
width: "100%",
|
||||||
display: "flex",
|
}}
|
||||||
alignItems: "center",
|
>
|
||||||
justifyContent: "space-between",
|
{hasNoValue && (
|
||||||
width: "100%",
|
<ErrorOutlineIcon fontSize="small" color="error" />
|
||||||
cursor: "text",
|
)}
|
||||||
}}
|
{editingIndex === row.setting.name ? (
|
||||||
>
|
<TextField
|
||||||
<Box
|
value={editValue}
|
||||||
sx={{
|
onChange={(e) => setEditValue(e.target.value)}
|
||||||
display: "flex",
|
onKeyDown={(e) =>
|
||||||
alignItems: "center",
|
handleKeyPress(e, row.setting.name)
|
||||||
gap: 1,
|
}
|
||||||
width: "100%",
|
onBlur={() => handleSave(row.setting.name)}
|
||||||
}}
|
autoFocus
|
||||||
>
|
size="small"
|
||||||
{hasNoValue && (
|
fullWidth
|
||||||
<ErrorOutlineIcon fontSize="small" color="error" />
|
variant="standard"
|
||||||
)}
|
sx={{ margin: "-8px 0" }}
|
||||||
{editingIndex === row.setting.name ? (
|
|
||||||
<TextField
|
|
||||||
value={editValue}
|
|
||||||
onChange={(e) => setEditValue(e.target.value)}
|
|
||||||
onKeyDown={(e) =>
|
|
||||||
handleKeyPress(e, row.setting.name)
|
|
||||||
}
|
|
||||||
onBlur={() => handleSave(row.setting.name)}
|
|
||||||
autoFocus
|
|
||||||
size="small"
|
|
||||||
fullWidth
|
|
||||||
variant="standard"
|
|
||||||
sx={{ margin: "-8px 0" }}
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<span>
|
|
||||||
{row.extractedValues.at(0)?.entity || "—"}
|
|
||||||
</span>
|
|
||||||
)}
|
|
||||||
</Box>
|
|
||||||
<EditIcon
|
|
||||||
fontSize="small"
|
|
||||||
sx={{ color: "#555", cursor: "pointer" }}
|
|
||||||
onClick={(e) => {
|
|
||||||
e.stopPropagation();
|
|
||||||
startEditing(
|
|
||||||
row.extractedValues.at(0)?.entity || "",
|
|
||||||
row.setting.name,
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</Box>
|
) : (
|
||||||
</span>
|
<span>
|
||||||
</Tooltip>
|
{row.extractedValues.at(0)?.entity || "—"}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</Box>
|
||||||
|
<EditIcon
|
||||||
|
fontSize="small"
|
||||||
|
sx={{ color: "#555", cursor: "pointer" }}
|
||||||
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
startEditing(
|
||||||
|
row.extractedValues.at(0)?.entity || "",
|
||||||
|
row.setting.name,
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
)}
|
)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell align="center">
|
<TableCell align="center">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue