Add weather information section and update dependencies

- Introduced a new CropZoningWeatherSection component to display weather data in the crop zoning dashboard.
- Updated package.json and package-lock.json to include chart.js and react-chartjs-2 for enhanced data visualization.
- Added Persian translations for weather-related UI elements to support localization.
This commit is contained in:
2026-02-20 23:08:44 +03:30
parent 02e966e997
commit bb83ab506e
8 changed files with 692 additions and 12 deletions
+30
View File
@@ -51,6 +51,7 @@
"@types/leaflet-draw": "^1.0.13",
"apexcharts": "3.49.0",
"bootstrap-icons": "1.11.3",
"chart.js": "^4.5.1",
"classnames": "2.5.1",
"cmdk": "1.0.4",
"date-fns": "4.1.0",
@@ -66,6 +67,7 @@
"next-intl": "3.25.2",
"react": "18.3.1",
"react-apexcharts": "1.4.1",
"react-chartjs-2": "^5.3.1",
"react-colorful": "5.6.1",
"react-date-object": "1.1.9",
"react-datepicker": "7.3.0",
@@ -1707,6 +1709,12 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
"node_modules/@kurkle/color": {
"version": "0.3.4",
"resolved": "https://mirror-npm.runflare.com/@kurkle/color/-/color-0.3.4.tgz",
"integrity": "sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w==",
"license": "MIT"
},
"node_modules/@mapbox/geojson-area": {
"version": "0.2.2",
"resolved": "https://mirror-npm.runflare.com/@mapbox/geojson-area/-/geojson-area-0.2.2.tgz",
@@ -4566,6 +4574,18 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/chart.js": {
"version": "4.5.1",
"resolved": "https://mirror-npm.runflare.com/chart.js/-/chart.js-4.5.1.tgz",
"integrity": "sha512-GIjfiT9dbmHRiYi6Nl2yFCq7kkwdkp1W/lp2J99rX0yo9tgJGn3lKQATztIjb5tVtevcBtIdICNWqlq5+E8/Pw==",
"license": "MIT",
"dependencies": {
"@kurkle/color": "^0.3.0"
},
"engines": {
"pnpm": ">=8"
}
},
"node_modules/cheap-ruler": {
"version": "4.0.0",
"license": "ISC"
@@ -8952,6 +8972,16 @@
"react": ">=0.13"
}
},
"node_modules/react-chartjs-2": {
"version": "5.3.1",
"resolved": "https://mirror-npm.runflare.com/react-chartjs-2/-/react-chartjs-2-5.3.1.tgz",
"integrity": "sha512-h5IPXKg9EXpjoBzUfyWJvllMjG2mQ4EiuHQFhms/AjUm0XSZHhyRy2xVmLXHKrtcdrPO4mnGqRtYoD0vp95A0A==",
"license": "MIT",
"peerDependencies": {
"chart.js": "^4.1.1",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
"node_modules/react-colorful": {
"version": "5.6.1",
"license": "MIT",