Merge pull request #1149 from metamaps/feature/reorg.react
reorg code to distinguish between route components and normal ones
This commit is contained in:
commit
44fec58985
37 changed files with 30 additions and 30 deletions
|
@ -4,7 +4,7 @@ import React from 'react'
|
||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom'
|
||||||
import outdent from 'outdent'
|
import outdent from 'outdent'
|
||||||
|
|
||||||
import ImportDialogBox from '../../components/MapView/ImportDialogBox'
|
import ImportDialogBox from '../../routes/MapView/ImportDialogBox'
|
||||||
|
|
||||||
import PasteInput from '../PasteInput'
|
import PasteInput from '../PasteInput'
|
||||||
import Map from '../Map'
|
import Map from '../Map'
|
||||||
|
|
|
@ -18,7 +18,7 @@ import Realtime from '../Realtime'
|
||||||
import Map, { InfoBox } from '../Map'
|
import Map, { InfoBox } from '../Map'
|
||||||
import Topic from '../Topic'
|
import Topic from '../Topic'
|
||||||
import Visualize from '../Visualize'
|
import Visualize from '../Visualize'
|
||||||
import makeRoutes from '../../components/makeRoutes'
|
import makeRoutes from '../../routes/makeRoutes'
|
||||||
let routes
|
let routes
|
||||||
|
|
||||||
// 220 wide + 16 padding on both sides
|
// 220 wide + 16 padding on both sides
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import MetacodeSelect from '../MetacodeSelect'
|
import MetacodeSelect from './MetacodeSelect'
|
||||||
|
|
||||||
class ContextMenu extends Component {
|
class ContextMenu extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import MapInfoBox from '../MapView/MapInfoBox'
|
import MapInfoBox from '../routes/MapView/MapInfoBox'
|
||||||
|
|
||||||
class InfoAndHelp extends Component {
|
class InfoAndHelp extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
|
@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import { Link } from 'react-router'
|
import { Link } from 'react-router'
|
||||||
|
|
||||||
import Sprite from '../common/Sprite'
|
import Sprite from './Sprite'
|
||||||
|
|
||||||
class MobileHeader extends Component {
|
class MobileHeader extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
|
@ -2,8 +2,8 @@ import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import onClickOutsideAddon from 'react-onclickoutside'
|
import onClickOutsideAddon from 'react-onclickoutside'
|
||||||
import Notification from '../Notification'
|
import Notification from './Notification'
|
||||||
import Loading from '../Loading'
|
import Loading from './Loading'
|
||||||
|
|
||||||
class NotificationBox extends Component {
|
class NotificationBox extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import FilterBox from '../common/FilterBox'
|
import FilterBox from './FilterBox'
|
||||||
|
|
||||||
export default class UpperOptions extends Component {
|
export default class UpperOptions extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
|
@ -1,10 +1,10 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import MobileHeader from './MobileHeader'
|
import MobileHeader from '../components/MobileHeader'
|
||||||
import UpperLeftUI from './UpperLeftUI'
|
import UpperLeftUI from '../components/UpperLeftUI'
|
||||||
import UpperRightUI from './UpperRightUI'
|
import UpperRightUI from '../components/UpperRightUI'
|
||||||
import Toast from './Toast'
|
import Toast from '../components/Toast'
|
||||||
|
|
||||||
class App extends Component {
|
class App extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import NavBar from '../App/Navbar'
|
import NavBar from '../components/Navbar'
|
||||||
import NavBarLink from '../App/NavBarLink'
|
import NavBarLink from '../components/NavBarLink'
|
||||||
|
|
||||||
class Apps extends Component {
|
class Apps extends Component {
|
||||||
render = () => {
|
render = () => {
|
|
@ -1,14 +1,14 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import ContextMenu from '../common/ContextMenu'
|
import ContextMenu from '../../components/ContextMenu'
|
||||||
import DataVis from '../common/DataVis'
|
import DataVis from '../../components/DataVis'
|
||||||
import UpperOptions from '../common/UpperOptions'
|
import UpperOptions from '../../components/UpperOptions'
|
||||||
import InfoAndHelp from '../common/InfoAndHelp'
|
import InfoAndHelp from '../../components/InfoAndHelp'
|
||||||
import Instructions from './Instructions'
|
import Instructions from './Instructions'
|
||||||
import VisualizationControls from '../common/VisualizationControls'
|
import VisualizationControls from '../../components/VisualizationControls'
|
||||||
import MapChat from './MapChat'
|
import MapChat from './MapChat'
|
||||||
import TopicCard from '../TopicCard'
|
import TopicCard from '../../components/TopicCard'
|
||||||
|
|
||||||
export default class MapView extends Component {
|
export default class MapView extends Component {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import NavBar from '../App/Navbar'
|
import NavBar from '../../components/Navbar'
|
||||||
import NavBarLink from '../App/NavBarLink'
|
import NavBarLink from '../../components/NavBarLink'
|
||||||
|
|
||||||
class Header extends Component {
|
class Header extends Component {
|
||||||
render = () => {
|
render = () => {
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import NavBar from '../App/Navbar'
|
import NavBar from '../components/Navbar'
|
||||||
import NavBarLink from '../App/NavBarLink'
|
import NavBarLink from '../components/NavBarLink'
|
||||||
|
|
||||||
class Notifications extends Component {
|
class Notifications extends Component {
|
||||||
render = () => {
|
render = () => {
|
|
@ -1,12 +1,12 @@
|
||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import ContextMenu from '../common/ContextMenu'
|
import ContextMenu from '../components/ContextMenu'
|
||||||
import DataVis from '../common/DataVis'
|
import DataVis from '../components/DataVis'
|
||||||
import UpperOptions from '../common/UpperOptions'
|
import UpperOptions from '../components/UpperOptions'
|
||||||
import InfoAndHelp from '../common/InfoAndHelp'
|
import InfoAndHelp from '../components/InfoAndHelp'
|
||||||
import VisualizationControls from '../common/VisualizationControls'
|
import VisualizationControls from '../components/VisualizationControls'
|
||||||
import TopicCard from '../TopicCard'
|
import TopicCard from '../components/TopicCard'
|
||||||
|
|
||||||
export default class TopicView extends Component {
|
export default class TopicView extends Component {
|
||||||
|
|
Loading…
Reference in a new issue