replace: swap prosappweb content for prosapp_web_app (more complete version)
prosapp_web_app has chat, dashboard, calendar, support, 13 providers and Fluro URL routing. Keep Dockerfile + nginx.conf from previous prosappweb. Upgrade google_fonts 6.2.1 → 8.1.0 (Dart 3.12 compat fix). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
74a4f41902
commit
15175c1b91
@@ -0,0 +1,39 @@
|
||||
import 'package:prosapp_web_app/providers/auth_provider.dart';
|
||||
import 'package:prosapp_web_app/ui/views/dashboard_view.dart';
|
||||
import 'package:prosapp_web_app/ui/views/login_view.dart';
|
||||
import 'package:prosapp_web_app/ui/views/phone_login_view.dart';
|
||||
import 'package:prosapp_web_app/ui/views/register_view.dart';
|
||||
import 'package:fluro/fluro.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class AdminHandlers {
|
||||
static Handler phone = Handler(handlerFunc: (context, params) {
|
||||
final authProvider = Provider.of<AuthProvider>(context!);
|
||||
|
||||
if (authProvider.authStatus == AuthStatus.notAuthenticated) {
|
||||
return const PhoneLoginView();
|
||||
} else {
|
||||
return const DashboardView();
|
||||
}
|
||||
});
|
||||
|
||||
static Handler login = Handler(handlerFunc: (context, params) {
|
||||
final authProvider = Provider.of<AuthProvider>(context!);
|
||||
|
||||
if (authProvider.authStatus == AuthStatus.notAuthenticated) {
|
||||
return const LoginView();
|
||||
} else {
|
||||
return const DashboardView();
|
||||
}
|
||||
});
|
||||
|
||||
static Handler register = Handler(handlerFunc: (context, params) {
|
||||
final authProvider = Provider.of<AuthProvider>(context!);
|
||||
|
||||
if (authProvider.authStatus == AuthStatus.notAuthenticated) {
|
||||
return const RegisterView();
|
||||
} else {
|
||||
return const DashboardView();
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user