Geekle Admin App
This is the Admin App of the entire Geekle package. It is used to manage the Supply organizations and users.
Main
main.tsx
is where the App starts. We instantiate a new GeekleAdminAppTemplate
with it's options and dependencies; then initialize and render a React App.
Dependencies
The dependencies are services and API's needed for the Admin App.
authApi
: The auth API for authenticationdemandSiteOrganizationUrl
: The URL of the organization API of the demand site.organizationApi
: The organization API servicesessionService
: The service which handles the session managementuserApi
: The user API service
Opts
The options for the Admin App.
Block Pages
The blockPages
option is one of the main options. Here are the components used for the Admin site:
-
createRedirect
: Simple redirect to the top index page- Settings
options
: Navigation options for the redirectto
: Name of theblockPage
to redirect to
- Validators
- None
- Settings
-
createAcceptInvitation
: Login page when user clicks on invitation link in email- Settings
passwordValidateStrategy
: The strategy to validate the passwordredirectAfterAcceptRoute
: URL to redirect to after form submituserApi
: The User API serviceuserTypeId
: The type of user to create
- Validators
isNotLoggedIn
: When the user is not logged in, it redirects to the application index page
- Settings
-
createOrganizationApplicationShowPage
: Organization/Company details page- Settings
organizationApi
: The organizationAPI service
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings
-
createLogin
: Login form page- Settings
alreadyVerifiedRoute
: If user is already logged in, send to application index pageauthApi
: The Authentication API serviceshowSignupLink
: Display sign up link?userApi
: The User API service
- Validators
- None
- Settings
-
createResetPasswordRequest
: Simple form to request a password reset- Settings
userApi
: The User API service
- Validators
- None
- Settings
-
createResetPasswordSubmit
: Form to enter new password when resetting password- Settings
passwordValidateStrategy
: The strategy to validate the passworduserApi
: The User API service
- Validators
- None
- Settings
-
createResetPasswordSuccess
: Confirmation page when reset password was successful- Settings
userApi
: The User API service
- Validators
- None
- Settings
-
createLogout
: User logout- Settings
authApi
: The Authentication API servicelogoutRedirect
: Upon logout, redirect to the login page
- Validators
- None
- Settings
-
createOrganizationApplicationList
: Organization applications list- Settings
organizationApi
: The organizationAPI serviceshowOrganizationApplicationRoute
: The url to the specific organization upon click
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings
-
createOrganizationSinglePage
: Organization details page- Settings
demandSiteOrganizationUrl
: Demand site organization details URLorganizationApi
: The organizationAPI service
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings
-
createAllOrganizationsList
: List of all organizations- Settings
organizationApi
: The organizationAPI servicepageSize
: Items per pageshowOrganizationApplicationRoute
: Organization application URLshowOrganizationRoute
: Organization details URL
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings
-
createMembersAndInvitations
: List of members and invitations- Settings
logoutRoute
: The route to the logout pageuserApi
: The User API service
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings
-
createListSettingsPage
:- Settings
changeEmailRoute
: Settings page to edit emailchangeNameRoute
: Settings page to edit namechangePasswordRoute
: Settings page to edit passwordchangePhoneNumberRoute
: Settings page to edit phone numberuserApi
: The User API service
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings
-
createChangeEmail
:- Settings
cancelRoute
: Route to settings pagesuccessRoute
: Route to settings pageuserApi
: The User API service
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings
-
createChangeName
:- Settings
cancelRoute
: Route to settings pagesuccessRoute
: Route to settings pageuserApi
: The User API service
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings
-
createChangePhoneNumber
:- Settings
cancelRoute
: Route to settings pagesuccessRoute
: Route to settings pageuserApi
: The User API service
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings
-
createVerifyChangeEmailSuccess
: Verifies email change- Settings
userApi
: The User API serviceverifiedRoute
: Settings URL page
- Validators
- None
- Settings
-
createChangePassword
: Change password page- Settings
cancelRoute
: Settings routeforgotPasswordUrl
: Forget password pagesuccessRoute
: On success, redirect to settings pageuserApi
: The User API service
- Validators
isLoggedIn
: When the user is not logged in, it redirects to the login page
- Settings