update project
This commit is contained in:
10
Makefile
10
Makefile
@@ -1,10 +1,10 @@
|
|||||||
deploy: public/build/manifest.json
|
deploy: public/build/manifest.json
|
||||||
scp raspigate:/var/www/html/lara-bermite/.env .env.prod
|
scp raspiweb:/var/www/lara-bermite/.env .env.prod
|
||||||
pnpm run build --mode prod
|
pnpm run build --mode prod
|
||||||
ssh raspigate 'cd /var/www/html/lara-bermite && git pull origin master && make install'
|
ssh raspiweb 'cd /var/www/lara-bermite && git pull origin master && make install'
|
||||||
scp -r public/build raspigate:/var/www/html/lara-bermite/public
|
scp -r public/build raspiweb:/var/www/lara-bermite/public
|
||||||
scp -r public/build/manifest.webmanifest raspigate:/var/www/html/lara-bermite/public
|
scp -r public/build/manifest.webmanifest raspiweb:/var/www/lara-bermite/public
|
||||||
scp -r public/images raspigate:/var/www/html/lara-bermite/public
|
scp -r public/images raspiweb:/var/www/lara-bermite/public
|
||||||
|
|
||||||
install: vendor/autoload.php
|
install: vendor/autoload.php
|
||||||
php artisan down
|
php artisan down
|
||||||
|
|||||||
2062
composer.lock
generated
2062
composer.lock
generated
File diff suppressed because it is too large
Load Diff
32
package.json
32
package.json
@@ -11,30 +11,30 @@
|
|||||||
"generate-pwa-assets": "pwa-assets-generator"
|
"generate-pwa-assets": "pwa-assets-generator"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/forms": "^0.5.7",
|
"@tailwindcss/forms": "^0.5.10",
|
||||||
"@types/react": "^18.3.3",
|
"@types/react": "^18.3.26",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.7",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.10.0",
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
||||||
"@vite-pwa/assets-generator": "^0.0.11",
|
"@vite-pwa/assets-generator": "^0.0.11",
|
||||||
"@vitejs/plugin-react": "^4.3.0",
|
"@vitejs/plugin-react": "^4.7.0",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.21",
|
||||||
"axios": "^1.7.2",
|
"axios": "^1.12.2",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-plugin-react": "^7.34.1",
|
"eslint-plugin-react": "^7.37.5",
|
||||||
"eslint-plugin-react-hooks": "^4.6.2",
|
"eslint-plugin-react-hooks": "^4.6.2",
|
||||||
"eslint-plugin-tailwindcss": "^3.17.0",
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
||||||
"laravel-vite-plugin": "^0.8.1",
|
"laravel-vite-plugin": "^0.8.1",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.5.6",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
"rollup-plugin-copy": "^3.5.0",
|
"rollup-plugin-copy": "^3.5.0",
|
||||||
"tailwindcss": "^3.4.3",
|
"tailwindcss": "^3.4.18",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "^5.9.3",
|
||||||
"vite": "^4.5.3"
|
"vite": "^4.5.14"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"echarts": "^5.5.0",
|
"echarts": "^5.6.0",
|
||||||
"react-router-dom": "^6.23.1",
|
"react-router-dom": "^6.30.1",
|
||||||
"vite-plugin-pwa": "^0.17.5"
|
"vite-plugin-pwa": "^0.17.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8082
pnpm-lock.yaml
generated
8082
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -50,7 +50,6 @@ const RainFallEcharts: FC<RainFallEchartsProps> = ({width, height, data, loading
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let chart: ECharts | undefined
|
let chart: ECharts | undefined
|
||||||
console.log('in', width, height)
|
|
||||||
if (chartRef.current !== null) {
|
if (chartRef.current !== null) {
|
||||||
chart = init(chartRef.current)
|
chart = init(chartRef.current)
|
||||||
}
|
}
|
||||||
@@ -67,9 +66,7 @@ const RainFallEcharts: FC<RainFallEchartsProps> = ({width, height, data, loading
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('data')
|
|
||||||
if (chartRef.current !== null) {
|
if (chartRef.current !== null) {
|
||||||
console.log('data', data)
|
|
||||||
const chart = getInstanceByDom(chartRef.current)
|
const chart = getInstanceByDom(chartRef.current)
|
||||||
chart?.setOption(option)
|
chart?.setOption(option)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ export const AuthUserProvider = ({children}: PropsWithChildren) => {
|
|||||||
// @ts-expect-error check axios response status
|
// @ts-expect-error check axios response status
|
||||||
if (error.response.status === 401) {
|
if (error.response.status === 401) {
|
||||||
console.info('no user login')
|
console.info('no user login')
|
||||||
let url = window.location.pathname.split('/')[1]
|
const url = window.location.pathname.split('/')[1]
|
||||||
if (!['connexion', 'changer-le-mot-de-passe'].includes(url)) {
|
if (!['connexion', 'changer-le-mot-de-passe', 'sinscrire'].includes(url)) {
|
||||||
window.location.href = '/connexion'
|
window.location.href = '/connexion'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {useState} from "react"
|
import {useState} from "react"
|
||||||
import axios, {AxiosError} from "axios"
|
import axios, {AxiosError} from "axios"
|
||||||
import React from "react"
|
import React from "react"
|
||||||
import {cleanErrorsForm, displayFormErrors, ValidationErrors} from "../utilities/form"
|
import {cleanErrorsForm, displayFormErrors} from "../utilities/form"
|
||||||
|
|
||||||
const useAxiosTools = () => {
|
const useAxiosTools = () => {
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,6 @@ const WeatherCard: FC<{ date: string, values: WeatherValue[] }> = ({date, values
|
|||||||
const [showDetails, setShowDetails] = useState(false)
|
const [showDetails, setShowDetails] = useState(false)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(values)
|
|
||||||
const weatherState = {
|
const weatherState = {
|
||||||
min: 100,
|
min: 100,
|
||||||
max: -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>
|
<span className="text-secondary dark:text-secondary-ligth">{weatherState?.min.toFixed()} °C</span>
|
||||||
</div>
|
</div>
|
||||||
</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