update project
This commit is contained in:
@@ -50,7 +50,6 @@ const RainFallEcharts: FC<RainFallEchartsProps> = ({width, height, data, loading
|
||||
|
||||
useEffect(() => {
|
||||
let chart: ECharts | undefined
|
||||
console.log('in', width, height)
|
||||
if (chartRef.current !== null) {
|
||||
chart = init(chartRef.current)
|
||||
}
|
||||
@@ -67,9 +66,7 @@ const RainFallEcharts: FC<RainFallEchartsProps> = ({width, height, data, loading
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
console.log('data')
|
||||
if (chartRef.current !== null) {
|
||||
console.log('data', data)
|
||||
const chart = getInstanceByDom(chartRef.current)
|
||||
chart?.setOption(option)
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ export const AuthUserProvider = ({children}: PropsWithChildren) => {
|
||||
// @ts-expect-error check axios response status
|
||||
if (error.response.status === 401) {
|
||||
console.info('no user login')
|
||||
let url = window.location.pathname.split('/')[1]
|
||||
if (!['connexion', 'changer-le-mot-de-passe'].includes(url)) {
|
||||
const url = window.location.pathname.split('/')[1]
|
||||
if (!['connexion', 'changer-le-mot-de-passe', 'sinscrire'].includes(url)) {
|
||||
window.location.href = '/connexion'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {useState} from "react"
|
||||
import axios, {AxiosError} from "axios"
|
||||
import React from "react"
|
||||
import {cleanErrorsForm, displayFormErrors, ValidationErrors} from "../utilities/form"
|
||||
import {cleanErrorsForm, displayFormErrors} from "../utilities/form"
|
||||
|
||||
const useAxiosTools = () => {
|
||||
|
||||
|
||||
@@ -110,7 +110,6 @@ const WeatherCard: FC<{ date: string, values: WeatherValue[] }> = ({date, values
|
||||
const [showDetails, setShowDetails] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
console.log(values)
|
||||
const weatherState = {
|
||||
min: 100,
|
||||
max: -100,
|
||||
@@ -171,7 +170,7 @@ const WeatherCard: FC<{ date: string, values: WeatherValue[] }> = ({date, values
|
||||
<span className="text-secondary dark:text-secondary-ligth">{weatherState?.min.toFixed()} °C</span>
|
||||
</div>
|
||||
</div>
|
||||
<WeatherDetails showDetails={showDetails} closeDetails={() => showDetails(false)} values={values}/>
|
||||
<WeatherDetails showDetails={showDetails} closeDetails={() => setShowDetails(false)} values={values}/>
|
||||
</>
|
||||
}
|
||||
|
||||
|
||||
19
resources/views/vendor/pulse/dashboard.blade.php
vendored
19
resources/views/vendor/pulse/dashboard.blade.php
vendored
@@ -1,19 +0,0 @@
|
||||
<x-pulse>
|
||||
<livewire:pulse.servers cols="full" />
|
||||
|
||||
<livewire:pulse.usage cols="4" rows="2" />
|
||||
|
||||
<livewire:pulse.queues cols="4" />
|
||||
|
||||
<livewire:pulse.cache cols="4" />
|
||||
|
||||
<livewire:pulse.slow-queries cols="8" />
|
||||
|
||||
<livewire:pulse.exceptions cols="6" />
|
||||
|
||||
<livewire:pulse.slow-requests cols="6" />
|
||||
|
||||
<livewire:pulse.slow-jobs cols="6" />
|
||||
|
||||
<livewire:pulse.slow-outgoing-requests cols="6" />
|
||||
</x-pulse>
|
||||
Reference in New Issue
Block a user