Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sakazuki committed Sep 22, 2019
1 parent 388eeaa commit 3c213b0
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Expand Up @@ -53,6 +53,7 @@
"SucceedState": "writable",
"FailState": "writable",
"ParallelState": "writable",
"MapState": "writable",
"StartAtEdge": "writable",
"NextEdge": "writable",
"RetryEdge": "writable",
Expand Down
16 changes: 14 additions & 2 deletions dist/aws-step-functions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/sidebar.ts
@@ -1,5 +1,7 @@
// Avoids having to bind all functions to "this"

import { MapState } from "./states/map";

export function setupSidebar (editorUi) {
const sb = editorUi.sidebar;
function addPalette (content) {
Expand All @@ -13,7 +15,8 @@ export function setupSidebar (editorUi) {
WaitState,
SucceedState,
FailState,
ParallelState
ParallelState,
MapState
];
for (const vertex of vertexes) {
const cell = vertex.prototype.create();
Expand Down
2 changes: 2 additions & 0 deletions src/states/index.ts
Expand Up @@ -9,13 +9,15 @@ import { StartPoint, EndPoint } from "./point";
import { SucceedState } from "./succeed";
import { TaskState } from "./task";
import { WaitState} from "./wait";
import { MapState } from "./map";

export function setupStates (editorUi) {
helper.init(editorUi);
window['AWSconfig'] = AWSconfig;
window['ChoiceState'] = ChoiceState;
window['FailState'] = FailState;
window['ParallelState'] = ParallelState;
window['MapState'] = MapState;
window['PassState'] = PassState;
window['StartPoint'] = StartPoint;
window['EndPoint'] = EndPoint;
Expand Down

0 comments on commit 3c213b0

Please sign in to comment.