remove console.log(
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
|||||||
deploy: public/build/manifest.json
|
deploy: public/build/manifest.json
|
||||||
scp raspigate:/var/www/html/lara-bermite/.env .env.prod
|
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'
|
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/build raspigate:/var/www/html/lara-bermite/public
|
||||||
scp -r public/images 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 margin = {top: 10, right: 30, bottom: 30, left: 20}
|
||||||
const gWidth = width - margin.left - margin.right
|
const gWidth = width - margin.left - margin.right
|
||||||
const gHeight = height - margin.top - margin.bottom
|
const gHeight = height - margin.top - margin.bottom
|
||||||
console.log('data', data)
|
|
||||||
|
|
||||||
d3.select(svgRef.current).selectAll("*").remove()
|
d3.select(svgRef.current).selectAll("*").remove()
|
||||||
const svg = d3.select(svgRef.current)
|
const svg = d3.select(svgRef.current)
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ const Register = () => {
|
|||||||
try {
|
try {
|
||||||
await axios.get('/sanctum/csrf-cookie')
|
await axios.get('/sanctum/csrf-cookie')
|
||||||
const res = await axios.post('/api/register', {name, email, password})
|
const res = await axios.post('/api/register', {name, email, password})
|
||||||
console.log(name, email, password)
|
|
||||||
navigate('/')
|
navigate('/')
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ const RainfallIndex = () => {
|
|||||||
setLastPage(res.data.meta.last_page)
|
setLastPage(res.data.meta.last_page)
|
||||||
setRainfalls([...rainfalls, ...res.data.data])
|
setRainfalls([...rainfalls, ...res.data.data])
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
|
||||||
errorCatch(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) {
|
export function displayError(key: string, message: string, form: HTMLElement|null = null) {
|
||||||
const formBase = (form) ? form : document
|
const formBase = (form) ? form : document
|
||||||
const input = formBase.querySelector(`input[name="${key}"], select[name="${key}"], textarea[name="${key}"]`)
|
const input = formBase.querySelector(`input[name="${key}"], select[name="${key}"], textarea[name="${key}"]`)
|
||||||
console.log(input)
|
|
||||||
if (input) {
|
if (input) {
|
||||||
const formControl = input.closest('.form-control')
|
const formControl = input.closest('.form-control')
|
||||||
if (formControl) {
|
if (formControl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user