From 66b4a2b226c15235ef5e0a65f576d2c7077795f1 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 1 Apr 2025 10:07:11 +0200 Subject: [PATCH] ITEM_HOST --- .dart_tool/dartpad/web_plugin_registrant.dart | 20 - .dart_tool/package_config.json | 737 ------------------ .dart_tool/package_config_subset | 485 ------------ .dart_tool/version | 1 - .flutter-plugins | 16 - .flutter-plugins-dependencies | 1 - Dockerfile | 23 +- Makefile | 12 +- README.md | 2 +- assets/config/front.json | 18 +- assets/config/front_k8s.json | 12 - lib/core/services/api_service.dart | 3 +- lib/core/services/auth.service.dart | 16 +- lib/core/services/enum_service.dart | 13 +- .../specialized_services/booking_service.dart | 10 +- .../datacenter_service.dart | 10 +- .../specialized_services/logs_service.dart | 16 +- .../specialized_services/peer_service.dart | 4 +- .../resource_service.dart | 4 +- .../specialized_services/shared_service.dart | 4 +- .../workflow_execution_service.dart | 8 +- .../workflow_scheduler_service.dart | 10 +- .../workflow_service.dart | 8 +- .../workspace_service.dart | 4 +- lib/main.dart | 6 - local_run.sh | 5 +- local_run_traefik.sh | 3 + pubspec.yaml | 1 - 28 files changed, 87 insertions(+), 1365 deletions(-) delete mode 100644 .dart_tool/dartpad/web_plugin_registrant.dart delete mode 100644 .dart_tool/package_config.json delete mode 100644 .dart_tool/package_config_subset delete mode 100644 .dart_tool/version delete mode 100644 .flutter-plugins delete mode 100644 .flutter-plugins-dependencies delete mode 100644 assets/config/front_k8s.json create mode 100644 local_run_traefik.sh diff --git a/.dart_tool/dartpad/web_plugin_registrant.dart b/.dart_tool/dartpad/web_plugin_registrant.dart deleted file mode 100644 index 710cb86..0000000 --- a/.dart_tool/dartpad/web_plugin_registrant.dart +++ /dev/null @@ -1,20 +0,0 @@ -// Flutter web plugin registrant file. -// -// Generated file. Do not edit. -// - -// @dart = 2.13 -// ignore_for_file: type=lint - -import 'package:device_info_plus/src/device_info_plus_web.dart'; -import 'package:shared_preferences_web/shared_preferences_web.dart'; -import 'package:super_native_extensions/super_native_extensions_web.dart'; -import 'package:flutter_web_plugins/flutter_web_plugins.dart'; - -void registerPlugins([final Registrar? pluginRegistrar]) { - final Registrar registrar = pluginRegistrar ?? webPluginRegistrar; - DeviceInfoPlusWebPlugin.registerWith(registrar); - SharedPreferencesPlugin.registerWith(registrar); - SuperNativeExtensionsWeb.registerWith(registrar); - registrar.registerMessageHandler(); -} diff --git a/.dart_tool/package_config.json b/.dart_tool/package_config.json deleted file mode 100644 index 2f8bf9f..0000000 --- a/.dart_tool/package_config.json +++ /dev/null @@ -1,737 +0,0 @@ -{ - "configVersion": 2, - "packages": [ - { - "name": "alert_banner", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/alert_banner-1.0.1", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "animated_toggle_switch", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/animated_toggle_switch-0.8.3", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "args", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/args-2.6.0", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "async", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/async-2.11.0", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "boolean_selector", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "box_transform", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/box_transform-0.4.4", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "characters", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/characters-1.3.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "clock", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/clock-1.1.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "collection", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/collection-1.18.0", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "convert", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/convert-3.1.1", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "cron", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/cron-0.6.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "crypto", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/crypto-3.0.3", - "packageUri": "lib/", - "languageVersion": "2.19" - }, - { - "name": "cupertino_icons", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8", - "packageUri": "lib/", - "languageVersion": "3.1" - }, - { - "name": "dart_earcut", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/dart_earcut-1.1.0", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "dashed_path", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/dashed_path-1.0.1", - "packageUri": "lib/", - "languageVersion": "2.19" - }, - { - "name": "datetime_picker_formfield", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/datetime_picker_formfield-2.0.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "desktop_window", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/desktop_window-0.4.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "device_info_plus", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "device_info_plus_platform_interface", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/device_info_plus_platform_interface-7.0.1", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "dio", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/dio-5.7.0", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "dio_web_adapter", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/dio_web_adapter-2.0.0", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "dotted_line", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/dotted_line-3.2.3", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "el_tooltip", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/el_tooltip-2.2.1", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "fake_async", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/fake_async-1.3.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "ffi", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/ffi-2.1.3", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "file", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/file-7.0.1", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "fixnum", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/fixnum-1.1.1", - "packageUri": "lib/", - "languageVersion": "3.1" - }, - { - "name": "flutter", - "rootUri": "file:///home/mr/snap/flutter/common/flutter/packages/flutter", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "flutter_advanced_switch", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/flutter_advanced_switch-3.1.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "flutter_box_transform", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/flutter_box_transform-0.4.6", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "flutter_colorpicker", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/flutter_colorpicker-1.1.0", - "packageUri": "lib/", - "languageVersion": "2.14" - }, - { - "name": "flutter_event_calendar", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/flutter_event_calendar-1.0.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "flutter_flow_chart", - "rootUri": "../library/flutter_flow_chart", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "flutter_lints", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/flutter_lints-4.0.0", - "packageUri": "lib/", - "languageVersion": "3.1" - }, - { - "name": "flutter_map", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/flutter_map-7.0.2", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "flutter_spinkit", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/flutter_spinkit-5.2.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "flutter_svg", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/flutter_svg-2.0.10+1", - "packageUri": "lib/", - "languageVersion": "2.19" - }, - { - "name": "flutter_test", - "rootUri": "file:///home/mr/snap/flutter/common/flutter/packages/flutter_test", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "flutter_web_plugins", - "rootUri": "file:///home/mr/snap/flutter/common/flutter/packages/flutter_web_plugins", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "font_awesome_flutter", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/font_awesome_flutter-10.8.0", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "get_it", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/get_it-7.7.0", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "go_router", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/go_router-14.3.0", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "hover_menu", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/hover_menu-1.1.1", - "packageUri": "lib/", - "languageVersion": "2.16" - }, - { - "name": "http", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/http-1.2.2", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "http_parser", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/http_parser-4.0.2", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "injectable", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/injectable-2.4.2", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "intl", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/intl-0.19.0", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "irondash_engine_context", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/irondash_engine_context-0.5.4", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "irondash_message_channel", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/irondash_message_channel-0.7.0", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "json_string", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/json_string-3.0.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "json_util", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/json_util-2.0.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "latlong2", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/latlong2-0.9.1", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "leak_tracker", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/leak_tracker-10.0.5", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "leak_tracker_flutter_testing", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.5", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "leak_tracker_testing", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "lints", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/lints-4.0.0", - "packageUri": "lib/", - "languageVersion": "3.1" - }, - { - "name": "lists", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/lists-1.0.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "localstorage", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/localstorage-5.0.0", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "logger", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/logger-2.4.0", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "logging", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/logging-1.2.0", - "packageUri": "lib/", - "languageVersion": "2.19" - }, - { - "name": "matcher", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/matcher-0.12.16+1", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "material_color_utilities", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "meta", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/meta-1.15.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "mgrs_dart", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/mgrs_dart-2.0.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "number_text_input_formatter", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/number_text_input_formatter-1.0.0+8", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "path", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/path-1.9.0", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "path_parsing", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/path_parsing-1.0.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "path_provider", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/path_provider-2.1.4", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "path_provider_android", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "path_provider_foundation", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "path_provider_linux", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1", - "packageUri": "lib/", - "languageVersion": "2.19" - }, - { - "name": "path_provider_platform_interface", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "path_provider_windows", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "petitparser", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/petitparser-6.0.2", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "pixel_snap", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/pixel_snap-0.1.5", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "platform", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/platform-3.1.6", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "plugin_platform_interface", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "polylabel", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/polylabel-1.0.1", - "packageUri": "lib/", - "languageVersion": "2.13" - }, - { - "name": "proj4dart", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/proj4dart-2.1.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "scoped_model", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/scoped_model-2.0.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "shamsi_date", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/shamsi_date-0.15.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "shared_preferences", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences-2.2.3", - "packageUri": "lib/", - "languageVersion": "3.1" - }, - { - "name": "shared_preferences_android", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.2", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "shared_preferences_foundation", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.3", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "shared_preferences_linux", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "shared_preferences_platform_interface", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "shared_preferences_web", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.1", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "shared_preferences_windows", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "simple_gesture_detector", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/simple_gesture_detector-0.2.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "sky_engine", - "rootUri": "file:///home/mr/snap/flutter/common/flutter/bin/cache/pkg/sky_engine", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "source_span", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/source_span-1.10.0", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "sprintf", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/sprintf-7.0.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "stack_trace", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/stack_trace-1.11.1", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "star_menu", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/star_menu-4.0.1", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "stream_channel", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/stream_channel-2.1.2", - "packageUri": "lib/", - "languageVersion": "2.19" - }, - { - "name": "string_scanner", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/string_scanner-1.2.0", - "packageUri": "lib/", - "languageVersion": "2.18" - }, - { - "name": "super_clipboard", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/super_clipboard-0.8.19", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "super_drag_and_drop", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/super_drag_and_drop-0.8.19", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "super_native_extensions", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "syncfusion_flutter_calendar", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/syncfusion_flutter_calendar-27.1.55", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "syncfusion_flutter_core", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/syncfusion_flutter_core-27.1.55", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "syncfusion_flutter_datepicker", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/syncfusion_flutter_datepicker-27.1.55", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "table_calendar", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/table_calendar-3.1.2", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "term_glyph", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/term_glyph-1.2.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "test_api", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/test_api-0.7.2", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "timezone", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/timezone-0.9.4", - "packageUri": "lib/", - "languageVersion": "2.19" - }, - { - "name": "typed_data", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/typed_data-1.3.2", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "unicode", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/unicode-0.3.1", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "uuid", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/uuid-4.5.1", - "packageUri": "lib/", - "languageVersion": "3.0" - }, - { - "name": "vector_graphics", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/vector_graphics-1.1.11+1", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "vector_graphics_codec", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.11+1", - "packageUri": "lib/", - "languageVersion": "2.17" - }, - { - "name": "vector_graphics_compiler", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.11+1", - "packageUri": "lib/", - "languageVersion": "2.19" - }, - { - "name": "vector_math", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/vector_math-2.1.4", - "packageUri": "lib/", - "languageVersion": "2.14" - }, - { - "name": "vm_service", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/vm_service-14.2.5", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "web", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/web-0.5.1", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "win32", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/win32-5.7.1", - "packageUri": "lib/", - "languageVersion": "3.5" - }, - { - "name": "win32_registry", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/win32_registry-1.1.3", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "wkt_parser", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/wkt_parser-2.0.0", - "packageUri": "lib/", - "languageVersion": "2.12" - }, - { - "name": "xdg_directories", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0", - "packageUri": "lib/", - "languageVersion": "3.3" - }, - { - "name": "xml", - "rootUri": "file:///home/mr/.pub-cache/hosted/pub.dev/xml-6.5.0", - "packageUri": "lib/", - "languageVersion": "3.2" - }, - { - "name": "oc_front", - "rootUri": "../", - "packageUri": "lib/", - "languageVersion": "3.3" - } - ], - "generated": "2025-02-17T08:56:44.408862Z", - "generator": "pub", - "generatorVersion": "3.5.3", - "flutterRoot": "file:///home/mr/snap/flutter/common/flutter", - "flutterVersion": "3.24.3", - "pubCache": "file:///home/mr/.pub-cache" -} diff --git a/.dart_tool/package_config_subset b/.dart_tool/package_config_subset deleted file mode 100644 index 59e124a..0000000 --- a/.dart_tool/package_config_subset +++ /dev/null @@ -1,485 +0,0 @@ -alert_banner -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/alert_banner-1.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/alert_banner-1.0.1/lib/ -animated_toggle_switch -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/animated_toggle_switch-0.8.3/ -file:///home/mr/.pub-cache/hosted/pub.dev/animated_toggle_switch-0.8.3/lib/ -args -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/args-2.6.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/args-2.6.0/lib/ -async -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/async-2.11.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/async-2.11.0/lib/ -boolean_selector -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/lib/ -box_transform -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/box_transform-0.4.4/ -file:///home/mr/.pub-cache/hosted/pub.dev/box_transform-0.4.4/lib/ -characters -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/characters-1.3.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/characters-1.3.0/lib/ -clock -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/clock-1.1.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/clock-1.1.1/lib/ -collection -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/collection-1.18.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/collection-1.18.0/lib/ -convert -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/convert-3.1.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/convert-3.1.1/lib/ -cron -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/cron-0.6.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/cron-0.6.1/lib/ -crypto -2.19 -file:///home/mr/.pub-cache/hosted/pub.dev/crypto-3.0.3/ -file:///home/mr/.pub-cache/hosted/pub.dev/crypto-3.0.3/lib/ -cupertino_icons -3.1 -file:///home/mr/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/ -file:///home/mr/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/lib/ -dart_earcut -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/dart_earcut-1.1.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/dart_earcut-1.1.0/lib/ -dashed_path -2.19 -file:///home/mr/.pub-cache/hosted/pub.dev/dashed_path-1.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/dashed_path-1.0.1/lib/ -datetime_picker_formfield -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/datetime_picker_formfield-2.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/datetime_picker_formfield-2.0.1/lib/ -desktop_window -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/desktop_window-0.4.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/desktop_window-0.4.1/lib/ -device_info_plus -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2/lib/ -device_info_plus_platform_interface -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/device_info_plus_platform_interface-7.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/device_info_plus_platform_interface-7.0.1/lib/ -dio -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/dio-5.7.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/dio-5.7.0/lib/ -dio_web_adapter -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/dio_web_adapter-2.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/dio_web_adapter-2.0.0/lib/ -dotted_line -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/dotted_line-3.2.3/ -file:///home/mr/.pub-cache/hosted/pub.dev/dotted_line-3.2.3/lib/ -el_tooltip -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/el_tooltip-2.2.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/el_tooltip-2.2.1/lib/ -fake_async -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/fake_async-1.3.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/fake_async-1.3.1/lib/ -ffi -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/ffi-2.1.3/ -file:///home/mr/.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/ -file -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/file-7.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/file-7.0.1/lib/ -fixnum -3.1 -file:///home/mr/.pub-cache/hosted/pub.dev/fixnum-1.1.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/fixnum-1.1.1/lib/ -flutter_advanced_switch -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_advanced_switch-3.1.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_advanced_switch-3.1.0/lib/ -flutter_box_transform -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_box_transform-0.4.6/ -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_box_transform-0.4.6/lib/ -flutter_colorpicker -2.14 -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_colorpicker-1.1.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_colorpicker-1.1.0/lib/ -flutter_event_calendar -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_event_calendar-1.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_event_calendar-1.0.0/lib/ -flutter_lints -3.1 -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_lints-4.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_lints-4.0.0/lib/ -flutter_map -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_map-7.0.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_map-7.0.2/lib/ -flutter_spinkit -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_spinkit-5.2.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_spinkit-5.2.1/lib/ -flutter_svg -2.19 -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_svg-2.0.10+1/ -file:///home/mr/.pub-cache/hosted/pub.dev/flutter_svg-2.0.10+1/lib/ -font_awesome_flutter -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/font_awesome_flutter-10.8.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/font_awesome_flutter-10.8.0/lib/ -get_it -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/get_it-7.7.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/get_it-7.7.0/lib/ -go_router -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/go_router-14.3.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/go_router-14.3.0/lib/ -hover_menu -2.16 -file:///home/mr/.pub-cache/hosted/pub.dev/hover_menu-1.1.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/hover_menu-1.1.1/lib/ -http -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/http-1.2.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/http-1.2.2/lib/ -http_parser -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/http_parser-4.0.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/http_parser-4.0.2/lib/ -injectable -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/injectable-2.4.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/injectable-2.4.2/lib/ -intl -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/intl-0.19.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/intl-0.19.0/lib/ -irondash_engine_context -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/irondash_engine_context-0.5.4/ -file:///home/mr/.pub-cache/hosted/pub.dev/irondash_engine_context-0.5.4/lib/ -irondash_message_channel -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/irondash_message_channel-0.7.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/irondash_message_channel-0.7.0/lib/ -json_string -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/json_string-3.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/json_string-3.0.1/lib/ -json_util -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/json_util-2.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/json_util-2.0.0/lib/ -latlong2 -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/latlong2-0.9.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/latlong2-0.9.1/lib/ -leak_tracker -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/leak_tracker-10.0.5/ -file:///home/mr/.pub-cache/hosted/pub.dev/leak_tracker-10.0.5/lib/ -leak_tracker_flutter_testing -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.5/ -file:///home/mr/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.5/lib/ -leak_tracker_testing -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/lib/ -lints -3.1 -file:///home/mr/.pub-cache/hosted/pub.dev/lints-4.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/lints-4.0.0/lib/ -lists -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/lists-1.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/lists-1.0.1/lib/ -localstorage -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/localstorage-5.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/localstorage-5.0.0/lib/ -logger -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/logger-2.4.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/logger-2.4.0/lib/ -logging -2.19 -file:///home/mr/.pub-cache/hosted/pub.dev/logging-1.2.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/logging-1.2.0/lib/ -matcher -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/ -file:///home/mr/.pub-cache/hosted/pub.dev/matcher-0.12.16+1/lib/ -material_color_utilities -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1/lib/ -meta -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/meta-1.15.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/meta-1.15.0/lib/ -mgrs_dart -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/mgrs_dart-2.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/mgrs_dart-2.0.0/lib/ -number_text_input_formatter -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/number_text_input_formatter-1.0.0+8/ -file:///home/mr/.pub-cache/hosted/pub.dev/number_text_input_formatter-1.0.0+8/lib/ -path -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/path-1.9.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/path-1.9.0/lib/ -path_parsing -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/path_parsing-1.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/path_parsing-1.0.1/lib/ -path_provider -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider-2.1.4/ -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider-2.1.4/lib/ -path_provider_android -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/ -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/lib/ -path_provider_foundation -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/lib/ -path_provider_linux -2.19 -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/lib/ -path_provider_platform_interface -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/lib/ -path_provider_windows -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/lib/ -petitparser -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/petitparser-6.0.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/petitparser-6.0.2/lib/ -pixel_snap -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/pixel_snap-0.1.5/ -file:///home/mr/.pub-cache/hosted/pub.dev/pixel_snap-0.1.5/lib/ -platform -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/platform-3.1.6/ -file:///home/mr/.pub-cache/hosted/pub.dev/platform-3.1.6/lib/ -plugin_platform_interface -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/ -file:///home/mr/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/lib/ -polylabel -2.13 -file:///home/mr/.pub-cache/hosted/pub.dev/polylabel-1.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/polylabel-1.0.1/lib/ -proj4dart -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/proj4dart-2.1.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/proj4dart-2.1.0/lib/ -scoped_model -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/scoped_model-2.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/scoped_model-2.0.0/lib/ -shamsi_date -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/shamsi_date-0.15.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/shamsi_date-0.15.0/lib/ -shared_preferences -3.1 -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences-2.2.3/ -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences-2.2.3/lib/ -shared_preferences_android -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.2/lib/ -shared_preferences_foundation -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.3/ -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.3/lib/ -shared_preferences_linux -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/lib/ -shared_preferences_platform_interface -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/lib/ -shared_preferences_web -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.1/lib/ -shared_preferences_windows -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/lib/ -simple_gesture_detector -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/simple_gesture_detector-0.2.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/simple_gesture_detector-0.2.1/lib/ -source_span -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/source_span-1.10.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/source_span-1.10.0/lib/ -sprintf -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/sprintf-7.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/sprintf-7.0.0/lib/ -stack_trace -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/stack_trace-1.11.1/lib/ -star_menu -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/star_menu-4.0.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/star_menu-4.0.1/lib/ -stream_channel -2.19 -file:///home/mr/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/stream_channel-2.1.2/lib/ -string_scanner -2.18 -file:///home/mr/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/lib/ -super_clipboard -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/super_clipboard-0.8.19/ -file:///home/mr/.pub-cache/hosted/pub.dev/super_clipboard-0.8.19/lib/ -super_drag_and_drop -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/super_drag_and_drop-0.8.19/ -file:///home/mr/.pub-cache/hosted/pub.dev/super_drag_and_drop-0.8.19/lib/ -super_native_extensions -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19/ -file:///home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19/lib/ -syncfusion_flutter_calendar -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/syncfusion_flutter_calendar-27.1.55/ -file:///home/mr/.pub-cache/hosted/pub.dev/syncfusion_flutter_calendar-27.1.55/lib/ -syncfusion_flutter_core -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/syncfusion_flutter_core-27.1.55/ -file:///home/mr/.pub-cache/hosted/pub.dev/syncfusion_flutter_core-27.1.55/lib/ -syncfusion_flutter_datepicker -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/syncfusion_flutter_datepicker-27.1.55/ -file:///home/mr/.pub-cache/hosted/pub.dev/syncfusion_flutter_datepicker-27.1.55/lib/ -table_calendar -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/table_calendar-3.1.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/table_calendar-3.1.2/lib/ -term_glyph -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/lib/ -test_api -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/test_api-0.7.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/test_api-0.7.2/lib/ -timezone -2.19 -file:///home/mr/.pub-cache/hosted/pub.dev/timezone-0.9.4/ -file:///home/mr/.pub-cache/hosted/pub.dev/timezone-0.9.4/lib/ -typed_data -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/typed_data-1.3.2/ -file:///home/mr/.pub-cache/hosted/pub.dev/typed_data-1.3.2/lib/ -unicode -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/unicode-0.3.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/unicode-0.3.1/lib/ -uuid -3.0 -file:///home/mr/.pub-cache/hosted/pub.dev/uuid-4.5.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/uuid-4.5.1/lib/ -vector_graphics -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/vector_graphics-1.1.11+1/ -file:///home/mr/.pub-cache/hosted/pub.dev/vector_graphics-1.1.11+1/lib/ -vector_graphics_codec -2.17 -file:///home/mr/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.11+1/ -file:///home/mr/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.11+1/lib/ -vector_graphics_compiler -2.19 -file:///home/mr/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.11+1/ -file:///home/mr/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.11+1/lib/ -vector_math -2.14 -file:///home/mr/.pub-cache/hosted/pub.dev/vector_math-2.1.4/ -file:///home/mr/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/ -vm_service -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/vm_service-14.2.5/ -file:///home/mr/.pub-cache/hosted/pub.dev/vm_service-14.2.5/lib/ -web -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/web-0.5.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/web-0.5.1/lib/ -win32 -3.5 -file:///home/mr/.pub-cache/hosted/pub.dev/win32-5.7.1/ -file:///home/mr/.pub-cache/hosted/pub.dev/win32-5.7.1/lib/ -win32_registry -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/win32_registry-1.1.3/ -file:///home/mr/.pub-cache/hosted/pub.dev/win32_registry-1.1.3/lib/ -wkt_parser -2.12 -file:///home/mr/.pub-cache/hosted/pub.dev/wkt_parser-2.0.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/wkt_parser-2.0.0/lib/ -xdg_directories -3.3 -file:///home/mr/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0/lib/ -xml -3.2 -file:///home/mr/.pub-cache/hosted/pub.dev/xml-6.5.0/ -file:///home/mr/.pub-cache/hosted/pub.dev/xml-6.5.0/lib/ -oc_front -3.3 -file:///home/mr/Documents/OC/oc-front/ -file:///home/mr/Documents/OC/oc-front/lib/ -flutter_flow_chart -3.3 -file:///home/mr/Documents/OC/oc-front/library/flutter_flow_chart/ -file:///home/mr/Documents/OC/oc-front/library/flutter_flow_chart/lib/ -sky_engine -3.2 -file:///home/mr/snap/flutter/common/flutter/bin/cache/pkg/sky_engine/ -file:///home/mr/snap/flutter/common/flutter/bin/cache/pkg/sky_engine/lib/ -flutter -3.3 -file:///home/mr/snap/flutter/common/flutter/packages/flutter/ -file:///home/mr/snap/flutter/common/flutter/packages/flutter/lib/ -flutter_test -3.3 -file:///home/mr/snap/flutter/common/flutter/packages/flutter_test/ -file:///home/mr/snap/flutter/common/flutter/packages/flutter_test/lib/ -flutter_web_plugins -3.2 -file:///home/mr/snap/flutter/common/flutter/packages/flutter_web_plugins/ -file:///home/mr/snap/flutter/common/flutter/packages/flutter_web_plugins/lib/ -2 diff --git a/.dart_tool/version b/.dart_tool/version deleted file mode 100644 index ffba2c8..0000000 --- a/.dart_tool/version +++ /dev/null @@ -1 +0,0 @@ -3.24.3 \ No newline at end of file diff --git a/.flutter-plugins b/.flutter-plugins deleted file mode 100644 index 9bdf805..0000000 --- a/.flutter-plugins +++ /dev/null @@ -1,16 +0,0 @@ -# This is a generated file; do not edit or check into version control. -desktop_window=/home/mr/.pub-cache/hosted/pub.dev/desktop_window-0.4.1/ -device_info_plus=/home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2/ -irondash_engine_context=/home/mr/.pub-cache/hosted/pub.dev/irondash_engine_context-0.5.4/ -path_provider=/home/mr/.pub-cache/hosted/pub.dev/path_provider-2.1.4/ -path_provider_android=/home/mr/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/ -path_provider_foundation=/home/mr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/ -path_provider_linux=/home/mr/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ -path_provider_windows=/home/mr/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/ -shared_preferences=/home/mr/.pub-cache/hosted/pub.dev/shared_preferences-2.2.3/ -shared_preferences_android=/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.2/ -shared_preferences_foundation=/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.3/ -shared_preferences_linux=/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/ -shared_preferences_web=/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.1/ -shared_preferences_windows=/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/ -super_native_extensions=/home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19/ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies deleted file mode 100644 index dd622dc..0000000 --- a/.flutter-plugins-dependencies +++ /dev/null @@ -1 +0,0 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"device_info_plus","path":"/home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2/","native_build":true,"dependencies":[]},{"name":"irondash_engine_context","path":"/home/mr/.pub-cache/hosted/pub.dev/irondash_engine_context-0.5.4/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/home/mr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.3/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"super_native_extensions","path":"/home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19/","native_build":true,"dependencies":["irondash_engine_context","device_info_plus"]}],"android":[{"name":"device_info_plus","path":"/home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2/","native_build":true,"dependencies":[]},{"name":"irondash_engine_context","path":"/home/mr/.pub-cache/hosted/pub.dev/irondash_engine_context-0.5.4/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/home/mr/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.2/","native_build":true,"dependencies":[]},{"name":"super_native_extensions","path":"/home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19/","native_build":true,"dependencies":["irondash_engine_context","device_info_plus"]}],"macos":[{"name":"desktop_window","path":"/home/mr/.pub-cache/hosted/pub.dev/desktop_window-0.4.1/","native_build":true,"dependencies":[]},{"name":"device_info_plus","path":"/home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2/","native_build":true,"dependencies":[]},{"name":"irondash_engine_context","path":"/home/mr/.pub-cache/hosted/pub.dev/irondash_engine_context-0.5.4/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/home/mr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.3/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"super_native_extensions","path":"/home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19/","native_build":true,"dependencies":["irondash_engine_context","device_info_plus"]}],"linux":[{"name":"desktop_window","path":"/home/mr/.pub-cache/hosted/pub.dev/desktop_window-0.4.1/","native_build":true,"dependencies":[]},{"name":"device_info_plus","path":"/home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2/","native_build":false,"dependencies":[]},{"name":"irondash_engine_context","path":"/home/mr/.pub-cache/hosted/pub.dev/irondash_engine_context-0.5.4/","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"/home/mr/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/","native_build":false,"dependencies":["path_provider_linux"]},{"name":"super_native_extensions","path":"/home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19/","native_build":true,"dependencies":["irondash_engine_context","device_info_plus"]}],"windows":[{"name":"desktop_window","path":"/home/mr/.pub-cache/hosted/pub.dev/desktop_window-0.4.1/","native_build":true,"dependencies":[]},{"name":"device_info_plus","path":"/home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2/","native_build":false,"dependencies":[]},{"name":"irondash_engine_context","path":"/home/mr/.pub-cache/hosted/pub.dev/irondash_engine_context-0.5.4/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/home/mr/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/","native_build":false,"dependencies":["path_provider_windows"]},{"name":"super_native_extensions","path":"/home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19/","native_build":true,"dependencies":["irondash_engine_context","device_info_plus"]}],"web":[{"name":"device_info_plus","path":"/home/mr/.pub-cache/hosted/pub.dev/device_info_plus-10.1.2/","dependencies":[]},{"name":"shared_preferences_web","path":"/home/mr/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.1/","dependencies":[]},{"name":"super_native_extensions","path":"/home/mr/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.19/","dependencies":["device_info_plus"]}]},"dependencyGraph":[{"name":"desktop_window","dependencies":[]},{"name":"device_info_plus","dependencies":[]},{"name":"irondash_engine_context","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"super_native_extensions","dependencies":["irondash_engine_context","device_info_plus"]}],"date_created":"2025-03-05 09:58:49.313653","version":"3.24.3","swift_package_manager_enabled":false} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index eef5d87..8c683a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,13 @@ # Environemnt to install flutter and build web FROM debian:latest AS build-env +ARG HOST=${HOST:-"http://localhost:8000"} +ARG AUTH_MODE=true + # install all needed stuff RUN apt-get update RUN apt-get install -y curl git unzip -ARG WORKSPACE_HOST=${WORKSPACE_HOST:-"http://localhost:8000/workspace"} -ARG WORKFLOW_HOST=${WORKFLOW_HOST:-"http://localhost:8000/workflow"} -ARG ITEM_HOST=${ITEM_HOST:-"http://localhost:8000/catalog"} -ARG SCHEDULER_HOST=${SCHEDULER_HOST:-"http://localhost:8000/scheduler"} -ARG LOGS_HOST=${LOGS_HOST:-"http://localhost:8000/tools/loki"} -ARG PEER_HOST=${PEER_HOST:-"http://localhost:8000/peer"} -ARG DATACENTER_HOST=${DATACENTER_HOST:-"http://localhost:8000/datacenter"} -ARG COLLABORATIVE_AREA_HOST=${COLLABORATIVE_AREA_HOST:-"http://localhost:8000/shared"} -ARG AUTH_HOST=${AUTH_HOST:-"http://localhost:8000/auth"} -ARG AUTH_MODE=true # define variables ARG FLUTTER_SDK=/usr/local/flutter ARG FLUTTER_VERSION=3.19.6 @@ -44,14 +37,8 @@ RUN flutter clean RUN flutter pub get RUN flutter build web \ --dart-define=AUTH_MODE=$AUTH_MODE \ - --dart-define=WORKSPACE_HOST=$WORKSPACE_HOST \ - --dart-define=WORKFLOW_HOST=$WORKFLOW_HOST \ - --dart-define=PEER_HOST=$PEER_HOST \ - --dart-define=COLLABORATIVE_AREA_HOST=$COLLABORATIVE_AREA_HOST \ - --dart-define=SCHEDULER_HOST=$SCHEDULER_HOST \ - --dart-define=LOGS_HOST=$LOGS_HOST \ - --dart-define=ITEM_HOST=$ITEM_HOST \ - --dart-define=DATACENTER_HOST=$DATACENTER_HOST + --dart-define=HOST=$HOST + # once heare the app will be compiled and ready to deploy # use nginx to deploy diff --git a/Makefile b/Makefile index aa83634..bc1eb66 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,18 @@ all: clean docker publish-kind publish-registry + linux: ./local_run.sh -linux-traefik: +purge: + lsof -t -i:8080 | xargs kill | true + +run-dev: flutter run -d linux --dart-define=AUTH_MODE=true +dev: purge run-dev + run: flutter run @@ -21,7 +27,7 @@ clean: flutter clean docker: - DOCKER_BUILDKIT=1 docker build -t oc/oc-front:0.0.1 -f Dockerfile . + DOCKER_BUILDKIT=1 docker build -t oc/oc-front:0.0.1 --build-arg HOST=$(HOST) -f Dockerfile . docker tag oc/oc-front:0.0.1 oc/oc-front:latest publish-kind: @@ -30,4 +36,4 @@ publish-kind: publish-registry: @echo "TODO" -.PHONY: build run clean docker publish-kind publish-registry \ No newline at end of file +.PHONY: build run clean docker publish-kind publish-registry diff --git a/README.md b/README.md index 7b33852..9e50dbe 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ At the root of the project : `flutter run` For development purpose open a chrome without CORS : `google-chrome --disable-web-security` At the root of the project : - `docker build . -t oc-front` - if localisation services change : `docker build -t oc-front --build-arg WORKSPACE_HOST= --build-arg WORKFLOW_HOST= --build-arg SEARCH_HOST= --build-arg ITEM_HOST= .` + if localisation services change : `docker build -t oc-front --build-arg WORKSPACE_HOST= --build-arg WORKFLOW_HOST= --build-arg SEARCH_HOST= --build-arg CATALOG_HOST= .` - `docker-compose up -d --build --force-recreate` diff --git a/assets/config/front.json b/assets/config/front.json index 6fe52f0..19bc555 100644 --- a/assets/config/front.json +++ b/assets/config/front.json @@ -1,12 +1,10 @@ { -"WORKSPACE_HOST": "http://localhost:8000/workspace", -"WORKFLOW_HOST": "http://localhost:8000/workflow", -"ITEM_HOST": "http://localhost:8000/catalog", -"SCHEDULER_HOST": "http://localhost:8000/scheduler", -"LOGS_HOST": "http://localhost:8000/tools/loki", -"PEER_HOST": "http://localhost:8000/peer", -"DATACENTER_HOST": "http://localhost:8000/datacenter", -"COLLABORATIVE_AREA_HOST": "http://localhost:8000/shared", -"HOST": "http://localhost:8000", -"AUTH_HOST": "http://localhost:8000/auth" +"WORKSPACE_HOST": "workspace", +"WORKFLOW_HOST": "workflow", +"CATALOG_HOST": "catalog", +"SCHEDULER_HOST": "scheduler", +"PEER_HOST": "peer", +"DATACENTER_HOST": "datacenter", +"COLLABORATIVE_AREA_HOST": "shared", +"AUTH_HOST": "auth" } diff --git a/assets/config/front_k8s.json b/assets/config/front_k8s.json deleted file mode 100644 index 40d31bf..0000000 --- a/assets/config/front_k8s.json +++ /dev/null @@ -1,12 +0,0 @@ -{ -"WORKSPACE_HOST": "http://beta.opencloud.com/workspace/oc", -"WORKFLOW_HOST": "http://beta.opencloud.com/workflow/oc", -"ITEM_HOST": "http://beta.opencloud.com/catalog/oc", -"SCHEDULER_HOST": "http://beta.opencloud.com/scheduler/oc", -"LOGS_HOST": "http://localhost:3100", -"PEER_HOST": "http://beta.opencloud.com/peers/oc", -"DATACENTER_HOST": "http://beta.opencloud.com/datacenter/oc", -"COLLABORATIVE_AREA_HOST": "http://beta.opencloud.com/shared/oc", -"HOST": "http://beta.opencloud.com/oc", -"AUTH_HOST": "http://beta.opencloud.com/auth/oc" -} diff --git a/lib/core/services/api_service.dart b/lib/core/services/api_service.dart index 2a26274..142f4f8 100644 --- a/lib/core/services/api_service.dart +++ b/lib/core/services/api_service.dart @@ -18,7 +18,7 @@ class APIService { Dio _dio = Dio( BaseOptions( - baseUrl: const String.fromEnvironment('HOST', defaultValue: 'http://localhost:8000'), // you can keep this blank + baseUrl: AppConfig().get('HOST', defaultValue: 'http://localhost:8000'), // you can keep this blank headers: { 'Content-Type': 'application/json; charset=UTF-8', 'Access-Control-Allow-Origin': '*' }, ), )..interceptors.add(LogInterceptor( @@ -107,6 +107,7 @@ class APIService { try { _dio.options.headers["Authorization"] = "Bearer ${localStorage.getItem('accessToken') ?? ""}"; _dio.interceptors.clear(); + print("${_dio.options.baseUrl}$url" ); var response = await _request(url, method, body, options); if (response.statusCode != null && response.statusCode! < 400) { if (method == "delete") { cache.remove(url); return APIResponse(); } diff --git a/lib/core/services/auth.service.dart b/lib/core/services/auth.service.dart index 74ab1ac..6efdafd 100644 --- a/lib/core/services/auth.service.dart +++ b/lib/core/services/auth.service.dart @@ -1,17 +1,19 @@ import 'package:localstorage/localstorage.dart'; +import 'package:oc_front/core/conf/conf_reader.dart'; import 'package:oc_front/core/services/api_service.dart'; import 'package:oc_front/core/services/perms_service.dart'; import 'package:oc_front/main.dart'; import 'package:oc_front/models/response.dart'; class AuthService { + static var conf = AppConfig(); static var isAuth = const bool.fromEnvironment('AUTH_MODE', defaultValue: true); static const _clientID = String.fromEnvironment('CLIENT_ID', defaultValue: 'test-client'); - static APIService service = APIService( - baseURL: const String.fromEnvironment('AUTH_HOST', defaultValue: 'http://localhost:8000/auth'), - ); + static APIService? service; static Future init() async { + service ??= APIService(baseURL: + const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + conf.get('AUTH_HOST', defaultValue: '/auth')); if (!isAuth) { return; } @@ -47,7 +49,7 @@ class AuthService { } static Future login(String username, String password) async { - var token = await service.post("/login?client_id=$_clientID", { + var token = await service!.post("/login?client_id=$_clientID", { "username": username, "password": password }, null); @@ -65,7 +67,7 @@ class AuthService { } static Future logout() async { - var token = await service.delete("/logout?client_id=$_clientID", null); + var token = await service!.delete("/logout?client_id=$_clientID", null); if (token.code == 200) { localStorage.setItem('accessToken', ''); localStorage.setItem('username', ''); @@ -79,14 +81,14 @@ class AuthService { return false; } // ignore: invalid_return_type_for_catch_error - var isIntrospected = await service.get("/introspect", true, null).catchError((e) => mainKey?.currentState?.setState(() {})); + var isIntrospected = await service!.get("/introspect", true, null).catchError((e) => mainKey?.currentState?.setState(() {})); return isIntrospected.code == 200; } static Future refresh( String accessToken, String username, Duration duration) async { Future.delayed(duration, () { - service.post("/refresh?client_id=$_clientID", { + service!.post("/refresh?client_id=$_clientID", { "access_token": accessToken, "username": username }, null).then((token) { diff --git a/lib/core/services/enum_service.dart b/lib/core/services/enum_service.dart index f78545b..03e4381 100644 --- a/lib/core/services/enum_service.dart +++ b/lib/core/services/enum_service.dart @@ -1,11 +1,10 @@ +import 'package:oc_front/core/conf/conf_reader.dart'; import 'package:oc_front/models/response.dart'; import 'package:oc_front/core/services/api_service.dart'; class EnumService { - static final APIService _service = APIService( - baseURL: const String.fromEnvironment('ITEM_HOST', - defaultValue: 'http://localhost:8000/catalog') - ); + static var conf = AppConfig(); + static APIService? _service; static String subPath = "/enum/"; static Map> enums = {}; @@ -24,6 +23,10 @@ class EnumService { } static void init() { + _service = _service ?? APIService( + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + conf.get('CATALOG_HOST', + defaultValue: '/catalog') + ); _load("infrastructure"); _load("storage/type"); _load("storage/size"); @@ -40,7 +43,7 @@ class EnumService { } static void _load(String name) { - _service.get("$subPath$name", false, null).then((response) { + _service!.get("$subPath$name", false, null).then((response) { if (response.code == 200) { enums[name] = response.data!.value; } diff --git a/lib/core/services/specialized_services/booking_service.dart b/lib/core/services/specialized_services/booking_service.dart index 6761164..9e386f5 100644 --- a/lib/core/services/specialized_services/booking_service.dart +++ b/lib/core/services/specialized_services/booking_service.dart @@ -5,9 +5,13 @@ import 'package:oc_front/models/response.dart'; import 'package:oc_front/models/workflow.dart'; class BookingExecutionService extends AbstractService { - @override APIService service = APIService( - baseURL: const String.fromEnvironment('DATACENTER_HOST', defaultValue: 'http://localhost:8000/datacenter') - ); + @override late final APIService service; + + BookingExecutionService() { + service = APIService( + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('BOOKING_HOST', + defaultValue: '/booking')); + } @override String subPath = "/booking/"; @override Future> search(BuildContext? context, List words, Map params) { diff --git a/lib/core/services/specialized_services/datacenter_service.dart b/lib/core/services/specialized_services/datacenter_service.dart index c4ef324..a3d1226 100644 --- a/lib/core/services/specialized_services/datacenter_service.dart +++ b/lib/core/services/specialized_services/datacenter_service.dart @@ -5,9 +5,13 @@ import 'package:oc_front/models/resources/resources.dart'; import 'package:oc_front/models/response.dart'; class DatacenterService extends AbstractService { - @override APIService service = APIService( - baseURL: const String.fromEnvironment('DATACENTER_HOST', defaultValue: 'http://localhost:8000/datacenter') - ); + @override late final APIService service; + + DatacenterService() { + service = APIService( + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('DATACENTER_HOST', + defaultValue: '/datacenter')); + } @override String subPath = "/"; @override Future> search(BuildContext? context, List words, Map params) { diff --git a/lib/core/services/specialized_services/logs_service.dart b/lib/core/services/specialized_services/logs_service.dart index e44ade8..1f880ff 100644 --- a/lib/core/services/specialized_services/logs_service.dart +++ b/lib/core/services/specialized_services/logs_service.dart @@ -9,24 +9,16 @@ class LogsService extends AbstractService { late final APIService service; @override - String subPath = "/loki/api/v1/"; + String subPath = "/loki"; LogsService() { service = APIService( - baseURL: super.conf.get('LOGS_HOST', defaultValue: 'http://localhost:8000/tools/loki')); + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('SCHEDULER_HOST', defaultValue: '/scheduler')); } @override - Future> search( - BuildContext? context, List words, Map params) { - List v = []; - for (var p in params.keys) { - if (p == "start" || p == "end") { - continue; - } - v.add("$p=\"${params[p]}\""); - } - return service.get("${subPath}query_range?query={${v.join(", ")}}&start=${params["start"].toString().substring(0, 10)}&end=${params["end"].toString().substring(0, 10)}", false, context); + Future> search(BuildContext? context, List words, Map params) { + return service.post(subPath, params, context); } @override diff --git a/lib/core/services/specialized_services/peer_service.dart b/lib/core/services/specialized_services/peer_service.dart index 93bdee7..94bb8fc 100644 --- a/lib/core/services/specialized_services/peer_service.dart +++ b/lib/core/services/specialized_services/peer_service.dart @@ -10,8 +10,8 @@ class PeerService extends AbstractService { PeerService() { service = APIService( - baseURL: super + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super .conf - .get('PEER_HOST', defaultValue: 'http://localhost:8000/peer')); + .get('PEER_HOST', defaultValue: '/peer')); } } diff --git a/lib/core/services/specialized_services/resource_service.dart b/lib/core/services/specialized_services/resource_service.dart index 04f74a9..58f03dc 100644 --- a/lib/core/services/specialized_services/resource_service.dart +++ b/lib/core/services/specialized_services/resource_service.dart @@ -13,9 +13,9 @@ class ResourceService extends AbstractService { ResourceService() { service = APIService( - baseURL: super + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super .conf - .get('ITEM_HOST', defaultValue: 'http://localhost:8000/catalog')); + .get('CATALOG_HOST', defaultValue: '/catalog')); } @override diff --git a/lib/core/services/specialized_services/shared_service.dart b/lib/core/services/specialized_services/shared_service.dart index 37e3cf0..3b295c3 100644 --- a/lib/core/services/specialized_services/shared_service.dart +++ b/lib/core/services/specialized_services/shared_service.dart @@ -13,8 +13,8 @@ class SharedService extends AbstractService { SharedService() { service = APIService( - baseURL: super.conf.get('COLLABORATIVE_AREA_HOST', - defaultValue: 'http://localhost:8000/shared')); + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('COLLABORATIVE_AREA_HOST', + defaultValue: '/shared')); } Future> addWorkspace( diff --git a/lib/core/services/specialized_services/workflow_execution_service.dart b/lib/core/services/specialized_services/workflow_execution_service.dart index 0070400..8a0bffd 100644 --- a/lib/core/services/specialized_services/workflow_execution_service.dart +++ b/lib/core/services/specialized_services/workflow_execution_service.dart @@ -5,15 +5,13 @@ import 'package:oc_front/models/response.dart'; import 'package:oc_front/models/workflow.dart'; class WorkflowExecutionService extends AbstractService { - @override APIService service = APIService( - baseURL: const String.fromEnvironment('SCHEDULER_HOST', defaultValue: 'http://localhost:8000/scheduler') - ); + @override late final APIService service; @override String subPath = "/execution/"; WorkflowExecutionService() { service = APIService( - baseURL: super.conf.get('SCHEDULER_HOST', - defaultValue: 'http://localhost:8000/scheduler')); + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('SCHEDULER_HOST', + defaultValue: '/scheduler')); } @override Future> search( diff --git a/lib/core/services/specialized_services/workflow_scheduler_service.dart b/lib/core/services/specialized_services/workflow_scheduler_service.dart index 1f2d869..d81caa1 100644 --- a/lib/core/services/specialized_services/workflow_scheduler_service.dart +++ b/lib/core/services/specialized_services/workflow_scheduler_service.dart @@ -5,9 +5,13 @@ import 'package:oc_front/models/response.dart'; import 'package:oc_front/models/workflow.dart'; class SchedulerService extends AbstractService { - @override APIService service = APIService( - baseURL: const String.fromEnvironment('SCHEDULER_HOST', defaultValue: 'http://localhost:8000/scheduler') - ); + @override late final APIService service; + + SchedulerService() { + service = APIService( + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('SCHEDULER_HOST', + defaultValue: '/scheduler')); + } @override String subPath = "/"; Future> schedule(BuildContext? context, String id, Map body, Map params) { diff --git a/lib/core/services/specialized_services/workflow_service.dart b/lib/core/services/specialized_services/workflow_service.dart index 76d41f5..43caa04 100644 --- a/lib/core/services/specialized_services/workflow_service.dart +++ b/lib/core/services/specialized_services/workflow_service.dart @@ -13,11 +13,11 @@ class WorflowService extends AbstractService { WorflowService() { service = APIService( - baseURL: super.conf.get('WORKFLOW_HOST', - defaultValue: 'http://localhost:8000/workflow')); + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('WORKFLOW_HOST', + defaultValue: '/workflow')); serviceCheck = APIService( - baseURL: super.conf.get('WORKFLOW_HOST', - defaultValue: 'http://localhost:8000/workflow')); + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('WORKFLOW_HOST', + defaultValue: '/workflow')); } Future> check( diff --git a/lib/core/services/specialized_services/workspace_service.dart b/lib/core/services/specialized_services/workspace_service.dart index 241d54d..c60d671 100644 --- a/lib/core/services/specialized_services/workspace_service.dart +++ b/lib/core/services/specialized_services/workspace_service.dart @@ -11,7 +11,7 @@ class WorkspaceService extends AbstractService { WorkspaceService() { service = APIService( - baseURL: super.conf.get('WORKSPACE_HOST', - defaultValue: 'http://localhost:8000/workspace')); + baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('WORKSPACE_HOST', + defaultValue: '/workspace')); } } diff --git a/lib/main.dart b/lib/main.dart index f10b9ef..e0f469c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -14,14 +14,8 @@ import 'package:oc_front/core/services/enum_service.dart'; import 'package:oc_front/core/services/router.dart'; import 'package:oc_front/core/sections/end_drawer.dart'; import 'package:oc_front/widgets/dialog/login.dart'; -import 'package:oc_front/core/conf/conf_reader.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); - - // Load configuration before running the app - final appConfig = AppConfig(); - await appConfig.loadConfig(); - // Run `LinuxWebViewPlugin.initialize()` first before creating a WebView. await initLocalStorage(); runApp(const MyApp()); diff --git a/local_run.sh b/local_run.sh index 216672d..0eb23c1 100755 --- a/local_run.sh +++ b/local_run.sh @@ -2,9 +2,8 @@ WORKSPACE_HOST='http://localhost:8089/oc' WORKFLOW_HOST='http://localhost:8088/oc' -ITEM_HOST='http://localhost:8087/oc' +CATALOG_HOST='http://localhost:8087/oc' SCHEDULER_HOST='http://localhost:8090/oc' -LOGS_HOST='http://localhost:3100' PEER_HOST='http://localhost:8093/oc' COLLABORATIVE_AREA_HOST='http://localhost:8091/oc' AUTH_HOST='http://localhost:8094/oc' @@ -12,4 +11,4 @@ DATACENTER_HOST='http://localhost:8092/oc' AUTH_MODE=true -flutter run -d linux --dart-define=AUTH_MODE=$AUTH_MODE --dart-define=DATACENTER_HOST=$DATACENTER_HOST --dart-define=AUTH_HOST=$AUTH_HOST --dart-define=WORKSPACE_HOST=$WORKSPACE_HOST --dart-define=WORKFLOW_HOST=$WORKFLOW_HOST --dart-define=PEER_HOST=$PEER_HOST --dart-define=COLLABORATIVE_AREA_HOST=$COLLABORATIVE_AREA_HOST --dart-define=SCHEDULER_HOST=$SCHEDULER_HOST --dart-define=LOGS_HOST=$LOGS_HOST --dart-define=ITEM_HOST=$ITEM_HOST \ No newline at end of file +flutter run -d linux --dart-define=AUTH_MODE=$AUTH_MODE --dart-define=DATACENTER_HOST=$DATACENTER_HOST --dart-define=AUTH_HOST=$AUTH_HOST --dart-define=WORKSPACE_HOST=$WORKSPACE_HOST --dart-define=WORKFLOW_HOST=$WORKFLOW_HOST --dart-define=PEER_HOST=$PEER_HOST --dart-define=COLLABORATIVE_AREA_HOST=$COLLABORATIVE_AREA_HOST --dart-define=SCHEDULER_HOST=$SCHEDULER_HOST --dart-define=CATALOG_HOST=$CATALOG_HOST \ No newline at end of file diff --git a/local_run_traefik.sh b/local_run_traefik.sh new file mode 100644 index 0000000..29db288 --- /dev/null +++ b/local_run_traefik.sh @@ -0,0 +1,3 @@ +#!/bin/bash +AUTH_MODE=true +flutter run -d linux --dart-define=AUTH_MODE=$AUTH_MODE \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 89983c1..b83e6e1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -98,7 +98,6 @@ flutter: - assets/images/logo.svg - assets/images/icon.svg - assets/config/front.json - - assets/config/front_k8s.json # To add assets to your application, add an assets section, like this: # assets: # - images/a_dot_burr.jpeg