Legacy modules refactor: auth, control panel, location module, and session persistence
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"env": "staging",
|
||||
"apiBaseUrl": "https://api-neki-b2b.neki.es/gateway/api/",
|
||||
"apiOrigin": "https://neki-b2b.neki.es"
|
||||
"apiBaseUrl": "https://api-platform.pre.savefamilygps.net/gateway/api/",
|
||||
"apiOrigin": "https://platform.pre.savefamilygps.net/"
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import 'package:dashboard_shell/dashboard_builder.dart';
|
||||
import 'package:device_management/device_management.dart';
|
||||
import 'package:control_panel/control_panel.dart';
|
||||
import 'package:legacy_dashboard_shell/legacy_dashboard_builder.dart';
|
||||
import 'package:location/location.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
@@ -24,7 +25,7 @@ late final GoRouter appRouter;
|
||||
void configureAppRouter() {
|
||||
appRouter = GoRouter(
|
||||
navigatorKey: rootNavigatorKey,
|
||||
initialLocation: AppRoutes.legacyLogin,
|
||||
initialLocation: AppRoutes.legacyOnboarding,
|
||||
debugLogDiagnostics: true,
|
||||
routes: [
|
||||
GoRoute(
|
||||
@@ -111,6 +112,30 @@ void configureAppRouter() {
|
||||
),
|
||||
],
|
||||
),
|
||||
StatefulShellBranch(
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: AppRoutes.legacyLocation,
|
||||
name: 'legacy_location',
|
||||
pageBuilder: const LocationBuilder().buildPage,
|
||||
),
|
||||
],
|
||||
),
|
||||
// TODO: Añadir branch para Chat (tab 4)
|
||||
StatefulShellBranch(
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: '${ AppRoutes.legacyDashboard}/chat',
|
||||
name: 'legacy_chat',
|
||||
pageBuilder: (context, state) => MaterialPage<void>(
|
||||
key: state.pageKey,
|
||||
child: const Scaffold(
|
||||
body: Center(child: Text('Chat - Coming soon')),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
GoRoute(
|
||||
|
||||
@@ -727,6 +727,13 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.1"
|
||||
location:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "../../modules/legacy/modules/location"
|
||||
relative: true
|
||||
source: path
|
||||
version: "1.0.0+1"
|
||||
logger:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@@ -61,6 +61,8 @@ dependencies:
|
||||
path: ../../modules/legacy/modules/account
|
||||
device_management:
|
||||
path: ../../modules/legacy/modules/device_management
|
||||
location:
|
||||
path: ../../modules/legacy/modules/location
|
||||
legacy_auth:
|
||||
path: ../../modules/legacy/modules/legacy_auth
|
||||
#packages dependencies go here
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# melos_managed_dependency_overrides: account,activity,auth,customer_service,dashboard_shell,design_system,flutter_treezor_entrust_sdk_bridge,fonts,home,legacy_dashboard_shell,legacy_shared,navigation,notifications,payments,profile,sca_treezor,sf_infrastructure,sf_localizations,sf_shared,splash,utils,control_panel,device_management,legacy_auth
|
||||
# melos_managed_dependency_overrides: account,activity,auth,customer_service,dashboard_shell,design_system,flutter_treezor_entrust_sdk_bridge,fonts,home,legacy_dashboard_shell,legacy_shared,navigation,notifications,payments,profile,sca_treezor,sf_infrastructure,sf_localizations,sf_shared,splash,utils,control_panel,device_management,legacy_auth,location
|
||||
dependency_overrides:
|
||||
account:
|
||||
path: ../../modules/legacy/modules/account
|
||||
@@ -28,6 +28,8 @@ dependency_overrides:
|
||||
path: ../../modules/legacy/modules/legacy_dashboard_shell
|
||||
legacy_shared:
|
||||
path: ../../modules/legacy/packages/legacy_shared
|
||||
location:
|
||||
path: ../../modules/legacy/modules/location
|
||||
navigation:
|
||||
path: ../../packages/navigation
|
||||
notifications:
|
||||
|
||||
Reference in New Issue
Block a user