From e95dd524a8ec7d149da812cc0b8f0a473cddad30 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Thu, 29 Jun 2023 19:58:34 -0300 Subject: [PATCH] formatting branch --- .../components/parameterComponent/index.tsx | 44 +++++----- .../components/singleAlertComponent/index.tsx | 25 +++--- src/frontend/src/alerts/error/index.tsx | 5 +- src/frontend/src/alerts/notice/index.tsx | 5 +- .../ExtraSidebarComponent/index.tsx | 4 +- .../chatComponent/buildTrigger/index.tsx | 4 +- .../components/dropdownComponent/index.tsx | 10 +-- .../src/components/loadingComponent/index.tsx | 4 +- .../src/components/promptComponent/index.tsx | 4 +- .../components/textAreaComponent/index.tsx | 4 +- .../src/components/toggleComponent/index.tsx | 4 +- src/frontend/src/components/ui/switch.tsx | 2 +- src/frontend/src/constants.tsx | 7 +- src/frontend/src/contexts/tabsContext.tsx | 26 +++--- src/frontend/src/modals/ApiModal/index.tsx | 9 +- .../src/modals/EditNodeModal/index.tsx | 2 +- src/frontend/src/modals/NodeModal/index.tsx | 2 +- .../modals/chatModal/chatMessage/index.tsx | 8 +- .../modals/chatModal/fileComponent/index.tsx | 5 +- .../components/PageComponent/index.tsx | 6 +- .../extraSidebarComponent/index.tsx | 4 +- .../components/nodeToolbarComponent/index.tsx | 1 - src/frontend/src/pages/MainPage/index.tsx | 10 +-- src/frontend/tailwind.config.js | 84 ++++++++++--------- 24 files changed, 134 insertions(+), 145 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index f29e3ffc5..7e5b8e315 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -229,26 +229,25 @@ export default function ParameterComponent({ ) : left === true && type === "code" ? (
- +
- ) : left === true && type === "file" ? (
- { - data.node.template[name].file_path = t; - save(); - }} - > + { + data.node.template[name].file_path = t; + save(); + }} + >
) : left === true && type === "int" ? (
@@ -261,13 +260,12 @@ export default function ParameterComponent({
) : left === true && type === "prompt" ? (
- +
- ) : ( <> )} diff --git a/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx b/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx index fb25eec61..5827ccc2f 100644 --- a/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx +++ b/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx @@ -29,10 +29,7 @@ export default function SingleAlert({ key={dropItem.id} >
-

@@ -65,7 +62,10 @@ export default function SingleAlert({ className="inline-flex rounded-md p-1.5 text-status-red" > Dismiss -

@@ -76,10 +76,7 @@ export default function SingleAlert({ key={dropItem.id} >
-

@@ -111,7 +108,10 @@ export default function SingleAlert({ className="inline-flex rounded-md p-1.5 text-info-foreground" > Dismiss -

@@ -145,7 +145,10 @@ export default function SingleAlert({ className="inline-flex rounded-md p-1.5 text-status-green" > Dismiss -