diff --git a/assets/icons/bg_auth_dam.svg b/assets/icons/bg_auth_dam.svg new file mode 100644 index 0000000..8e609c2 --- /dev/null +++ b/assets/icons/bg_auth_dam.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/livestock/lib/features/auth/auth.dart b/packages/livestock/lib/features/auth/auth.dart new file mode 100644 index 0000000..e69de29 diff --git a/packages/livestock/lib/presentation/page/auth/logic.dart b/packages/livestock/lib/features/auth/presentation/pages/logic.dart similarity index 100% rename from packages/livestock/lib/presentation/page/auth/logic.dart rename to packages/livestock/lib/features/auth/presentation/pages/logic.dart diff --git a/packages/livestock/lib/presentation/page/auth/view.dart b/packages/livestock/lib/features/auth/presentation/pages/view.dart similarity index 100% rename from packages/livestock/lib/presentation/page/auth/view.dart rename to packages/livestock/lib/features/auth/presentation/pages/view.dart diff --git a/packages/livestock/lib/features/auth/presentation/routes/pages.dart b/packages/livestock/lib/features/auth/presentation/routes/pages.dart new file mode 100644 index 0000000..bb937a2 --- /dev/null +++ b/packages/livestock/lib/features/auth/presentation/routes/pages.dart @@ -0,0 +1,72 @@ +import 'package:rasadyar_core/core.dart' hide BaseLogic; +import 'package:rasadyar_livestock/features/common/auth/presentation/pages/logic.dart'; +import 'package:rasadyar_livestock/presentation/page/auth/view.dart'; +import 'package:rasadyar_livestock/presentation/page/map/logic.dart'; +import 'package:rasadyar_livestock/presentation/page/map/widget/map_widget/logic.dart'; +import 'package:rasadyar_livestock/presentation/page/profile/logic.dart'; +import 'package:rasadyar_livestock/presentation/page/request_tagging/logic.dart'; +import 'package:rasadyar_livestock/presentation/page/request_tagging/view.dart'; +import 'package:rasadyar_livestock/presentation/page/requests/logic.dart'; +import 'package:rasadyar_livestock/presentation/page/root/logic.dart'; +import 'package:rasadyar_livestock/presentation/page/root/view.dart'; +import 'package:rasadyar_livestock/presentation/page/tagging/logic.dart'; +import 'package:rasadyar_livestock/presentation/page/tagging/view.dart'; +import 'package:rasadyar_livestock/presentation/widgets/base_page/logic.dart'; +import 'package:rasadyar_livestock/presentation/widgets/captcha/logic.dart'; + + +part 'app_routes.dart'; + +sealed class LiveStockPages { + LiveStockPages._(); + + static final pages = [ + GetPage( + name: LiveStockRoutes.auth, + page: () => AuthPage(), + binding: BindingsBuilder(() { + Get.lazyPut(() => AuthLogic()); + Get.lazyPut(() => CaptchaWidgetLogic()); + }), + ), + GetPage( + name: LiveStockRoutes.init, + page: () => RootPage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.put(RootLogic()); + Get.lazyPut(() => RequestsLogic()); + Get.lazyPut(() => MapLogic()); + Get.lazyPut(() => ProfileLogic()); + Get.lazyPut(() => MapWidgetLogic()); + Get.lazyPut(() => BaseLogic()); + }), + children: [ + /*GetPage( + name: LiveStockRoutes.requestTagging, + page: () => RequestTaggingPage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.lazyPut(() => RequestTaggingLogic()); + }), + ),*/ + ], + ), + GetPage( + name: LiveStockRoutes.requestTagging, + page: () => RequestTaggingPage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.lazyPut(() => RequestTaggingLogic()); + }), + ), + GetPage( + name: LiveStockRoutes.tagging, + page: () => TaggingPage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.lazyPut(() => TaggingLogic()); + }), + ), + ]; +} diff --git a/packages/livestock/lib/features/auth/presentation/routes/routes.dart b/packages/livestock/lib/features/auth/presentation/routes/routes.dart new file mode 100644 index 0000000..823279b --- /dev/null +++ b/packages/livestock/lib/features/auth/presentation/routes/routes.dart @@ -0,0 +1,13 @@ +part of 'app_pages.dart'; + +sealed class LiveStockRoutes { + LiveStockRoutes._(); + + static const auth = '/AuthLiveStock'; + static const init = '/liveStock'; + static const requests = '/requests'; + static const map = '/map'; + static const profile = '/profile'; + static const requestTagging = '$requests/tagging'; + static const tagging = '/tagging'; +}