hazo_auth 1.4.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -38
- package/SETUP_CHECKLIST.md +708 -0
- package/dist/app/api/hazo_auth/change_password/route.d.ts +8 -0
- package/dist/app/api/hazo_auth/change_password/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/change_password/route.js +98 -0
- package/dist/app/api/hazo_auth/forgot_password/route.d.ts +8 -0
- package/dist/app/api/hazo_auth/forgot_password/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/forgot_password/route.js +78 -0
- package/dist/app/api/hazo_auth/get_auth/route.d.ts +10 -0
- package/dist/app/api/hazo_auth/get_auth/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/get_auth/route.js +63 -0
- package/dist/app/api/hazo_auth/invalidate_cache/route.d.ts +14 -0
- package/dist/app/api/hazo_auth/invalidate_cache/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/invalidate_cache/route.js +96 -0
- package/dist/app/api/hazo_auth/library_photos/route.d.ts +13 -0
- package/dist/app/api/hazo_auth/library_photos/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/library_photos/route.js +55 -0
- package/dist/app/api/hazo_auth/login/route.d.ts +12 -0
- package/dist/app/api/hazo_auth/login/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/login/route.js +140 -0
- package/dist/app/api/hazo_auth/logout/route.d.ts +8 -0
- package/dist/app/api/hazo_auth/logout/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/logout/route.js +71 -0
- package/dist/app/api/hazo_auth/me/route.d.ts +3 -0
- package/dist/app/api/hazo_auth/me/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/me/route.js +34 -0
- package/dist/app/api/hazo_auth/profile_picture/[filename]/route.d.ts +7 -0
- package/dist/app/api/hazo_auth/profile_picture/[filename]/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/profile_picture/[filename]/route.js +43 -0
- package/dist/app/api/hazo_auth/register/route.d.ts +9 -0
- package/dist/app/api/hazo_auth/register/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/register/route.js +80 -0
- package/dist/app/api/hazo_auth/remove_profile_picture/route.d.ts +8 -0
- package/dist/app/api/hazo_auth/remove_profile_picture/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/remove_profile_picture/route.js +64 -0
- package/dist/app/api/hazo_auth/resend_verification/route.d.ts +8 -0
- package/dist/app/api/hazo_auth/resend_verification/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/resend_verification/route.js +79 -0
- package/dist/app/api/hazo_auth/reset_password/route.d.ts +8 -0
- package/dist/app/api/hazo_auth/reset_password/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/reset_password/route.js +76 -0
- package/dist/app/api/hazo_auth/update_user/route.d.ts +9 -0
- package/dist/app/api/hazo_auth/update_user/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/update_user/route.js +95 -0
- package/dist/app/api/hazo_auth/upload_profile_picture/route.d.ts +9 -0
- package/dist/app/api/hazo_auth/upload_profile_picture/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/upload_profile_picture/route.js +204 -0
- package/dist/app/api/hazo_auth/validate_reset_token/route.d.ts +6 -0
- package/dist/app/api/hazo_auth/validate_reset_token/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/validate_reset_token/route.js +58 -0
- package/dist/app/api/hazo_auth/verify_email/route.d.ts +11 -0
- package/dist/app/api/hazo_auth/verify_email/route.d.ts.map +1 -0
- package/dist/app/api/hazo_auth/verify_email/route.js +63 -0
- package/dist/cli/generate.d.ts +2 -0
- package/dist/cli/generate.d.ts.map +1 -0
- package/dist/cli/generate.js +117 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +120 -0
- package/dist/cli/validate.d.ts +15 -0
- package/dist/cli/validate.d.ts.map +1 -0
- package/dist/cli/validate.js +509 -0
- package/dist/components/layouts/email_verification/config/email_verification_field_config.d.ts +2 -2
- package/dist/components/layouts/email_verification/config/email_verification_field_config.d.ts.map +1 -1
- package/dist/components/layouts/email_verification/config/email_verification_field_config.js +1 -1
- package/dist/components/layouts/email_verification/hooks/use_email_verification.d.ts +2 -2
- package/dist/components/layouts/email_verification/hooks/use_email_verification.d.ts.map +1 -1
- package/dist/components/layouts/email_verification/hooks/use_email_verification.js +2 -2
- package/dist/components/layouts/email_verification/index.d.ts +3 -3
- package/dist/components/layouts/email_verification/index.d.ts.map +1 -1
- package/dist/components/layouts/email_verification/index.js +9 -9
- package/dist/components/layouts/forgot_password/config/forgot_password_field_config.d.ts +2 -2
- package/dist/components/layouts/forgot_password/config/forgot_password_field_config.d.ts.map +1 -1
- package/dist/components/layouts/forgot_password/config/forgot_password_field_config.js +1 -1
- package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.d.ts +2 -2
- package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.d.ts.map +1 -1
- package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.js +2 -2
- package/dist/components/layouts/forgot_password/index.d.ts +2 -2
- package/dist/components/layouts/forgot_password/index.d.ts.map +1 -1
- package/dist/components/layouts/forgot_password/index.js +8 -8
- package/dist/components/layouts/login/config/login_field_config.d.ts +2 -2
- package/dist/components/layouts/login/config/login_field_config.d.ts.map +1 -1
- package/dist/components/layouts/login/config/login_field_config.js +1 -1
- package/dist/components/layouts/login/hooks/use_login_form.d.ts +2 -2
- package/dist/components/layouts/login/hooks/use_login_form.d.ts.map +1 -1
- package/dist/components/layouts/login/hooks/use_login_form.js +4 -4
- package/dist/components/layouts/login/index.d.ts +2 -2
- package/dist/components/layouts/login/index.d.ts.map +1 -1
- package/dist/components/layouts/login/index.js +9 -9
- package/dist/components/layouts/my_settings/components/editable_field.js +3 -3
- package/dist/components/layouts/my_settings/components/password_change_dialog.d.ts +1 -1
- package/dist/components/layouts/my_settings/components/password_change_dialog.d.ts.map +1 -1
- package/dist/components/layouts/my_settings/components/password_change_dialog.js +4 -4
- package/dist/components/layouts/my_settings/components/profile_picture_dialog.js +7 -7
- package/dist/components/layouts/my_settings/components/profile_picture_display.js +1 -1
- package/dist/components/layouts/my_settings/components/profile_picture_gravatar_tab.js +3 -3
- package/dist/components/layouts/my_settings/components/profile_picture_library_tab.js +5 -5
- package/dist/components/layouts/my_settings/components/profile_picture_upload_tab.js +4 -4
- package/dist/components/layouts/my_settings/config/my_settings_field_config.d.ts +1 -1
- package/dist/components/layouts/my_settings/config/my_settings_field_config.d.ts.map +1 -1
- package/dist/components/layouts/my_settings/config/my_settings_field_config.js +1 -1
- package/dist/components/layouts/my_settings/hooks/use_my_settings.d.ts +1 -1
- package/dist/components/layouts/my_settings/hooks/use_my_settings.d.ts.map +1 -1
- package/dist/components/layouts/my_settings/hooks/use_my_settings.js +1 -1
- package/dist/components/layouts/my_settings/index.d.ts +2 -2
- package/dist/components/layouts/my_settings/index.d.ts.map +1 -1
- package/dist/components/layouts/my_settings/index.js +9 -9
- package/dist/components/layouts/register/config/register_field_config.d.ts +2 -2
- package/dist/components/layouts/register/config/register_field_config.d.ts.map +1 -1
- package/dist/components/layouts/register/config/register_field_config.js +1 -1
- package/dist/components/layouts/register/hooks/use_register_form.d.ts +3 -3
- package/dist/components/layouts/register/hooks/use_register_form.d.ts.map +1 -1
- package/dist/components/layouts/register/hooks/use_register_form.js +2 -2
- package/dist/components/layouts/register/index.d.ts +2 -2
- package/dist/components/layouts/register/index.d.ts.map +1 -1
- package/dist/components/layouts/register/index.js +9 -9
- package/dist/components/layouts/reset_password/config/reset_password_field_config.d.ts +2 -2
- package/dist/components/layouts/reset_password/config/reset_password_field_config.d.ts.map +1 -1
- package/dist/components/layouts/reset_password/config/reset_password_field_config.js +1 -1
- package/dist/components/layouts/reset_password/hooks/use_reset_password_form.d.ts +3 -3
- package/dist/components/layouts/reset_password/hooks/use_reset_password_form.d.ts.map +1 -1
- package/dist/components/layouts/reset_password/hooks/use_reset_password_form.js +2 -2
- package/dist/components/layouts/reset_password/index.d.ts +2 -2
- package/dist/components/layouts/reset_password/index.d.ts.map +1 -1
- package/dist/components/layouts/reset_password/index.js +8 -8
- package/dist/components/layouts/shared/components/already_logged_in_guard.js +4 -4
- package/dist/components/layouts/shared/components/auth_page_shell.js +3 -3
- package/dist/components/layouts/shared/components/form_action_buttons.d.ts +1 -1
- package/dist/components/layouts/shared/components/form_action_buttons.d.ts.map +1 -1
- package/dist/components/layouts/shared/components/form_action_buttons.js +1 -1
- package/dist/components/layouts/shared/components/form_field_wrapper.js +2 -2
- package/dist/components/layouts/shared/components/logout_button.js +2 -2
- package/dist/components/layouts/shared/components/password_field.js +3 -3
- package/dist/components/layouts/shared/components/profile_pic_menu.d.ts +1 -1
- package/dist/components/layouts/shared/components/profile_pic_menu.d.ts.map +1 -1
- package/dist/components/layouts/shared/components/profile_pic_menu.js +4 -4
- package/dist/components/layouts/shared/components/profile_pic_menu_wrapper.js +2 -2
- package/dist/components/layouts/shared/components/sidebar_layout_wrapper.js +3 -3
- package/dist/components/layouts/shared/components/standalone_layout_wrapper.js +1 -1
- package/dist/components/layouts/shared/components/two_column_auth_layout.js +1 -1
- package/dist/components/layouts/shared/components/unauthorized_guard.js +2 -2
- package/dist/components/layouts/shared/hooks/use_hazo_auth.d.ts +1 -1
- package/dist/components/layouts/shared/hooks/use_hazo_auth.d.ts.map +1 -1
- package/dist/components/layouts/shared/utils/validation.d.ts +1 -1
- package/dist/components/layouts/shared/utils/validation.d.ts.map +1 -1
- package/dist/components/layouts/user_management/components/roles_matrix.js +7 -7
- package/dist/components/layouts/user_management/index.js +11 -11
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +45 -0
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/hazo_ui_tooltip.js +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sidebar.d.ts +2 -2
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +8 -8
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/vertical-tabs.js +1 -1
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-mobile.js +17 -3
- package/dist/lib/already_logged_in_config.server.js +1 -1
- package/dist/lib/app_logger.js +1 -1
- package/dist/lib/auth/auth_cache.d.ts +1 -1
- package/dist/lib/auth/auth_cache.d.ts.map +1 -1
- package/dist/lib/auth/auth_utils.server.js +2 -2
- package/dist/lib/auth/hazo_get_auth.server.d.ts +1 -1
- package/dist/lib/auth/hazo_get_auth.server.d.ts.map +1 -1
- package/dist/lib/auth/hazo_get_auth.server.js +7 -7
- package/dist/lib/auth/server_auth.js +2 -2
- package/dist/lib/auth_utility_config.server.js +1 -1
- package/dist/lib/config/config_loader.server.js +1 -1
- package/dist/lib/email_verification_config.server.js +1 -1
- package/dist/lib/file_types_config.server.js +1 -1
- package/dist/lib/forgot_password_config.server.js +1 -1
- package/dist/lib/hazo_connect_instance.server.js +2 -2
- package/dist/lib/hazo_connect_setup.server.js +2 -2
- package/dist/lib/login_config.server.js +2 -2
- package/dist/lib/messages_config.server.js +1 -1
- package/dist/lib/my_settings_config.server.js +7 -7
- package/dist/lib/password_requirements_config.server.js +1 -1
- package/dist/lib/profile_pic_menu_config.server.js +1 -1
- package/dist/lib/profile_picture_config.server.js +2 -2
- package/dist/lib/register_config.server.js +4 -4
- package/dist/lib/reset_password_config.server.js +3 -3
- package/dist/lib/services/email_service.js +2 -2
- package/dist/lib/services/email_verification_service.js +3 -3
- package/dist/lib/services/login_service.js +3 -3
- package/dist/lib/services/password_change_service.js +3 -3
- package/dist/lib/services/password_reset_service.js +3 -3
- package/dist/lib/services/profile_picture_remove_service.js +3 -3
- package/dist/lib/services/profile_picture_service.d.ts +1 -1
- package/dist/lib/services/profile_picture_service.d.ts.map +1 -1
- package/dist/lib/services/profile_picture_service.js +5 -5
- package/dist/lib/services/registration_service.js +8 -8
- package/dist/lib/services/token_service.js +2 -2
- package/dist/lib/services/user_profiles_service.js +2 -2
- package/dist/lib/services/user_update_service.d.ts +1 -1
- package/dist/lib/services/user_update_service.d.ts.map +1 -1
- package/dist/lib/services/user_update_service.js +4 -4
- package/dist/lib/ui_shell_config.server.js +1 -1
- package/dist/lib/ui_sizes_config.server.js +1 -1
- package/dist/lib/user_fields_config.server.js +1 -1
- package/dist/lib/user_management_config.server.js +1 -1
- package/dist/lib/utils/error_sanitizer.d.ts +1 -1
- package/dist/lib/utils/error_sanitizer.d.ts.map +1 -1
- package/dist/server/config/config_loader.d.ts +1 -1
- package/dist/server/config/config_loader.d.ts.map +1 -1
- package/dist/server/config/config_loader.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/logging/logger_service.d.ts +1 -1
- package/dist/server/logging/logger_service.d.ts.map +1 -1
- package/dist/server/routes/change_password.d.ts +2 -0
- package/dist/server/routes/change_password.d.ts.map +1 -0
- package/dist/server/routes/change_password.js +2 -0
- package/dist/server/routes/forgot_password.d.ts +2 -0
- package/dist/server/routes/forgot_password.d.ts.map +1 -0
- package/dist/server/routes/forgot_password.js +2 -0
- package/dist/server/routes/get_auth.d.ts +2 -0
- package/dist/server/routes/get_auth.d.ts.map +1 -0
- package/dist/server/routes/get_auth.js +2 -0
- package/dist/server/routes/index.d.ts +18 -0
- package/dist/server/routes/index.d.ts.map +1 -0
- package/dist/server/routes/index.js +24 -0
- package/dist/server/routes/invalidate_cache.d.ts +2 -0
- package/dist/server/routes/invalidate_cache.d.ts.map +1 -0
- package/dist/server/routes/invalidate_cache.js +2 -0
- package/dist/server/routes/library_photos.d.ts +2 -0
- package/dist/server/routes/library_photos.d.ts.map +1 -0
- package/dist/server/routes/library_photos.js +2 -0
- package/dist/server/routes/login.d.ts +2 -0
- package/dist/server/routes/login.d.ts.map +1 -0
- package/dist/server/routes/login.js +2 -0
- package/dist/server/routes/logout.d.ts +2 -0
- package/dist/server/routes/logout.d.ts.map +1 -0
- package/dist/server/routes/logout.js +2 -0
- package/dist/server/routes/me.d.ts +2 -0
- package/dist/server/routes/me.d.ts.map +1 -0
- package/dist/server/routes/me.js +2 -0
- package/dist/server/routes/profile_picture_filename.d.ts +2 -0
- package/dist/server/routes/profile_picture_filename.d.ts.map +1 -0
- package/dist/server/routes/profile_picture_filename.js +3 -0
- package/dist/server/routes/register.d.ts +2 -0
- package/dist/server/routes/register.d.ts.map +1 -0
- package/dist/server/routes/register.js +2 -0
- package/dist/server/routes/remove_profile_picture.d.ts +2 -0
- package/dist/server/routes/remove_profile_picture.d.ts.map +1 -0
- package/dist/server/routes/remove_profile_picture.js +2 -0
- package/dist/server/routes/resend_verification.d.ts +2 -0
- package/dist/server/routes/resend_verification.d.ts.map +1 -0
- package/dist/server/routes/resend_verification.js +2 -0
- package/dist/server/routes/reset_password.d.ts +2 -0
- package/dist/server/routes/reset_password.d.ts.map +1 -0
- package/dist/server/routes/reset_password.js +2 -0
- package/dist/server/routes/update_user.d.ts +2 -0
- package/dist/server/routes/update_user.d.ts.map +1 -0
- package/dist/server/routes/update_user.js +2 -0
- package/dist/server/routes/upload_profile_picture.d.ts +2 -0
- package/dist/server/routes/upload_profile_picture.d.ts.map +1 -0
- package/dist/server/routes/upload_profile_picture.js +2 -0
- package/dist/server/routes/validate_reset_token.d.ts +2 -0
- package/dist/server/routes/validate_reset_token.d.ts.map +1 -0
- package/dist/server/routes/validate_reset_token.js +2 -0
- package/dist/server/routes/verify_email.d.ts +2 -0
- package/dist/server/routes/verify_email.d.ts.map +1 -0
- package/dist/server/routes/verify_email.js +2 -0
- package/dist/server/server.js +2 -2
- package/package.json +14 -115
- package/components.json +0 -22
- package/instrumentation.ts +0 -32
- package/migrations/001_add_token_type_to_refresh_tokens.sql +0 -14
- package/migrations/002_add_name_to_hazo_users.sql +0 -7
- package/migrations/003_add_url_on_logon_to_hazo_users.sql +0 -8
- package/next.config.mjs +0 -67
- package/postcss.config.mjs +0 -8
- package/public/file.svg +0 -1
- package/public/globe.svg +0 -1
- package/public/next.svg +0 -1
- package/public/vercel.svg +0 -1
- package/public/window.svg +0 -1
- package/scripts/apply_migration.ts +0 -118
- package/scripts/init_users.ts +0 -378
- package/src/app/api/hazo_auth/auth/upload_profile_picture/route.ts +0 -268
- package/src/app/api/hazo_auth/change_password/route.ts +0 -132
- package/src/app/api/hazo_auth/forgot_password/route.ts +0 -107
- package/src/app/api/hazo_auth/get_auth/route.ts +0 -89
- package/src/app/api/hazo_auth/invalidate_cache/route.ts +0 -139
- package/src/app/api/hazo_auth/library_photos/route.ts +0 -73
- package/src/app/api/hazo_auth/login/route.ts +0 -181
- package/src/app/api/hazo_auth/logout/route.ts +0 -89
- package/src/app/api/hazo_auth/me/route.ts +0 -47
- package/src/app/api/hazo_auth/profile_picture/[filename]/route.ts +0 -67
- package/src/app/api/hazo_auth/register/route.ts +0 -109
- package/src/app/api/hazo_auth/remove_profile_picture/route.ts +0 -86
- package/src/app/api/hazo_auth/resend_verification/route.ts +0 -108
- package/src/app/api/hazo_auth/reset_password/route.ts +0 -107
- package/src/app/api/hazo_auth/update_user/route.ts +0 -126
- package/src/app/api/hazo_auth/upload_profile_picture/route.ts +0 -268
- package/src/app/api/hazo_auth/user_management/permissions/route.ts +0 -367
- package/src/app/api/hazo_auth/user_management/roles/route.ts +0 -442
- package/src/app/api/hazo_auth/user_management/users/roles/route.ts +0 -367
- package/src/app/api/hazo_auth/user_management/users/route.ts +0 -239
- package/src/app/api/hazo_auth/validate_reset_token/route.ts +0 -83
- package/src/app/api/hazo_auth/verify_email/route.ts +0 -88
- package/src/app/api/migrations/apply/route.ts +0 -91
- package/src/app/favicon.ico +0 -0
- package/src/app/fonts/GeistMonoVF.woff +0 -0
- package/src/app/fonts/GeistVF.woff +0 -0
- package/src/app/globals.css +0 -89
- package/src/app/hazo_auth/forgot_password/forgot_password_page_client.tsx +0 -60
- package/src/app/hazo_auth/forgot_password/page.tsx +0 -24
- package/src/app/hazo_auth/login/login_page_client.tsx +0 -86
- package/src/app/hazo_auth/login/page.tsx +0 -38
- package/src/app/hazo_auth/my_settings/my_settings_page_client.tsx +0 -120
- package/src/app/hazo_auth/my_settings/page.tsx +0 -40
- package/src/app/hazo_auth/register/page.tsx +0 -36
- package/src/app/hazo_auth/register/register_page_client.tsx +0 -81
- package/src/app/hazo_auth/reset_password/page.tsx +0 -29
- package/src/app/hazo_auth/reset_password/reset_password_page_client.tsx +0 -81
- package/src/app/hazo_auth/user_management/page.tsx +0 -14
- package/src/app/hazo_auth/user_management/user_management_page_client.tsx +0 -16
- package/src/app/hazo_auth/verify_email/page.tsx +0 -24
- package/src/app/hazo_auth/verify_email/verify_email_page_client.tsx +0 -60
- package/src/app/hazo_connect/api/sqlite/data/route.ts +0 -203
- package/src/app/hazo_connect/api/sqlite/schema/route.ts +0 -45
- package/src/app/hazo_connect/api/sqlite/tables/route.ts +0 -36
- package/src/app/hazo_connect/sqlite_admin/page.tsx +0 -51
- package/src/app/hazo_connect/sqlite_admin/sqlite-admin-client.tsx +0 -984
- package/src/app/layout.tsx +0 -43
- package/src/app/page.tsx +0 -170
- package/src/components/index.ts +0 -7
- package/src/components/layouts/email_verification/config/email_verification_field_config.ts +0 -86
- package/src/components/layouts/email_verification/hooks/use_email_verification.ts +0 -297
- package/src/components/layouts/email_verification/index.tsx +0 -297
- package/src/components/layouts/forgot_password/config/forgot_password_field_config.ts +0 -58
- package/src/components/layouts/forgot_password/hooks/use_forgot_password_form.ts +0 -179
- package/src/components/layouts/forgot_password/index.tsx +0 -168
- package/src/components/layouts/index.ts +0 -26
- package/src/components/layouts/login/config/login_field_config.ts +0 -67
- package/src/components/layouts/login/hooks/use_login_form.ts +0 -286
- package/src/components/layouts/login/index.tsx +0 -252
- package/src/components/layouts/my_settings/components/editable_field.tsx +0 -177
- package/src/components/layouts/my_settings/components/password_change_dialog.tsx +0 -301
- package/src/components/layouts/my_settings/components/profile_picture_dialog.tsx +0 -385
- package/src/components/layouts/my_settings/components/profile_picture_display.tsx +0 -66
- package/src/components/layouts/my_settings/components/profile_picture_gravatar_tab.tsx +0 -143
- package/src/components/layouts/my_settings/components/profile_picture_library_tab.tsx +0 -311
- package/src/components/layouts/my_settings/components/profile_picture_upload_tab.tsx +0 -341
- package/src/components/layouts/my_settings/config/my_settings_field_config.ts +0 -61
- package/src/components/layouts/my_settings/hooks/use_my_settings.ts +0 -458
- package/src/components/layouts/my_settings/index.tsx +0 -351
- package/src/components/layouts/register/config/register_field_config.ts +0 -101
- package/src/components/layouts/register/hooks/use_register_form.ts +0 -275
- package/src/components/layouts/register/index.tsx +0 -226
- package/src/components/layouts/reset_password/config/reset_password_field_config.ts +0 -86
- package/src/components/layouts/reset_password/hooks/use_reset_password_form.ts +0 -276
- package/src/components/layouts/reset_password/index.tsx +0 -294
- package/src/components/layouts/shared/components/already_logged_in_guard.tsx +0 -95
- package/src/components/layouts/shared/components/auth_page_shell.tsx +0 -36
- package/src/components/layouts/shared/components/field_error_message.tsx +0 -29
- package/src/components/layouts/shared/components/form_action_buttons.tsx +0 -64
- package/src/components/layouts/shared/components/form_field_wrapper.tsx +0 -44
- package/src/components/layouts/shared/components/form_header.tsx +0 -36
- package/src/components/layouts/shared/components/logout_button.tsx +0 -76
- package/src/components/layouts/shared/components/password_field.tsx +0 -72
- package/src/components/layouts/shared/components/profile_pic_menu.tsx +0 -321
- package/src/components/layouts/shared/components/profile_pic_menu_wrapper.tsx +0 -40
- package/src/components/layouts/shared/components/sidebar_layout_wrapper.tsx +0 -214
- package/src/components/layouts/shared/components/standalone_layout_wrapper.tsx +0 -53
- package/src/components/layouts/shared/components/two_column_auth_layout.tsx +0 -44
- package/src/components/layouts/shared/components/unauthorized_guard.tsx +0 -78
- package/src/components/layouts/shared/components/visual_panel.tsx +0 -41
- package/src/components/layouts/shared/config/layout_customization.ts +0 -95
- package/src/components/layouts/shared/data/layout_data_client.ts +0 -19
- package/src/components/layouts/shared/hooks/use_auth_status.ts +0 -103
- package/src/components/layouts/shared/hooks/use_hazo_auth.ts +0 -158
- package/src/components/layouts/shared/index.ts +0 -34
- package/src/components/layouts/shared/utils/ip_address.ts +0 -37
- package/src/components/layouts/shared/utils/validation.ts +0 -66
- package/src/components/layouts/user_management/components/roles_matrix.tsx +0 -607
- package/src/components/layouts/user_management/index.tsx +0 -1295
- package/src/components/ui/alert-dialog.tsx +0 -141
- package/src/components/ui/avatar.tsx +0 -50
- package/src/components/ui/button.tsx +0 -57
- package/src/components/ui/checkbox.tsx +0 -30
- package/src/components/ui/dialog.tsx +0 -122
- package/src/components/ui/dropdown-menu.tsx +0 -201
- package/src/components/ui/hazo_ui_tooltip.tsx +0 -67
- package/src/components/ui/index.ts +0 -22
- package/src/components/ui/input.tsx +0 -22
- package/src/components/ui/label.tsx +0 -26
- package/src/components/ui/separator.tsx +0 -31
- package/src/components/ui/sheet.tsx +0 -139
- package/src/components/ui/sidebar.tsx +0 -773
- package/src/components/ui/skeleton.tsx +0 -15
- package/src/components/ui/sonner.tsx +0 -31
- package/src/components/ui/switch.tsx +0 -29
- package/src/components/ui/table.tsx +0 -120
- package/src/components/ui/tabs.tsx +0 -55
- package/src/components/ui/tooltip.tsx +0 -32
- package/src/components/ui/vertical-tabs.tsx +0 -59
- package/src/hooks/use-mobile.tsx +0 -19
- package/src/index.ts +0 -7
- package/src/lib/already_logged_in_config.server.ts +0 -46
- package/src/lib/app_logger.ts +0 -24
- package/src/lib/auth/auth_cache.ts +0 -220
- package/src/lib/auth/auth_rate_limiter.ts +0 -121
- package/src/lib/auth/auth_types.ts +0 -65
- package/src/lib/auth/auth_utils.server.ts +0 -196
- package/src/lib/auth/hazo_get_auth.server.ts +0 -333
- package/src/lib/auth/index.ts +0 -23
- package/src/lib/auth/server_auth.ts +0 -88
- package/src/lib/auth_utility_config.server.ts +0 -136
- package/src/lib/config/config_loader.server.ts +0 -164
- package/src/lib/email_verification_config.server.ts +0 -32
- package/src/lib/file_types_config.server.ts +0 -25
- package/src/lib/forgot_password_config.server.ts +0 -32
- package/src/lib/hazo_connect_instance.server.ts +0 -101
- package/src/lib/hazo_connect_setup.server.ts +0 -194
- package/src/lib/hazo_connect_setup.ts +0 -54
- package/src/lib/index.ts +0 -44
- package/src/lib/login_config.server.ts +0 -71
- package/src/lib/messages_config.server.ts +0 -45
- package/src/lib/migrations/apply_migration.ts +0 -105
- package/src/lib/my_settings_config.server.ts +0 -135
- package/src/lib/password_requirements_config.server.ts +0 -39
- package/src/lib/profile_pic_menu_config.server.ts +0 -138
- package/src/lib/profile_picture_config.server.ts +0 -56
- package/src/lib/register_config.server.ts +0 -73
- package/src/lib/reset_password_config.server.ts +0 -75
- package/src/lib/services/email_service.ts +0 -581
- package/src/lib/services/email_verification_service.ts +0 -270
- package/src/lib/services/index.ts +0 -15
- package/src/lib/services/login_service.ts +0 -134
- package/src/lib/services/password_change_service.ts +0 -154
- package/src/lib/services/password_reset_service.ts +0 -405
- package/src/lib/services/profile_picture_remove_service.ts +0 -120
- package/src/lib/services/profile_picture_service.ts +0 -215
- package/src/lib/services/profile_picture_source_mapper.ts +0 -62
- package/src/lib/services/registration_service.ts +0 -184
- package/src/lib/services/token_service.ts +0 -240
- package/src/lib/services/user_profiles_service.ts +0 -143
- package/src/lib/services/user_update_service.ts +0 -141
- package/src/lib/ui_shell_config.server.ts +0 -73
- package/src/lib/ui_sizes_config.server.ts +0 -37
- package/src/lib/user_fields_config.server.ts +0 -31
- package/src/lib/user_management_config.server.ts +0 -39
- package/src/lib/utils/api_route_helpers.ts +0 -60
- package/src/lib/utils/error_sanitizer.ts +0 -75
- package/src/lib/utils.ts +0 -11
- package/src/middleware.ts +0 -94
- package/src/routes/index.ts +0 -34
- package/src/server/config/config_loader.ts +0 -496
- package/src/server/index.ts +0 -38
- package/src/server/logging/logger_service.ts +0 -56
- package/src/server/routes/root_router.ts +0 -16
- package/src/server/server.ts +0 -28
- package/src/server/types/app_types.ts +0 -74
- package/src/server/types/express.d.ts +0 -16
- package/src/stories/email_verification_layout.stories.tsx +0 -137
- package/src/stories/forgot_password_layout.stories.tsx +0 -85
- package/src/stories/login_layout.stories.tsx +0 -85
- package/src/stories/project_overview.stories.tsx +0 -33
- package/src/stories/register_layout.stories.tsx +0 -107
- package/tailwind.config.ts +0 -77
- package/tsconfig.build.json +0 -39
- package/tsconfig.json +0 -28
|
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
16
|
-
import { cn } from "
|
|
16
|
+
import { cn } from "../../lib/utils";
|
|
17
17
|
const Tabs = TabsPrimitive.Root;
|
|
18
18
|
const TabsList = React.forwardRef((_a, ref) => {
|
|
19
19
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
16
|
-
import { cn } from "
|
|
16
|
+
import { cn } from "../../lib/utils";
|
|
17
17
|
const TooltipProvider = TooltipPrimitive.Provider;
|
|
18
18
|
const Tooltip = TooltipPrimitive.Root;
|
|
19
19
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
@@ -16,7 +16,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
16
16
|
// section: imports
|
|
17
17
|
import * as React from "react";
|
|
18
18
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
19
|
-
import { cn } from "
|
|
19
|
+
import { cn } from "../../lib/utils";
|
|
20
20
|
// section: components
|
|
21
21
|
const VerticalTabs = TabsPrimitive.Root;
|
|
22
22
|
const VerticalTabsList = React.forwardRef((_a, ref) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.tsx"],"names":[],"mappings":"AAOA,wBAAgB,WAAW,YA8B1B"}
|
package/dist/hooks/use-mobile.js
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
|
+
// file_description: hydration-safe hook to detect mobile viewport
|
|
2
|
+
// This hook prevents hydration mismatches by returning a consistent value
|
|
3
|
+
// during SSR and initial client render, only updating after hydration completes.
|
|
1
4
|
import * as React from "react";
|
|
2
5
|
const MOBILE_BREAKPOINT = 768;
|
|
3
6
|
export function useIsMobile() {
|
|
4
|
-
|
|
7
|
+
// Track whether component has mounted (hydration complete)
|
|
8
|
+
const [isMounted, setIsMounted] = React.useState(false);
|
|
9
|
+
const [isMobile, setIsMobile] = React.useState(false);
|
|
5
10
|
React.useEffect(() => {
|
|
11
|
+
// Mark as mounted after hydration
|
|
12
|
+
setIsMounted(true);
|
|
13
|
+
// Now safe to read window dimensions
|
|
6
14
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
7
15
|
const onChange = () => {
|
|
8
16
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
9
17
|
};
|
|
10
|
-
|
|
18
|
+
// Set initial value
|
|
11
19
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
20
|
+
mql.addEventListener("change", onChange);
|
|
12
21
|
return () => mql.removeEventListener("change", onChange);
|
|
13
22
|
}, []);
|
|
14
|
-
|
|
23
|
+
// Return false during SSR and initial hydration to prevent mismatch
|
|
24
|
+
// Only return actual mobile state after component has mounted
|
|
25
|
+
if (!isMounted) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return isMobile;
|
|
15
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read already logged in configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_value, get_config_boolean } from "
|
|
3
|
+
import { get_config_value, get_config_boolean } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads already logged in configuration from hazo_auth_config.ini file
|
package/dist/lib/app_logger.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: client-accessible wrapper for the main app logging service
|
|
2
2
|
// section: imports
|
|
3
|
-
import { create_logger_service } from "
|
|
3
|
+
import { create_logger_service } from "../server/logging/logger_service";
|
|
4
4
|
// section: constants
|
|
5
5
|
const APP_NAMESPACE = "hazo_auth_ui";
|
|
6
6
|
// section: logger_instance
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth_cache.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/auth_cache.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"auth_cache.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/auth_cache.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjD;;GAEG;AACH,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,cAAM,SAAS;IACb,OAAO,CAAC,KAAK,CAA0B;IACvC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,gBAAgB,CAAsB;gBAG5C,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM;IASzB;;;;;OAKG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IA+B5C;;;;;;;OAOG;IACH,GAAG,CACD,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,YAAY,EAClB,WAAW,EAAE,MAAM,EAAE,EACrB,QAAQ,EAAE,MAAM,EAAE,GACjB,IAAI;IAyBP;;;OAGG;IACH,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAItC;;;;OAIG;IACH,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI;IAqB7C;;OAEG;IACH,cAAc,IAAI,IAAI;IAItB;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAc5B;;;OAGG;IACH,SAAS,IAAI;QACX,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;KAClB;CAMF;AAMD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,GAAE,MAAc,EACxB,WAAW,GAAE,MAAW,EACxB,eAAe,GAAE,MAAW,GAC3B,SAAS,CAKX;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// file_description: server-side authentication utilities for checking login status in API routes
|
|
2
2
|
// section: imports
|
|
3
3
|
import { NextResponse } from "next/server";
|
|
4
|
-
import { get_hazo_connect_instance } from "
|
|
4
|
+
import { get_hazo_connect_instance } from "../hazo_connect_instance.server";
|
|
5
5
|
import { createCrudService } from "hazo_connect/server";
|
|
6
|
-
import { map_db_source_to_ui } from "
|
|
6
|
+
import { map_db_source_to_ui } from "../services/profile_picture_source_mapper";
|
|
7
7
|
// section: helpers
|
|
8
8
|
/**
|
|
9
9
|
* Clears authentication cookies from response
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextRequest } from "next/server";
|
|
2
|
-
import type { HazoAuthResult, HazoAuthOptions } from "
|
|
2
|
+
import type { HazoAuthResult, HazoAuthOptions } from "./auth_types";
|
|
3
3
|
/**
|
|
4
4
|
* Main hazo_get_auth function for server-side use in API routes
|
|
5
5
|
* Returns user details, permissions, and checks required permissions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hazo_get_auth.server.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/hazo_get_auth.server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,OAAO,KAAK,EAAE,cAAc,EAAgB,eAAe,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"hazo_get_auth.server.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/hazo_get_auth.server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,OAAO,KAAK,EAAE,cAAc,EAAgB,eAAe,EAAE,MAAM,cAAc,CAAC;AAkLlF;;;;;;;GAOG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,WAAW,EACpB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,cAAc,CAAC,CAuIzB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { get_hazo_connect_instance } from "
|
|
1
|
+
import { get_hazo_connect_instance } from "../hazo_connect_instance.server";
|
|
2
2
|
import { createCrudService } from "hazo_connect/server";
|
|
3
|
-
import { create_app_logger } from "
|
|
4
|
-
import { get_filename, get_line_number } from "
|
|
5
|
-
import { PermissionError } from "
|
|
6
|
-
import { get_auth_cache } from "
|
|
7
|
-
import { get_rate_limiter } from "
|
|
8
|
-
import { get_auth_utility_config } from "
|
|
3
|
+
import { create_app_logger } from "../app_logger";
|
|
4
|
+
import { get_filename, get_line_number } from "../utils/api_route_helpers";
|
|
5
|
+
import { PermissionError } from "./auth_types";
|
|
6
|
+
import { get_auth_cache } from "./auth_cache";
|
|
7
|
+
import { get_rate_limiter } from "./auth_rate_limiter";
|
|
8
|
+
import { get_auth_utility_config } from "../auth_utility_config.server";
|
|
9
9
|
// section: helpers
|
|
10
10
|
/**
|
|
11
11
|
* Gets client IP address from request
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// file_description: server-side auth utilities for server components and pages
|
|
2
2
|
// section: imports
|
|
3
3
|
import { cookies } from "next/headers";
|
|
4
|
-
import { get_hazo_connect_instance } from "
|
|
4
|
+
import { get_hazo_connect_instance } from "../hazo_connect_instance.server";
|
|
5
5
|
import { createCrudService } from "hazo_connect/server";
|
|
6
|
-
import { map_db_source_to_ui } from "
|
|
6
|
+
import { map_db_source_to_ui } from "../services/profile_picture_source_mapper";
|
|
7
7
|
// section: functions
|
|
8
8
|
/**
|
|
9
9
|
* Gets authenticated user in server components/pages
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read auth utility configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_value, get_config_number, get_config_boolean, } from "
|
|
3
|
+
import { get_config_value, get_config_number, get_config_boolean, } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Parses permission error messages from config string
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { HazoConfig } from "hazo_config/dist/lib";
|
|
4
4
|
import path from "path";
|
|
5
5
|
import fs from "fs";
|
|
6
|
-
import { create_app_logger } from "
|
|
6
|
+
import { create_app_logger } from "../app_logger";
|
|
7
7
|
// section: constants
|
|
8
8
|
const DEFAULT_CONFIG_FILE = "hazo_auth_config.ini";
|
|
9
9
|
// section: helpers
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read email verification layout configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_already_logged_in_config } from "
|
|
3
|
+
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads email verification layout configuration from hazo_auth_config.ini file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read file type configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_array } from "
|
|
3
|
+
import { get_config_array } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads file type configuration from hazo_auth_config.ini file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read forgot password layout configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_already_logged_in_config } from "
|
|
3
|
+
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads forgot password layout configuration from hazo_auth_config.ini file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getHazoConnectSingleton } from "hazo_connect/nextjs/setup";
|
|
2
|
-
import { create_sqlite_hazo_connect_server, get_hazo_connect_config_options } from "
|
|
2
|
+
import { create_sqlite_hazo_connect_server, get_hazo_connect_config_options } from "./hazo_connect_setup.server";
|
|
3
3
|
import { initializeAdminService, getSqliteAdminService } from "hazo_connect/server";
|
|
4
|
-
import { create_app_logger } from "
|
|
4
|
+
import { create_app_logger } from "./app_logger";
|
|
5
5
|
// section: singleton_state
|
|
6
6
|
let hazoConnectInstance = null;
|
|
7
7
|
let isInitialized = false;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// section: imports
|
|
5
5
|
import { createHazoConnect } from "hazo_connect/server";
|
|
6
6
|
import path from "path";
|
|
7
|
-
import { create_app_logger } from "
|
|
8
|
-
import { read_config_section } from "
|
|
7
|
+
import { create_app_logger } from "./app_logger";
|
|
8
|
+
import { read_config_section } from "./config/config_loader.server";
|
|
9
9
|
// section: helpers
|
|
10
10
|
/**
|
|
11
11
|
* Reads hazo_connect configuration from hazo_auth_config.ini file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// file_description: server-only helper to read login layout configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_value } from "
|
|
4
|
-
import { get_already_logged_in_config } from "
|
|
3
|
+
import { get_config_value } from "./config/config_loader.server";
|
|
4
|
+
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
5
5
|
// section: helpers
|
|
6
6
|
/**
|
|
7
7
|
* Reads login layout configuration from hazo_auth_config.ini file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read user-facing messages from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_value } from "
|
|
3
|
+
import { get_config_value } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads user-facing messages from hazo_auth_config.ini file
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// file_description: server-only helper to read my settings layout configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_value } from "
|
|
4
|
-
import { get_user_fields_config } from "
|
|
5
|
-
import { get_password_requirements_config } from "
|
|
6
|
-
import { get_profile_picture_config } from "
|
|
7
|
-
import { get_messages_config } from "
|
|
8
|
-
import { get_ui_sizes_config } from "
|
|
9
|
-
import { get_file_types_config } from "
|
|
3
|
+
import { get_config_value } from "./config/config_loader.server";
|
|
4
|
+
import { get_user_fields_config } from "./user_fields_config.server";
|
|
5
|
+
import { get_password_requirements_config } from "./password_requirements_config.server";
|
|
6
|
+
import { get_profile_picture_config } from "./profile_picture_config.server";
|
|
7
|
+
import { get_messages_config } from "./messages_config.server";
|
|
8
|
+
import { get_ui_sizes_config } from "./ui_sizes_config.server";
|
|
9
|
+
import { get_file_types_config } from "./file_types_config.server";
|
|
10
10
|
// section: helpers
|
|
11
11
|
/**
|
|
12
12
|
* Reads my settings layout configuration from hazo_auth_config.ini file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read shared password requirements configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_number, get_config_boolean } from "
|
|
3
|
+
import { get_config_number, get_config_boolean } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads shared password requirements configuration from hazo_auth_config.ini file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read profile picture menu configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_value, get_config_boolean, get_config_array } from "
|
|
3
|
+
import { get_config_value, get_config_boolean, get_config_array } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Parses custom menu items from config string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// file_description: server-only helper to read profile picture configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_boolean, get_config_value, get_config_number } from "
|
|
4
|
-
import { create_app_logger } from "
|
|
3
|
+
import { get_config_boolean, get_config_value, get_config_number } from "./config/config_loader.server";
|
|
4
|
+
import { create_app_logger } from "./app_logger";
|
|
5
5
|
// section: helpers
|
|
6
6
|
/**
|
|
7
7
|
* Reads profile picture configuration from hazo_auth_config.ini file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// file_description: server-only helper to read register layout configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_boolean, get_config_value, read_config_section } from "
|
|
4
|
-
import { get_password_requirements_config } from "
|
|
5
|
-
import { get_already_logged_in_config } from "
|
|
6
|
-
import { get_user_fields_config } from "
|
|
3
|
+
import { get_config_boolean, get_config_value, read_config_section } from "./config/config_loader.server";
|
|
4
|
+
import { get_password_requirements_config } from "./password_requirements_config.server";
|
|
5
|
+
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
6
|
+
import { get_user_fields_config } from "./user_fields_config.server";
|
|
7
7
|
// section: helpers
|
|
8
8
|
/**
|
|
9
9
|
* Reads register layout configuration from hazo_auth_config.ini file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// file_description: server-only helper to read reset password layout configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_value } from "
|
|
4
|
-
import { get_already_logged_in_config } from "
|
|
5
|
-
import { get_password_requirements_config } from "
|
|
3
|
+
import { get_config_value } from "./config/config_loader.server";
|
|
4
|
+
import { get_already_logged_in_config } from "./already_logged_in_config.server";
|
|
5
|
+
import { get_password_requirements_config } from "./password_requirements_config.server";
|
|
6
6
|
// section: helpers
|
|
7
7
|
/**
|
|
8
8
|
* Reads reset password layout configuration from hazo_auth_config.ini file
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// section: imports
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
import path from "path";
|
|
5
|
-
import { create_app_logger } from "
|
|
6
|
-
import { read_config_section } from "
|
|
5
|
+
import { create_app_logger } from "../app_logger";
|
|
6
|
+
import { read_config_section } from "../config/config_loader.server";
|
|
7
7
|
// section: constants
|
|
8
8
|
const DEFAULT_EMAIL_FROM = "noreply@hazo_auth.local";
|
|
9
9
|
const DEFAULT_EMAIL_TEMPLATE_DIR = path.resolve(process.cwd(), "email_templates");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
2
|
import argon2 from "argon2";
|
|
3
|
-
import { create_token } from "
|
|
4
|
-
import { send_template_email } from "
|
|
5
|
-
import { create_app_logger } from "
|
|
3
|
+
import { create_token } from "./token_service";
|
|
4
|
+
import { send_template_email } from "./email_service";
|
|
5
|
+
import { create_app_logger } from "../app_logger";
|
|
6
6
|
// section: helpers
|
|
7
7
|
/**
|
|
8
8
|
* Verifies an email verification token
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
2
|
import argon2 from "argon2";
|
|
3
|
-
import { create_app_logger } from "
|
|
4
|
-
import { sanitize_error_for_user } from "
|
|
5
|
-
import { get_line_number } from "
|
|
3
|
+
import { create_app_logger } from "../app_logger";
|
|
4
|
+
import { sanitize_error_for_user } from "../utils/error_sanitizer";
|
|
5
|
+
import { get_line_number } from "../utils/api_route_helpers";
|
|
6
6
|
// section: helpers
|
|
7
7
|
/**
|
|
8
8
|
* Authenticates a user by verifying email and password against hazo_users table
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
2
|
import argon2 from "argon2";
|
|
3
|
-
import { get_password_requirements_config } from "
|
|
4
|
-
import { send_template_email } from "
|
|
5
|
-
import { create_app_logger } from "
|
|
3
|
+
import { get_password_requirements_config } from "../password_requirements_config.server";
|
|
4
|
+
import { send_template_email } from "./email_service";
|
|
5
|
+
import { create_app_logger } from "../app_logger";
|
|
6
6
|
// section: helpers
|
|
7
7
|
/**
|
|
8
8
|
* Changes a user's password
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
|
-
import { create_token } from "
|
|
2
|
+
import { create_token } from "./token_service";
|
|
3
3
|
import argon2 from "argon2";
|
|
4
|
-
import { create_app_logger } from "
|
|
5
|
-
import { send_template_email } from "
|
|
4
|
+
import { create_app_logger } from "../app_logger";
|
|
5
|
+
import { send_template_email } from "./email_service";
|
|
6
6
|
// section: helpers
|
|
7
7
|
/**
|
|
8
8
|
* Requests a password reset for a user by email
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
|
-
import { map_db_source_to_ui } from "
|
|
3
|
-
import { get_profile_picture_config } from "
|
|
4
|
-
import { create_app_logger } from "
|
|
2
|
+
import { map_db_source_to_ui } from "./profile_picture_source_mapper";
|
|
3
|
+
import { get_profile_picture_config } from "../profile_picture_config.server";
|
|
4
|
+
import { create_app_logger } from "../app_logger";
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
import path from "path";
|
|
7
7
|
// section: helpers
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HazoConnectAdapter } from "hazo_connect";
|
|
2
|
-
import { type ProfilePictureSourceUI } from "
|
|
2
|
+
import { type ProfilePictureSourceUI } from "./profile_picture_source_mapper";
|
|
3
3
|
export type ProfilePictureSource = ProfilePictureSourceUI;
|
|
4
4
|
export type DefaultProfilePictureResult = {
|
|
5
5
|
profile_picture_url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile_picture_service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/profile_picture_service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AASvD,OAAO,EAAuB,KAAK,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"profile_picture_service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/profile_picture_service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AASvD,OAAO,EAAuB,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAGnG,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAE1D,MAAM,MAAM,2BAA2B,GAAG;IACxC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,oBAAoB,CAAC;CACtC,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAOrE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,EAAE,CAyBjD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAiC7D;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,GACjB,2BAA2B,GAAG,IAAI,CA2DpC;AAED;;;;;;;GAOG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,MAAM,EACf,mBAAmB,EAAE,MAAM,EAC3B,cAAc,EAAE,oBAAoB,GACnC,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAsB/C"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
2
|
import gravatarUrl from "gravatar-url";
|
|
3
|
-
import { get_profile_picture_config } from "
|
|
4
|
-
import { get_ui_sizes_config } from "
|
|
5
|
-
import { get_file_types_config } from "
|
|
6
|
-
import { create_app_logger } from "
|
|
3
|
+
import { get_profile_picture_config } from "../profile_picture_config.server";
|
|
4
|
+
import { get_ui_sizes_config } from "../ui_sizes_config.server";
|
|
5
|
+
import { get_file_types_config } from "../file_types_config.server";
|
|
6
|
+
import { create_app_logger } from "../app_logger";
|
|
7
7
|
import path from "path";
|
|
8
8
|
import fs from "fs";
|
|
9
|
-
import { map_ui_source_to_db } from "
|
|
9
|
+
import { map_ui_source_to_db } from "./profile_picture_source_mapper";
|
|
10
10
|
// section: helpers
|
|
11
11
|
/**
|
|
12
12
|
* Generates Gravatar URL from email address
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
2
|
import argon2 from "argon2";
|
|
3
3
|
import { randomUUID } from "crypto";
|
|
4
|
-
import { create_token } from "
|
|
5
|
-
import { get_default_profile_picture } from "
|
|
6
|
-
import { get_profile_picture_config } from "
|
|
7
|
-
import { map_ui_source_to_db } from "
|
|
8
|
-
import { create_app_logger } from "
|
|
9
|
-
import { send_template_email } from "
|
|
10
|
-
import { sanitize_error_for_user } from "
|
|
11
|
-
import { get_line_number } from "
|
|
4
|
+
import { create_token } from "./token_service";
|
|
5
|
+
import { get_default_profile_picture } from "./profile_picture_service";
|
|
6
|
+
import { get_profile_picture_config } from "../profile_picture_config.server";
|
|
7
|
+
import { map_ui_source_to_db } from "./profile_picture_source_mapper";
|
|
8
|
+
import { create_app_logger } from "../app_logger";
|
|
9
|
+
import { send_template_email } from "./email_service";
|
|
10
|
+
import { sanitize_error_for_user } from "../utils/error_sanitizer";
|
|
11
|
+
import { get_line_number } from "../utils/api_route_helpers";
|
|
12
12
|
// section: helpers
|
|
13
13
|
/**
|
|
14
14
|
* Registers a new user in the database using hazo_connect
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
2
|
import { randomBytes, randomUUID } from "crypto";
|
|
3
3
|
import argon2 from "argon2";
|
|
4
|
-
import { read_config_section } from "
|
|
5
|
-
import { create_app_logger } from "
|
|
4
|
+
import { read_config_section } from "../config/config_loader.server";
|
|
5
|
+
import { create_app_logger } from "../app_logger";
|
|
6
6
|
// section: helpers
|
|
7
7
|
/**
|
|
8
8
|
* Gets token expiry hours from hazo_auth_config.ini for a specific token type
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
2
|
import { differenceInDays } from "date-fns";
|
|
3
|
-
import { create_app_logger } from "
|
|
4
|
-
import { sanitize_error_for_user } from "
|
|
3
|
+
import { create_app_logger } from "../app_logger";
|
|
4
|
+
import { sanitize_error_for_user } from "../utils/error_sanitizer";
|
|
5
5
|
// section: helpers
|
|
6
6
|
/**
|
|
7
7
|
* Retrieves basic profile information for multiple users in a single batch call
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HazoConnectAdapter } from "hazo_connect";
|
|
2
|
-
import { type ProfilePictureSourceUI } from "
|
|
2
|
+
import { type ProfilePictureSourceUI } from "./profile_picture_source_mapper";
|
|
3
3
|
export type UserUpdateData = {
|
|
4
4
|
name?: string;
|
|
5
5
|
email?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user_update_service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/user_update_service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,EAAuB,KAAK,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"user_update_service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/user_update_service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,EAAuB,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAMnG,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAGF;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,gBAAgB,CAAC,CAuG3B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createCrudService } from "hazo_connect/server";
|
|
2
|
-
import { map_ui_source_to_db } from "
|
|
3
|
-
import { create_app_logger } from "
|
|
4
|
-
import { sanitize_error_for_user } from "
|
|
5
|
-
import { get_line_number } from "
|
|
2
|
+
import { map_ui_source_to_db } from "./profile_picture_source_mapper";
|
|
3
|
+
import { create_app_logger } from "../app_logger";
|
|
4
|
+
import { sanitize_error_for_user } from "../utils/error_sanitizer";
|
|
5
|
+
import { get_line_number } from "../utils/api_route_helpers";
|
|
6
6
|
// section: helpers
|
|
7
7
|
/**
|
|
8
8
|
* Updates user profile information (name, email)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: load ui shell layout settings from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_value } from "
|
|
3
|
+
import { get_config_value } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads ui shell configuration controlling whether pages use the sidebar test shell
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read UI size configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_number } from "
|
|
3
|
+
import { get_config_number } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads UI size configuration from hazo_auth_config.ini file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read shared user fields configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_boolean } from "
|
|
3
|
+
import { get_config_boolean } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads shared user fields configuration from hazo_auth_config.ini file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: server-only helper to read user management configuration from hazo_auth_config.ini
|
|
2
2
|
// section: imports
|
|
3
|
-
import { get_config_array, read_config_section } from "
|
|
3
|
+
import { get_config_array, read_config_section } from "./config/config_loader.server";
|
|
4
4
|
// section: helpers
|
|
5
5
|
/**
|
|
6
6
|
* Reads user management configuration from hazo_auth_config.ini file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error_sanitizer.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/error_sanitizer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"error_sanitizer.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/error_sanitizer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMlD,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAGF;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,wBAA6B,GACrC,MAAM,CA8CR"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { app_context, captcha_settings, logger_service, password_policy, rate_limit_settings, runtime_configuration, token_settings } from "
|
|
1
|
+
import type { app_context, captcha_settings, logger_service, password_policy, rate_limit_settings, runtime_configuration, token_settings } from "../types/app_types";
|
|
2
2
|
type direct_configuration_input = {
|
|
3
3
|
permission_names?: string[];
|
|
4
4
|
templates?: Record<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config_loader.d.ts","sourceRoot":"","sources":["../../../src/server/config/config_loader.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACf,MAAM,
|
|
1
|
+
{"version":3,"file":"config_loader.d.ts","sourceRoot":"","sources":["../../../src/server/config/config_loader.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACf,MAAM,oBAAoB,CAAC;AAG5B,KAAK,0BAA0B,GAAG;IAChC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,0BAA0B,CAAC;CACnD,CAAC;AAkGF,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,CAAC;AAyQF,eAAO,MAAM,0BAA0B,GACrC,UAAU,qBAAqB,KAC9B,qBAsFF,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,UAAU,qBAAqB,KAAG,WAEnE,CAAC"}
|