From 174ab59004b804f310d486f283ae1e6849856c7b Mon Sep 17 00:00:00 2001 From: ayzen Date: Mon, 10 Nov 2025 13:45:03 +0300 Subject: [PATCH] removed saving notifications --- vna_system/core/config.py | 2 +- vna_system/web_ui/static/js/modules/charts.js | 18 ------------------ .../web_ui/static/js/modules/settings.js | 4 ---- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/vna_system/core/config.py b/vna_system/core/config.py index 723b3f7..f697f44 100644 --- a/vna_system/core/config.py +++ b/vna_system/core/config.py @@ -35,7 +35,7 @@ VNA_PID = 0x5740 # STM32 Virtual ComPort # ----------------------------------------------------------------------------- # Simulator mode settings # ----------------------------------------------------------------------------- -USE_SIMULATOR = True # Set to True to use simulator instead of real device +USE_SIMULATOR = False # Set to True to use simulator instead of real device SIMULATOR_SWEEP_FILE = BASE_DIR / "binary_input" / "sweep_example" / "example.json" SIMULATOR_NOISE_LEVEL = 100 # Standard deviation of Gaussian noise to add to real and imaginary parts diff --git a/vna_system/web_ui/static/js/modules/charts.js b/vna_system/web_ui/static/js/modules/charts.js index 7a13fe9..b5a849e 100644 --- a/vna_system/web_ui/static/js/modules/charts.js +++ b/vna_system/web_ui/static/js/modules/charts.js @@ -374,12 +374,6 @@ export class ChartManager { if (processorData) { downloadJSON(processorData, `${baseFilename}_data.json`); } - - this.notifications?.show?.({ - type: 'success', - title: 'Скачивание завершено', - message: `Скачаны график и данные ${formatProcessorName(id)}` - }); } }; @@ -396,12 +390,6 @@ export class ChartManager { if (processorData) { downloadJSON(processorData, `${baseFilename}_data.json`); } - - this.notifications?.show?.({ - type: 'warning', - title: 'Скачивание завершено', - message: `График скачан. Данные ограничены (нет подключения к серверу)` - }); } } catch (e) { console.error('Chart download failed:', e); @@ -592,12 +580,6 @@ export class ChartManager { } console.log('Total exported files:', exportedCount); - - this.notifications?.show?.({ - type: 'success', - title: 'Экспорт завершён', - message: `Данные свипов экспортированы для ${processorId}` - }); } exportPointsToTSV(points, vnaConfig, filename) { diff --git a/vna_system/web_ui/static/js/modules/settings.js b/vna_system/web_ui/static/js/modules/settings.js index 6f15839..4eb1aa3 100644 --- a/vna_system/web_ui/static/js/modules/settings.js +++ b/vna_system/web_ui/static/js/modules/settings.js @@ -569,8 +569,6 @@ export class SettingsManager { plot_data: plotsData.plot }; downloadJSON(data, `${base}_data.json`); - - this.notify(SUCCESS, 'Скачивание завершено', `Скачаны график и данные эталона ${plotsData.reference_name}`); } catch (e) { console.error('Download reference failed:', e); this.notify(ERROR, 'Ошибка скачивания', 'Не удалось скачать данные эталона'); @@ -589,8 +587,6 @@ export class SettingsManager { const data = this.prepareCalibrationDownloadData(standardName); downloadJSON(data, `${base}_data.json`); - - this.notify(SUCCESS, 'Скачивание завершено', `Скачаны график и данные стандарта ${standardName.toUpperCase()}`); } catch (e) { console.error('Download standard failed:', e); this.notify(ERROR, 'Ошибка скачивания', 'Не удалось скачать данные калибровки');