Compare commits
8 Commits
72ec01938e
...
demo-alpr
| Author | SHA1 | Date | |
|---|---|---|---|
| 857386962a | |||
| 76821e757f | |||
| 66b4a2b226 | |||
| 752446dd40 | |||
| 863a35b878 | |||
| 28510d0ba1 | |||
| 6991283dd4 | |||
| 6b6da966b6 |
@@ -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();
|
|
||||||
}
|
|
||||||
@@ -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"
|
|
||||||
}
|
|
||||||
@@ -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
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
3.24.3
|
|
||||||
@@ -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/
|
|
||||||
File diff suppressed because one or more lines are too long
22
Dockerfile
22
Dockerfile
@@ -1,19 +1,13 @@
|
|||||||
# Environemnt to install flutter and build web
|
# Environemnt to install flutter and build web
|
||||||
FROM debian:latest AS build-env
|
FROM debian:latest AS build-env
|
||||||
|
|
||||||
|
ARG HOST=${HOST:-"http://localhost:8000"}
|
||||||
|
ARG AUTH_MODE=true
|
||||||
|
|
||||||
# install all needed stuff
|
# install all needed stuff
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y curl git unzip
|
RUN apt-get install -y curl git unzip
|
||||||
|
|
||||||
ARG WORKSPACE_HOST="http://localhost:8089/oc"
|
|
||||||
ARG WORKFLOW_HOST="http://localhost:8088/oc"
|
|
||||||
ARG ITEM_HOST="http://localhost:8087/oc"
|
|
||||||
ARG SCHEDULER_HOST="http://localhost:8090/oc"
|
|
||||||
ARG LOGS_HOST="http://localhost:3100"
|
|
||||||
ARG PEER_HOST="http://localhost:8093/oc"
|
|
||||||
ARG DATACENTER_HOST="http://localhost:8092/oc"
|
|
||||||
ARG COLLABORATIVE_AREA_HOST="http://localhost:8091/oc"
|
|
||||||
ARG AUTH_MODE=true
|
|
||||||
# define variables
|
# define variables
|
||||||
ARG FLUTTER_SDK=/usr/local/flutter
|
ARG FLUTTER_SDK=/usr/local/flutter
|
||||||
ARG FLUTTER_VERSION=3.19.6
|
ARG FLUTTER_VERSION=3.19.6
|
||||||
@@ -43,14 +37,8 @@ RUN flutter clean
|
|||||||
RUN flutter pub get
|
RUN flutter pub get
|
||||||
RUN flutter build web \
|
RUN flutter build web \
|
||||||
--dart-define=AUTH_MODE=$AUTH_MODE \
|
--dart-define=AUTH_MODE=$AUTH_MODE \
|
||||||
--dart-define=WORKSPACE_HOST=$WORKSPACE_HOST \
|
--dart-define=HOST=$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
|
|
||||||
# once heare the app will be compiled and ready to deploy
|
# once heare the app will be compiled and ready to deploy
|
||||||
|
|
||||||
# use nginx to deploy
|
# use nginx to deploy
|
||||||
|
|||||||
16
Makefile
16
Makefile
@@ -2,6 +2,18 @@
|
|||||||
|
|
||||||
all: clean docker publish-kind publish-registry
|
all: clean docker publish-kind publish-registry
|
||||||
|
|
||||||
|
|
||||||
|
linux:
|
||||||
|
./local_run.sh
|
||||||
|
|
||||||
|
purge:
|
||||||
|
lsof -t -i:8080 | xargs kill | true
|
||||||
|
|
||||||
|
run-dev:
|
||||||
|
flutter run -d linux --dart-define=AUTH_MODE=true
|
||||||
|
|
||||||
|
dev: purge run-dev
|
||||||
|
|
||||||
run:
|
run:
|
||||||
flutter run
|
flutter run
|
||||||
|
|
||||||
@@ -15,7 +27,7 @@ clean:
|
|||||||
flutter clean
|
flutter clean
|
||||||
|
|
||||||
docker:
|
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
|
docker tag oc/oc-front:0.0.1 oc/oc-front:latest
|
||||||
|
|
||||||
publish-kind:
|
publish-kind:
|
||||||
@@ -24,4 +36,4 @@ publish-kind:
|
|||||||
publish-registry:
|
publish-registry:
|
||||||
@echo "TODO"
|
@echo "TODO"
|
||||||
|
|
||||||
.PHONY: build run clean docker publish-kind publish-registry
|
.PHONY: build run clean docker publish-kind publish-registry
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ At the root of the project :
|
|||||||
- `flutter clean`
|
- `flutter clean`
|
||||||
- `flutter pub get`
|
- `flutter pub get`
|
||||||
|
|
||||||
|
OR
|
||||||
|
|
||||||
|
make linux-traefik
|
||||||
|
| make linux
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
|
|
||||||
### Run locally (dev mode)
|
### Run locally (dev mode)
|
||||||
@@ -41,7 +46,7 @@ At the root of the project : `flutter run`
|
|||||||
For development purpose open a chrome without CORS : `google-chrome --disable-web-security`
|
For development purpose open a chrome without CORS : `google-chrome --disable-web-security`
|
||||||
At the root of the project :
|
At the root of the project :
|
||||||
- `docker build . -t oc-front`
|
- `docker build . -t oc-front`
|
||||||
if localisation services change : `docker build -t oc-front --build-arg WORKSPACE_HOST=<SERVICE URL> --build-arg WORKFLOW_HOST=<SERVICE URL> --build-arg SEARCH_HOST=<SERVICE URL> --build-arg ITEM_HOST=<SERVICE URL> .`
|
if localisation services change : `docker build -t oc-front --build-arg WORKSPACE_HOST=<SERVICE URL> --build-arg WORKFLOW_HOST=<SERVICE URL> --build-arg SEARCH_HOST=<SERVICE URL> --build-arg CATALOG_HOST=<SERVICE URL> .`
|
||||||
|
|
||||||
- `docker-compose up -d --build --force-recreate`
|
- `docker-compose up -d --build --force-recreate`
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
"WORKSPACE_HOST": "http://localhost:8089/oc",
|
"WORKSPACE_HOST": "workspace",
|
||||||
"WORKFLOW_HOST": "http://localhost:8088/oc",
|
"WORKFLOW_HOST": "workflow",
|
||||||
"ITEM_HOST": "http://localhost:8087/oc",
|
"CATALOG_HOST": "catalog",
|
||||||
"SCHEDULER_HOST": "http://localhost:8090/oc",
|
"SCHEDULER_HOST": "scheduler",
|
||||||
"LOGS_HOST": "http://localhost:3100",
|
"PEER_HOST": "peer",
|
||||||
"PEER_HOST": "http://localhost:8093/oc",
|
"DATACENTER_HOST": "datacenter",
|
||||||
"DATACENTER_HOST": "http://localhost:8092/oc",
|
"COLLABORATIVE_AREA_HOST": "shared",
|
||||||
"COLLABORATIVE_AREA_HOST": "http://localhost:8091/oc",
|
"AUTH_HOST": "auth"
|
||||||
"HOST": "http://localhost:8089/oc",
|
|
||||||
"AUTH_HOST": "http://localhost:8080/auth"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
|
||||||
}
|
|
||||||
@@ -8,6 +8,14 @@ services:
|
|||||||
- 8080:80
|
- 8080:80
|
||||||
networks:
|
networks:
|
||||||
- catalog
|
- catalog
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.front.entrypoints=web"
|
||||||
|
- "traefik.http.routers.front.rule=PathPrefix(`/`)"
|
||||||
|
- "traefik.http.services.front.loadbalancer.server.port=80"
|
||||||
|
- "traefik.http.middlewares.front-stripprefix.stripprefix.prefixes=/"
|
||||||
|
- "traefik.http.routers.front.middlewares=front-stripprefix"
|
||||||
|
- "traefik.http.middlewares.front.forwardauth.address=http://oc-auth:8080/oc/forward"
|
||||||
networks:
|
networks:
|
||||||
catalog:
|
catalog:
|
||||||
external: true
|
external: true
|
||||||
4
env.env
Normal file
4
env.env
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
KUBERNETES_SERVICE_HOST=192.168.1.169
|
||||||
|
KUBE_CA="LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJkekNDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUzTWpNeE1USXdNell3SGhjTk1qUXdPREE0TVRBeE16VTJXaGNOTXpRd09EQTJNVEF4TXpVMgpXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUzTWpNeE1USXdNell3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFTVlk3ZHZhNEdYTVdkMy9jMlhLN3JLYjlnWXgyNSthaEE0NmkyNVBkSFAKRktQL2UxSVMyWVF0dzNYZW1TTUQxaStZdzJSaVppNUQrSVZUamNtNHdhcnFvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVWtlUVJpNFJiODduME5yRnZaWjZHClc2SU55NnN3Q2dZSUtvWkl6ajBFQXdJRFNBQXdSUUlnRXA5ck04WmdNclRZSHYxZjNzOW5DZXZZeWVVa3lZUk4KWjUzazdoaytJS1FDSVFDbk05TnVGKzlTakIzNDFacGZ5ays2NEpWdkpSM3BhcmVaejdMd2lhNm9kdz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
|
||||||
|
KUBE_CERT="LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJrVENDQVRlZ0F3SUJBZ0lJWUxWNkFPQkdrU1F3Q2dZSUtvWkl6ajBFQXdJd0l6RWhNQjhHQTFVRUF3d1kKYXpOekxXTnNhV1Z1ZEMxallVQXhOekl6TVRFeU1ETTJNQjRYRFRJME1EZ3dPREV3TVRNMU5sb1hEVEkxTURndwpPREV3TVRNMU5sb3dNREVYTUJVR0ExVUVDaE1PYzNsemRHVnRPbTFoYzNSbGNuTXhGVEFUQmdOVkJBTVRESE41CmMzUmxiVHBoWkcxcGJqQlpNQk1HQnlxR1NNNDlBZ0VHQ0NxR1NNNDlBd0VIQTBJQUJGQ2Q1MFdPeWdlQ2syQzcKV2FrOWY4MVAvSkJieVRIajRWOXBsTEo0ck5HeHFtSjJOb2xROFYxdUx5RjBtOTQ2Nkc0RmRDQ2dqaXFVSk92Swp3NVRPNnd5alNEQkdNQTRHQTFVZER3RUIvd1FFQXdJRm9EQVRCZ05WSFNVRUREQUtCZ2dyQmdFRkJRY0RBakFmCkJnTlZIU01FR0RBV2dCVFJkOFI5cXVWK2pjeUVmL0ovT1hQSzMyS09XekFLQmdncWhrak9QUVFEQWdOSUFEQkYKQWlFQTArbThqTDBJVldvUTZ0dnB4cFo4NVlMalF1SmpwdXM0aDdnSXRxS3NmUVVDSUI2M2ZNdzFBMm5OVWU1TgpIUGZOcEQwSEtwcVN0Wnk4djIyVzliYlJUNklZCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0KLS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJlRENDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdFkyeHAKWlc1MExXTmhRREUzTWpNeE1USXdNell3SGhjTk1qUXdPREE0TVRBeE16VTJXaGNOTXpRd09EQTJNVEF4TXpVMgpXakFqTVNFd0h3WURWUVFEREJock0zTXRZMnhwWlc1MExXTmhRREUzTWpNeE1USXdNell3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFRc3hXWk9pbnIrcVp4TmFEQjVGMGsvTDF5cE01VHAxOFRaeU92ektJazQKRTFsZWVqUm9STW0zNmhPeVljbnN3d3JoNnhSUnBpMW5RdGhyMzg0S0Z6MlBvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVTBYZkVmYXJsZm8zTWhIL3lmemx6Cnl0OWlqbHN3Q2dZSUtvWkl6ajBFQXdJRFNRQXdSZ0loQUxJL2dNYnNMT3MvUUpJa3U2WHVpRVMwTEE2cEJHMXgKcnBlTnpGdlZOekZsQWlFQW1wdjBubjZqN3M0MVI0QzFNMEpSL0djNE53MHdldlFmZWdEVGF1R2p3cFk9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
|
||||||
|
KUBE_DATA="LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSU5ZS1BFb1dhd1NKUzJlRW5oWmlYMk5VZlY1ZlhKV2krSVNnV09TNFE5VTlvQW9HQ0NxR1NNNDkKQXdFSG9VUURRZ0FFVUozblJZN0tCNEtUWUx0WnFUMS96VS84a0Z2Sk1lUGhYMm1Vc25pczBiR3FZblkyaVZEeApYVzR2SVhTYjNqcm9iZ1YwSUtDT0twUWs2OHJEbE03ckRBPT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo="
|
||||||
@@ -12,7 +12,6 @@ class AppConfig {
|
|||||||
Future<void> loadConfig() async {
|
Future<void> loadConfig() async {
|
||||||
final response = await rootBundle.loadString('assets/config/front.json');
|
final response = await rootBundle.loadString('assets/config/front.json');
|
||||||
_config = Map<String, String>.from(json.decode(response));
|
_config = Map<String, String>.from(json.decode(response));
|
||||||
print('Config loaded: $_config');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String get(String key, {String defaultValue = ''}) {
|
String get(String key, {String defaultValue = ''}) {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:oc_front/core/sections/end_drawer.dart';
|
import 'package:oc_front/core/sections/end_drawer.dart';
|
||||||
import 'package:oc_front/core/sections/header/header.dart';
|
import 'package:oc_front/core/sections/header/header.dart';
|
||||||
@@ -27,6 +29,7 @@ class WorkspaceLocal {
|
|||||||
static List<AbstractItem> items = [];
|
static List<AbstractItem> items = [];
|
||||||
|
|
||||||
static Future<void> init(BuildContext? context, bool changeCurrent) async {
|
static Future<void> init(BuildContext? context, bool changeCurrent) async {
|
||||||
|
WorkspaceLocal.createWorkspace("default workspace", null);
|
||||||
var value = await _service.all(context);
|
var value = await _service.all(context);
|
||||||
if (value.data != null && value.data!.values.isNotEmpty ) {
|
if (value.data != null && value.data!.values.isNotEmpty ) {
|
||||||
var vals = value.data!.values;
|
var vals = value.data!.values;
|
||||||
@@ -45,8 +48,6 @@ class WorkspaceLocal {
|
|||||||
fill();
|
fill();
|
||||||
HeaderConstants.headerKey.currentState?.setState(() {});
|
HeaderConstants.headerKey.currentState?.setState(() {});
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
await WorkspaceLocal.createWorkspace("default workspace", null);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,7 +107,7 @@ class WorkspaceLocal {
|
|||||||
WorkflowFactory.key.currentState?.setState(() {});
|
WorkflowFactory.key.currentState?.setState(() {});
|
||||||
HeaderConstants.headerKey.currentState?.setState(() {});
|
HeaderConstants.headerKey.currentState?.setState(() {});
|
||||||
}
|
}
|
||||||
});
|
}).catchError( (e) {});
|
||||||
}
|
}
|
||||||
|
|
||||||
static void changeWorkspaceByName(String name) {
|
static void changeWorkspaceByName(String name) {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class APIService<T extends SerializerDeserializer> {
|
|||||||
|
|
||||||
Dio _dio = Dio(
|
Dio _dio = Dio(
|
||||||
BaseOptions(
|
BaseOptions(
|
||||||
baseUrl: const String.fromEnvironment('HOST', defaultValue: 'http://localhost:8080'), // 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': '*' },
|
headers: { 'Content-Type': 'application/json; charset=UTF-8', 'Access-Control-Allow-Origin': '*' },
|
||||||
),
|
),
|
||||||
)..interceptors.add(LogInterceptor(
|
)..interceptors.add(LogInterceptor(
|
||||||
@@ -105,9 +105,9 @@ class APIService<T extends SerializerDeserializer> {
|
|||||||
BuildContext? context, Options? options) async {
|
BuildContext? context, Options? options) async {
|
||||||
var err = "";
|
var err = "";
|
||||||
try {
|
try {
|
||||||
var type = localStorage.getItem('tokenType') ?? "bearer";
|
_dio.options.headers["Authorization"] = "Bearer ${localStorage.getItem('accessToken') ?? ""}";
|
||||||
_dio.options.headers["Authorization"] = "${type[0].toUpperCase() + type.substring(1)} ${localStorage.getItem('accessToken') ?? ""}";
|
|
||||||
_dio.interceptors.clear();
|
_dio.interceptors.clear();
|
||||||
|
print("${_dio.options.baseUrl}$url" );
|
||||||
var response = await _request(url, method, body, options);
|
var response = await _request(url, method, body, options);
|
||||||
if (response.statusCode != null && response.statusCode! < 400) {
|
if (response.statusCode != null && response.statusCode! < 400) {
|
||||||
if (method == "delete") { cache.remove(url); return APIResponse<T>(); }
|
if (method == "delete") { cache.remove(url); return APIResponse<T>(); }
|
||||||
@@ -145,9 +145,8 @@ class APIService<T extends SerializerDeserializer> {
|
|||||||
var err = "";
|
var err = "";
|
||||||
if (url != "") {
|
if (url != "") {
|
||||||
try {
|
try {
|
||||||
var type = localStorage.getItem('tokenType') ?? "bearer";
|
|
||||||
_dio.options.headers["Authorization"] =
|
_dio.options.headers["Authorization"] =
|
||||||
"${type[0].toUpperCase() + type.substring(1)} ${localStorage.getItem('accessToken') ?? ""}";
|
"Bearer ${localStorage.getItem('accessToken') ?? ""}";
|
||||||
_dio.interceptors.clear();
|
_dio.interceptors.clear();
|
||||||
var response = await _request(url, method, body, null);
|
var response = await _request(url, method, body, null);
|
||||||
if (response.statusCode != null && response.statusCode! < 400) {
|
if (response.statusCode != null && response.statusCode! < 400) {
|
||||||
|
|||||||
@@ -6,13 +6,14 @@ import 'package:oc_front/main.dart';
|
|||||||
import 'package:oc_front/models/response.dart';
|
import 'package:oc_front/models/response.dart';
|
||||||
|
|
||||||
class AuthService {
|
class AuthService {
|
||||||
static var isAuth = const bool.fromEnvironment('AUTH_MODE', defaultValue: false);
|
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 const _clientID = String.fromEnvironment('CLIENT_ID', defaultValue: 'test-client');
|
||||||
static APIService<SimpleData> service = APIService(
|
static APIService<SimpleData>? service;
|
||||||
baseURL: AppConfig().get('AUTH_HOST', defaultValue: 'http://localhost:8080/auth'),
|
|
||||||
);
|
|
||||||
|
|
||||||
static Future<void> init() async {
|
static Future<void> init() async {
|
||||||
|
service ??= APIService<SimpleData>(baseURL:
|
||||||
|
const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + conf.get('AUTH_HOST', defaultValue: '/auth'));
|
||||||
if (!isAuth) {
|
if (!isAuth) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -48,7 +49,7 @@ class AuthService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Future<void> login(String username, String password) async {
|
static Future<void> login(String username, String password) async {
|
||||||
var token = await service.post("/login?client_id=$_clientID", <String, dynamic> {
|
var token = await service!.post("/login?client_id=$_clientID", <String, dynamic> {
|
||||||
"username": username,
|
"username": username,
|
||||||
"password": password
|
"password": password
|
||||||
}, null);
|
}, null);
|
||||||
@@ -66,7 +67,7 @@ class AuthService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Future<void> logout() async {
|
static Future<void> 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) {
|
if (token.code == 200) {
|
||||||
localStorage.setItem('accessToken', '');
|
localStorage.setItem('accessToken', '');
|
||||||
localStorage.setItem('username', '');
|
localStorage.setItem('username', '');
|
||||||
@@ -80,14 +81,14 @@ class AuthService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// ignore: invalid_return_type_for_catch_error
|
// 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;
|
return isIntrospected.code == 200;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future<void> refresh(
|
static Future<void> refresh(
|
||||||
String accessToken, String username, Duration duration) async {
|
String accessToken, String username, Duration duration) async {
|
||||||
Future.delayed(duration, () {
|
Future.delayed(duration, () {
|
||||||
service.post("/refresh?client_id=$_clientID", <String, dynamic> {
|
service!.post("/refresh?client_id=$_clientID", <String, dynamic> {
|
||||||
"access_token": accessToken,
|
"access_token": accessToken,
|
||||||
"username": username
|
"username": username
|
||||||
}, null).then((token) {
|
}, null).then((token) {
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
|
import 'package:oc_front/core/conf/conf_reader.dart';
|
||||||
import 'package:oc_front/models/response.dart';
|
import 'package:oc_front/models/response.dart';
|
||||||
import 'package:oc_front/core/services/api_service.dart';
|
import 'package:oc_front/core/services/api_service.dart';
|
||||||
|
|
||||||
class EnumService {
|
class EnumService {
|
||||||
static final APIService<EnumData> _service = APIService<EnumData>(
|
static var conf = AppConfig();
|
||||||
baseURL: const String.fromEnvironment('ITEM_HOST',
|
static APIService<EnumData>? _service;
|
||||||
defaultValue: 'http://localhost:8080/catalog')
|
|
||||||
);
|
|
||||||
static String subPath = "/enum/";
|
static String subPath = "/enum/";
|
||||||
static Map<String, Map<String,dynamic>> enums = {};
|
static Map<String, Map<String,dynamic>> enums = {};
|
||||||
|
|
||||||
@@ -24,6 +23,10 @@ class EnumService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void init() {
|
static void init() {
|
||||||
|
_service = _service ?? APIService<EnumData>(
|
||||||
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + conf.get('CATALOG_HOST',
|
||||||
|
defaultValue: '/catalog')
|
||||||
|
);
|
||||||
_load("infrastructure");
|
_load("infrastructure");
|
||||||
_load("storage/type");
|
_load("storage/type");
|
||||||
_load("storage/size");
|
_load("storage/size");
|
||||||
@@ -40,7 +43,7 @@ class EnumService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void _load(String name) {
|
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) {
|
if (response.code == 200) {
|
||||||
enums[name] = response.data!.value;
|
enums[name] = response.data!.value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ class PermsService {
|
|||||||
try {
|
try {
|
||||||
var what = json.decode(foo);
|
var what = json.decode(foo);
|
||||||
what = what["session"]["access_token"] as Map<String, dynamic>;
|
what = what["session"]["access_token"] as Map<String, dynamic>;
|
||||||
|
|
||||||
for (var w in perms.keys) {
|
for (var w in perms.keys) {
|
||||||
if (what.keys.contains(perms[w])) {
|
if (what.keys.contains(perms[w])) {
|
||||||
_perms[w] = true;
|
_perms[w] = true;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:oc_front/core/sections/header/header.dart';
|
import 'package:oc_front/core/sections/header/header.dart';
|
||||||
import 'package:oc_front/main.dart';
|
import 'package:oc_front/main.dart';
|
||||||
import 'package:oc_front/pages/abstract_page.dart';
|
import 'package:oc_front/pages/abstract_page.dart';
|
||||||
@@ -42,7 +44,8 @@ class RouterItem {
|
|||||||
|
|
||||||
void go(BuildContext context, Map<String, String> params) {
|
void go(BuildContext context, Map<String, String> params) {
|
||||||
AppRouter.currentRoute = this;
|
AppRouter.currentRoute = this;
|
||||||
var newPath = "$path";
|
var newPath = path;
|
||||||
|
AppRouter.setRouteCookie(newPath, params, context);
|
||||||
for (var arg in args) { newPath = newPath.replaceAll(":$arg", params[arg] ?? ""); }
|
for (var arg in args) { newPath = newPath.replaceAll(":$arg", params[arg] ?? ""); }
|
||||||
Future.delayed( const Duration(seconds: 1), () {
|
Future.delayed( const Duration(seconds: 1), () {
|
||||||
HeaderConstants.setTitle(null);
|
HeaderConstants.setTitle(null);
|
||||||
@@ -87,6 +90,29 @@ class AppRouter {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static verifyRoute(context) async {
|
||||||
|
var url = await getRouteCookie();
|
||||||
|
if (url != null && url != "") {
|
||||||
|
for (var zone in zones) {
|
||||||
|
print("URL: $url ${zone.route}");
|
||||||
|
if (zone.route == url.replaceAll("/", "")) {
|
||||||
|
Map<String, String> params = {};
|
||||||
|
var srcParams = await getRouteParamsCookie();
|
||||||
|
for (var key in srcParams.keys) {
|
||||||
|
params[key] = "${srcParams[key]}";
|
||||||
|
}
|
||||||
|
zone.go(context, params);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static Future<Map<String,dynamic>> getRouteParamsCookie() async {
|
||||||
|
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||||
|
return prefs.getString("params") != null && prefs.getString("params") != "" ? json.decode(prefs.getString("params")!) : {};
|
||||||
|
}
|
||||||
|
|
||||||
static Future<String?> getRouteCookie() async {
|
static Future<String?> getRouteCookie() async {
|
||||||
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||||
return prefs.getString("url") != "" ? prefs.getString("url") : null;
|
return prefs.getString("url") != "" ? prefs.getString("url") : null;
|
||||||
@@ -95,11 +121,13 @@ class AppRouter {
|
|||||||
static removeRouteCookie() async {
|
static removeRouteCookie() async {
|
||||||
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||||
prefs.remove("url");
|
prefs.remove("url");
|
||||||
|
prefs.remove("params");
|
||||||
}
|
}
|
||||||
|
|
||||||
static setRouteCookie( String path , BuildContext context ) async {
|
static setRouteCookie( String path, Map<String, String> params, BuildContext context ) async {
|
||||||
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||||
prefs.setString("url", path);
|
prefs.setString("url", path);
|
||||||
|
prefs.setString("params", params.toString());
|
||||||
if (realHistory.isNotEmpty && realHistory.last != path || realHistory.isEmpty) {
|
if (realHistory.isNotEmpty && realHistory.last != path || realHistory.isEmpty) {
|
||||||
try {
|
try {
|
||||||
var index = history.indexOf(realHistory.last);
|
var index = history.indexOf(realHistory.last);
|
||||||
@@ -122,7 +150,6 @@ class AppRouter {
|
|||||||
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||||
prefs.setString("url", realHistory.last);
|
prefs.setString("url", realHistory.last);
|
||||||
prefs.setString("history", realHistory.join(","));
|
prefs.setString("history", realHistory.join(","));
|
||||||
var splitted = realHistory.last.split(":");
|
|
||||||
routerKey.currentState?.setState(() { });
|
routerKey.currentState?.setState(() { });
|
||||||
scaffoldKey.currentState?.setState(() {});
|
scaffoldKey.currentState?.setState(() {});
|
||||||
}
|
}
|
||||||
@@ -139,7 +166,6 @@ class AppRouter {
|
|||||||
realHistory.add(history[index + 1]);
|
realHistory.add(history[index + 1]);
|
||||||
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||||
prefs.setString("url", realHistory.last);
|
prefs.setString("url", realHistory.last);
|
||||||
var splitted = realHistory.last.split(":");
|
|
||||||
prefs.setString("history", realHistory.join(","));
|
prefs.setString("history", realHistory.join(","));
|
||||||
routerKey.currentState?.setState(() { });
|
routerKey.currentState?.setState(() { });
|
||||||
scaffoldKey.currentState?.setState(() {});
|
scaffoldKey.currentState?.setState(() {});
|
||||||
|
|||||||
@@ -5,9 +5,13 @@ import 'package:oc_front/models/response.dart';
|
|||||||
import 'package:oc_front/models/workflow.dart';
|
import 'package:oc_front/models/workflow.dart';
|
||||||
|
|
||||||
class BookingExecutionService extends AbstractService<WorkflowExecution> {
|
class BookingExecutionService extends AbstractService<WorkflowExecution> {
|
||||||
@override APIService<WorkflowExecution> service = APIService<WorkflowExecution>(
|
@override late final APIService<WorkflowExecution> service;
|
||||||
baseURL: const String.fromEnvironment('DATACENTER_HOST', defaultValue: 'http://localhost:8080/datacenter')
|
|
||||||
);
|
BookingExecutionService() {
|
||||||
|
service = APIService<WorkflowExecution>(
|
||||||
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('BOOKING_HOST',
|
||||||
|
defaultValue: '/booking'));
|
||||||
|
}
|
||||||
@override String subPath = "/booking/";
|
@override String subPath = "/booking/";
|
||||||
|
|
||||||
@override Future<APIResponse<WorkflowExecution>> search(BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
@override Future<APIResponse<WorkflowExecution>> search(BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
import 'package:flutter/widgets.dart';
|
|
||||||
import 'package:oc_front/core/services/api_service.dart';
|
|
||||||
import 'package:oc_front/core/services/specialized_services/abstract_service.dart';
|
|
||||||
import 'package:oc_front/models/response.dart';
|
|
||||||
import 'package:oc_front/models/workflow.dart';
|
|
||||||
|
|
||||||
class CheckService extends AbstractService<Check> {
|
|
||||||
@override
|
|
||||||
late final APIService<Check> service;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String subPath = "/check/";
|
|
||||||
|
|
||||||
CheckService() {
|
|
||||||
service = APIService<Check>(
|
|
||||||
baseURL: super
|
|
||||||
.conf
|
|
||||||
.get('CHECK_HOST', defaultValue: 'http://localhost:8080/check'));
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<APIResponse<Check>> search(
|
|
||||||
BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
|
||||||
return service.get("$subPath${words.join("/")}", true, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<APIResponse<RawData>> all(BuildContext? context) {
|
|
||||||
throw UnimplementedError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<APIResponse<Check>> get(BuildContext? context, String id) {
|
|
||||||
throw UnimplementedError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<APIResponse<Check>> post(BuildContext? context,
|
|
||||||
Map<String, dynamic> body, Map<String, String> params) {
|
|
||||||
throw UnimplementedError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<APIResponse<Check>> put(BuildContext? context, String id,
|
|
||||||
Map<String, dynamic> body, Map<String, String> params) {
|
|
||||||
throw UnimplementedError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<APIResponse<Check>> delete(
|
|
||||||
BuildContext? context, String id, Map<String, String> params) {
|
|
||||||
throw UnimplementedError();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -5,9 +5,13 @@ import 'package:oc_front/models/resources/resources.dart';
|
|||||||
import 'package:oc_front/models/response.dart';
|
import 'package:oc_front/models/response.dart';
|
||||||
|
|
||||||
class DatacenterService extends AbstractService<Resource> {
|
class DatacenterService extends AbstractService<Resource> {
|
||||||
@override APIService<Resource> service = APIService<Resource>(
|
@override late final APIService<Resource> service;
|
||||||
baseURL: const String.fromEnvironment('DATACENTER_HOST', defaultValue: 'http://localhost:8080/datacenter')
|
|
||||||
);
|
DatacenterService() {
|
||||||
|
service = APIService<Resource>(
|
||||||
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('DATACENTER_HOST',
|
||||||
|
defaultValue: '/datacenter'));
|
||||||
|
}
|
||||||
@override String subPath = "/";
|
@override String subPath = "/";
|
||||||
|
|
||||||
@override Future<APIResponse<Resource>> search(BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
@override Future<APIResponse<Resource>> search(BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
||||||
|
|||||||
@@ -9,25 +9,16 @@ class LogsService extends AbstractService<LogsResult> {
|
|||||||
late final APIService<LogsResult> service;
|
late final APIService<LogsResult> service;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String subPath = "/loki/api/v1/";
|
String subPath = "/loki";
|
||||||
|
|
||||||
LogService() {
|
LogsService() {
|
||||||
service = APIService<LogsResult>(
|
service = APIService<LogsResult>(
|
||||||
baseURL:
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('SCHEDULER_HOST', defaultValue: '/scheduler'));
|
||||||
super.conf.get('LOGS_HOST', defaultValue: 'http://localhost:3100'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<APIResponse<LogsResult>> search(
|
Future<APIResponse<LogsResult>> search(BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
||||||
BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
return service.post(subPath, params, context);
|
||||||
List<String> 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ class PeerService extends AbstractService<Peer> {
|
|||||||
|
|
||||||
PeerService() {
|
PeerService() {
|
||||||
service = APIService<Peer>(
|
service = APIService<Peer>(
|
||||||
baseURL: super
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super
|
||||||
.conf
|
.conf
|
||||||
.get('PEER_HOST', defaultValue: 'http://localhost:8080/peer'));
|
.get('PEER_HOST', defaultValue: '/peer'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ class ResourceService extends AbstractService<Resource> {
|
|||||||
|
|
||||||
ResourceService() {
|
ResourceService() {
|
||||||
service = APIService<Resource>(
|
service = APIService<Resource>(
|
||||||
baseURL: super
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super
|
||||||
.conf
|
.conf
|
||||||
.get('ITEM_HOST', defaultValue: 'http://localhost:8080/catalog'));
|
.get('CATALOG_HOST', defaultValue: '/catalog'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ class SharedService extends AbstractService<CollaborativeArea> {
|
|||||||
|
|
||||||
SharedService() {
|
SharedService() {
|
||||||
service = APIService<CollaborativeArea>(
|
service = APIService<CollaborativeArea>(
|
||||||
baseURL: super.conf.get('COLLABORATIVE_AREA_HOST',
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('COLLABORATIVE_AREA_HOST',
|
||||||
defaultValue: 'http://localhost:8080/shared'));
|
defaultValue: '/shared'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<APIResponse<CollaborativeArea>> addWorkspace(
|
Future<APIResponse<CollaborativeArea>> addWorkspace(
|
||||||
|
|||||||
@@ -5,15 +5,13 @@ import 'package:oc_front/models/response.dart';
|
|||||||
import 'package:oc_front/models/workflow.dart';
|
import 'package:oc_front/models/workflow.dart';
|
||||||
|
|
||||||
class WorkflowExecutionService extends AbstractService<WorkflowExecutions> {
|
class WorkflowExecutionService extends AbstractService<WorkflowExecutions> {
|
||||||
@override APIService<WorkflowExecutions> service = APIService<WorkflowExecutions>(
|
@override late final APIService<WorkflowExecutions> service;
|
||||||
baseURL: const String.fromEnvironment('SCHEDULER_HOST', defaultValue: 'http://localhost:8080/scheduler')
|
|
||||||
);
|
|
||||||
@override String subPath = "/execution/";
|
@override String subPath = "/execution/";
|
||||||
|
|
||||||
WorkflowExecutionService() {
|
WorkflowExecutionService() {
|
||||||
service = APIService<WorkflowExecutions>(
|
service = APIService<WorkflowExecutions>(
|
||||||
baseURL: super.conf.get('SCHEDULER_HOST',
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('SCHEDULER_HOST',
|
||||||
defaultValue: 'http://localhost:8080/scheduler'));
|
defaultValue: '/scheduler'));
|
||||||
}
|
}
|
||||||
@override
|
@override
|
||||||
Future<APIResponse<WorkflowExecutions>> search(
|
Future<APIResponse<WorkflowExecutions>> search(
|
||||||
|
|||||||
@@ -4,25 +4,28 @@ import 'package:oc_front/core/services/specialized_services/abstract_service.dar
|
|||||||
import 'package:oc_front/models/response.dart';
|
import 'package:oc_front/models/response.dart';
|
||||||
import 'package:oc_front/models/workflow.dart';
|
import 'package:oc_front/models/workflow.dart';
|
||||||
|
|
||||||
class SchedulerService extends AbstractService<WorkflowExecution> {
|
class SchedulerService extends AbstractService<WorkflowExecutions> {
|
||||||
@override APIService<WorkflowExecution> service = APIService<WorkflowExecution>(
|
@override late final APIService<WorkflowExecutions> service;
|
||||||
baseURL: const String.fromEnvironment('SCHEDULER_HOST', defaultValue: 'http://localhost:8080/scheduler')
|
|
||||||
);
|
SchedulerService() {
|
||||||
|
service = APIService<WorkflowExecutions>(
|
||||||
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('SCHEDULER_HOST',
|
||||||
|
defaultValue: '/scheduler'));
|
||||||
|
}
|
||||||
@override String subPath = "/";
|
@override String subPath = "/";
|
||||||
|
|
||||||
Future<APIResponse<WorkflowExecution>> schedule(BuildContext? context, String id, Map<String, dynamic> body, Map<String, dynamic> params) {
|
Future<APIResponse<WorkflowExecutions>> schedule(BuildContext? context, String id, Map<String, dynamic> body, Map<String, dynamic> params) {
|
||||||
print("$subPath$id");
|
|
||||||
return service.post("$subPath$id", body, context);
|
return service.post("$subPath$id", body, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override Future<APIResponse<WorkflowExecution>> search(BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
@override Future<APIResponse<WorkflowExecutions>> search(BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
||||||
return throw UnimplementedError();
|
return throw UnimplementedError();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override Future<APIResponse<WorkflowExecution>> post(BuildContext? context, Map<String, dynamic> body, Map<String, String> params) {
|
@override Future<APIResponse<WorkflowExecutions>> post(BuildContext? context, Map<String, dynamic> body, Map<String, String> params) {
|
||||||
return throw UnimplementedError();
|
return throw UnimplementedError();
|
||||||
}
|
}
|
||||||
@override Future<APIResponse<WorkflowExecution>> put(BuildContext? context, String id, Map<String, dynamic> body, Map<String, String> params) {
|
@override Future<APIResponse<WorkflowExecutions>> put(BuildContext? context, String id, Map<String, dynamic> body, Map<String, String> params) {
|
||||||
return throw UnimplementedError();
|
return throw UnimplementedError();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
import 'package:oc_front/core/services/api_service.dart';
|
import 'package:oc_front/core/services/api_service.dart';
|
||||||
import 'package:oc_front/core/services/specialized_services/abstract_service.dart';
|
import 'package:oc_front/core/services/specialized_services/abstract_service.dart';
|
||||||
|
import 'package:oc_front/models/response.dart';
|
||||||
import 'package:oc_front/models/workflow.dart';
|
import 'package:oc_front/models/workflow.dart';
|
||||||
|
|
||||||
class WorflowService extends AbstractService<Workflow> {
|
class WorflowService extends AbstractService<Workflow> {
|
||||||
|
late final APIService<Check> serviceCheck;
|
||||||
@override
|
@override
|
||||||
late final APIService<Workflow> service;
|
late final APIService<Workflow> service;
|
||||||
@override
|
@override
|
||||||
@@ -10,7 +13,15 @@ class WorflowService extends AbstractService<Workflow> {
|
|||||||
|
|
||||||
WorflowService() {
|
WorflowService() {
|
||||||
service = APIService<Workflow>(
|
service = APIService<Workflow>(
|
||||||
baseURL: super.conf.get('WORKFLOW_HOST',
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('WORKFLOW_HOST',
|
||||||
defaultValue: 'http://localhost:8080/workflow'));
|
defaultValue: '/workflow'));
|
||||||
|
serviceCheck = APIService<Check>(
|
||||||
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('WORKFLOW_HOST',
|
||||||
|
defaultValue: '/workflow'));
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<APIResponse<Check>> check(
|
||||||
|
BuildContext? context, List<String> words, Map<String, dynamic> params) {
|
||||||
|
return serviceCheck.get("${subPath}check/${words.join("/")}", true, context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class WorkspaceService extends AbstractService<Workspace> {
|
|||||||
|
|
||||||
WorkspaceService() {
|
WorkspaceService() {
|
||||||
service = APIService<Workspace>(
|
service = APIService<Workspace>(
|
||||||
baseURL: super.conf.get('WORKSPACE_HOST',
|
baseURL: const String.fromEnvironment("HOST", defaultValue: "http://localhost:8000") + super.conf.get('WORKSPACE_HOST',
|
||||||
defaultValue: 'http://localhost:8080/workspace'));
|
defaultValue: '/workspace'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
import 'dart:ui';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:localstorage/localstorage.dart';
|
import 'package:localstorage/localstorage.dart';
|
||||||
import 'package:oc_front/core/models/shared_workspace_local.dart';
|
|
||||||
import 'package:oc_front/core/models/workspace_local.dart';
|
import 'package:oc_front/core/models/workspace_local.dart';
|
||||||
import 'package:oc_front/core/sections/header/header.dart';
|
import 'package:oc_front/core/sections/header/header.dart';
|
||||||
import 'package:oc_front/core/sections/header/menu.dart';
|
import 'package:oc_front/core/sections/header/menu.dart';
|
||||||
@@ -13,15 +14,8 @@ import 'package:oc_front/core/services/enum_service.dart';
|
|||||||
import 'package:oc_front/core/services/router.dart';
|
import 'package:oc_front/core/services/router.dart';
|
||||||
import 'package:oc_front/core/sections/end_drawer.dart';
|
import 'package:oc_front/core/sections/end_drawer.dart';
|
||||||
import 'package:oc_front/widgets/dialog/login.dart';
|
import 'package:oc_front/widgets/dialog/login.dart';
|
||||||
import 'package:oc_front/core/conf/conf_reader.dart';
|
|
||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
||||||
// Load configuration before running the app
|
|
||||||
final appConfig = AppConfig();
|
|
||||||
await appConfig.loadConfig();
|
|
||||||
|
|
||||||
// Run `LinuxWebViewPlugin.initialize()` first before creating a WebView.
|
// Run `LinuxWebViewPlugin.initialize()` first before creating a WebView.
|
||||||
await initLocalStorage();
|
await initLocalStorage();
|
||||||
runApp(const MyApp());
|
runApp(const MyApp());
|
||||||
@@ -35,6 +29,7 @@ class MyApp extends StatelessWidget {
|
|||||||
// This widget is the root of your application.
|
// This widget is the root of your application.
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
// Future.delayed(Duration(seconds: 2), () => AppRouter.verifyRoute(context));
|
||||||
AuthService.init();
|
AuthService.init();
|
||||||
EnumService.init();
|
EnumService.init();
|
||||||
SearchConstants.clear();
|
SearchConstants.clear();
|
||||||
@@ -88,7 +83,6 @@ double getMainWidth(BuildContext context) {
|
|||||||
}
|
}
|
||||||
bool loginIsSet = false;
|
bool loginIsSet = false;
|
||||||
class MainPageState extends State<MainPage> {
|
class MainPageState extends State<MainPage> {
|
||||||
bool isCtrl = false;
|
|
||||||
final FocusNode node = FocusNode();
|
final FocusNode node = FocusNode();
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@@ -106,13 +100,13 @@ class MainPageState extends State<MainPage> {
|
|||||||
// fast, so that you can just rebuild anything that needs updating rather
|
// fast, so that you can just rebuild anything that needs updating rather
|
||||||
// than having to individually change instances of widgets.i
|
// than having to individually change instances of widgets.i
|
||||||
scaffoldKey = GlobalKey<ScaffoldState>();
|
scaffoldKey = GlobalKey<ScaffoldState>();
|
||||||
isCtrl = false;
|
|
||||||
if (!AuthService.isConnected() && !loginIsSet) {
|
if (!AuthService.isConnected() && !loginIsSet) {
|
||||||
Future.delayed(const Duration(milliseconds: 500), () {
|
Future.delayed(const Duration(milliseconds: 500), () {
|
||||||
loginIsSet = true;
|
loginIsSet = true;
|
||||||
showDialog(
|
showDialog(
|
||||||
barrierDismissible: false,
|
barrierDismissible: false,
|
||||||
context: context ?? context, builder: (context) {
|
// ignore: use_build_context_synchronously
|
||||||
|
context: context, builder: (context) {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
insetPadding: EdgeInsets.zero,
|
insetPadding: EdgeInsets.zero,
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
@@ -137,23 +131,20 @@ class MainPageState extends State<MainPage> {
|
|||||||
Container( padding: const EdgeInsets.symmetric(vertical: 30),
|
Container( padding: const EdgeInsets.symmetric(vertical: 30),
|
||||||
decoration: BoxDecoration( color: darkColor),
|
decoration: BoxDecoration( color: darkColor),
|
||||||
width: 50, height: getHeight(context) - 50,
|
width: 50, height: getHeight(context) - 50,
|
||||||
child: SingleChildScrollView( child: LeftMenuWidget() )),
|
child: const SingleChildScrollView( child: LeftMenuWidget() )),
|
||||||
SizedBox( width: getMainWidth(context), height: getHeight(context) - 50,
|
SizedBox( width: getMainWidth(context), height: getHeight(context) - 50,
|
||||||
child: KeyboardListener(
|
child: KeyboardListener(
|
||||||
focusNode: node,
|
focusNode: node,
|
||||||
onKeyEvent: (event) async {
|
onKeyEvent: (event) async {
|
||||||
if ( event.logicalKey == LogicalKeyboardKey.controlLeft ) {
|
if( (event is KeyDownEvent) && event.logicalKey == LogicalKeyboardKey.enter) {
|
||||||
isCtrl = (event is KeyDownEvent);
|
AppRouter.currentRoute.factory.search(context, false);
|
||||||
node.requestFocus();
|
|
||||||
} else if( (event is KeyDownEvent) && event.logicalKey == LogicalKeyboardKey.enter) {
|
|
||||||
AppRouter.currentRoute.factory.search(context, isCtrl);
|
|
||||||
node.requestFocus();
|
node.requestFocus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
HeaderWidget(),
|
const HeaderWidget(),
|
||||||
widget.page ?? Container() // CatalogPageWidget(),
|
widget.page ?? Container() // CatalogPageWidget(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ class Log extends SerializerDeserializer<Log> {
|
|||||||
|
|
||||||
String getMessage(String mess) {
|
String getMessage(String mess) {
|
||||||
var jsonString = mess;
|
var jsonString = mess;
|
||||||
|
print(mess);
|
||||||
try {
|
try {
|
||||||
var j = JsonString(mess.replaceAll("\\", "")).decodedValue as Map<String, dynamic>;
|
var j = JsonString(mess.replaceAll("\\", "")).decodedValue as Map<String, dynamic>;
|
||||||
map = j;
|
map = j;
|
||||||
@@ -87,9 +88,8 @@ class Log extends SerializerDeserializer<Log> {
|
|||||||
|
|
||||||
@override deserialize(dynamic json) {
|
@override deserialize(dynamic json) {
|
||||||
try { json = json as List<dynamic>;
|
try { json = json as List<dynamic>;
|
||||||
} catch (e) { return Log(); }
|
} catch (e) { return Log(); } var l = Log(
|
||||||
var l = Log(
|
timestamp: json.isNotEmpty ? DateTime.fromMillisecondsSinceEpoch(int.parse(json[0]) ~/ 1000, isUtc : true) : null,
|
||||||
timestamp: json.isNotEmpty ? DateTime.fromMillisecondsSinceEpoch(int.parse(json[0]) ~/ 1000) : null,
|
|
||||||
message: json.length > 1 ? getMessage(json[1].toString()) : null,
|
message: json.length > 1 ? getMessage(json[1].toString()) : null,
|
||||||
rawMessage : json.length > 1 ? json[1].toString() : null,
|
rawMessage : json.length > 1 ? json[1].toString() : null,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class MapPageWidgetState extends State<MapPageWidget> {
|
|||||||
return FutureBuilder(future: widget._service.all(context), builder: (BuildContext context, AsyncSnapshot snapshot) {
|
return FutureBuilder(future: widget._service.all(context), builder: (BuildContext context, AsyncSnapshot snapshot) {
|
||||||
Map<String, Map<AbstractItem, LatLng>> coordinates = {};
|
Map<String, Map<AbstractItem, LatLng>> coordinates = {};
|
||||||
List<Marker> markerCoordinates = [];
|
List<Marker> markerCoordinates = [];
|
||||||
if (snapshot.data != null&& snapshot.data!.data != null && snapshot.data!.data!.values.isNotEmpty) {
|
if (snapshot.data != null&& snapshot.data!.data != null) {
|
||||||
for (var element in snapshot.data!.data!.values) {
|
for (var element in snapshot.data!.data!.values) {
|
||||||
if (element["type"] == "storage") {
|
if (element["type"] == "storage") {
|
||||||
StorageItem resource = StorageItem().deserialize(element);
|
StorageItem resource = StorageItem().deserialize(element);
|
||||||
@@ -67,9 +67,9 @@ class MapPageWidgetState extends State<MapPageWidget> {
|
|||||||
height: 30,
|
height: 30,
|
||||||
point: coordinates[topic]![coord]!,
|
point: coordinates[topic]![coord]!,
|
||||||
child: HoverMenu( width: 110, title: Container( alignment: Alignment.center,
|
child: HoverMenu( width: 110, title: Container( alignment: Alignment.center,
|
||||||
constraints: BoxConstraints( maxHeight: 100, maxWidth: 100 ),
|
constraints: const BoxConstraints( maxHeight: 100, maxWidth: 100 ),
|
||||||
child: Icon(FontAwesomeIcons.locationDot,
|
child: Icon(FontAwesomeIcons.locationDot,
|
||||||
shadows: <Shadow>[Shadow(color: Color.fromRGBO(0, 0, 0, 1), blurRadius: 10.0)],
|
shadows: const <Shadow>[Shadow(color: Color.fromRGBO(0, 0, 0, 1), blurRadius: 10.0)],
|
||||||
color: getColor(topic)) ),
|
color: getColor(topic)) ),
|
||||||
items: [ Container(color: Colors.white,
|
items: [ Container(color: Colors.white,
|
||||||
child: ItemRowWidget(low: true, contextWidth: 290, item: coord)) ]
|
child: ItemRowWidget(low: true, contextWidth: 290, item: coord)) ]
|
||||||
|
|||||||
@@ -95,15 +95,15 @@ final WorflowService _service = WorflowService();
|
|||||||
var instance = objAbs as ComputeItem;
|
var instance = objAbs as ComputeItem;
|
||||||
if (instance.infrastructureEnum != null) {
|
if (instance.infrastructureEnum != null) {
|
||||||
if (instance.infrastructureEnum == 0) {
|
if (instance.infrastructureEnum == 0) {
|
||||||
return Icon(FontAwesomeIcons.docker, size: 16);
|
return const Icon(FontAwesomeIcons.docker, size: 16);
|
||||||
} else if (instance.infrastructureEnum == 1) {
|
} else if (instance.infrastructureEnum == 1) {
|
||||||
return Icon(FontAwesomeIcons.lifeRing, size: 16);
|
return const Icon(FontAwesomeIcons.lifeRing, size: 16);
|
||||||
} else if (instance.infrastructureEnum == 2) {
|
} else if (instance.infrastructureEnum == 2) {
|
||||||
return Icon(FontAwesomeIcons.cubes, size: 16);
|
return const Icon(FontAwesomeIcons.cubes, size: 16);
|
||||||
} else if (instance.infrastructureEnum == 3) {
|
} else if (instance.infrastructureEnum == 3) {
|
||||||
return Icon(FontAwesomeIcons.hardDrive, size: 16);
|
return const Icon(FontAwesomeIcons.hardDrive, size: 16);
|
||||||
} else if (instance.infrastructureEnum == 4) {
|
} else if (instance.infrastructureEnum == 4) {
|
||||||
return Icon(FontAwesomeIcons.v, size: 16);
|
return const Icon(FontAwesomeIcons.v, size: 16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -114,15 +114,15 @@ final WorflowService _service = WorflowService();
|
|||||||
var objAbs = obj as AbstractItem?;
|
var objAbs = obj as AbstractItem?;
|
||||||
if (objAbs == null) { return null; }
|
if (objAbs == null) { return null; }
|
||||||
if (objAbs.topic == "processing" ) {
|
if (objAbs.topic == "processing" ) {
|
||||||
return Icon(FontAwesomeIcons.gear, size: 16);
|
return const Icon(FontAwesomeIcons.gear, size: 16);
|
||||||
} else if (objAbs.topic == "data" ) {
|
} else if (objAbs.topic == "data" ) {
|
||||||
return Icon(FontAwesomeIcons.file, size: 16);
|
return const Icon(FontAwesomeIcons.file, size: 16);
|
||||||
} else if (objAbs.topic == "storage" ) {
|
} else if (objAbs.topic == "storage" ) {
|
||||||
return Icon(FontAwesomeIcons.database, size: 16);
|
return const Icon(FontAwesomeIcons.database, size: 16);
|
||||||
} else if (objAbs.topic == "compute" ) {
|
} else if (objAbs.topic == "compute" ) {
|
||||||
return Icon(FontAwesomeIcons.microchip, size: 16);
|
return const Icon(FontAwesomeIcons.microchip, size: 16);
|
||||||
} else if (objAbs.topic == "workflows" ) {
|
} else if (objAbs.topic == "workflows" ) {
|
||||||
return Icon(FontAwesomeIcons.diagramProject, size: 16);
|
return const Icon(FontAwesomeIcons.diagramProject, size: 16);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -169,11 +169,11 @@ final WorflowService _service = WorflowService();
|
|||||||
var updateW = Workflow(
|
var updateW = Workflow(
|
||||||
name: dash.name,
|
name: dash.name,
|
||||||
graph: Graph(),
|
graph: Graph(),
|
||||||
data: datas.map((e) => e.id).toSet().toList(),
|
data: datas.map((e) => e.element?.getID()).toSet().toList(),
|
||||||
compute: compute.map((e) => e.id).toSet().toList(),
|
compute: compute.map((e) => e.element?.getID()).toSet().toList(),
|
||||||
storage: storage.map((e) => e.id).toSet().toList(),
|
storage: storage.map((e) => e.element?.getID()).toSet().toList(),
|
||||||
processing: processing.map((e) => e.id).toSet().toList(),
|
processing: processing.map((e) => e.element?.getID()).toSet().toList(),
|
||||||
workflows: workflows.map((e) => e.id).toSet().toList(),
|
workflows: workflows.map((e) => e.element?.getID()).toSet().toList(),
|
||||||
);
|
);
|
||||||
updateW.fromDashboard(dash.serialize());
|
updateW.fromDashboard(dash.serialize());
|
||||||
for (var item in (updateW.graph?.items.values ?? [] as List<GraphItem>)) {
|
for (var item in (updateW.graph?.items.values ?? [] as List<GraphItem>)) {
|
||||||
@@ -213,13 +213,13 @@ final WorflowService _service = WorflowService();
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget onDashboardMenu(Dashboard dash) {
|
Widget onDashboardMenu(Dashboard dash) {
|
||||||
return Container( padding: EdgeInsets.only(left: 50),
|
return Container( padding: const EdgeInsets.only(left: 50),
|
||||||
decoration: BoxDecoration( border: Border( left: BorderSide( color: Colors.white ))),
|
decoration: const BoxDecoration( border: Border( left: BorderSide( color: Colors.white ))),
|
||||||
child: ShallowDropdownInputWidget(
|
child: ShallowDropdownInputWidget(
|
||||||
filled: lightColor,
|
filled: lightColor,
|
||||||
hintColor: Colors.grey.shade200,
|
hintColor: Colors.grey.shade200,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
prefixIcon: Padding( padding: EdgeInsets.only(right: 10), child: Icon(Icons.shopping_cart, color: Colors.grey.shade200)),
|
prefixIcon: Padding( padding: const EdgeInsets.only(right: 10), child: Icon(Icons.shopping_cart, color: Colors.grey.shade200)),
|
||||||
current: WorkspaceLocal.current,
|
current: WorkspaceLocal.current,
|
||||||
width: 300,
|
width: 300,
|
||||||
all: () async => WorkspaceLocal.getWorkspacesShallow(),
|
all: () async => WorkspaceLocal.getWorkspacesShallow(),
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import 'package:flutter_flow_chart/flutter_flow_chart.dart';
|
|||||||
import 'package:oc_front/widgets/inputs/shallow_text_input.dart';
|
import 'package:oc_front/widgets/inputs/shallow_text_input.dart';
|
||||||
import 'package:oc_front/core/models/shared_workspace_local.dart';
|
import 'package:oc_front/core/models/shared_workspace_local.dart';
|
||||||
import 'package:datetime_picker_formfield/datetime_picker_formfield.dart';
|
import 'package:datetime_picker_formfield/datetime_picker_formfield.dart';
|
||||||
import 'package:oc_front/core/services/specialized_services/check_service.dart';
|
|
||||||
import 'package:oc_front/core/services/specialized_services/workflow_service.dart';
|
import 'package:oc_front/core/services/specialized_services/workflow_service.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
// ignore: must_be_immutable
|
||||||
@@ -40,9 +39,8 @@ class SchedulerFormsWidget extends StatefulWidget {
|
|||||||
@override SchedulerFormsWidgetState createState() => SchedulerFormsWidgetState();
|
@override SchedulerFormsWidgetState createState() => SchedulerFormsWidgetState();
|
||||||
}
|
}
|
||||||
class SchedulerFormsWidgetState extends State<SchedulerFormsWidget> {
|
class SchedulerFormsWidgetState extends State<SchedulerFormsWidget> {
|
||||||
CheckService check = CheckService();
|
WorflowService check = WorflowService();
|
||||||
void save(List<GlobalKey<FormFieldState>> formKeys) {
|
void save(List<GlobalKey<FormFieldState>> formKeys) {
|
||||||
print("save");
|
|
||||||
widget.error = null;
|
widget.error = null;
|
||||||
widget.errorEndDate = null;
|
widget.errorEndDate = null;
|
||||||
widget.errorCron = null;
|
widget.errorCron = null;
|
||||||
@@ -84,7 +82,11 @@ class SchedulerFormsWidgetState extends State<SchedulerFormsWidget> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Duration durationBefore = widget.schedule.start!.difference(DateTime.now().toUtc()) + Duration(seconds: 5);
|
Duration durationBefore = widget.schedule.start!.difference(DateTime.now().toUtc()) + Duration(seconds: 5);
|
||||||
widget._schedulerService.schedule(context, widget.item.id ?? "", widget.schedule.serialize(), {}).then((value) {
|
widget._schedulerService.schedule(context, widget.item.id ?? "", widget.schedule.serialize(), {}).catchError( (e) {
|
||||||
|
setState(() {
|
||||||
|
widget.error = e.toString();
|
||||||
|
});
|
||||||
|
}).then((value) {
|
||||||
setState(() { widget.valid = true; });
|
setState(() { widget.valid = true; });
|
||||||
Future.delayed(durationBefore, () {
|
Future.delayed(durationBefore, () {
|
||||||
try {
|
try {
|
||||||
@@ -110,7 +112,7 @@ class SchedulerFormsWidgetState extends State<SchedulerFormsWidget> {
|
|||||||
} else {
|
} else {
|
||||||
e = widget.schedule.end!.toUtc().toIso8601String();
|
e = widget.schedule.end!.toUtc().toIso8601String();
|
||||||
}
|
}
|
||||||
check.search(context, [widget.item.id ?? "", s.substring(0, 19), e.substring(0, 19)], {}).then(
|
check.check(context, [widget.item.id ?? "", s.substring(0, 19), e.substring(0, 19)], {}).then(
|
||||||
(v) {
|
(v) {
|
||||||
if (v.data == null) { return; }
|
if (v.data == null) { return; }
|
||||||
widget.booking = v.data!.isAvailable;
|
widget.booking = v.data!.isAvailable;
|
||||||
@@ -215,12 +217,11 @@ class SchedulerFormsWidgetState extends State<SchedulerFormsWidget> {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
} : null,
|
} : null,
|
||||||
);
|
);
|
||||||
shallow.change =(p0) => Future.delayed( const Duration(seconds: 2), () async {
|
shallow.change =(p0) => Future.delayed( const Duration(milliseconds: 100), () async {
|
||||||
if (shallow.compare == p0) {
|
if (shallow.current == p0) {
|
||||||
await WorflowService().put(context, widget.item.id ?? "", { "name" : p0 }, {});
|
dash.name = p0 ?? dash.name;
|
||||||
} else {
|
await WorflowService().put(context, widget.item.id ?? "", { "name" : dash.name }, {});
|
||||||
shallow.compare = p0;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return Column( children: [
|
return Column( children: [
|
||||||
@@ -236,7 +237,7 @@ class SchedulerFormsWidgetState extends State<SchedulerFormsWidget> {
|
|||||||
bottom: const BorderSide(color: Colors.grey))),
|
bottom: const BorderSide(color: Colors.grey))),
|
||||||
child: shallow ),
|
child: shallow ),
|
||||||
const SizedBox(height: 20, width: 200 ),
|
const SizedBox(height: 20, width: 200 ),
|
||||||
isService ? Text("Warning a processing is a service, if no end execution it will run forever.") : Container(),
|
isService ? const Text("Warning a processing is a service, if no end execution it will run forever.") : Container(),
|
||||||
Tooltip( message: "start executions",
|
Tooltip( message: "start executions",
|
||||||
child: Container( height: 40, margin: const EdgeInsets.only(top: 5),
|
child: Container( height: 40, margin: const EdgeInsets.only(top: 5),
|
||||||
padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 10),
|
padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 10),
|
||||||
@@ -494,12 +495,11 @@ class SchedulerFormsWidgetState extends State<SchedulerFormsWidget> {
|
|||||||
onTap: () { PermsService.getPerm(Perms.WORKFLOW_BOOKING) ? checkBooking(formKeys, null) : null;
|
onTap: () { PermsService.getPerm(Perms.WORKFLOW_BOOKING) ? checkBooking(formKeys, null) : null;
|
||||||
}, child: Container( margin: const EdgeInsets.only(bottom: 5, left: 10, right: 10),
|
}, child: Container( margin: const EdgeInsets.only(bottom: 5, left: 10, right: 10),
|
||||||
decoration: BoxDecoration(borderRadius: BorderRadius.circular(5),
|
decoration: BoxDecoration(borderRadius: BorderRadius.circular(5),
|
||||||
border: Border.all(color: widget.booking == null ? (
|
border: Border.all(color: widget.booking == null ? Colors.black : (
|
||||||
PermsService.getPerm(Perms.WORKFLOW_BOOKING) && PermsService.getPerm(Perms.WORKFLOW_EDIT) ? Colors.black : Colors.grey) : (
|
|
||||||
widget.booking == true ? Colors.green : redColor), width: 1)),
|
widget.booking == true ? Colors.green : redColor), width: 1)),
|
||||||
width: 200, height: 30,
|
width: 200, height: 30,
|
||||||
child: Icon( Icons.verified_outlined,
|
child: Icon( Icons.verified_outlined,
|
||||||
color: widget.booking == null ? Colors.black : (widget.booking == true ? Colors.green : redColor)),
|
color: widget.booking == null ? Colors.black : (widget.booking == true ? Colors.green : redColor)),
|
||||||
))
|
))
|
||||||
): Container(),
|
): Container(),
|
||||||
PermsService.getPerm(Perms.WORKFLOW_BOOKING) ? Tooltip( message: "book", child: InkWell( mouseCursor: SystemMouseCursors.click,
|
PermsService.getPerm(Perms.WORKFLOW_BOOKING) ? Tooltip( message: "book", child: InkWell( mouseCursor: SystemMouseCursors.click,
|
||||||
@@ -507,7 +507,7 @@ class SchedulerFormsWidgetState extends State<SchedulerFormsWidget> {
|
|||||||
setState(() { save(formKeys); });
|
setState(() { save(formKeys); });
|
||||||
}, child: Container( margin: const EdgeInsets.only(top: 5, bottom: 10, left: 10, right: 10),
|
}, child: Container( margin: const EdgeInsets.only(top: 5, bottom: 10, left: 10, right: 10),
|
||||||
decoration: BoxDecoration(borderRadius: BorderRadius.circular(5),
|
decoration: BoxDecoration(borderRadius: BorderRadius.circular(5),
|
||||||
border: Border.all(color: dash.error != null ? Colors.red : ( PermsService.getPerm(Perms.WORKFLOW_BOOKING) ?(widget.valid ? Colors.green : Colors.black) : Colors.grey ))),
|
border: Border.all(color: dash.error != null ? Colors.red : (widget.valid ? Colors.green : Colors.black) )),
|
||||||
width: 200, height: 30,
|
width: 200, height: 30,
|
||||||
child: Icon(Icons.schedule_send, color: dash.error != null ? Colors.red : (widget.valid ? Colors.green : Colors.black)),
|
child: Icon(Icons.schedule_send, color: dash.error != null ? Colors.red : (widget.valid ? Colors.green : Colors.black)),
|
||||||
))
|
))
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ class LogsWidgetState extends State<LogsWidget> {
|
|||||||
try { setState(() { });
|
try { setState(() { });
|
||||||
} catch (e) { /**/ }
|
} catch (e) { /**/ }
|
||||||
});
|
});
|
||||||
return Container( height: getMainHeight(context) - 100,
|
return SizedBox( height: getMainHeight(context) - 100,
|
||||||
child: Center( child: CircularProgressIndicator()) );
|
child: const Center( child: CircularProgressIndicator()) );
|
||||||
}
|
}
|
||||||
if (widget.exec == null) {
|
if (widget.exec == null) {
|
||||||
return Container();
|
return Container();
|
||||||
@@ -53,11 +53,7 @@ class LogsWidgetState extends State<LogsWidget> {
|
|||||||
end = (DateTime.parse(widget.exec!.startDate!).add( const Duration(days: 14)).microsecondsSinceEpoch).toString();
|
end = (DateTime.parse(widget.exec!.startDate!).add( const Duration(days: 14)).microsecondsSinceEpoch).toString();
|
||||||
}
|
}
|
||||||
} catch(e) { /* */ }
|
} catch(e) { /* */ }
|
||||||
Future.delayed(const Duration(minutes: 1), () {
|
return FutureBuilder(future: LogsService().search(null, [], {
|
||||||
try { setState(() {});
|
|
||||||
} catch (e) { /**/ }
|
|
||||||
});
|
|
||||||
return FutureBuilder(future: LogsService().search(context, [], {
|
|
||||||
"workflow_execution_id": widget.exec!.id,
|
"workflow_execution_id": widget.exec!.id,
|
||||||
"start": start,
|
"start": start,
|
||||||
"end": end
|
"end": end
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ class ScheduleWidgetState extends State<ScheduleWidget> {
|
|||||||
"${widget.end.year}-${widget.end.month > 9 ? widget.end.month : "0${widget.end.month}"}-${widget.end.day > 9 ? widget.end.day : "0${widget.end.day}"}"], {}),
|
"${widget.end.year}-${widget.end.month > 9 ? widget.end.month : "0${widget.end.month}"}-${widget.end.day > 9 ? widget.end.day : "0${widget.end.day}"}"], {}),
|
||||||
builder: (ctx, as) {
|
builder: (ctx, as) {
|
||||||
Map<String, List<WorkflowExecution>> data = {};
|
Map<String, List<WorkflowExecution>> data = {};
|
||||||
|
DateTime? firstDate;
|
||||||
if (as.hasData && as.data!.data != null) {
|
if (as.hasData && as.data!.data != null) {
|
||||||
for (var element in as.data!.data!.executions) {
|
for (var element in as.data!.data!.executions) {
|
||||||
if (element.startDate == null) { continue; }
|
if (element.startDate == null) { continue; }
|
||||||
@@ -52,9 +53,20 @@ class ScheduleWidgetState extends State<ScheduleWidget> {
|
|||||||
var str = "${date.toIso8601String()}Z";
|
var str = "${date.toIso8601String()}Z";
|
||||||
if (data[str] == null) { data[str] = []; }
|
if (data[str] == null) { data[str] = []; }
|
||||||
data[str]!.add(element);
|
data[str]!.add(element);
|
||||||
data[str]!.sort((a, b) => DateTime.parse(a.startDate!).compareTo(DateTime.parse(b.startDate!)));
|
data[str]!.sort((a, b) => DateTime.parse(a.startDate!).compareTo(DateTime.parse(b.startDate!)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
List<WorkflowExecution> vals = [];
|
||||||
|
for (var val in data.values) {
|
||||||
|
vals.addAll(val);
|
||||||
|
}
|
||||||
|
if (vals.isNotEmpty) {
|
||||||
|
try {
|
||||||
|
Future.delayed(const Duration(minutes: 1), () {
|
||||||
|
setState(() {});
|
||||||
|
});
|
||||||
|
} catch (e) { /* */ }
|
||||||
|
}
|
||||||
bool isInfo = getMainWidth(context) <= 600 && selected != null && widget.isBox;
|
bool isInfo = getMainWidth(context) <= 600 && selected != null && widget.isBox;
|
||||||
double w = selected != null && widget.isBox ? getMainWidth(context) - menuSize : getMainWidth(context);
|
double w = selected != null && widget.isBox ? getMainWidth(context) - menuSize : getMainWidth(context);
|
||||||
List<Widget> children = [];
|
List<Widget> children = [];
|
||||||
|
|||||||
@@ -24,7 +24,10 @@ class SchedulerItemWidgetState extends State<SchedulerItemWidget> {
|
|||||||
for (var element in widget.data.keys.toList()..sort((a, b) => DateTime.parse(a).compareTo(DateTime.parse(b)))) {
|
for (var element in widget.data.keys.toList()..sort((a, b) => DateTime.parse(a).compareTo(DateTime.parse(b)))) {
|
||||||
List<Widget> widgets = [];
|
List<Widget> widgets = [];
|
||||||
for (var ev in widget.data[element] ?? ([] as List<WorkflowExecution>)) {
|
for (var ev in widget.data[element] ?? ([] as List<WorkflowExecution>)) {
|
||||||
widget.keys[ev.startDate!] = GlobalKey();
|
Duration durationBefore = DateTime.parse(ev.startDate!).difference(DateTime.now().toUtc()) + Duration(seconds: 5);
|
||||||
|
Future.delayed(durationBefore, () {
|
||||||
|
widget.parent?.setState(() { });
|
||||||
|
});
|
||||||
var d2 = DateTime.parse(ev.startDate!).toLocal();
|
var d2 = DateTime.parse(ev.startDate!).toLocal();
|
||||||
DateTime? d3;
|
DateTime? d3;
|
||||||
try { d3 = DateTime.parse(ev.endDate!).toLocal();
|
try { d3 = DateTime.parse(ev.endDate!).toLocal();
|
||||||
@@ -34,7 +37,6 @@ class SchedulerItemWidgetState extends State<SchedulerItemWidget> {
|
|||||||
selected = selected != element || ev.startDate != selectedReal ? element : null;
|
selected = selected != element || ev.startDate != selectedReal ? element : null;
|
||||||
widget.parent!.widget.selectedID = selected;
|
widget.parent!.widget.selectedID = selected;
|
||||||
selectedReal = selected == null ? null : ev.startDate;
|
selectedReal = selected == null ? null : ev.startDate;
|
||||||
print("there");
|
|
||||||
if (selectedReal == null) {
|
if (selectedReal == null) {
|
||||||
widget.parent!.widget.isDayPlanner = true;
|
widget.parent!.widget.isDayPlanner = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import 'package:flutter/foundation.dart';
|
|||||||
import 'package:flutter_flow_chart/flutter_flow_chart.dart';
|
import 'package:flutter_flow_chart/flutter_flow_chart.dart';
|
||||||
import 'package:flutter_flow_chart/src/flow_chart_menu.dart';
|
import 'package:flutter_flow_chart/src/flow_chart_menu.dart';
|
||||||
import 'package:flutter_flow_chart/src/flow_chart_selected_menu.dart';
|
import 'package:flutter_flow_chart/src/flow_chart_selected_menu.dart';
|
||||||
import 'package:flutter_flow_chart/src/ui/draw_arrow.dart';
|
|
||||||
import 'package:flutter_flow_chart/src/ui/segment_handler.dart';
|
import 'package:flutter_flow_chart/src/ui/segment_handler.dart';
|
||||||
|
|
||||||
/// Listener definition for a new connection
|
/// Listener definition for a new connection
|
||||||
@@ -163,7 +162,6 @@ class Dashboard extends ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void copyFromMap(Map<String, dynamic> map) {
|
void copyFromMap(Map<String, dynamic> map) {
|
||||||
debugPrintStack(stackTrace: StackTrace.current, label: 'my_label', maxFrames: 5);
|
|
||||||
defaultArrowStyle = ArrowStyle.values[map['arrowStyle'] as int? ?? 0];
|
defaultArrowStyle = ArrowStyle.values[map['arrowStyle'] as int? ?? 0];
|
||||||
defaultDashSpace = map['defaultDashSpace'] as double? ?? 0;
|
defaultDashSpace = map['defaultDashSpace'] as double? ?? 0;
|
||||||
defaultDashWidth = map['defaultDashWidth'] as double? ?? 0;
|
defaultDashWidth = map['defaultDashWidth'] as double? ?? 0;
|
||||||
@@ -843,7 +841,6 @@ class Dashboard extends ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (found == 0) {
|
if (found == 0) {
|
||||||
debugPrint('Element with $destId id not found!');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (notify) {
|
if (notify) {
|
||||||
|
|||||||
@@ -296,9 +296,9 @@ class HoverMenuState extends State<HoverMenu> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isCtrl = false;
|
||||||
class FlowChartState<T extends FlowData> extends State<FlowChart> {
|
class FlowChartState<T extends FlowData> extends State<FlowChart> {
|
||||||
var node = FocusNode();
|
var node = FocusNode();
|
||||||
bool isCtrl = false;
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
node.requestFocus();
|
node.requestFocus();
|
||||||
@@ -316,24 +316,30 @@ class FlowChartState<T extends FlowData> extends State<FlowChart> {
|
|||||||
if (!widget.dashboard.isOpened && widget.onDashboardAlertOpened != null ) {
|
if (!widget.dashboard.isOpened && widget.onDashboardAlertOpened != null ) {
|
||||||
if (widget.dashboard.id != null) {
|
if (widget.dashboard.id != null) {
|
||||||
widget.dashboard.isOpened = true;
|
widget.dashboard.isOpened = true;
|
||||||
Future.delayed(Duration(milliseconds: 100), () => widget.dashboard.load!(widget.dashboard.id!) );
|
Future.delayed(const Duration(milliseconds: 100), () => widget.dashboard.load!(widget.dashboard.id!) );
|
||||||
} else {
|
} else {
|
||||||
Future.delayed(Duration(milliseconds: 100), () {
|
try {
|
||||||
if (!widget.dashboard.inDialog) {
|
Future.delayed(const Duration(milliseconds: 100), () {
|
||||||
widget.dashboard.inDialog = true;
|
if (!widget.dashboard.inDialog) {
|
||||||
showDialog(
|
widget.dashboard.inDialog = true;
|
||||||
barrierDismissible: false,
|
showDialog(
|
||||||
context: context, builder: (context) {
|
barrierDismissible: false,
|
||||||
return AlertDialog(
|
context: context, builder: (context) {
|
||||||
titlePadding: EdgeInsets.zero,
|
return AlertDialog(
|
||||||
insetPadding: EdgeInsets.zero,
|
titlePadding: EdgeInsets.zero,
|
||||||
backgroundColor: Colors.white,
|
insetPadding: EdgeInsets.zero,
|
||||||
shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(0)),
|
backgroundColor: Colors.white,
|
||||||
title: widget.onDashboardAlertOpened!(context, widget.dashboard));
|
shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(0)),
|
||||||
|
title: widget.onDashboardAlertOpened!(context, widget.dashboard));
|
||||||
});
|
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
widget.dashboard.id = null;
|
||||||
|
widget.dashboard.name = "";
|
||||||
|
widget.dashboard.isOpened = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
widget.dashboard.isOpened = true;
|
widget.dashboard.isOpened = true;
|
||||||
@@ -358,15 +364,20 @@ class FlowChartState<T extends FlowData> extends State<FlowChart> {
|
|||||||
autofocus: true,
|
autofocus: true,
|
||||||
onKeyEvent: (event) {
|
onKeyEvent: (event) {
|
||||||
bool change = false;
|
bool change = false;
|
||||||
if (event.logicalKey == LogicalKeyboardKey.controlLeft) {
|
if (event.logicalKey == LogicalKeyboardKey.controlLeft && event is KeyDownEvent) {
|
||||||
isCtrl = event is KeyDownEvent || event is KeyRepeatEvent;
|
print("CTRL true");
|
||||||
|
isCtrl = true;
|
||||||
}
|
}
|
||||||
/*if ((event is KeyDownEvent || event.logicalKey == LogicalKeyboardKey.keyZ) && isCtrl) {
|
if (event.logicalKey == LogicalKeyboardKey.controlLeft && event is KeyUpEvent) {
|
||||||
|
print("CTRL false");
|
||||||
|
isCtrl = false;
|
||||||
|
}
|
||||||
|
if ((event is KeyDownEvent || event.logicalKey == LogicalKeyboardKey.keyZ) && isCtrl) {
|
||||||
widget.dashboard.back();
|
widget.dashboard.back();
|
||||||
}
|
}
|
||||||
if ((event is KeyDownEvent || event.logicalKey == LogicalKeyboardKey.keyY) && isCtrl) {
|
if ((event is KeyDownEvent || event.logicalKey == LogicalKeyboardKey.keyY) && isCtrl) {
|
||||||
widget.dashboard.forward();
|
widget.dashboard.forward();
|
||||||
}*/
|
}
|
||||||
if (event is KeyDownEvent && event.logicalKey == LogicalKeyboardKey.add) {
|
if (event is KeyDownEvent && event.logicalKey == LogicalKeyboardKey.add) {
|
||||||
change = true;
|
change = true;
|
||||||
for (var el in widget.dashboard.elementSelected) {
|
for (var el in widget.dashboard.elementSelected) {
|
||||||
@@ -411,7 +422,7 @@ class FlowChartState<T extends FlowData> extends State<FlowChart> {
|
|||||||
children: [
|
children: [
|
||||||
Stack(children: [
|
Stack(children: [
|
||||||
// Draw the grid
|
// Draw the grid
|
||||||
Container( child: DragTarget<T>(
|
DragTarget<T>(
|
||||||
builder: (
|
builder: (
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
List<dynamic> accepted,
|
List<dynamic> accepted,
|
||||||
@@ -468,7 +479,7 @@ class FlowChartState<T extends FlowData> extends State<FlowChart> {
|
|||||||
);
|
);
|
||||||
widget.dashboard.addElement(el, context);
|
widget.dashboard.addElement(el, context);
|
||||||
},
|
},
|
||||||
))]
|
)]
|
||||||
),
|
),
|
||||||
widget.dashboard.isMenu ? Positioned(top: 50, child: FlowChartSelectedMenu(
|
widget.dashboard.isMenu ? Positioned(top: 50, child: FlowChartSelectedMenu(
|
||||||
key: widget.dashboard.selectedMenuKey,
|
key: widget.dashboard.selectedMenuKey,
|
||||||
@@ -722,9 +733,10 @@ class ChartWidgetState<T extends FlowData> extends State<ChartWidget> {
|
|||||||
final gridKey = GlobalKey();
|
final gridKey = GlobalKey();
|
||||||
var tapDownPos = Offset.zero;
|
var tapDownPos = Offset.zero;
|
||||||
var secondaryTapDownPos = Offset.zero;
|
var secondaryTapDownPos = Offset.zero;
|
||||||
for (int i = 0; i < widget.dashboard.elements.length; i++)
|
for (int i = 0; i < widget.dashboard.elements.length; i++) {
|
||||||
widget.dashboard.elements[i].next.removeWhere((element) =>
|
widget.dashboard.elements[i].next.removeWhere((element) =>
|
||||||
widget.dashboard.findElementIndexById(element.destElementId) < 0);
|
widget.dashboard.findElementIndexById(element.destElementId) < 0);
|
||||||
|
}
|
||||||
return Stack( children: [
|
return Stack( children: [
|
||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
@@ -816,9 +828,9 @@ class ChartWidgetState<T extends FlowData> extends State<ChartWidget> {
|
|||||||
for (int i = 0; i < widget.dashboard.elements.length; i++)
|
for (int i = 0; i < widget.dashboard.elements.length; i++)
|
||||||
ElementWidget<T>(
|
ElementWidget<T>(
|
||||||
key: UniqueKey(),
|
key: UniqueKey(),
|
||||||
bottomLeftBadge: widget.flowChart.widget.itemLeftBottomBadges != null ?
|
bottomLeftBadge: widget.flowChart.widget.itemLeftBottomBadges != null && widget.dashboard.elements[i].element != null ?
|
||||||
widget.flowChart.widget.itemLeftBottomBadges!(widget.dashboard.elements[i].element as T) : null,
|
widget.flowChart.widget.itemLeftBottomBadges!(widget.dashboard.elements[i].element as T) : null,
|
||||||
topRightBadge: widget.flowChart.widget.itemrightTopBadges != null ?
|
topRightBadge: widget.flowChart.widget.itemrightTopBadges != null && widget.dashboard.elements[i].element != null ?
|
||||||
widget.flowChart.widget.itemrightTopBadges!(widget.dashboard.elements[i].element as T) : null,
|
widget.flowChart.widget.itemrightTopBadges!(widget.dashboard.elements[i].element as T) : null,
|
||||||
dashboard: widget.dashboard,
|
dashboard: widget.dashboard,
|
||||||
element: widget.dashboard.elements.elementAt(i),
|
element: widget.dashboard.elements.elementAt(i),
|
||||||
|
|||||||
@@ -23,19 +23,19 @@ class FlowChartMenuState extends State<FlowChartMenu> {
|
|||||||
return Row( mainAxisAlignment: MainAxisAlignment.end, children : [ Container( // SHORTCUT
|
return Row( mainAxisAlignment: MainAxisAlignment.end, children : [ Container( // SHORTCUT
|
||||||
width: widget.width,
|
width: widget.width,
|
||||||
height: 50,
|
height: 50,
|
||||||
padding: EdgeInsets.only(left: 20),
|
padding: const EdgeInsets.only(left: 20),
|
||||||
color: widget.dashboard.dashColor,
|
color: widget.dashboard.dashColor,
|
||||||
child: Row( children : [ Expanded(flex: 2, child: Row( children: [
|
child: Row( children : [ Expanded(flex: 2, child: Row( children: [
|
||||||
widget.chart.widget.flowChart.widget.onDashboardAlertOpened == null ? Container() : Container(
|
widget.chart.widget.flowChart.widget.onDashboardAlertOpened == null ? Container() : Container(
|
||||||
decoration: BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
border: Border(right: BorderSide(color: Colors.white, width: 1))
|
border: Border(right: BorderSide(color: Colors.white, width: 1))
|
||||||
),
|
),
|
||||||
child: Row( children: [
|
child: Row( children: [
|
||||||
Tooltip( message: "open file", child:Container( child:
|
Tooltip( message: "open file", child: Padding( padding: const EdgeInsets.only(right: 15),
|
||||||
Padding( padding: EdgeInsets.only(right: 15),
|
|
||||||
child: InkWell( mouseCursor: SystemMouseCursors.click,
|
child: InkWell( mouseCursor: SystemMouseCursors.click,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
widget.dashboard.name = "graph_${DateTime.now().toString().replaceAll(" ", "_").substring(0, DateTime.now().toString().length - 7)}";
|
widget.dashboard.id = null;
|
||||||
|
widget.dashboard.name = "";
|
||||||
widget.dashboard.isOpened = true;
|
widget.dashboard.isOpened = true;
|
||||||
if (!widget.dashboard.inDialog) {
|
if (!widget.dashboard.inDialog) {
|
||||||
widget.dashboard.inDialog = true;
|
widget.dashboard.inDialog = true;
|
||||||
@@ -52,7 +52,7 @@ class FlowChartMenuState extends State<FlowChartMenu> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Icon(Icons.folder, color: Colors.white))))),
|
child: Icon(Icons.folder, color: Colors.white)))),
|
||||||
])),
|
])),
|
||||||
InkWell( mouseCursor: SystemMouseCursors.click, child: Container(
|
InkWell( mouseCursor: SystemMouseCursors.click, child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
@@ -240,12 +240,12 @@ class FlowChartMenuState extends State<FlowChartMenu> {
|
|||||||
|
|
||||||
])),
|
])),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Padding( child: Text("current workflow : ${widget.dashboard.name}", overflow: TextOverflow.ellipsis,
|
child: Padding( padding: const EdgeInsets.symmetric(horizontal: 20),
|
||||||
style: TextStyle(color: Colors.white, fontSize: 14), textAlign: TextAlign.start),
|
child: Text("current workflow : ${widget.dashboard.name}", overflow: TextOverflow.ellipsis,
|
||||||
padding: EdgeInsets.symmetric(horizontal: 20))),
|
style: const TextStyle(color: Colors.white, fontSize: 14), textAlign: TextAlign.start))),
|
||||||
])),
|
])),
|
||||||
widget.menuExtension != null && widget.chart.widget.flowChart.widget.width > 600 ? Container(
|
widget.menuExtension != null && widget.chart.widget.flowChart.widget.width > 600 ? Container(
|
||||||
decoration: BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
border: Border(left: BorderSide(color: Colors.white, width: 1))
|
border: Border(left: BorderSide(color: Colors.white, width: 1))
|
||||||
),
|
),
|
||||||
child: widget.menuExtension
|
child: widget.menuExtension
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ import 'dart:convert';
|
|||||||
import 'dart:ui' as ui;
|
import 'dart:ui' as ui;
|
||||||
import 'dart:math' as math;
|
import 'dart:math' as math;
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
|
||||||
import 'package:flutter/widgets.dart';
|
|
||||||
import 'package:flutter_flow_chart/flutter_flow_chart.dart';
|
import 'package:flutter_flow_chart/flutter_flow_chart.dart';
|
||||||
import 'package:flutter_flow_chart/src/ui/segment_handler.dart';
|
import 'package:flutter_flow_chart/src/ui/segment_handler.dart';
|
||||||
|
|
||||||
@@ -257,6 +255,7 @@ class DrawingArrow extends ChangeNotifier {
|
|||||||
|
|
||||||
/// Draw arrow from [srcElement] to [destElement]
|
/// Draw arrow from [srcElement] to [destElement]
|
||||||
/// using [arrowParams] parameters
|
/// using [arrowParams] parameters
|
||||||
|
// ignore: must_be_immutable
|
||||||
class DrawArrow extends StatefulWidget {
|
class DrawArrow extends StatefulWidget {
|
||||||
ChartWidgetState flow;
|
ChartWidgetState flow;
|
||||||
///
|
///
|
||||||
@@ -377,14 +376,15 @@ class DrawArrowState extends State<DrawArrow> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ignore: must_be_immutable
|
||||||
class GraphParamsWidget extends StatefulWidget {
|
class GraphParamsWidget extends StatefulWidget {
|
||||||
ChartWidgetState comp;
|
ChartWidgetState comp;
|
||||||
bool isShowed = false;
|
bool isShowed = false;
|
||||||
Offset? position;
|
Offset? position;
|
||||||
FlowElement element;
|
FlowElement element;
|
||||||
int index;
|
int index;
|
||||||
GraphParamsWidget({ Key? key, required this.element, required this.comp,
|
GraphParamsWidget({ super.key, required this.element, required this.comp,
|
||||||
required this.index }): super(key: key);
|
required this.index });
|
||||||
@override GraphParamsWidgetState createState() => GraphParamsWidgetState();
|
@override GraphParamsWidgetState createState() => GraphParamsWidgetState();
|
||||||
}
|
}
|
||||||
class GraphParamsWidgetState extends State<GraphParamsWidget> {
|
class GraphParamsWidgetState extends State<GraphParamsWidget> {
|
||||||
@@ -393,32 +393,32 @@ class GraphParamsWidgetState extends State<GraphParamsWidget> {
|
|||||||
top: (widget.position?.dy ?? 0) - 5, left: (widget.position?.dx ?? 0) - 5,
|
top: (widget.position?.dy ?? 0) - 5, left: (widget.position?.dx ?? 0) - 5,
|
||||||
child: MouseRegion( cursor: SystemMouseCursors.click,
|
child: MouseRegion( cursor: SystemMouseCursors.click,
|
||||||
onHover: (event) => setState(() { widget.isShowed = true; }),
|
onHover: (event) => setState(() { widget.isShowed = true; }),
|
||||||
child: Container(
|
|
||||||
child: Row(children: [
|
child: Row(children: [
|
||||||
IconButton(onPressed: () {
|
IconButton(onPressed: () {
|
||||||
widget.comp.setState(() {
|
widget.comp.setState(() {
|
||||||
widget.comp.widget.dashboard.removeArrows((el) => el.fromID == "${widget.element.id}${widget.index}", context);
|
widget.comp.widget.dashboard.removeArrows((el) => el.fromID == "${widget.element.id}${widget.index}", context);
|
||||||
widget.element.next.removeAt(widget.index);
|
widget.element.next.removeAt(widget.index);
|
||||||
});
|
});
|
||||||
}, icon: Icon(Icons.delete))
|
}, icon: const Icon(Icons.delete))
|
||||||
],))));
|
],)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ignore: must_be_immutable
|
||||||
class ArrowInfoWidget extends StatefulWidget {
|
class ArrowInfoWidget extends StatefulWidget {
|
||||||
Dashboard dashboard;
|
Dashboard dashboard;
|
||||||
ArrowInfoWidget ({ Key? key, required this.dashboard }): super(key: key);
|
ArrowInfoWidget ({ super.key, required this.dashboard });
|
||||||
@override ArrowInfoWidgetState createState() => ArrowInfoWidgetState();
|
@override ArrowInfoWidgetState createState() => ArrowInfoWidgetState();
|
||||||
}
|
}
|
||||||
class ArrowInfoWidgetState extends State<ArrowInfoWidget> {
|
class ArrowInfoWidgetState extends State<ArrowInfoWidget> {
|
||||||
@override Widget build(BuildContext context) {
|
@override Widget build(BuildContext context) {
|
||||||
return SingleChildScrollView( child: Column(children: [
|
return SingleChildScrollView( child: Column(children: [
|
||||||
Container(height: 50,
|
Container(height: 50,
|
||||||
decoration: BoxDecoration(color: widget.dashboard.midDashColor, border: Border(bottom: BorderSide(color: Colors.grey, width: 1))),
|
decoration: BoxDecoration(color: widget.dashboard.midDashColor, border: const Border(bottom: BorderSide(color: Colors.grey, width: 1))),
|
||||||
child: Center( child: Text("<Arrow> Style", style: TextStyle(fontSize: 20)))),
|
child: const Center( child: Text("<Arrow> Style", style: TextStyle(fontSize: 20)))),
|
||||||
Container(height: 50,
|
Container(height: 50,
|
||||||
decoration: BoxDecoration(color: widget.dashboard.midDashColor, border: Border(bottom: BorderSide(color: Colors.grey, width: 1))),
|
decoration: BoxDecoration(color: widget.dashboard.midDashColor, border: const Border(bottom: BorderSide(color: Colors.grey, width: 1))),
|
||||||
child: Row(children: [],)
|
child: const Row(children: [],)
|
||||||
),
|
),
|
||||||
],) );
|
],) );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,32 +136,27 @@ class ElementWidgetState<T extends FlowData> extends State<ElementWidget> {
|
|||||||
if (widget.element.widget == null) { element = RectangleWidget(element: widget.element);
|
if (widget.element.widget == null) { element = RectangleWidget(element: widget.element);
|
||||||
} else { element = AnyWidget(element: widget.element); }
|
} else { element = AnyWidget(element: widget.element); }
|
||||||
}
|
}
|
||||||
|
|
||||||
var tapLocation = Offset.zero;
|
var tapLocation = Offset.zero;
|
||||||
var secondaryTapDownPos = Offset.zero;
|
var secondaryTapDownPos = Offset.zero;
|
||||||
|
Widget w = InkWell(
|
||||||
|
|
||||||
Widget w = GestureDetector(
|
|
||||||
onTapDown: (details) => tapLocation = details.globalPosition,
|
onTapDown: (details) => tapLocation = details.globalPosition,
|
||||||
onSecondaryTapDown: (details) =>
|
onSecondaryTapDown: (details) =>
|
||||||
secondaryTapDownPos = details.globalPosition,
|
secondaryTapDownPos = details.globalPosition,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (!(widget.dashboard.flutterChartKey.currentState?.isCtrl ?? true)) {
|
if (!isCtrl) {
|
||||||
for (var element in widget.dashboard.elements) {
|
for (var element in widget.dashboard.elements) {
|
||||||
element.isSelected = false;
|
element.isSelected = false;
|
||||||
element.dashboard.chartKey.currentState?. setState(() { });
|
element.dashboard.chartKey.currentState?. setState(() { });
|
||||||
widget.dashboard.selectedMenuKey.currentState?. setState(() { });
|
widget.dashboard.selectedMenuKey.currentState?. setState(() { });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Future.delayed(Duration(milliseconds: 100), () {
|
DrawingArrow.instance.notifyListeners();
|
||||||
DrawingArrow.instance.notifyListeners();
|
widget.isHovered = false;
|
||||||
widget.element.isSelected = !widget.element.isSelected;
|
widget.element.isSelected = !widget.element.isSelected;
|
||||||
for (var sel in widget.dashboard.arrows) { sel.isSelected = false; }
|
for (var sel in widget.dashboard.arrows) { sel.isSelected = false; }
|
||||||
widget.dashboard.selectedMenuKey.currentState?. setState(() { });
|
widget.dashboard.selectedMenuKey.currentState?. setState(() { });
|
||||||
});
|
|
||||||
});
|
});
|
||||||
widget.onElementPressed?.call(context, tapLocation);
|
|
||||||
},
|
},
|
||||||
onSecondaryTap: () {
|
onSecondaryTap: () {
|
||||||
widget.onElementSecondaryTapped?.call(context, secondaryTapDownPos);
|
widget.onElementSecondaryTapped?.call(context, secondaryTapDownPos);
|
||||||
@@ -169,9 +164,9 @@ class ElementWidgetState<T extends FlowData> extends State<ElementWidget> {
|
|||||||
onLongPress: () {
|
onLongPress: () {
|
||||||
widget.onElementLongPressed?.call(context, tapLocation);
|
widget.onElementLongPressed?.call(context, tapLocation);
|
||||||
},
|
},
|
||||||
onSecondaryLongPress: () {
|
/*onSecondaryLongPress: () {
|
||||||
widget.onElementSecondaryLongTapped?.call(context, secondaryTapDownPos);
|
widget.onElementSecondaryLongTapped?.call(context, secondaryTapDownPos);
|
||||||
},
|
},*/
|
||||||
child: Listener(
|
child: Listener(
|
||||||
onPointerDown: (event) {
|
onPointerDown: (event) {
|
||||||
delta = event.localPosition;
|
delta = event.localPosition;
|
||||||
@@ -198,7 +193,7 @@ class ElementWidgetState<T extends FlowData> extends State<ElementWidget> {
|
|||||||
onHandlerLongPressed: widget.onHandlerLongPressed,
|
onHandlerLongPressed: widget.onHandlerLongPressed,
|
||||||
onHandlerSecondaryLongTapped: widget.onHandlerSecondaryLongTapped,
|
onHandlerSecondaryLongTapped: widget.onHandlerSecondaryLongTapped,
|
||||||
child: Container(
|
child: Container(
|
||||||
margin: EdgeInsets.all(10), // why some change
|
margin: const EdgeInsets.all(10), // why some change
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border.all(color: widget.element.isSelected ? Colors.red : widget.dashboard.midDashColor,
|
border: Border.all(color: widget.element.isSelected ? Colors.red : widget.dashboard.midDashColor,
|
||||||
width: widget.element.isSelected ? 2 : 1),
|
width: widget.element.isSelected ? 2 : 1),
|
||||||
|
|||||||
@@ -195,7 +195,6 @@ class _GridBackgroundPainter extends CustomPainter {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool shouldRepaint(_GridBackgroundPainter oldDelegate) {
|
bool shouldRepaint(_GridBackgroundPainter oldDelegate) {
|
||||||
debugPrint('shouldRepaint ${oldDelegate.dx} $dx ${oldDelegate.dy} $dy');
|
|
||||||
return oldDelegate.dx != dx || oldDelegate.dy != dy;
|
return oldDelegate.dx != dx || oldDelegate.dy != dy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
WORKSPACE_HOST='http://localhost:8089/oc'
|
WORKSPACE_HOST='http://localhost:8089/oc'
|
||||||
WORKFLOW_HOST='http://localhost:8088/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'
|
SCHEDULER_HOST='http://localhost:8090/oc'
|
||||||
LOGS_HOST='http://localhost:3100'
|
|
||||||
PEER_HOST='http://localhost:8093/oc'
|
PEER_HOST='http://localhost:8093/oc'
|
||||||
COLLABORATIVE_AREA_HOST='http://localhost:8091/oc'
|
COLLABORATIVE_AREA_HOST='http://localhost:8091/oc'
|
||||||
AUTH_HOST='http://localhost:8094/oc'
|
AUTH_HOST='http://localhost:8094/oc'
|
||||||
@@ -12,4 +11,4 @@ DATACENTER_HOST='http://localhost:8092/oc'
|
|||||||
|
|
||||||
AUTH_MODE=true
|
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
|
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
|
||||||
4
local_run_traefik.sh
Executable file
4
local_run_traefik.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
AUTH_MODE=true
|
||||||
|
flutter run -d linux --dart-define=AUTH_MODE=$AUTH_MODE
|
||||||
@@ -98,7 +98,6 @@ flutter:
|
|||||||
- assets/images/logo.svg
|
- assets/images/logo.svg
|
||||||
- assets/images/icon.svg
|
- assets/images/icon.svg
|
||||||
- assets/config/front.json
|
- assets/config/front.json
|
||||||
- assets/config/front_k8s.json
|
|
||||||
# To add assets to your application, add an assets section, like this:
|
# To add assets to your application, add an assets section, like this:
|
||||||
# assets:
|
# assets:
|
||||||
# - images/a_dot_burr.jpeg
|
# - images/a_dot_burr.jpeg
|
||||||
|
|||||||
Reference in New Issue
Block a user