This file contains hidden or 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or 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 WEB_PLAYBACK_API = 'https://api.spotify.com/v1/me/player'; | |
const InitialState = '@Initial'; | |
const ReadyState = '@Ready'; | |
const NotReadyState = '@NotReadyState'; | |
const IdleState = '@Idle'; | |
const PlayState = '@Play'; | |
const RequestingToPlayTrackState = '@Play/Track/Request'; | |
const RequestingToPlayAlbumState = '@Play/Album/Request'; | |
const RequestingToResumeTrackState = '@Resume/Request'; | |
const PlayingState = '@Play/Success'; |
This file contains hidden or 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or 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
Machine({ | |
id: '@mahou/routing', | |
type: "parallel", | |
initial: "A", | |
states: { | |
routing: { | |
initial: "brands", | |
states: { | |
"brands": { | |
"on": { |
This file contains hidden or 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
Machine({ | |
"id": "Example 1", | |
"context": {}, | |
"type": "parallel", | |
"states": { | |
"routing": { | |
"initial": "initial", | |
"states": { | |
"initial": { | |
"on": { |
This file contains hidden or 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
Machine({ | |
id: 'Unintegrated Tournaments', | |
initial: 'setUp', | |
context: {}, | |
states: { | |
disabled: { | |
type: 'final', | |
}, | |
setUp: { | |
on: { |
OlderNewer