From e013af0bc65c87cc13b477b8f4b8e7f3340d262d Mon Sep 17 00:00:00 2001 From: Marco Montanari Date: Tue, 12 Nov 2024 15:51:08 +0100 Subject: [PATCH] updates --- src/app/components/DownloadDataDialog/debug.log | 2 ++ src/app/components/Map/debug.log | 2 ++ src/app/components/TimeSeriesDialog/DownloadForm.tsx | 8 ++++---- src/app/components/TimeSeriesDialog/TSDataContainer.tsx | 6 +++++- src/app/components/TimeSeriesDialog/debug.log | 3 +++ src/app/components/TimeSeriesDialog/index.tsx | 2 +- src/app/pages/IndexPage/debug.log | 1 + src/locales/it/debug.log | 1 + src/locales/it/translation.json | 1 + 9 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/app/components/DownloadDataDialog/debug.log b/src/app/components/DownloadDataDialog/debug.log index 231a47d..04a2ec6 100644 --- a/src/app/components/DownloadDataDialog/debug.log +++ b/src/app/components/DownloadDataDialog/debug.log @@ -6,3 +6,5 @@ [1112/140102.193:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) [1112/140116.382:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) [1112/142012.636:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) +[1112/152657.945:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) +[1112/154406.580:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) diff --git a/src/app/components/Map/debug.log b/src/app/components/Map/debug.log index 63949a9..c820850 100644 --- a/src/app/components/Map/debug.log +++ b/src/app/components/Map/debug.log @@ -4,3 +4,5 @@ [1014/181638.820:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) [1112/141646.611:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) [1112/141652.092:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) +[1112/152823.029:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) +[1112/152826.226:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) diff --git a/src/app/components/TimeSeriesDialog/DownloadForm.tsx b/src/app/components/TimeSeriesDialog/DownloadForm.tsx index 0a62f96..6116d15 100644 --- a/src/app/components/TimeSeriesDialog/DownloadForm.tsx +++ b/src/app/components/TimeSeriesDialog/DownloadForm.tsx @@ -171,8 +171,8 @@ export const DownloadForm = props => { ids: ids.current, latitude: latLng.lat, longitude: latLng.lng, - start: timeRange?.current?.start, - end: timeRange?.current?.end, + start: timeRange?.current?.start || 0, + end: timeRange?.current?.end || 124, fitms: filter, sfs: filter.current?.series?.flat(), }; @@ -218,8 +218,8 @@ export const DownloadForm = props => { ids: ids.current, latitude: latLng.lat, longitude: latLng.lng, - start: timeRange?.current?.start, - end: timeRange?.current?.end, + start: timeRange?.current?.start || 0, + end: timeRange?.current?.end || 124, fitms: filter, sfs: filter.current?.series?.flat(), }; diff --git a/src/app/components/TimeSeriesDialog/TSDataContainer.tsx b/src/app/components/TimeSeriesDialog/TSDataContainer.tsx index 3d58e57..e880b8b 100644 --- a/src/app/components/TimeSeriesDialog/TSDataContainer.tsx +++ b/src/app/components/TimeSeriesDialog/TSDataContainer.tsx @@ -874,6 +874,10 @@ const TSDataContainer = (props: TSDataContainerProps) => { sensorProcessingMehtod, uv, ); + setTimeRange({ + start: 0, + end: 2100 - baseValue, + }); }, }, saveAsImage: { @@ -922,7 +926,7 @@ const TSDataContainer = (props: TSDataContainerProps) => { : currentLayer?.unit_italian) || '', nameTextStyle: { align: 'center', - padding: 15, + padding: 5, }, }, dataZoom: [ diff --git a/src/app/components/TimeSeriesDialog/debug.log b/src/app/components/TimeSeriesDialog/debug.log index affad4f..bbb12bc 100644 --- a/src/app/components/TimeSeriesDialog/debug.log +++ b/src/app/components/TimeSeriesDialog/debug.log @@ -11,3 +11,6 @@ [1112/144110.630:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) [1112/144707.673:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) [1112/144717.440:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) +[1112/152828.359:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) +[1112/152835.150:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) +[1112/154411.266:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) diff --git a/src/app/components/TimeSeriesDialog/index.tsx b/src/app/components/TimeSeriesDialog/index.tsx index 64610ee..4df15e0 100644 --- a/src/app/components/TimeSeriesDialog/index.tsx +++ b/src/app/components/TimeSeriesDialog/index.tsx @@ -113,7 +113,7 @@ const TimeSeriesDialog = (props: TimeSeriesDialogProps) => { - {t('app.header.acronymMeaning')} + {t('app.header.timeseries')} diff --git a/src/app/pages/IndexPage/debug.log b/src/app/pages/IndexPage/debug.log index 6f1fb6f..d4ae6f4 100644 --- a/src/app/pages/IndexPage/debug.log +++ b/src/app/pages/IndexPage/debug.log @@ -8,3 +8,4 @@ [1112/140649.331:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) [1112/144909.846:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) [1112/144919.001:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) +[1112/152819.145:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) diff --git a/src/locales/it/debug.log b/src/locales/it/debug.log index 2352489..b17ff73 100644 --- a/src/locales/it/debug.log +++ b/src/locales/it/debug.log @@ -1 +1,2 @@ [0925/121957.341:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) +[1112/154545.360:ERROR:registration_protocol_win.cc(108)] CreateFile: Impossibile trovare il file specificato. (0x2) diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json index 8b02377..f302d35 100644 --- a/src/locales/it/translation.json +++ b/src/locales/it/translation.json @@ -12,6 +12,7 @@ "app.error.dlTimeSeries": "Errore nel download dei dati.", "app.error.dlNetcdf": "Errore nel download del NetCDF.", "app.header.acronymMeaning": "Piattaforma Clima Nord-Est", + "app.header.timeseries": "Modulo Serie Temporale", "app.header.menu.info": "Info e avvertenze", "app.header.menu.privacyPolicy": "Privacy Policy", "app.header.menu.dataPolicy": "Data Policy",