remove console.log(
This commit is contained in:
2
Makefile
2
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
|
||||
|
||||
@@ -14,7 +14,6 @@ const RainfallGraph: FC<RainfallGraphProps> = ({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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -20,7 +20,6 @@ const RainfallIndex = () => {
|
||||
setLastPage(res.data.meta.last_page)
|
||||
setRainfalls([...rainfalls, ...res.data.data])
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
errorCatch(error)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user