From b6209aff948cacd7d2fefc5debeef7746519a43b Mon Sep 17 00:00:00 2001 From: "tingyau.cty" Date: Fri, 24 Aug 2018 18:15:39 +0800 Subject: [PATCH] refactor: Rename all from relative path using alias --- src/components/Command/index.js | 2 +- src/components/ContextMenu/index.js | 2 +- src/components/DetailPannel/index.js | 2 +- src/components/DetailPannel/pannel.js | 2 +- src/components/Flow/index.js | 2 +- src/components/ItemPannel/index.js | 2 +- src/components/Mind/index.js | 2 +- src/components/Minimap/index.js | 2 +- src/components/Page/index.js | 2 +- src/components/Register/index.js | 2 +- src/components/Toolbar/index.js | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/Command/index.js b/src/components/Command/index.js index 42876cfb..19b7de9c 100644 --- a/src/components/Command/index.js +++ b/src/components/Command/index.js @@ -1,5 +1,5 @@ import React from 'react'; -import BaseComponent from '../Base'; +import BaseComponent from '@components/Base'; class Command extends BaseComponent { render() { diff --git a/src/components/ContextMenu/index.js b/src/components/ContextMenu/index.js index 736d34d0..84245fda 100644 --- a/src/components/ContextMenu/index.js +++ b/src/components/ContextMenu/index.js @@ -1,7 +1,7 @@ import React from 'react'; import Editor from '@antv/g6-editor'; import { CONTEXT_MENU_CONTAINER } from '@common/constants'; -import BaseComponent from '../Base'; +import BaseComponent from '@components/Base'; class ContextMenu extends BaseComponent { contextMenu = null; diff --git a/src/components/DetailPannel/index.js b/src/components/DetailPannel/index.js index 81f99843..87c3d98e 100644 --- a/src/components/DetailPannel/index.js +++ b/src/components/DetailPannel/index.js @@ -1,7 +1,7 @@ import React from 'react'; import { pick } from '@utils'; import { STATUS_CANVAS_SELECTED, EVENT_AFTER_ADD_PAGE } from '@common/constants'; -import BaseComponent from '../Base'; +import BaseComponent from '@components/Base'; import Pannel from './pannel'; class DetailPannel extends BaseComponent { diff --git a/src/components/DetailPannel/pannel.js b/src/components/DetailPannel/pannel.js index 4f1fdebc..d0081df6 100644 --- a/src/components/DetailPannel/pannel.js +++ b/src/components/DetailPannel/pannel.js @@ -1,5 +1,5 @@ import React from 'react'; -import BaseComponent from '../Base'; +import BaseComponent from '@components/Base'; class Pannel extends BaseComponent { static create = function (type) { diff --git a/src/components/Flow/index.js b/src/components/Flow/index.js index c82626e7..66cbe8c9 100644 --- a/src/components/Flow/index.js +++ b/src/components/Flow/index.js @@ -5,7 +5,7 @@ import { EVENT_BEFORE_ADD_PAGE, EVENT_AFTER_ADD_PAGE, } from '@common/constants'; -import Page from '../Page'; +import Page from '@components/Page'; class Flow extends Page { get pageId() { diff --git a/src/components/ItemPannel/index.js b/src/components/ItemPannel/index.js index 70e47ec3..23781a85 100644 --- a/src/components/ItemPannel/index.js +++ b/src/components/ItemPannel/index.js @@ -2,7 +2,7 @@ import React from 'react'; import Editor from '@antv/g6-editor'; import { pick } from '@utils'; import { ITEM_PANNEL_CONTAINER } from '@common/constants'; -import BaseComponent from '../Base'; +import BaseComponent from '@components/Base'; import Item from './item'; class ItemPannel extends BaseComponent { diff --git a/src/components/Mind/index.js b/src/components/Mind/index.js index 4ab23d10..7d6c415c 100644 --- a/src/components/Mind/index.js +++ b/src/components/Mind/index.js @@ -5,7 +5,7 @@ import { EVENT_BEFORE_ADD_PAGE, EVENT_AFTER_ADD_PAGE, } from '@common/constants'; -import Page from '../Page'; +import Page from '@components/Page'; class Mind extends Page { get pageId() { diff --git a/src/components/Minimap/index.js b/src/components/Minimap/index.js index 22fe145d..8d9ff6cd 100644 --- a/src/components/Minimap/index.js +++ b/src/components/Minimap/index.js @@ -1,7 +1,7 @@ import React from 'react'; import Editor from '@antv/g6-editor'; import { MINIMAP_CONTAINER } from '@common/constants'; -import BaseComponent from '../Base'; +import BaseComponent from '@components/Base'; class Minimap extends BaseComponent { componentDidMount() { diff --git a/src/components/Page/index.js b/src/components/Page/index.js index d071b876..2a5bbe11 100644 --- a/src/components/Page/index.js +++ b/src/components/Page/index.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { pick, merge, upperFirst } from '@utils'; import { GRAPH_MOUSE_EVENTS, GRAPH_OTHER_EVENTS, PAGE_EVENTS } from '@common/constants'; -import BaseComponent from '../Base'; +import BaseComponent from '@components/Base'; class Page extends BaseComponent { static childContextTypes = { diff --git a/src/components/Register/index.js b/src/components/Register/index.js index d0f7576e..f3aa1f72 100644 --- a/src/components/Register/index.js +++ b/src/components/Register/index.js @@ -1,7 +1,7 @@ import Editor from '@antv/g6-editor'; import { upperFirst } from '@utils'; import { EVENT_BEFORE_ADD_PAGE } from '@common/constants'; -import BaseComponent from '../Base'; +import BaseComponent from '@components/Base'; class Register extends BaseComponent { static create = function (type) { diff --git a/src/components/Toolbar/index.js b/src/components/Toolbar/index.js index 73410c5a..262d6dce 100644 --- a/src/components/Toolbar/index.js +++ b/src/components/Toolbar/index.js @@ -2,7 +2,7 @@ import React from 'react'; import Editor from '@antv/g6-editor'; import { pick } from '@utils'; import { TOOLBAR_CONTAINER } from '@common/constants'; -import BaseComponent from '../Base'; +import BaseComponent from '@components/Base'; class Toolbar extends BaseComponent { toolbar = null;