From 257c47104eb14e7fd58f6c1bc6e3dc7bab3e3696 Mon Sep 17 00:00:00 2001 From: Ali Torabi Date: Mon, 22 Jul 2024 21:12:28 +0200 Subject: [PATCH] Remove the console log --- .../fireback/components/common-data-table/CommonDataTable.tsx | 1 - .../fireback/components/forms/form-currency/FormCurrency.tsx | 1 - .../components/forms/form-date/react-real-datepicker.tsx | 2 -- .../src/modules/fireback/components/layouts/MenuParticle.tsx | 2 -- .../src/modules/fireback/components/layouts/Sidebar.tsx | 2 -- .../react-new/src/modules/fireback/hooks/accessLevels.ts | 2 -- .../codegen/react-new/src/modules/fireback/hooks/mock-tools.ts | 1 - .../codegen/react-new/src/modules/fireback/hooks/source.ts | 1 - .../src/modules/fireback/modules/drive/DriveTools.tsx | 3 --- .../react-new/src/modules/fireback/sdk/core/react-tools.tsx | 3 --- 10 files changed, 18 deletions(-) diff --git a/modules/workspaces/codegen/react-new/src/modules/fireback/components/common-data-table/CommonDataTable.tsx b/modules/workspaces/codegen/react-new/src/modules/fireback/components/common-data-table/CommonDataTable.tsx index 2f065ed7..bbc5cdc5 100644 --- a/modules/workspaces/codegen/react-new/src/modules/fireback/components/common-data-table/CommonDataTable.tsx +++ b/modules/workspaces/codegen/react-new/src/modules/fireback/components/common-data-table/CommonDataTable.tsx @@ -241,7 +241,6 @@ export function CommonDataTable({ const newSelection = gridRows .filter((x, i) => selIndex.includes(i)) .map((d) => d.uniqueId); - console.log(21, selIndex, newSelection); setSelection(newSelection); }} /> diff --git a/modules/workspaces/codegen/react-new/src/modules/fireback/components/forms/form-currency/FormCurrency.tsx b/modules/workspaces/codegen/react-new/src/modules/fireback/components/forms/form-currency/FormCurrency.tsx index 8bc420ae..fde640b5 100644 --- a/modules/workspaces/codegen/react-new/src/modules/fireback/components/forms/form-currency/FormCurrency.tsx +++ b/modules/workspaces/codegen/react-new/src/modules/fireback/components/forms/form-currency/FormCurrency.tsx @@ -64,7 +64,6 @@ export const FormCurrency = (props: FormCurrencyProps) => { )} onValueChange={(value, name) => { onChange && onChange("" + value); - console.log(value, name); }} /> diff --git a/modules/workspaces/codegen/react-new/src/modules/fireback/components/forms/form-date/react-real-datepicker.tsx b/modules/workspaces/codegen/react-new/src/modules/fireback/components/forms/form-date/react-real-datepicker.tsx index 143951c1..c270144e 100644 --- a/modules/workspaces/codegen/react-new/src/modules/fireback/components/forms/form-date/react-real-datepicker.tsx +++ b/modules/workspaces/codegen/react-new/src/modules/fireback/components/forms/form-date/react-real-datepicker.tsx @@ -91,8 +91,6 @@ export function ReactRealDatePicker({ [field]: value, }; - console.log(newV); - // const val = valueToDateNano(+newV.year, +newV.month, +newV.day, type); // Add 6 hours to cope with timezone issue. // Real fix is to add time zone diff --git a/modules/workspaces/codegen/react-new/src/modules/fireback/components/layouts/MenuParticle.tsx b/modules/workspaces/codegen/react-new/src/modules/fireback/components/layouts/MenuParticle.tsx index 14378f41..f42fb931 100644 --- a/modules/workspaces/codegen/react-new/src/modules/fireback/components/layouts/MenuParticle.tsx +++ b/modules/workspaces/codegen/react-new/src/modules/fireback/components/layouts/MenuParticle.tsx @@ -94,8 +94,6 @@ export function MenuParticle({ urws: queryWorkspaces.data?.data?.items || [], }); - console.log(25, menuRendered); - // Here we decide if there is a single item, or has children. // if it doesn't have children, means itself is a menu diff --git a/modules/workspaces/codegen/react-new/src/modules/fireback/components/layouts/Sidebar.tsx b/modules/workspaces/codegen/react-new/src/modules/fireback/components/layouts/Sidebar.tsx index 6d0ebf50..d23305c7 100644 --- a/modules/workspaces/codegen/react-new/src/modules/fireback/components/layouts/Sidebar.tsx +++ b/modules/workspaces/codegen/react-new/src/modules/fireback/components/layouts/Sidebar.tsx @@ -103,8 +103,6 @@ function Sidebar({ menu }: { menu: MenuItem | MenuItem[] }) { menus.push(menu); } - console.log(333, menu); - return (
[] => { - console.log("start", files); const result = files.map((file) => { return new Promise( (resolve: (t: string) => void, reject: (err: any) => void) => { @@ -62,7 +61,6 @@ export function useFileUploader() { onSuccess() { const uploadId = upload.url?.match(/([a-z0-9]){10,}/gi); resolve(`${uploadId}`); - console.log("Success", upload); }, onError(error) { alert(error); @@ -95,7 +93,6 @@ export function useFileUploader() { ); }); - console.log("items", result); return result; }; diff --git a/modules/workspaces/codegen/react-new/src/modules/fireback/sdk/core/react-tools.tsx b/modules/workspaces/codegen/react-new/src/modules/fireback/sdk/core/react-tools.tsx index 4efcd728..b005960b 100644 --- a/modules/workspaces/codegen/react-new/src/modules/fireback/sdk/core/react-tools.tsx +++ b/modules/workspaces/codegen/react-new/src/modules/fireback/sdk/core/react-tools.tsx @@ -310,8 +310,6 @@ export function useFileUploader() { { uploadId, bytesSent, bytesTotal, filename: file.name }, ]); } - - console.log(bytesSent, bytesTotal); }, }); @@ -494,7 +492,6 @@ export function useSocket(remote, token, workspaceId, queryClient) { `${wsRemote}ws?token=${token}&workspaceId=${workspaceId}` ); conn.onerror = function (evt) { - console.log("Closed", evt); setSocketState({ state: "error" }); }; conn.onclose = function (evt) {