Skip to content

Commit

Permalink
Moving out some of the epics that don't have platform specific intera…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
NickGeek committed Jan 27, 2019
1 parent 4c1c27f commit 8c35c48
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { combineEpics } from 'redux-observable';
import { filter, map } from 'rxjs/operators';
import { Action, isType } from 'redux-typescript-actions';
import { actions } from '../../core/actions';
import { INotepadStoreState } from '../../core/types/NotepadTypes';
import { isAction } from '../util';
import { NewNotepadObjectAction } from '../../core/types/ActionTypes';
import { IStoreState } from '../../core/types';
import { actions } from '../actions';
import { INotepadStoreState } from '../types/NotepadTypes';
import { isAction } from '../../react-web/util';
import { NewNotepadObjectAction } from '../types/ActionTypes';
import { IStoreState } from '../types';
import { FlatNotepad } from 'upad-parse/dist';
import { FlatSection } from 'upad-parse/dist/FlatNotepad';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import { combineEpics } from 'redux-observable';
import { catchError, filter, map, switchMap } from 'rxjs/operators';
import { from, of } from 'rxjs';
import { Action, isType } from 'redux-typescript-actions';
import { actions } from '../../core/actions';
import { HashTagSearchResult, HashTagSearchResults } from '../../core/reducers/SearchReducer';
import { IStoreState } from '../../core/types';
import { actions } from '../actions';
import { HashTagSearchResult, HashTagSearchResults } from '../reducers/SearchReducer';
import { IStoreState } from '../types';
import { Store } from 'redux';
import { SearchIndices } from '../../core/types/ActionTypes';
import { isAction } from '../util';
import { indexNotepads } from '../SearchWorker';
import { SearchIndices } from '../types/ActionTypes';
import { isAction } from '../../react-web/util';
import { indexNotepads } from '../../react-web/SearchWorker';

export namespace SearchEpics {
export const refreshIndices = action$ =>
export const refreshIndices$ = action$ =>
action$.pipe(
isAction(actions.saveNotepad.done),
map(() => actions.indexNotepads.started(undefined))
Expand Down Expand Up @@ -62,7 +62,7 @@ export namespace SearchEpics {
);

export const searchEpics$ = combineEpics(
refreshIndices,
refreshIndices$,
indexNotepads$,
search$
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { ActionsObservable, createEpicMiddleware } from 'redux-observable';
import configureStore from 'redux-mock-store';
import { ExplorerEpics } from '../ExplorerEpics';
import { actions } from '../../../core/actions';
import { actions } from '../../actions';
import { cold } from 'jest-marbles';
import { IStoreState } from '../../../core/types';
import { IStoreState } from '../../types';
import { ineeda } from 'ineeda';
import { NewNotepadObjectAction } from '../../../core/types/ActionTypes';
import { NewNotepadObjectAction } from '../../types/ActionTypes';
import { FlatNotepad } from 'upad-parse/dist';

const epic = createEpicMiddleware(ExplorerEpics.explorerEpics$);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { SearchEpics } from '../SearchEpics';
import { ActionsObservable } from 'redux-observable';
import { actions } from '../../../core/actions';
import { actions } from '../../actions';
import { ineeda } from 'ineeda';
import { Action } from 'redux-typescript-actions';
import { ElementArgs } from 'upad-parse/dist/Note';
import { FlatNotepad, Note, Trie } from 'upad-parse/dist';
import { HashTagSearchResults } from '../../../core/reducers/SearchReducer';
import { IStoreState } from '../../../core/types';
import { HashTagSearchResults } from '../../reducers/SearchReducer';
import { IStoreState } from '../../types';
import { Store } from 'redux';

describe('search$', () => {
Expand Down
4 changes: 2 additions & 2 deletions app/src/react-web/epics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { combineEpics, createEpicMiddleware } from 'redux-observable';
import { notepadEpics$ } from './NotepadEpics';
import { storageEpics$ } from './StorageEpics';
import { noteEpics$ } from './NoteEpics';
import { ExplorerEpics } from './ExplorerEpics';
import { ExplorerEpics } from '../../core/epics/ExplorerEpics';
import { AppEpics } from './AppEpics';
import { PrintEpics } from './PrintEpics';
import { SyncEpics } from './SyncEpics';
import { HelpEpics } from './HelpEpics';
import { SearchEpics } from './SearchEpics';
import { SearchEpics } from '../../core/epics/SearchEpics';
import { getStorage } from '..';
import { Action } from 'redux-typescript-actions';

Expand Down

0 comments on commit 8c35c48

Please sign in to comment.