Skip to content

Instantly share code, notes, and snippets.

@martypenner
Last active November 21, 2019 20:11
Show Gist options
  • Save martypenner/d9c9090d6bce884e4a13b2cd47aac2e5 to your computer and use it in GitHub Desktop.
Save martypenner/d9c9090d6bce884e4a13b2cd47aac2e5 to your computer and use it in GitHub Desktop.
Initializing*
Initializing*
Authenticating*
authenticated -> Authorizing
not authenticated -> Not authenticated
Authorizing
authorized -> Fetching initial data
not authorized -> Not authorized
Fetching initial data
fetched -> Ready
errored -> Fetch error
Ready&
Calendar&
Grid view
# Only allowing month to start. Week and day may be added later
Month*
#Week
#Day
#view month -> Month
#view week -> Week
#view day -> Day
Cells&
Today
In current period
List view&
Active
Has active reservations?
Has active reservations
Empty active
Upcoming
Has upcoming reservations?
Has upcoming reservations
Empty upcoming
Not authenticated
Not authorized
Fetch error
function render(model){
let currentStateName = model.active_states[0].name;
return <h1>The current state is: {currentStateName}</h1>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment