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
<h1>Orange</h1> | |
<h2>jest cool</h2> | |
<p> | |
lorem stuff | |
</p> |
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 m = Machine({ | |
id: 'error', | |
context: { | |
list: null, | |
currentItem: null, | |
}, | |
initial: 'init', | |
states: { | |
init: { | |
on: { |
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 suffMachine = Machine({ | |
id: 'stuff', | |
initial: 'idle', | |
context: { | |
/** | |
*This value is provied from external sourcre. | |
*/ | |
isLogged: false | |
}, | |
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
# Wyrazy rozpoczynaj膮ce si臋 od ma艂ej litery s膮聽stanami. | |
# Wyrazy pisane wielkimi literami s膮 akcjami. | |
# | |
# `_entry` - akcja wykonyana na wej艣ciu do danego stanu | |
# `_entry_[suffix]` - akcja w wykonywana na wej艣ciu do danego podstanu. Sufix jest niezb臋dny aby unikn膮膰聽kolizji nazw | |
# `_entry - condition? [value]` -> akcja wykonywana tylko gdy `condition [value]` jest spe艂niona | |
Sufler | |
Resolve* | |
_entry -> offerGroups |
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
Grupy Ofert* | |
WYB脫R GRUPY -> Oferty | |
Oferty | |
# Na wej艣ciu | |
_ENTRY | |
Tylko jedna oferta w grupie | |
# Wywo艂anie akcji | |
Tak? -> WYB脫R OFERTY |
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
Sufler | |
Oferty i Grupy Ofert* | |
wyb贸r grupy -> Lista Ofert | |
wyb贸r oferty -> Lista Proces贸w | |
Lista Ofert | |
wyb贸r oferty -> Wymagania Oferty | |
powr贸t -> Oferty i Grupy Ofert | |
Wymagania Oferty |
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
My Awesome Sketch | |
Oferty i Grupy Ofert* | |
wyb贸r grupy -> Lista Ofert | |
wyb贸r oferty -> Lista Proces贸w | |
Lista Ofert | |
wyb贸r oferty -> Lista Proces贸w | |
powr贸t -> Oferty i Grupy Ofert | |
Lista Proces贸w |
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
/** | |
* xstate - 4.7.0-rc.6 | |
* typescript - 3.7.2 | |
*/ | |
import React from "react"; | |
import { createMachine, assign } from "xstate"; | |
import { useMachine } from "@xstate/react"; | |
interface Context { | |
name?: string; |
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 suflerMachine = Machine({ | |
initial: "types", | |
states: { | |
types: { | |
on: { | |
SELECT_TYPE: { | |
target: "processes", | |
actions: [ | |
assign({ | |
typeId: (_context, event) => event.id |
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
alert(x) |