Skip to content

Instantly share code, notes, and snippets.

@grossbart
Last active November 10, 2020 15: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 grossbart/a3e27b3c87ea8b6193d91443f6bbf2a8 to your computer and use it in GitHub Desktop.
Save grossbart/a3e27b3c87ea8b6193d91443f6bbf2a8 to your computer and use it in GitHub Desktop.
Startup
Startup
Login*
login -> URL
URL
none -> Fetch Local Storage
enrolled -> Enrolled Course
group -> Groups
course -> Courses
Fetch Local Storage
none -> Fetch Courses
enrolled -> Enrolled Course
group -> Groups
course -> Courses
Fetch Courses
current -> Current
then -> Fetch Local Storage
Current
single enrolled -> Enrolled Course
multiple enrolled -> Choose Enrolled
App
Start
Enrolled
Choose Enrolled
choice -> Enrolled Course
Enrolled Course
choice -> Choose Enrolled
Groups
Courses
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment