Package of overFlow has been changed.
This commit is contained in:
parent
63b55c02ad
commit
87365ba7c8
|
@ -42,5 +42,8 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
plugins: [
|
||||
]
|
||||
],
|
||||
node: {
|
||||
fs: 'empty'
|
||||
}
|
||||
};
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
"@types/react-router-redux": "^5.0.3",
|
||||
"@types/react-tap-event-plugin": "^0.0.30",
|
||||
"@types/redux": "^3.6.0",
|
||||
"@types/redux-actions": "^1.2.6",
|
||||
"awesome-typescript-loader": "^3.1.3",
|
||||
"check-dependencies": "^1.0.1",
|
||||
"copy-webpack-plugin": "^4.0.1",
|
||||
|
@ -58,7 +57,7 @@
|
|||
"tslint": "^5.4.3",
|
||||
"tslint-loader": "^3.5.3",
|
||||
"tslint-react": "^3.0.0",
|
||||
"typescript": "^2.3.3",
|
||||
"typescript": "^2.4.1",
|
||||
"webpack": "^2.6.1",
|
||||
"webpack-dev-server": "^2.5.0",
|
||||
"webpack-merge": "^4.1.0",
|
||||
|
@ -79,7 +78,6 @@
|
|||
"react-router-redux": "next",
|
||||
"react-tap-event-plugin": "^2.0.1",
|
||||
"redux": "^3.7.1",
|
||||
"redux-actions": "^2.0.3",
|
||||
"redux-saga": "^0.15.4",
|
||||
"reselect": "^3.0.1"
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
import Domain from 'domain/api/model/Domain';
|
||||
import Domain from '@overflow/domain/api/model/Domain';
|
||||
|
||||
export interface ApiKey {
|
||||
id?: number;
|
||||
|
@ -8,5 +8,4 @@ export interface ApiKey {
|
|||
domain: Domain;
|
||||
}
|
||||
|
||||
|
||||
export default ApiKey;
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import ApiKey from '../model/ApiKey';
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import Action from 'commons/redux/Action';
|
||||
import ApiKey from 'apikey/api/model/ApiKey';
|
||||
import Action from '@overflow/commons/redux/Action';
|
||||
import ApiKey from '@overflow/apikey/api/model/ApiKey';
|
||||
|
||||
import RegistPayload from '../payload/RegistPayload';
|
||||
|
|
@ -1,30 +1,22 @@
|
|||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import createSagaMiddleware, { SagaMiddleware } from 'redux-saga';
|
||||
import { fork } from 'redux-saga/effects';
|
||||
import { createHashHistory } from 'history';
|
||||
|
||||
|
||||
import { Provider } from 'react-redux';
|
||||
import { ConnectedRouter } from 'react-router-redux';
|
||||
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
|
||||
import * as injectTapEventPlugin from 'react-tap-event-plugin';
|
||||
|
||||
import Platform from 'commons/platform';
|
||||
import Platform from '@overflow/commons/platform';
|
||||
import { store, sagaMiddleware, history } from './redux/store';
|
||||
|
||||
import configureStore from 'config/configureStore';
|
||||
import { sagas } from 'config/configureRedux';
|
||||
import muiTheme from 'config/configureMuiTheme';
|
||||
import sagas from './redux/saga';
|
||||
import muiTheme from './theme/mui';
|
||||
|
||||
|
||||
import App from 'app/views/container/component/App';
|
||||
import App from './views/App';
|
||||
|
||||
injectTapEventPlugin();
|
||||
|
||||
const sagaMiddleware: SagaMiddleware<any> = createSagaMiddleware();
|
||||
|
||||
const history = createHashHistory();
|
||||
const store = configureStore(history, sagaMiddleware);
|
||||
|
||||
function* app(): any {
|
||||
const appContainer: HTMLElement = yield Platform.getAppContainer('react-placeholder');
|
14
src/ts/@overflow/app/redux/reducer/index.ts
Normal file
14
src/ts/@overflow/app/redux/reducer/index.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { Action, combineReducers } from 'redux';
|
||||
import State from '../state';
|
||||
|
||||
import { reducer as signinReducer} from '@overflow/member/redux/reducer/signin';
|
||||
import { reducer as signoutReducer} from '@overflow/member/redux/reducer/signout';
|
||||
import { reducer as signupReducer} from '@overflow/member/redux/reducer/signup';
|
||||
|
||||
const reducer = combineReducers<State>({
|
||||
signinReducer,
|
||||
signoutReducer,
|
||||
signupReducer,
|
||||
});
|
||||
|
||||
export default reducer;
|
8
src/ts/@overflow/app/redux/saga/index.ts
Normal file
8
src/ts/@overflow/app/redux/saga/index.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { SagaIterator } from 'redux-saga';
|
||||
import { fork } from 'redux-saga/effects';
|
||||
|
||||
import { watchSignin as memberWatchSignin } from '@overflow/member/redux/saga/signin';
|
||||
|
||||
export default function* sagas(): SagaIterator {
|
||||
yield fork(memberWatchSignin);
|
||||
}
|
5
src/ts/@overflow/app/redux/state/index.ts
Normal file
5
src/ts/@overflow/app/redux/state/index.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
interface State {
|
||||
|
||||
}
|
||||
|
||||
export default State;
|
23
src/ts/@overflow/app/redux/store.ts
Normal file
23
src/ts/@overflow/app/redux/store.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { applyMiddleware, compose, createStore, Store } from 'redux';
|
||||
import { routerMiddleware } from 'react-router-redux';
|
||||
import createSagaMiddleware, { SagaMiddleware } from 'redux-saga';
|
||||
import { History } from 'history';
|
||||
import { createHashHistory } from 'history';
|
||||
|
||||
import reducer from './reducer';
|
||||
import State from './state';
|
||||
|
||||
const history = createHashHistory();
|
||||
const sagaMiddleware: SagaMiddleware<any> = createSagaMiddleware();
|
||||
const middlewares = [sagaMiddleware, routerMiddleware(history)];
|
||||
|
||||
const store: Store<State> = createStore<State>(
|
||||
reducer,
|
||||
applyMiddleware(...middlewares),
|
||||
);
|
||||
|
||||
export {
|
||||
history,
|
||||
sagaMiddleware,
|
||||
store,
|
||||
};
|
25
src/ts/@overflow/app/theme/mui.ts
Normal file
25
src/ts/@overflow/app/theme/mui.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { colors, getMuiTheme, MuiTheme, spacing } from 'material-ui/styles';
|
||||
import { fade } from 'material-ui/utils/colorManipulator';
|
||||
|
||||
const muiTheme:MuiTheme = getMuiTheme({
|
||||
spacing: spacing,
|
||||
fontFamily: 'Roboto, sans-serif',
|
||||
palette: {
|
||||
primary1Color: colors.cyan500,
|
||||
primary2Color: colors.cyan700,
|
||||
primary3Color: colors.grey400,
|
||||
accent1Color: colors.pinkA200,
|
||||
accent2Color: colors.grey100,
|
||||
accent3Color: colors.grey500,
|
||||
textColor: colors.darkBlack,
|
||||
alternateTextColor: colors.white,
|
||||
canvasColor: colors.white,
|
||||
borderColor: colors.grey300,
|
||||
disabledColor: fade(colors.darkBlack, 0.3),
|
||||
pickerHeaderColor: colors.cyan500,
|
||||
clockCircleColor: fade(colors.darkBlack, 0.07),
|
||||
shadowColor: colors.fullBlack,
|
||||
},
|
||||
});
|
||||
|
||||
export default muiTheme;
|
|
@ -3,8 +3,6 @@ import * as ReactDOM from 'react-dom';
|
|||
import { Route } from 'react-router-dom';
|
||||
import { RouteComponentProps, Switch } from 'react-router';
|
||||
|
||||
import Signin from 'member/signin/views/Signin';
|
||||
|
||||
export interface Props {
|
||||
|
||||
}
|
||||
|
@ -21,11 +19,9 @@ export default class App extends React.Component<Props, State> {
|
|||
public render(): JSX.Element {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Switch>
|
||||
<Route exact path='/' component={Signin} />
|
||||
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
14
src/ts/@overflow/app/views/member/Signin.tsx
Normal file
14
src/ts/@overflow/app/views/member/Signin.tsx
Normal file
|
@ -0,0 +1,14 @@
|
|||
import * as React from 'react';
|
||||
import { RouteComponentProps } from 'react-router';
|
||||
import SigninContainer from '@overflow/member/react/Signin';
|
||||
|
||||
class Signin extends React.Component<RouteComponentProps<object>, object> {
|
||||
public render(): JSX.Element {
|
||||
return (
|
||||
<SigninContainer/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export default Signin;
|
|
@ -5,6 +5,6 @@
|
|||
// TLS = 3,
|
||||
// }
|
||||
|
||||
type PortType = "TCP" | "UDP" | "TLS";
|
||||
type PortType = 'TCP' | 'UDP' | 'TLS';
|
||||
|
||||
export default PortType;
|
|
@ -1,4 +1,4 @@
|
|||
import Member from 'member/api/model/Member';
|
||||
import Member from '@overflow/member/api/model/Member';
|
||||
import Domain from './Domain';
|
||||
|
||||
interface DomainMember {
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import DomainMember from '../model/DomainMember';
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import Domain from '../model/Domain';
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import Member from 'member/api/model/Member';
|
||||
import Member from '@overflow/member/api/model/Member';
|
||||
|
||||
interface EmailAuth {
|
||||
id: number;
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import EmailAuth from '../model/EmailAuth';
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
import MetaInfraType from 'meta/api/model/MetaInfraType';
|
||||
import MetaInfraType from '@overflow/meta/api/model/MetaInfraType';
|
||||
|
||||
interface Infra {
|
||||
id: number;
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
import Probe from 'probe/api/model/Probe';
|
||||
import Probe from '@overflow/probe/api/model/Probe';
|
||||
|
||||
interface InfraMachine {
|
||||
id: number;
|
|
@ -1,4 +1,5 @@
|
|||
import InfraMachine from './InfraMachine';
|
||||
import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
||||
|
||||
|
||||
interface InfraOS {
|
|
@ -1,5 +1,5 @@
|
|||
import InfraOS from './InfraOS';
|
||||
import MetaInfraVendor from 'meta/api/model/MetaInfraVendor';
|
||||
import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
||||
|
||||
interface InfraOSPort {
|
||||
id: number;
|
|
@ -1,5 +1,5 @@
|
|||
import InfraHost from './InfraHost';
|
||||
import MetaInfraVendor from 'meta/api/model/MetaInfraVendor';
|
||||
import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
||||
|
||||
interface InfraService {
|
||||
id: number;
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraHost from '../model/InfraHost';
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraMachine from '../model/InfraMachine';
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraOSApplication from '../model/InfraOSApplication';
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraOSDaemon from '../model/InfraOSDaemon';
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraOSPort from '../model/InfraOSPort';
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import Service from 'commons/api/Service';
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraOS from '../model/InfraOS';
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user