From d2f017ebce13298b33fa554e096b986e5d2a8d70 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 20 Jul 2025 17:34:02 +0300 Subject: [PATCH 1/2] added storage for uiresults --- frontend/.dart_tool/package_config.json | 106 +++++------ frontend/.dart_tool/package_config_subset | 222 +++++++++++----------- frontend/.dart_tool/version | 2 +- frontend/android/local.properties | 4 +- internal/domain/payload.go | 8 +- internal/handlers/resultsPDF.go | 4 +- internal/routes/routes.go | 2 +- internal/storage/storage.go | 0 8 files changed, 171 insertions(+), 177 deletions(-) create mode 100644 internal/storage/storage.go diff --git a/frontend/.dart_tool/package_config.json b/frontend/.dart_tool/package_config.json index fc011c5..9af832d 100644 --- a/frontend/.dart_tool/package_config.json +++ b/frontend/.dart_tool/package_config.json @@ -3,295 +3,295 @@ "packages": [ { "name": "async", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/async-2.13.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.13.0", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "boolean_selector", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/boolean_selector-2.1.2", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.2", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "characters", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/characters-1.4.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.4.0", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "clock", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/clock-1.1.2", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.2", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "collection", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/collection-1.19.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.19.1", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "cupertino_icons", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/cupertino_icons-1.0.8", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "fake_async", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/fake_async-1.3.3", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.3", "packageUri": "lib/", "languageVersion": "3.3" }, { "name": "ffi", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/ffi-2.1.3", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/ffi-2.1.3", "packageUri": "lib/", "languageVersion": "3.3" }, { "name": "file", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/file-7.0.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/file-7.0.1", "packageUri": "lib/", "languageVersion": "3.0" }, { "name": "flutter", - "rootUri": "file:///Users/danila/development/flutter/packages/flutter", + "rootUri": "file:///C:/FlutterSDK/flutter/packages/flutter", "packageUri": "lib/", "languageVersion": "3.7" }, { "name": "flutter_lints", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/flutter_lints-5.0.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-5.0.0", "packageUri": "lib/", "languageVersion": "3.5" }, { "name": "flutter_test", - "rootUri": "file:///Users/danila/development/flutter/packages/flutter_test", + "rootUri": "file:///C:/FlutterSDK/flutter/packages/flutter_test", "packageUri": "lib/", "languageVersion": "3.7" }, { "name": "flutter_web_plugins", - "rootUri": "file:///Users/danila/development/flutter/packages/flutter_web_plugins", + "rootUri": "file:///C:/FlutterSDK/flutter/packages/flutter_web_plugins", "packageUri": "lib/", "languageVersion": "3.7" }, { "name": "http", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/http-1.4.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http-1.4.0", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "http_parser", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/http_parser-4.1.2", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http_parser-4.1.2", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "leak_tracker", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker-10.0.9", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-10.0.9", "packageUri": "lib/", "languageVersion": "3.2" }, { "name": "leak_tracker_flutter_testing", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9", "packageUri": "lib/", "languageVersion": "3.2" }, { "name": "leak_tracker_testing", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.1", "packageUri": "lib/", "languageVersion": "3.2" }, { "name": "lints", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/lints-5.1.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/lints-5.1.1", "packageUri": "lib/", "languageVersion": "3.6" }, { "name": "matcher", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/matcher-0.12.17", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.17", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "material_color_utilities", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1", "packageUri": "lib/", "languageVersion": "2.17" }, { "name": "meta", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/meta-1.16.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.16.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "nested", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/nested-1.0.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/nested-1.0.0", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "path", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/path-1.9.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.1", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "path_provider_linux", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_linux-2.2.1", "packageUri": "lib/", "languageVersion": "2.19" }, { "name": "path_provider_platform_interface", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_platform_interface-2.1.2", "packageUri": "lib/", "languageVersion": "3.0" }, { "name": "path_provider_windows", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_windows-2.3.0", "packageUri": "lib/", "languageVersion": "3.2" }, { "name": "platform", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/platform-3.1.6", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/platform-3.1.6", "packageUri": "lib/", "languageVersion": "3.2" }, { "name": "plugin_platform_interface", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/plugin_platform_interface-2.1.8", "packageUri": "lib/", "languageVersion": "3.0" }, { "name": "provider", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/provider-6.1.5", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/provider-6.1.5", "packageUri": "lib/", "languageVersion": "2.12" }, { "name": "shared_preferences", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences-2.5.3", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences-2.5.3", "packageUri": "lib/", "languageVersion": "3.5" }, { "name": "shared_preferences_android", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.10", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_android-2.4.10", "packageUri": "lib/", "languageVersion": "3.6" }, { "name": "shared_preferences_foundation", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_foundation-2.5.4", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "shared_preferences_linux", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_linux-2.4.1", "packageUri": "lib/", "languageVersion": "3.3" }, { "name": "shared_preferences_platform_interface", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1", "packageUri": "lib/", "languageVersion": "3.2" }, { "name": "shared_preferences_web", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_web-2.4.3", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "shared_preferences_windows", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_windows-2.4.1", "packageUri": "lib/", "languageVersion": "3.3" }, { "name": "sky_engine", - "rootUri": "file:///Users/danila/development/flutter/bin/cache/pkg/sky_engine", + "rootUri": "file:///C:/FlutterSDK/flutter/bin/cache/pkg/sky_engine", "packageUri": "lib/", "languageVersion": "3.7" }, { "name": "source_span", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/source_span-1.10.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.1", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "stack_trace", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/stack_trace-1.12.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.12.1", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "stream_channel", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/stream_channel-2.1.4", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.4", "packageUri": "lib/", "languageVersion": "3.3" }, { "name": "string_scanner", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/string_scanner-1.4.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.4.1", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "term_glyph", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/term_glyph-1.2.2", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.2", "packageUri": "lib/", "languageVersion": "3.1" }, { "name": "test_api", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/test_api-0.7.4", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.4", "packageUri": "lib/", "languageVersion": "3.5" }, { "name": "typed_data", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/typed_data-1.4.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/typed_data-1.4.0", "packageUri": "lib/", "languageVersion": "3.5" }, { "name": "vector_math", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/vector_math-2.1.4", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.1.4", "packageUri": "lib/", "languageVersion": "2.14" }, { "name": "vm_service", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/vm_service-15.0.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-15.0.0", "packageUri": "lib/", "languageVersion": "3.3" }, { "name": "web", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/web-1.1.1", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/web-1.1.1", "packageUri": "lib/", "languageVersion": "3.4" }, { "name": "xdg_directories", - "rootUri": "file:///Users/danila/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0", + "rootUri": "file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/xdg_directories-1.1.0", "packageUri": "lib/", "languageVersion": "3.3" }, @@ -304,7 +304,7 @@ ], "generator": "pub", "generatorVersion": "3.8.1", - "flutterRoot": "file:///Users/danila/development/flutter", - "flutterVersion": "3.32.6", - "pubCache": "file:///Users/danila/.pub-cache" -} \ No newline at end of file + "flutterRoot": "file:///C:/FlutterSDK/flutter", + "flutterVersion": "3.32.4", + "pubCache": "file:///C:/Users/nilov/AppData/Local/Pub/Cache" +} diff --git a/frontend/.dart_tool/package_config_subset b/frontend/.dart_tool/package_config_subset index 9227f1c..4f328fa 100644 --- a/frontend/.dart_tool/package_config_subset +++ b/frontend/.dart_tool/package_config_subset @@ -1,201 +1,201 @@ +inno_test +3.6 +file:///C:/Dev/projects/Autotester/frontend/ +file:///C:/Dev/projects/Autotester/frontend/lib/ +sky_engine +3.7 +file:///C:/FlutterSDK/flutter/bin/cache/pkg/sky_engine/ +file:///C:/FlutterSDK/flutter/bin/cache/pkg/sky_engine/lib/ +flutter +3.7 +file:///C:/FlutterSDK/flutter/packages/flutter/ +file:///C:/FlutterSDK/flutter/packages/flutter/lib/ +flutter_test +3.7 +file:///C:/FlutterSDK/flutter/packages/flutter_test/ +file:///C:/FlutterSDK/flutter/packages/flutter_test/lib/ +flutter_web_plugins +3.7 +file:///C:/FlutterSDK/flutter/packages/flutter_web_plugins/ +file:///C:/FlutterSDK/flutter/packages/flutter_web_plugins/lib/ async 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/async-2.13.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/async-2.13.0/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.13.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.13.0/lib/ boolean_selector 3.1 -file:///Users/danila/.pub-cache/hosted/pub.dev/boolean_selector-2.1.2/ -file:///Users/danila/.pub-cache/hosted/pub.dev/boolean_selector-2.1.2/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.2/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.2/lib/ characters 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/characters-1.4.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/characters-1.4.0/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.4.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.4.0/lib/ clock 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/clock-1.1.2/ -file:///Users/danila/.pub-cache/hosted/pub.dev/clock-1.1.2/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.2/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.2/lib/ collection 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/collection-1.19.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/collection-1.19.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.19.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.19.1/lib/ cupertino_icons 3.1 -file:///Users/danila/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/ -file:///Users/danila/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/cupertino_icons-1.0.8/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/cupertino_icons-1.0.8/lib/ fake_async 3.3 -file:///Users/danila/.pub-cache/hosted/pub.dev/fake_async-1.3.3/ -file:///Users/danila/.pub-cache/hosted/pub.dev/fake_async-1.3.3/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.3/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.3/lib/ ffi 3.3 -file:///Users/danila/.pub-cache/hosted/pub.dev/ffi-2.1.3/ -file:///Users/danila/.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/ffi-2.1.3/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/ffi-2.1.3/lib/ file 3.0 -file:///Users/danila/.pub-cache/hosted/pub.dev/file-7.0.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/file-7.0.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/file-7.0.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/file-7.0.1/lib/ flutter_lints 3.5 -file:///Users/danila/.pub-cache/hosted/pub.dev/flutter_lints-5.0.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/flutter_lints-5.0.0/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-5.0.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-5.0.0/lib/ http 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/http-1.4.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/http-1.4.0/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http-1.4.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http-1.4.0/lib/ http_parser 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/http_parser-4.1.2/ -file:///Users/danila/.pub-cache/hosted/pub.dev/http_parser-4.1.2/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http_parser-4.1.2/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http_parser-4.1.2/lib/ leak_tracker 3.2 -file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker-10.0.9/ -file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker-10.0.9/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-10.0.9/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-10.0.9/lib/ leak_tracker_flutter_testing 3.2 -file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/ -file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/lib/ leak_tracker_testing 3.2 -file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.1/lib/ lints 3.6 -file:///Users/danila/.pub-cache/hosted/pub.dev/lints-5.1.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/lints-5.1.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/lints-5.1.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/lints-5.1.1/lib/ matcher 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/matcher-0.12.17/ -file:///Users/danila/.pub-cache/hosted/pub.dev/matcher-0.12.17/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.17/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.17/lib/ material_color_utilities 2.17 -file:///Users/danila/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1/lib/ meta 2.12 -file:///Users/danila/.pub-cache/hosted/pub.dev/meta-1.16.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/meta-1.16.0/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.16.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.16.0/lib/ nested 2.12 -file:///Users/danila/.pub-cache/hosted/pub.dev/nested-1.0.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/nested-1.0.0/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/nested-1.0.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/nested-1.0.0/lib/ path 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/path-1.9.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/path-1.9.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.1/lib/ path_provider_linux 2.19 -file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_linux-2.2.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_linux-2.2.1/lib/ path_provider_platform_interface 3.0 -file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/ -file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/lib/ path_provider_windows 3.2 -file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_windows-2.3.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_windows-2.3.0/lib/ platform 3.2 -file:///Users/danila/.pub-cache/hosted/pub.dev/platform-3.1.6/ -file:///Users/danila/.pub-cache/hosted/pub.dev/platform-3.1.6/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/platform-3.1.6/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/platform-3.1.6/lib/ plugin_platform_interface 3.0 -file:///Users/danila/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/ -file:///Users/danila/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/plugin_platform_interface-2.1.8/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/plugin_platform_interface-2.1.8/lib/ provider 2.12 -file:///Users/danila/.pub-cache/hosted/pub.dev/provider-6.1.5/ -file:///Users/danila/.pub-cache/hosted/pub.dev/provider-6.1.5/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/provider-6.1.5/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/provider-6.1.5/lib/ shared_preferences 3.5 -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences-2.5.3/ -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences-2.5.3/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences-2.5.3/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences-2.5.3/lib/ shared_preferences_android 3.6 -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.10/ -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.10/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_android-2.4.10/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_android-2.4.10/lib/ shared_preferences_foundation 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/ -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/lib/ shared_preferences_linux 3.3 -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_linux-2.4.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_linux-2.4.1/lib/ shared_preferences_platform_interface 3.2 -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/lib/ shared_preferences_web 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/ -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_web-2.4.3/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_web-2.4.3/lib/ shared_preferences_windows 3.3 -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_windows-2.4.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_windows-2.4.1/lib/ source_span 3.1 -file:///Users/danila/.pub-cache/hosted/pub.dev/source_span-1.10.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/source_span-1.10.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.1/lib/ stack_trace 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/stack_trace-1.12.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/stack_trace-1.12.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.12.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.12.1/lib/ stream_channel 3.3 -file:///Users/danila/.pub-cache/hosted/pub.dev/stream_channel-2.1.4/ -file:///Users/danila/.pub-cache/hosted/pub.dev/stream_channel-2.1.4/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.4/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.4/lib/ string_scanner 3.1 -file:///Users/danila/.pub-cache/hosted/pub.dev/string_scanner-1.4.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/string_scanner-1.4.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.4.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.4.1/lib/ term_glyph 3.1 -file:///Users/danila/.pub-cache/hosted/pub.dev/term_glyph-1.2.2/ -file:///Users/danila/.pub-cache/hosted/pub.dev/term_glyph-1.2.2/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.2/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.2/lib/ test_api 3.5 -file:///Users/danila/.pub-cache/hosted/pub.dev/test_api-0.7.4/ -file:///Users/danila/.pub-cache/hosted/pub.dev/test_api-0.7.4/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.4/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.4/lib/ typed_data 3.5 -file:///Users/danila/.pub-cache/hosted/pub.dev/typed_data-1.4.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/typed_data-1.4.0/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/typed_data-1.4.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/typed_data-1.4.0/lib/ vector_math 2.14 -file:///Users/danila/.pub-cache/hosted/pub.dev/vector_math-2.1.4/ -file:///Users/danila/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.1.4/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.1.4/lib/ vm_service 3.3 -file:///Users/danila/.pub-cache/hosted/pub.dev/vm_service-15.0.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/vm_service-15.0.0/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-15.0.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-15.0.0/lib/ web 3.4 -file:///Users/danila/.pub-cache/hosted/pub.dev/web-1.1.1/ -file:///Users/danila/.pub-cache/hosted/pub.dev/web-1.1.1/lib/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/web-1.1.1/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/web-1.1.1/lib/ xdg_directories 3.3 -file:///Users/danila/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0/ -file:///Users/danila/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0/lib/ -inno_test -3.6 -file:///Users/danila/Documents/Projects/Flutter_Projects/Autotester/frontend/ -file:///Users/danila/Documents/Projects/Flutter_Projects/Autotester/frontend/lib/ -sky_engine -3.7 -file:///Users/danila/development/flutter/bin/cache/pkg/sky_engine/ -file:///Users/danila/development/flutter/bin/cache/pkg/sky_engine/lib/ -flutter -3.7 -file:///Users/danila/development/flutter/packages/flutter/ -file:///Users/danila/development/flutter/packages/flutter/lib/ -flutter_test -3.7 -file:///Users/danila/development/flutter/packages/flutter_test/ -file:///Users/danila/development/flutter/packages/flutter_test/lib/ -flutter_web_plugins -3.7 -file:///Users/danila/development/flutter/packages/flutter_web_plugins/ -file:///Users/danila/development/flutter/packages/flutter_web_plugins/lib/ -2 \ No newline at end of file +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/xdg_directories-1.1.0/ +file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/xdg_directories-1.1.0/lib/ +2 diff --git a/frontend/.dart_tool/version b/frontend/.dart_tool/version index 72fd668..4629145 100644 --- a/frontend/.dart_tool/version +++ b/frontend/.dart_tool/version @@ -1 +1 @@ -3.32.6 \ No newline at end of file +3.32.4 \ No newline at end of file diff --git a/frontend/android/local.properties b/frontend/android/local.properties index 9814f83..256da9d 100644 --- a/frontend/android/local.properties +++ b/frontend/android/local.properties @@ -1,5 +1,5 @@ -sdk.dir=/Users/danila/Library/Android/sdk -flutter.sdk=/Users/danila/development/flutter +sdk.dir=C:\\Users\\nilov\\AppData\\Local\\Android\\sdk +flutter.sdk=C:\\FlutterSDK\\flutter flutter.buildMode=debug flutter.versionName=1.0.0 flutter.versionCode=1 \ No newline at end of file diff --git a/internal/domain/payload.go b/internal/domain/payload.go index cc1ec62..b837351 100644 --- a/internal/domain/payload.go +++ b/internal/domain/payload.go @@ -4,7 +4,7 @@ package domain type UrlRequest struct { Url string `json:"url" validate:"required,http_url"` Tests []string `json:"tests,omitempty"` - NeedUIUX bool `json:"needUIUX,omitempty"` + NeedUIUX bool `json:"needUIUX"` } // APIResponse represents a standard response structure for API endpoints. @@ -20,9 +20,3 @@ type Result struct { Result bool `json:"result"` Comment string `json:"comment,omitempty"` } - -type TestResult struct { - Status string `json:"status"` - Results []Result `json:"results"` - Error string `json:"error,omitempty"` -} diff --git a/internal/handlers/resultsPDF.go b/internal/handlers/resultsPDF.go index 38f1e80..9074869 100644 --- a/internal/handlers/resultsPDF.go +++ b/internal/handlers/resultsPDF.go @@ -22,14 +22,14 @@ func NewResultPDFHandler(config *configs.Config) *ResultPDFHandler { // ResultsPDF handles the /api/resultsPDF endpoint. func (h *ResultPDFHandler) ResultsPDF(w http.ResponseWriter, req *http.Request) { - var results domain.TestResult + var results []domain.Result err := json.NewDecoder(req.Body).Decode(&results) if err != nil { log.Println("Failed to decode results:", err) res.ErrorResponce(w, "Failed to decode results: "+err.Error(), http.StatusBadRequest) return } - pdf, err := util.GeneratePDF(results.Results) + pdf, err := util.GeneratePDF(results) if err != nil { log.Println("Failed to generate PDF:", err) res.ErrorResponce(w, "Failed to generate PDF: "+err.Error(), http.StatusInternalServerError) diff --git a/internal/routes/routes.go b/internal/routes/routes.go index e50f900..5c0f094 100644 --- a/internal/routes/routes.go +++ b/internal/routes/routes.go @@ -15,7 +15,7 @@ func RegisterRoutes(router *http.ServeMux, config *configs.Config) { testsHandler := handlers.NewTestsHandler(config) resultsHandler := handlers.NewResultHandler(config) resultsPDFHandler := handlers.NewResultPDFHandler(config) - router.HandleFunc("POST /api/resultsPDF", resultsPDFHandler.ResultsPDF) + router.HandleFunc("POST /api/results/pdf", resultsPDFHandler.ResultsPDF) router.HandleFunc("POST /api/checkurl", scanHandler.Check) router.HandleFunc("POST /api/tests", testsHandler.Tests) router.HandleFunc("POST /api/results", resultsHandler.Results) diff --git a/internal/storage/storage.go b/internal/storage/storage.go new file mode 100644 index 0000000..e69de29 From 7d6e4607d3f7908a0d8fcf6f593a49b49d7771a0 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 20 Jul 2025 17:59:27 +0300 Subject: [PATCH 2/2] updated docker compose and nginx confioguration for https --- docker-compose.yml | 14 +++++------ nginx/nginx.conf | 60 ++++++++++++++++++++-------------------------- 2 files changed, 33 insertions(+), 41 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cdfd080..583827b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,18 +36,20 @@ services: container_name: autotester-frontend networks: - autotester-network - # УДАЛЕН volumes (сборка происходит в Dockerfile) - command: sh -c "flutter build web && tail -f /dev/null" # Автосборка при запуске + command: sh -c "flutter build web && tail -f /dev/null" nginx: image: nginx:latest + container_name: nginx ports: - "8080:80" + - "443:443" volumes: - - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro - - ./frontend/build/web:/usr/share/nginx/html:ro # Прямое монтирование билда + - ./nginx:/etc/nginx/conf.d + - /etc/letsencrypt:/etc/letsencrypt:ro + - ./frontend/build/web:/usr/share/nginx/html:ro depends_on: - - frontend # Ждем сборки фронтенда + - frontend - go-api networks: - autotester-network @@ -55,5 +57,3 @@ services: networks: autotester-network: driver: bridge - -# УДАЛЕН volumes (ненужный именованный том) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index f3068fb..5b05bdd 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,42 +1,34 @@ -worker_processes 1; - -events { - worker_connections 1024; +server { + listen 80; + server_name innotest.tech www.innotest.tech; + return 301 https://$host$request_uri; } -http { - include mime.types; - sendfile on; +server { + listen 443 ssl; + server_name innotest.tech www.innotest.tech; - server { - listen 80; - server_name 31.129.111.114; - root usr/share/nginx/html; + ssl_certificate /etc/letsencrypt/live/innotest.tech/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/innotest.tech/privkey.pem; + include /etc/letsencrypt/options-ssl-nginx.conf; + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; - # Прокси для Go-API - location /api/ { - proxy_pass http://go-api:8081/api/; # Сохраняем /api/ в пути - proxy_http_version 1.1; - proxy_set_header Connection ""; - proxy_set_header Host $host; + root /usr/share/nginx/html; + index index.html; - # CORS (если нужно) - add_header 'Access-Control-Allow-Origin' '*'; - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; - add_header 'Access-Control-Allow-Headers' 'Content-Type'; - } + location /api/ { + proxy_pass http://go-api:8081/api/; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header Connection ""; + } - # Прокси для Python-API (если есть) - location /api/python/ { - proxy_pass http://python-api:3000/; - proxy_set_header Host $host; - } + location /api/python/ { + proxy_pass http://python-api:3000/; + proxy_set_header Host $host; + } - # Фронтенд Flutter - location / { - root /usr/share/nginx/html; - index index.html; - try_files $uri $uri/ /index.html; - } + location / { + try_files $uri $uri/ /index.html; } -} +} \ No newline at end of file