Move message stuff into own folder
This commit is contained in:
parent
7878545ee7
commit
b8c6fb6380
|
|
@ -13,7 +13,7 @@ import * as config from './config';
|
||||||
import Applications from './application/Applications';
|
import Applications from './application/Applications';
|
||||||
import Clients from './client/Clients';
|
import Clients from './client/Clients';
|
||||||
import Login from './pages/Login';
|
import Login from './pages/Login';
|
||||||
import Messages from './pages/Messages';
|
import Messages from './message/Messages';
|
||||||
import Users from './pages/Users';
|
import Users from './pages/Users';
|
||||||
import {observer} from 'mobx-react';
|
import {observer} from 'mobx-react';
|
||||||
import {observable} from 'mobx';
|
import {observable} from 'mobx';
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ import * as Notifications from './stores/Notifications';
|
||||||
import {CurrentUser} from './stores/CurrentUser';
|
import {CurrentUser} from './stores/CurrentUser';
|
||||||
import {AppStore} from './application/AppStore';
|
import {AppStore} from './application/AppStore';
|
||||||
import {reaction} from 'mobx';
|
import {reaction} from 'mobx';
|
||||||
import {WebSocketStore} from './stores/WebSocketStore';
|
import {WebSocketStore} from './message/WebSocketStore';
|
||||||
import {SnackManager} from './snack/SnackManager';
|
import {SnackManager} from './snack/SnackManager';
|
||||||
import {InjectProvider, StoreMapping} from './inject';
|
import {InjectProvider, StoreMapping} from './inject';
|
||||||
import {UserStore} from './stores/UserStore';
|
import {UserStore} from './stores/UserStore';
|
||||||
import {MessagesStore} from './stores/MessagesStore';
|
import {MessagesStore} from './message/MessagesStore';
|
||||||
import {ClientStore} from './client/ClientStore';
|
import {ClientStore} from './client/ClientStore';
|
||||||
|
|
||||||
const defaultDevConfig = {
|
const defaultDevConfig = {
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {UserStore} from './stores/UserStore';
|
import {UserStore} from './stores/UserStore';
|
||||||
import {SnackManager} from './snack/SnackManager';
|
import {SnackManager} from './snack/SnackManager';
|
||||||
import {MessagesStore} from './stores/MessagesStore';
|
import {MessagesStore} from './message/MessagesStore';
|
||||||
import {CurrentUser} from './stores/CurrentUser';
|
import {CurrentUser} from './stores/CurrentUser';
|
||||||
import {ClientStore} from './client/ClientStore';
|
import {ClientStore} from './client/ClientStore';
|
||||||
import {AppStore} from './application/AppStore';
|
import {AppStore} from './application/AppStore';
|
||||||
import {inject as mobxInject, Provider} from 'mobx-react';
|
import {inject as mobxInject, Provider} from 'mobx-react';
|
||||||
import {WebSocketStore} from './stores/WebSocketStore';
|
import {WebSocketStore} from './message/WebSocketStore';
|
||||||
|
|
||||||
export interface StoreMapping {
|
export interface StoreMapping {
|
||||||
userStore: UserStore;
|
userStore: UserStore;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import Typography from '@material-ui/core/Typography';
|
||||||
import Delete from '@material-ui/icons/Delete';
|
import Delete from '@material-ui/icons/Delete';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import TimeAgo from 'react-timeago';
|
import TimeAgo from 'react-timeago';
|
||||||
import Container from './Container';
|
import Container from '../component/Container';
|
||||||
|
|
||||||
const styles = () => ({
|
const styles = () => ({
|
||||||
header: {
|
header: {
|
||||||
|
|
@ -4,7 +4,7 @@ import Typography from '@material-ui/core/Typography';
|
||||||
import React, {Component} from 'react';
|
import React, {Component} from 'react';
|
||||||
import {RouteComponentProps} from 'react-router';
|
import {RouteComponentProps} from 'react-router';
|
||||||
import DefaultPage from '../component/DefaultPage';
|
import DefaultPage from '../component/DefaultPage';
|
||||||
import Message from '../component/Message';
|
import Message from './Message';
|
||||||
import {observer} from 'mobx-react';
|
import {observer} from 'mobx-react';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import InfiniteAnyHeight from 'react-infinite-any-height';
|
import InfiniteAnyHeight from 'react-infinite-any-height';
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {BaseStore} from './BaseStore';
|
import {BaseStore} from '../stores/BaseStore';
|
||||||
import {action, IObservableArray, observable, reaction} from 'mobx';
|
import {action, IObservableArray, observable, reaction} from 'mobx';
|
||||||
import axios, {AxiosResponse} from 'axios';
|
import axios, {AxiosResponse} from 'axios';
|
||||||
import * as config from '../config';
|
import * as config from '../config';
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {SnackReporter} from '../snack/SnackManager';
|
import {SnackReporter} from '../snack/SnackManager';
|
||||||
import {CurrentUser} from './CurrentUser';
|
import {CurrentUser} from '../stores/CurrentUser';
|
||||||
import * as config from '../config';
|
import * as config from '../config';
|
||||||
import {MessagesStore} from './MessagesStore';
|
import {MessagesStore} from './MessagesStore';
|
||||||
|
|
||||||
Loading…
Reference in New Issue