Last active
October 2, 2018 14:35
-
-
Save lc3t35/29ffb1f002a9bc6e5891b2b10c2af542 to your computer and use it in GitHub Desktop.
User subscription*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User subscription* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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