From 2245fd556b0f088e76524a672098a4434fea97b7 Mon Sep 17 00:00:00 2001 From: Ari Date: Mon, 16 May 2022 21:54:22 -0400 Subject: [PATCH] removed logs --- webapp/src/apiService/index.ts | 1 - webapp/src/components/AutomationList/index.tsx | 5 ----- webapp/src/components/DAGFlow/DAGNode.tsx | 4 +--- webapp/src/components/DAGFlow/index.stories.tsx | 1 - webapp/src/components/DAGFlow/updater.test.ts | 1 - webapp/src/components/Inputs/InputList.tsx | 3 --- webapp/src/components/Inputs/InputYaml.tsx | 1 - webapp/src/components/MultiNodeEditors/index.stories.tsx | 1 - webapp/src/components/MultiNodeEditors/state.ts | 1 - webapp/src/utils/automations.ts | 1 - 10 files changed, 1 insertion(+), 18 deletions(-) diff --git a/webapp/src/apiService/index.ts b/webapp/src/apiService/index.ts index 86e3221..6dc8a6b 100644 --- a/webapp/src/apiService/index.ts +++ b/webapp/src/apiService/index.ts @@ -5,7 +5,6 @@ import { useAPIService } from './core'; import { useMockAPI } from "./mock"; const locationPrefixWeb = window.location.pathname.match(/(.+)\/web/i); -console.log(process.env) export const useConnectedApiService = () => useAPIService( makeAutomationAPI(makeRemoteAPI( diff --git a/webapp/src/components/AutomationList/index.tsx b/webapp/src/components/AutomationList/index.tsx index 62dc191..6d1d73f 100644 --- a/webapp/src/components/AutomationList/index.tsx +++ b/webapp/src/components/AutomationList/index.tsx @@ -34,11 +34,6 @@ export const AutomationList: FC = ({ const { isMobile } = useWindowSize(); // alias const currentAuto = automations.length > 0 ? automations[current] : null; - const automationListListCls = [ - "automation-list--list", - hideList ? "hide" : "show", - isMobile ? 'mobile' : '' - ].join(' ') // render return
diff --git a/webapp/src/components/DAGFlow/DAGNode.tsx b/webapp/src/components/DAGFlow/DAGNode.tsx index 05d35d0..5de4241 100644 --- a/webapp/src/components/DAGFlow/DAGNode.tsx +++ b/webapp/src/components/DAGFlow/DAGNode.tsx @@ -46,9 +46,7 @@ export const DAGNode: FC<{ data: DAGNodeProps }> = ({ {label}
-
{ - console.log('editing me', label, onEditClick, onEditClick()) - }}> +
diff --git a/webapp/src/components/DAGFlow/index.stories.tsx b/webapp/src/components/DAGFlow/index.stories.tsx index 56ecca3..c0c6c0f 100644 --- a/webapp/src/components/DAGFlow/index.stories.tsx +++ b/webapp/src/components/DAGFlow/index.stories.tsx @@ -27,7 +27,6 @@ const Template: ComponentStory = args => { {...args} {...state} onTriggerUpdate={trigger => { - console.log({ trigger }) setState({ ...state, trigger }) }} onSequenceUpdate={sequence => setState({ ...state, sequence })} diff --git a/webapp/src/components/DAGFlow/updater.test.ts b/webapp/src/components/DAGFlow/updater.test.ts index d7e93a3..3b34271 100644 --- a/webapp/src/components/DAGFlow/updater.test.ts +++ b/webapp/src/components/DAGFlow/updater.test.ts @@ -11,7 +11,6 @@ const mockSequenceUpdater = (defaultState: AutomationSequenceNode[] = []) => { state, s => { state = s - console.log(state, s) }, ms => modalStates.push(ms) ); diff --git a/webapp/src/components/Inputs/InputList.tsx b/webapp/src/components/Inputs/InputList.tsx index 32723d6..6ffaa71 100644 --- a/webapp/src/components/Inputs/InputList.tsx +++ b/webapp/src/components/Inputs/InputList.tsx @@ -26,9 +26,6 @@ export const InputList: FC> = ({ {...selattr} value={current} onChange={e => { e.preventDefault(); - console.log(e.currentTarget.id) - console.log(e.currentTarget.value) - console.log(e.currentTarget.innerHTML) if (e.currentTarget.id === 'invalid') { onChange(options[0]) } else { diff --git a/webapp/src/components/Inputs/InputYaml.tsx b/webapp/src/components/Inputs/InputYaml.tsx index 03a564c..6b6ebff 100644 --- a/webapp/src/components/Inputs/InputYaml.tsx +++ b/webapp/src/components/Inputs/InputYaml.tsx @@ -24,7 +24,6 @@ export default function InputYaml({ }); const setText = (t: string) => { try { - console.log(yaml.dump(yaml.load(t))); setState({ text: t, error: undefined }) } catch (_) { setState({ text: t, error: "! Invalid Yaml !" }) diff --git a/webapp/src/components/MultiNodeEditors/index.stories.tsx b/webapp/src/components/MultiNodeEditors/index.stories.tsx index 0bc16b8..1e5891f 100644 --- a/webapp/src/components/MultiNodeEditors/index.stories.tsx +++ b/webapp/src/components/MultiNodeEditors/index.stories.tsx @@ -44,7 +44,6 @@ export const InAModal: ComponentStory = props => { const [open, setOpen] = useState(false); const [state, setState] = useState(props.sequence); - console.log({ state }) return
diff --git a/webapp/src/components/MultiNodeEditors/state.ts b/webapp/src/components/MultiNodeEditors/state.ts index 06433b7..db75c94 100644 --- a/webapp/src/components/MultiNodeEditors/state.ts +++ b/webapp/src/components/MultiNodeEditors/state.ts @@ -27,7 +27,6 @@ export const useMultiNodeEditorState = (props: MultiNodeEditorProps) => { internalNodeModified, } = state; const setState = (a: MultiNodeEditorInternalState) => { - console.log('setting state', a) _setState(a) } return { diff --git a/webapp/src/utils/automations.ts b/webapp/src/utils/automations.ts index a2c7a2d..9a3312b 100644 --- a/webapp/src/utils/automations.ts +++ b/webapp/src/utils/automations.ts @@ -3,7 +3,6 @@ import { AutomationTrigger } from 'types/automations/triggers'; export const getNodeType = (node: AutomationNode): AutomationNodeTypes => { - console.log({ node }) if ('condition' in node) { return 'condition' } else if ('platform' in node) {