Skip to content

Instantly share code, notes, and snippets.

@lc3t35
Last active October 2, 2018 14:35
Show Gist options
  • Save lc3t35/29ffb1f002a9bc6e5891b2b10c2af542 to your computer and use it in GitHub Desktop.
Save lc3t35/29ffb1f002a9bc6e5891b2b10c2af542 to your computer and use it in GitHub Desktop.
User subscription*
User subscription*
LinkedIn
Unregistered*
RegisterWithLinkedIn -> AuthenticatedByLinkedIn?
AuthenticatedByLinkedIn?
hasAllowedAccess -> Authenticated
hasRefusedAccess -> Unregistered
Authenticated
SignInMetamask -> ConnectedWithMetamask?
Logout -> Unregistered
Metamask
ConnectedWithMetamask?
isConnected -> MetamaskAvailable
isNotConnected -> MetamaskNotAvailable
MetamaskNotAvailable
SignInMetamask -> ConnectedWithMetamask?
MetamaskAvailable
fillEthAddress -> EthValidatedByTML?
disconnectMetamask -> ConnectedWithMetamask?
EthValidatedByTML?
addressIsValid -> StartupForm
addressIsNotValid -> MetamaskAvailable
StartupForm
Logout -> Unregistered
SomeFormValueTyped
ValidateForm
function render(model){
let current_state_name = model.active_states[0].name;
if (model.active_states[0].image_url) {
return $('div',
$("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`),
$("img", { src: model.active_states[0].image_url })
);
} else {
return $('div',
$("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