updated aliases

This commit is contained in:
Fedor Katurov 2020-01-08 14:38:20 +07:00
parent af8d270460
commit e950d98b73
74 changed files with 300 additions and 390 deletions

View file

@ -1,7 +1,7 @@
// @flow
import React from 'react';
import { Scroll } from '$components/Scroll';
import { APP_INFO } from '$constants/app_info';
import { Scroll } from '~/components/Scroll';
import { APP_INFO } from '~/constants/app_info';
export const AppInfoDialog = () => (
<div className="dialog-content">

View file

@ -1,8 +1,8 @@
import React from 'react';
import { MODES } from '$constants/modes';
import { Icon } from '$components/panels/Icon';
import { setMode, stopEditing } from "$redux/user/actions";
import { MODES } from '~/constants/modes';
import { Icon } from '~/components/panels/Icon';
import { setMode, stopEditing } from "~/redux/user/actions";
type Props = {
stopEditing: typeof stopEditing,

View file

@ -1,9 +1,9 @@
import React from 'react';
import { LOGOS } from '$constants/logos';
import { Icon } from '$components/panels/Icon';
import { LOGOS } from '~/constants/logos';
import { Icon } from '~/components/panels/Icon';
import classnames from 'classnames';
import * as MAP_ACTIONS from "$redux/map/actions"
import { selectMapLogo } from '$redux/map/selectors';
import * as MAP_ACTIONS from "~/redux/map/actions"
import { selectMapLogo } from '~/redux/map/selectors';
import { connect } from 'react-redux';
const mapStateToProps = state => ({

View file

@ -1,7 +1,7 @@
import React from 'react';
import { connect } from 'react-redux';
import { RouteRowWrapper } from '$components/maps/RouteRowWrapper';
import { Scroll } from '$components/Scroll';
import { RouteRowWrapper } from '~/components/maps/RouteRowWrapper';
import { Scroll } from '~/components/Scroll';
import {
searchSetDistance,
searchSetTitle,
@ -11,17 +11,17 @@ import {
dropRoute,
modifyRoute,
toggleRouteStarred,
} from '$redux/user/actions';
import { isMobile } from '$utils/window';
} from '~/redux/user/actions';
import { isMobile } from '~/utils/window';
import classnames from 'classnames';
import Range from 'rc-slider/lib/Range';
import { TABS, TABS_TITLES } from '$constants/dialogs';
import { Icon } from '$components/panels/Icon';
import { pushPath } from '$utils/history';
import { IRootState, IRouteListItem } from '$redux/user';
import { ROLES } from '$constants/auth';
import { IState } from '$redux/store';
import { TABS, TABS_TITLES } from '~/constants/dialogs';
import { Icon } from '~/components/panels/Icon';
import { pushPath } from '~/utils/history';
import { IRootState, IRouteListItem } from '~/redux/user';
import { ROLES } from '~/constants/auth';
import { IState } from '~/redux/store';
export interface IMapListDialogProps extends IRootState {
marks: { [x: number]: string };

View file

@ -1,9 +1,9 @@
import React from 'react';
import { PROVIDERS, replaceProviderUrl } from '$constants/providers';
import { Icon } from '$components/panels/Icon';
import { PROVIDERS, replaceProviderUrl } from '~/constants/providers';
import { Icon } from '~/components/panels/Icon';
import classnames from 'classnames';
import * as MAP_ACTIONS from "$redux/map/actions";
import { selectMapProvider } from '$redux/map/selectors';
import * as MAP_ACTIONS from "~/redux/map/actions";
import { selectMapProvider } from '~/redux/map/selectors';
import { connect } from 'react-redux';
const mapStateToProps = state => ({

View file

@ -1,9 +1,9 @@
import React from 'react';
import { Icon } from '$components/panels/Icon';
import { Icon } from '~/components/panels/Icon';
import {
routerCancel as routerCancelAction,
routerSubmit as routerSubmitAction,
} from "$redux/user/actions";
} from "~/redux/user/actions";
import classnames from "classnames";
type Props = {

View file

@ -1,17 +1,17 @@
import React from 'react';
import { copyToClipboard, getUrlData } from '$utils/history';
import { toTranslit, parseDesc } from '$utils/format';
import { TIPS } from '$constants/tips';
import { MODES } from '$constants/modes';
import { Icon } from '$components/panels/Icon';
import { Switch } from '$components/Switch';
import { copyToClipboard, getUrlData } from '~/utils/history';
import { toTranslit, parseDesc } from '~/utils/format';
import { TIPS } from '~/constants/tips';
import { MODES } from '~/constants/modes';
import { Icon } from '~/components/panels/Icon';
import { Switch } from '~/components/Switch';
import classnames from 'classnames';
import ExpandableTextarea from 'react-expandable-textarea';
import { connect } from 'react-redux';
import { selectMap } from '$redux/map/selectors';
import { selectUser } from '$redux/user/selectors';
import * as USER_ACTIONS from '$redux/user/actions';
import { selectMap } from '~/redux/map/selectors';
import { selectUser } from '~/redux/user/selectors';
import * as USER_ACTIONS from '~/redux/user/actions';
const mapStateToProps = state => ({
map: selectMap(state),

View file

@ -1,6 +1,6 @@
import React from 'react';
import { connect } from 'react-redux';
import { selectUserRenderer } from '$redux/user/selectors';
import { selectUserRenderer } from '~/redux/user/selectors';
const mapStateToProps = state => ({
renderer: selectUserRenderer(state),

View file

@ -1,8 +1,8 @@
// @flow
import React from 'react';
import { STICKERS } from '$constants/stickers';
import { setActiveSticker as setActiveStickerAction } from "$redux/user/actions";
import { STICKERS } from '~/constants/stickers';
import { setActiveSticker as setActiveStickerAction } from "~/redux/user/actions";
interface Props {
setActiveSticker: typeof setActiveStickerAction,

View file

@ -2,11 +2,11 @@ import React from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import { getStyle } from '$utils/dom';
import { nearestInt } from '$utils/geom';
import { parseDesc } from '$utils/format';
import { selectUser } from '$redux/user/selectors';
import { selectMap } from '$redux/map/selectors';
import { getStyle } from '~/utils/dom';
import { nearestInt } from '~/utils/geom';
import { parseDesc } from '~/utils/format';
import { selectUser } from '~/redux/user/selectors';
import { selectMap } from '~/redux/map/selectors';
const mapStateToProps = state => ({
user: selectUser(state),

View file

@ -1,5 +1,5 @@
import React from 'react';
import { Icon } from '$components/panels/Icon';
import { Icon } from '~/components/panels/Icon';
type Props = {
clearPoly: () => void,