removed logs

This commit is contained in:
ari committed 2022-05-16 21:54:22 -04:00
1 parent f50f22190e
commit 2245fd556b
10 files changed
+1 -18

No files matched your search

-1
View File
@@ -5,7 +5,6 @@ import { useAPIService } from './core';
import { useMockAPI } from "./mock"; import { useMockAPI } from "./mock";
const locationPrefixWeb = window.location.pathname.match(/(.+)\/web/i); const locationPrefixWeb = window.location.pathname.match(/(.+)\/web/i);
console.log(process.env)
export const useConnectedApiService = () => useAPIService( export const useConnectedApiService = () => useAPIService(
makeAutomationAPI(makeRemoteAPI( makeAutomationAPI(makeRemoteAPI(
@@ -34,11 +34,6 @@ export const AutomationList: FC<AutomationListParams> = ({
const { isMobile } = useWindowSize(); const { isMobile } = useWindowSize();
// alias // alias
const currentAuto = automations.length > 0 ? automations[current] : null; const currentAuto = automations.length > 0 ? automations[current] : null;
const automationListListCls = [
"automation-list--list",
hideList ? "hide" : "show",
isMobile ? 'mobile' : ''
].join(' ')
// render // render
return <div className={["automation-list--root", isMobile ? 'mobile' : ''].join(' ')}> return <div className={["automation-list--root", isMobile ? 'mobile' : ''].join(' ')}>
<div className={["automation-list--list", hideList ? "hide" : "show"].join(' ')}> <div className={["automation-list--list", hideList ? "hide" : "show"].join(' ')}>
+1 -3
View File
@@ -46,9 +46,7 @@ export const DAGNode: FC<{ data: DAGNodeProps }> = ({
{label} {label}
</span> </span>
</div> </div>
<div className={classes.rightEdge} onClick={() => { <div className={classes.rightEdge} onClick={onEditClick}>
console.log('editing me', label, onEditClick, onEditClick())
}}>
<button className={classes.buttonEdit}> <button className={classes.buttonEdit}>
<PencilIcon size={1.1} color={theme.green} /> <PencilIcon size={1.1} color={theme.green} />
</button> </button>
@@ -27,7 +27,6 @@ const Template: ComponentStory<typeof DAGAutomationFlow> = args => {
{...args} {...args}
{...state} {...state}
onTriggerUpdate={trigger => { onTriggerUpdate={trigger => {
console.log({ trigger })
setState({ ...state, trigger }) setState({ ...state, trigger })
}} }}
onSequenceUpdate={sequence => setState({ ...state, sequence })} onSequenceUpdate={sequence => setState({ ...state, sequence })}
@@ -11,7 +11,6 @@ const mockSequenceUpdater = (defaultState: AutomationSequenceNode[] = []) => {
state, state,
s => { s => {
state = s state = s
console.log(state, s)
}, },
ms => modalStates.push(ms) ms => modalStates.push(ms)
); );
@@ -26,9 +26,6 @@ export const InputList: FC<Props<any>> = ({
{...selattr} value={current} {...selattr} value={current}
onChange={e => { onChange={e => {
e.preventDefault(); e.preventDefault();
console.log(e.currentTarget.id)
console.log(e.currentTarget.value)
console.log(e.currentTarget.innerHTML)
if (e.currentTarget.id === 'invalid') { if (e.currentTarget.id === 'invalid') {
onChange(options[0]) onChange(options[0])
} else { } else {
@@ -24,7 +24,6 @@ export default function InputYaml<T>({
}); });
const setText = (t: string) => { const setText = (t: string) => {
try { try {
console.log(yaml.dump(yaml.load(t)));
setState({ text: t, error: undefined }) setState({ text: t, error: undefined })
} catch (_) { } catch (_) {
setState({ text: t, error: "! Invalid Yaml !" }) setState({ text: t, error: "! Invalid Yaml !" })
@@ -44,7 +44,6 @@ export const InAModal: ComponentStory<typeof MultiNodeEditor> = props => {
const [open, setOpen] = useState(false); const [open, setOpen] = useState(false);
const [state, setState] = useState(props.sequence); const [state, setState] = useState(props.sequence);
console.log({ state })
return <div className="page"> return <div className="page">
<Button onClick={() => setOpen(!open)}>Open Editor</Button> <Button onClick={() => setOpen(!open)}>Open Editor</Button>
<Modal open={open}> <Modal open={open}>
@@ -27,7 +27,6 @@ export const useMultiNodeEditorState = (props: MultiNodeEditorProps) => {
internalNodeModified, internalNodeModified,
} = state; } = state;
const setState = (a: MultiNodeEditorInternalState) => { const setState = (a: MultiNodeEditorInternalState) => {
console.log('setting state', a)
_setState(a) _setState(a)
} }
return { return {
-1
View File
@@ -3,7 +3,6 @@ import { AutomationTrigger } from 'types/automations/triggers';
export const getNodeType = (node: AutomationNode): AutomationNodeTypes => { export const getNodeType = (node: AutomationNode): AutomationNodeTypes => {
console.log({ node })
if ('condition' in node) { if ('condition' in node) {
return 'condition' return 'condition'
} else if ('platform' in node) { } else if ('platform' in node) {