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 timelineUiMachine = { | |
initial: 'loading_timeline', | |
states: { | |
loading_timeline: { | |
onEntry: ['clearExcelData', 'fetchTimelineData'], | |
on: { | |
SUCCESS: [ | |
{ | |
target: 'viewing_empty_timeline', |
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 locCounterMachine = Machine({ | |
id: 'locCounter', | |
initial: 'parsing_global', | |
context: { | |
total: 0, | |
global: 0, | |
blocks: { | |
// functionX: 0 | |
}, | |
currentBlock: null, |
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 loginMachine = Machine( | |
{ | |
initial: 'howToLogin', | |
context: { | |
ssoUrl: undefined, | |
email: '', | |
password: '', | |
error: undefined, | |
client: undefined, | |
}, |
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 triviaMachine = Machine({ | |
id: 'trivia', | |
initial: 'home', | |
context: { | |
questions: [], | |
answers: [], | |
currentQuestion: 0, | |
totalQuestions: 10 | |
}, |
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 timelineUiMachine = { | |
initial: 'loading_timeline', | |
states: { | |
loading_timeline: { | |
onEntry: ['fetchTimelineData'], | |
on: { | |
SUCCESS: [ | |
{ | |
target: 'viewing_empty_timeline', | |
cond: 'isDataOutOfRange', |
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 CoilScheduleMachine = Machine({ | |
id: 'CoilSchedule', | |
context: { | |
job: {}, | |
csv: [], | |
balances: [], | |
startAt: null, | |
coilsPath: null, | |
railsPath: null, | |
errors: [], |
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 usersMachine = Machine({ | |
id: 'usersMachine', | |
type: 'parallel', | |
context: { | |
users: [], | |
selectedUser: null, | |
permissionTypes: null | |
}, | |
initial: 'viewing_users', | |
states: { |
NewerOlder