Skip to content

Instantly share code, notes, and snippets.

@esmevane
Last active August 25, 2021 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmevane/5bfa1fd390e16997b7f1ae7243c6e596 to your computer and use it in GitHub Desktop.
Save esmevane/5bfa1fd390e16997b7f1ae7243c6e596 to your computer and use it in GitHub Desktop.
App
App
Checking Credentials
Identity Present -> Home Page
Identity Absent -> Registration
Registration
Check for Identity Info
Identity Info Present -> Registration Credentials Form
Identity Info Absent -> Identity Info Form
Identity Info Form
Input Identity Info -> Validating Identity Info
Validating Identity Info
Invalid Identity Info -> Invalid Identity Form
Valid Identity Info -> Valid Identity Form
Valid Identity Form
Submit Identity Info -> Submitting Identity Form
Submitting Identity Form
Successfully Submitted Identity -> Registration Credentials Form
Identity Submission Error -> Error Identity Form
Invalid Identity Form
Error Identity Form
Registration Credentials Form
Input Login Creds -> Validating Login Creds
Validating Login Creds
Invalid Login Creds -> Invalid Login Form
Valid Login Creds -> Valid Login Form
Invalid Login Form
Valid Login Form
Submit Login Info -> Submitting Login Form
Submitting Login Form
Successfully Logged In -> Home Page
Unsuccessful Log In -> Error Login Form
Error Login Form
Home Page
Log Out -> Checking Credentials
function render(model) {
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue", margin: '2em' }},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment