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
/* Restore blue shading to current state in Simulate */ | |
.css-1brufv, .css-z8ukhg, .css-1c8j3c2, .css-1skrtun { | |
background-color: unset; | |
} | |
/* Remove square from start of transition arrow */ | |
path { | |
marker-start: unset; | |
} |
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
const machine = Machine( | |
{ | |
id: "Search Field", | |
context: { | |
filterTyped: "", | |
filterApplied: "", | |
}, | |
initial: "collapsed", | |
states: { |
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
const machine = Machine({ | |
id: "Planning Poker", | |
initial: "playing", | |
states: { | |
playing: { | |
initial: "discussing story", | |
states: { | |
"discussing story": { | |
on: { | |
"REVEAL ESTIMATES": { |
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
const machine = Machine({ | |
id: "Workout", | |
type: "parallel", | |
context: { | |
timerSeconds: 60, | |
}, | |
states: { | |
timer: { | |
id: "timer", |
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
const machine = Machine( | |
{ | |
id: "Stories", | |
type: "parallel", | |
states: { | |
playback: { | |
initial: "playing", | |
states: { | |
playing: { | |
initial: "counting down", |
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
const machine = Machine({ | |
id: "PGA Onboarding & Login", | |
initial: "splash screen", | |
states: { | |
"splash screen": { | |
after: { | |
2000: "onboard or sign in", | |
}, | |
}, | |
"onboard or sign in": { |
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
const machine = Machine({ | |
id: "PGA Onboarding", | |
initial: "Let's personalize", | |
states: { | |
"Let's personalize": { | |
on: { | |
"DO THIS LATER": "#app landing", | |
CONTINUE: "Favorite tour?", | |
}, |
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
const machine = Machine({ | |
id: "Page transition", | |
type: "parallel", | |
states: { | |
"current page": { | |
initial: "visible", | |
states: { | |
visible: { | |
on: { | |
"LOAD NEXT PAGE": "fading out", |
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
/** | |
* Abstraction of: | |
* assign({ Player_1: ({ Player_1 }) => Player_1 + 1 }) | |
*/ | |
const addShot = (player) => | |
assign({ | |
[player]: (context) => context[player] + 1, | |
}); | |
const machine = Machine( |
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
const stroke = function score(player) { | |
return assign({ | |
[player]: (context) => context[player] + 1, | |
}); | |
} | |
const machine = Machine({ | |
id: "Playoff: 3-hole aggregate", | |
context: { | |
P1: 0, |
NewerOlder