From f32e1600a8abb040588e340cfac98fe443c270f6 Mon Sep 17 00:00:00 2001 From: Romulus21 Date: Sun, 24 Sep 2023 16:13:28 +0200 Subject: [PATCH] remove console.log( --- Makefile | 2 +- resources/js/components/rainfall/RainfallGraph.tsx | 1 - resources/js/pages/Auth/Register.tsx | 1 - resources/js/pages/Rainfall/RainfallIndex.tsx | 1 - resources/js/utilities/form.ts | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 77af425..eaa04ce 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ deploy: public/build/manifest.json scp raspigate:/var/www/html/lara-bermite/.env .env.prod - pnpm run build + pnpm run build --mode prod ssh raspigate 'cd /var/www/html/lara-bermite && git pull origin master && make install' scp -r public/build raspigate:/var/www/html/lara-bermite/public scp -r public/images raspigate:/var/www/html/lara-bermite/public diff --git a/resources/js/components/rainfall/RainfallGraph.tsx b/resources/js/components/rainfall/RainfallGraph.tsx index db03f45..0a8e8a8 100644 --- a/resources/js/components/rainfall/RainfallGraph.tsx +++ b/resources/js/components/rainfall/RainfallGraph.tsx @@ -14,7 +14,6 @@ const RainfallGraph: FC = ({width, height, data, start_date, const margin = {top: 10, right: 30, bottom: 30, left: 20} const gWidth = width - margin.left - margin.right const gHeight = height - margin.top - margin.bottom - console.log('data', data) d3.select(svgRef.current).selectAll("*").remove() const svg = d3.select(svgRef.current) diff --git a/resources/js/pages/Auth/Register.tsx b/resources/js/pages/Auth/Register.tsx index 87aaca7..5d8c71e 100644 --- a/resources/js/pages/Auth/Register.tsx +++ b/resources/js/pages/Auth/Register.tsx @@ -16,7 +16,6 @@ const Register = () => { try { await axios.get('/sanctum/csrf-cookie') const res = await axios.post('/api/register', {name, email, password}) - console.log(name, email, password) navigate('/') } catch (e) { console.error(e) diff --git a/resources/js/pages/Rainfall/RainfallIndex.tsx b/resources/js/pages/Rainfall/RainfallIndex.tsx index 942cdc2..3ab7daf 100644 --- a/resources/js/pages/Rainfall/RainfallIndex.tsx +++ b/resources/js/pages/Rainfall/RainfallIndex.tsx @@ -20,7 +20,6 @@ const RainfallIndex = () => { setLastPage(res.data.meta.last_page) setRainfalls([...rainfalls, ...res.data.data]) } catch (error) { - console.log(error) errorCatch(error) } } diff --git a/resources/js/utilities/form.ts b/resources/js/utilities/form.ts index ac8b7f2..7fbd562 100644 --- a/resources/js/utilities/form.ts +++ b/resources/js/utilities/form.ts @@ -12,7 +12,6 @@ export function displayFormErrors(error: any, form: HTMLElement|null = null) { export function displayError(key: string, message: string, form: HTMLElement|null = null) { const formBase = (form) ? form : document const input = formBase.querySelector(`input[name="${key}"], select[name="${key}"], textarea[name="${key}"]`) - console.log(input) if (input) { const formControl = input.closest('.form-control') if (formControl) {