Skip to content

Instantly share code, notes, and snippets.

@lupuszr
Last active October 25, 2021 18:40
Show Gist options
  • Save lupuszr/107c9986ac064850ef39f1c51c7da63a to your computer and use it in GitHub Desktop.
Save lupuszr/107c9986ac064850ef39f1c51c7da63a to your computer and use it in GitHub Desktop.
Video Tutor
Video Tutor
Login Module
Unauthorized Dashboard
existing user -> SignIn
new user -> SignUp
SignUp
already an user -> SignIn
submit info -> SubscribeUser
SubscribeUser
user pick a plan -> 2checkoutSubscribtion
2checkoutSubscribtion
finishSubscription -> Authorized Dashboard
SignIn
submit username and password -> Authorized Dashboard
user has forgot password -> ForgotPassword
ForgotPassword
reset password -> SignIn
Dashboard
Authorized Dashboard
user check inbox -> ShowTutorMessages
ShowTutorMessages
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`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