Skip to content

Instantly share code, notes, and snippets.

@swashcap
Created February 28, 2019 21:52
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 swashcap/80616e5fb8ffeb83979a92bf4d9b6dbd to your computer and use it in GitHub Desktop.
Save swashcap/80616e5fb8ffeb83979a92bf4d9b6dbd to your computer and use it in GitHub Desktop.
Welcome*
Welcome*
Owner
dashboard -> Dashboard
Non-Owner
create -> Create
find -> Search Results
Auth
redirect -> Create
Create
Authorized
create -> Dashboard
cancel -> Welcome
Not Authorized
notauthorized -> Auth
Dashboard
Registry Owner
edit -> Edit Registry
Registry Non-Owner
add to cart -> Cart
Cart
Edit Registry
Search Results
back -> Welcome
paginate -> Search Results
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