-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.ts
More file actions
51 lines (49 loc) · 2.5 KB
/
Copy pathindex.ts
File metadata and controls
51 lines (49 loc) · 2.5 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { validationSaga } from "./validationSaga";
import { onboardingSaga } from "./onboardingSaga";
import { createBdapAccountSaga } from "./createBdapAccount/createBdapAccountSaga";
import { setWalletPasswordSaga } from "./setWalletPasswordSaga";
import { mnemonicSaga } from "./mnemonicSaga";
import { saveMnemonicSaga } from "./saveMnemonicSaga";
import { BrowserWindowProvider } from "../../shared/system/BrowserWindowProvider";
import { translateMnemonicFileSaveFailedActionsToValidationMessagesSaga } from "./translateMnemonicFileSaveFailedActionsToValidationMessagesSaga";
import { bdapSaga } from "./bdapSaga";
import { bulkImportSaga, previewBulkImportSaga } from "./bulkImportSaga";
import { linkRequestSaga } from "./linkRequestSaga";
import { linkAcceptSaga } from "./linkAcceptSaga";
import { fileWatchSaga } from "./fileWatchSaga";
import { linkDeclineSaga } from "./linkDeclineSaga";
import { RpcClientWrapper } from "../RpcClient";
import { addFileSaga } from "./addFileSaga";
import { startViewSharedFilesSaga } from "./startViewSharedFilesSaga";
import { scanForLinkMessagesSaga } from "./scanForLinkMessagesSaga";
import { sendLinkMessageSaga } from "./sendLinkMessageSaga";
import { requestFileSaveDialogSaga } from "./fileRequestSaveDialogSaga";
import { newLinkSaga } from "./newLinkSaga";
import { restoreFromMnemonicSaga } from "./restoreFromMnemonicSaga";
import { removeFileSaga } from "./removeFileSaga";
import { exportUserLinksSaga } from './exportUserLinksSaga';
export const getRootSaga = (rpcClient: RpcClientWrapper, browserWindowProvider: BrowserWindowProvider) => [
() => startViewSharedFilesSaga(rpcClient),
() => addFileSaga(),
() => removeFileSaga(),
() => fileWatchSaga(),
() => linkRequestSaga(rpcClient),
() => linkAcceptSaga(rpcClient),
() => linkDeclineSaga(rpcClient),
() => validationSaga(rpcClient),
() => onboardingSaga(),
() => createBdapAccountSaga(rpcClient),
() => setWalletPasswordSaga(rpcClient),
() => mnemonicSaga(rpcClient),
() => saveMnemonicSaga(browserWindowProvider),
() => translateMnemonicFileSaveFailedActionsToValidationMessagesSaga(),
() => bdapSaga(rpcClient),
() => bulkImportSaga(rpcClient, browserWindowProvider),
() => previewBulkImportSaga(),
() => scanForLinkMessagesSaga(rpcClient),
() => sendLinkMessageSaga(rpcClient),
() => requestFileSaveDialogSaga(browserWindowProvider),
() => newLinkSaga(),
() => restoreFromMnemonicSaga(rpcClient),
() => exportUserLinksSaga(browserWindowProvider),
]