mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
optimized imports
This commit is contained in:
parent
8d2b56cafc
commit
77af1ab05a
58 changed files with 167 additions and 228 deletions
|
@ -1,4 +1,4 @@
|
|||
import { IFile, INotification, IResultWithStatus } from '../types';
|
||||
import { IFile, INotification } from '../types';
|
||||
|
||||
export interface IToken {
|
||||
access: string;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { assocPath } from 'ramda';
|
||||
import { FLOW_ACTIONS } from './constants';
|
||||
import {
|
||||
flowSetNodes,
|
||||
flowSetHeroes,
|
||||
flowSetRecent,
|
||||
flowSetUpdated,
|
||||
flowSetFlow,
|
||||
flowSetHeroes,
|
||||
flowSetNodes,
|
||||
flowSetRecent,
|
||||
flowSetSearch,
|
||||
flowSetUpdated,
|
||||
} from './actions';
|
||||
import { IFlowState } from './reducer';
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { createReducer } from '~/utils/reducer';
|
||||
import { LAB_HANDLERS } from '~/redux/lab/handlers';
|
||||
import { ILabState } from '~/redux/lab/types';
|
||||
import { INode, ITag } from '~/redux/types';
|
||||
|
||||
const INITIAL_STATE: ILabState = {
|
||||
list: {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { takeLeading, call, put, select } from 'redux-saga/effects';
|
||||
import { call, put, select, takeLeading } from 'redux-saga/effects';
|
||||
import {
|
||||
labGetList,
|
||||
labSeenNode,
|
||||
labSetList,
|
||||
labSetStats,
|
||||
labSetUpdates,
|
||||
labSeenNode,
|
||||
} from '~/redux/lab/actions';
|
||||
import { LAB_ACTIONS } from '~/redux/lab/constants';
|
||||
import { Unwrap } from '~/redux/types';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { MODAL_HANDLERS } from '~/redux/modal/handlers';
|
||||
import { createReducer } from '~/utils/reducer';
|
||||
import { DIALOGS } from '~/redux/modal/constants';
|
||||
import { ValueOf, IFile } from '~/redux/types';
|
||||
import { IFile, ValueOf } from '~/redux/types';
|
||||
|
||||
export interface IModalState {
|
||||
is_shown: boolean;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { takeEvery, put } from 'redux-saga/effects';
|
||||
import { LocationChangeAction, LOCATION_CHANGE } from 'connected-react-router';
|
||||
import { put, takeEvery } from 'redux-saga/effects';
|
||||
import { LOCATION_CHANGE, LocationChangeAction } from 'connected-react-router';
|
||||
import { authOpenProfile, authShowRestoreModal } from '../auth/actions';
|
||||
import { MODAL_ACTIONS, DIALOGS } from './constants';
|
||||
import { modalShowPhotoswipe, modalSet } from './actions';
|
||||
import { DIALOGS, MODAL_ACTIONS } from './constants';
|
||||
import { modalSet, modalShowPhotoswipe } from './actions';
|
||||
|
||||
function* onPathChange({
|
||||
payload: {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { PLAYER_ACTIONS } from './constants';
|
||||
import { assocPath } from 'ramda';
|
||||
import { playerSetFile, playerSetStatus, playerSet } from './actions';
|
||||
import { playerSet, playerSetFile, playerSetStatus } from './actions';
|
||||
|
||||
const setFile = (state, { file }: ReturnType<typeof playerSetFile>) =>
|
||||
assocPath(['file'], file, state);
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
tagSetNodes,
|
||||
} from '~/redux/tag/actions';
|
||||
import { selectTagNodes } from '~/redux/tag/selectors';
|
||||
import { apiGetTagSuggestions, apiGetNodesOfTag } from '~/redux/tag/api';
|
||||
import { apiGetNodesOfTag, apiGetTagSuggestions } from '~/redux/tag/api';
|
||||
import { Unwrap } from '~/redux/types';
|
||||
|
||||
function* loadTagNodes({ tag }: ReturnType<typeof tagLoadNodes>) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { UPLOAD_ACTIONS } from '~/redux/uploads/constants';
|
||||
import { IFileWithUUID, UUID, IFile } from '../types';
|
||||
import { IFile, IFileWithUUID, UUID } from '../types';
|
||||
import { IUploadStatus } from './reducer';
|
||||
|
||||
export const uploadUploadFiles = (files: IFileWithUUID[]) => ({
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import { assocPath } from 'ramda';
|
||||
import { omit } from 'ramda';
|
||||
import { assocPath, omit } from 'ramda';
|
||||
|
||||
import { UPLOAD_ACTIONS, EMPTY_UPLOAD_STATUS } from './constants';
|
||||
import { uploadAddStatus, uploadDropStatus, uploadSetStatus, uploadAddFile } from './actions';
|
||||
import { EMPTY_UPLOAD_STATUS, UPLOAD_ACTIONS } from './constants';
|
||||
import { uploadAddFile, uploadAddStatus, uploadDropStatus, uploadSetStatus } from './actions';
|
||||
import { IUploadState } from './reducer';
|
||||
|
||||
const addStatus = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue