-
Notifications
You must be signed in to change notification settings - Fork 754
/
effects.ts
32 lines (30 loc) · 1.52 KB
/
effects.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { BehaviorSubject } from "rxjs/BehaviorSubject";
import { setOptionsEffect } from "./effects/set-options.effect";
import { fileReloadEffect } from "./effects/file-reload.effect";
import { browserSetLocationEffect } from "./effects/browser-set-location.effect";
import { simulateClickEffect } from "./effects/simulate-click.effect";
import { setElementValueEffect } from "./effects/set-element-value.effect";
import { setElementToggleValueEffect } from "./effects/set-element-toggle-value.effect";
import { setScrollEffect } from "./effects/set-scroll";
import { browserReloadEffect } from "./effects/browser-reload.effect";
export enum EffectNames {
FileReload = "@@FileReload",
PreBrowserReload = "@@PreBrowserReload",
BrowserReload = "@@BrowserReload",
BrowserSetLocation = "@@BrowserSetLocation",
BrowserSetScroll = "@@BrowserSetScroll",
SetOptions = "@@SetOptions",
SimulateClick = "@@SimulateClick",
SetElementValue = "@@SetElementValue",
SetElementToggleValue = "@@SetElementToggleValue"
}
export const effectOutputHandlers$ = new BehaviorSubject({
[EffectNames.SetOptions]: setOptionsEffect,
[EffectNames.FileReload]: fileReloadEffect,
[EffectNames.BrowserReload]: browserReloadEffect,
[EffectNames.BrowserSetLocation]: browserSetLocationEffect,
[EffectNames.SimulateClick]: simulateClickEffect,
[EffectNames.SetElementValue]: setElementValueEffect,
[EffectNames.SetElementToggleValue]: setElementToggleValueEffect,
[EffectNames.BrowserSetScroll]: setScrollEffect
});