Package of overFlow has been changed.
This commit is contained in:
parent
63b55c02ad
commit
87365ba7c8
|
@ -42,5 +42,8 @@ module.exports = {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
]
|
],
|
||||||
|
node: {
|
||||||
|
fs: 'empty'
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
"@types/react-router-redux": "^5.0.3",
|
"@types/react-router-redux": "^5.0.3",
|
||||||
"@types/react-tap-event-plugin": "^0.0.30",
|
"@types/react-tap-event-plugin": "^0.0.30",
|
||||||
"@types/redux": "^3.6.0",
|
"@types/redux": "^3.6.0",
|
||||||
"@types/redux-actions": "^1.2.6",
|
|
||||||
"awesome-typescript-loader": "^3.1.3",
|
"awesome-typescript-loader": "^3.1.3",
|
||||||
"check-dependencies": "^1.0.1",
|
"check-dependencies": "^1.0.1",
|
||||||
"copy-webpack-plugin": "^4.0.1",
|
"copy-webpack-plugin": "^4.0.1",
|
||||||
|
@ -58,7 +57,7 @@
|
||||||
"tslint": "^5.4.3",
|
"tslint": "^5.4.3",
|
||||||
"tslint-loader": "^3.5.3",
|
"tslint-loader": "^3.5.3",
|
||||||
"tslint-react": "^3.0.0",
|
"tslint-react": "^3.0.0",
|
||||||
"typescript": "^2.3.3",
|
"typescript": "^2.4.1",
|
||||||
"webpack": "^2.6.1",
|
"webpack": "^2.6.1",
|
||||||
"webpack-dev-server": "^2.5.0",
|
"webpack-dev-server": "^2.5.0",
|
||||||
"webpack-merge": "^4.1.0",
|
"webpack-merge": "^4.1.0",
|
||||||
|
@ -79,7 +78,6 @@
|
||||||
"react-router-redux": "next",
|
"react-router-redux": "next",
|
||||||
"react-tap-event-plugin": "^2.0.1",
|
"react-tap-event-plugin": "^2.0.1",
|
||||||
"redux": "^3.7.1",
|
"redux": "^3.7.1",
|
||||||
"redux-actions": "^2.0.3",
|
|
||||||
"redux-saga": "^0.15.4",
|
"redux-saga": "^0.15.4",
|
||||||
"reselect": "^3.0.1"
|
"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 {
|
export interface ApiKey {
|
||||||
id?: number;
|
id?: number;
|
||||||
|
@ -8,5 +8,4 @@ export interface ApiKey {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default ApiKey;
|
||||||
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';
|
import ApiKey from '../model/ApiKey';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import Action from 'commons/redux/Action';
|
import Action from '@overflow/commons/redux/Action';
|
||||||
import ApiKey from 'apikey/api/model/ApiKey';
|
import ApiKey from '@overflow/apikey/api/model/ApiKey';
|
||||||
|
|
||||||
import RegistPayload from '../payload/RegistPayload';
|
import RegistPayload from '../payload/RegistPayload';
|
||||||
|
|
|
@ -1,30 +1,22 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import * as ReactDOM from 'react-dom';
|
import * as ReactDOM from 'react-dom';
|
||||||
import createSagaMiddleware, { SagaMiddleware } from 'redux-saga';
|
|
||||||
import { fork } from 'redux-saga/effects';
|
import { fork } from 'redux-saga/effects';
|
||||||
import { createHashHistory } from 'history';
|
|
||||||
|
|
||||||
|
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import { ConnectedRouter } from 'react-router-redux';
|
import { ConnectedRouter } from 'react-router-redux';
|
||||||
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
|
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
|
||||||
import * as injectTapEventPlugin from 'react-tap-event-plugin';
|
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 './redux/saga';
|
||||||
import { sagas } from 'config/configureRedux';
|
import muiTheme from './theme/mui';
|
||||||
import muiTheme from 'config/configureMuiTheme';
|
|
||||||
|
|
||||||
|
import App from './views/App';
|
||||||
import App from 'app/views/container/component/App';
|
|
||||||
|
|
||||||
injectTapEventPlugin();
|
injectTapEventPlugin();
|
||||||
|
|
||||||
const sagaMiddleware: SagaMiddleware<any> = createSagaMiddleware();
|
|
||||||
|
|
||||||
const history = createHashHistory();
|
|
||||||
const store = configureStore(history, sagaMiddleware);
|
|
||||||
|
|
||||||
function* app(): any {
|
function* app(): any {
|
||||||
const appContainer: HTMLElement = yield Platform.getAppContainer('react-placeholder');
|
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 { Route } from 'react-router-dom';
|
||||||
import { RouteComponentProps, Switch } from 'react-router';
|
import { RouteComponentProps, Switch } from 'react-router';
|
||||||
|
|
||||||
import Signin from 'member/signin/views/Signin';
|
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,11 +19,9 @@ export default class App extends React.Component<Props, State> {
|
||||||
public render(): JSX.Element {
|
public render(): JSX.Element {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Switch>
|
||||||
<Switch>
|
|
||||||
<Route exact path='/' component={Signin} />
|
</Switch>
|
||||||
</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;
|
|
@ -11,4 +11,4 @@ interface Host {
|
||||||
ports?: Port[];
|
ports?: Port[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Host;
|
export default Host;
|
|
@ -12,4 +12,4 @@ interface Port {
|
||||||
updateDate: Date;
|
updateDate: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Port;
|
export default Port;
|
|
@ -5,6 +5,6 @@
|
||||||
// TLS = 3,
|
// TLS = 3,
|
||||||
// }
|
// }
|
||||||
|
|
||||||
type PortType = "TCP" | "UDP" | "TLS";
|
type PortType = 'TCP' | 'UDP' | 'TLS';
|
||||||
|
|
||||||
export default PortType;
|
export default PortType;
|
|
@ -11,4 +11,4 @@ interface Service {
|
||||||
target: boolean;
|
target: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Service;
|
export default Service;
|
|
@ -1,4 +1,4 @@
|
||||||
import Member from 'member/api/model/Member';
|
import Member from '@overflow/member/api/model/Member';
|
||||||
import Domain from './Domain';
|
import Domain from './Domain';
|
||||||
|
|
||||||
interface DomainMember {
|
interface DomainMember {
|
|
@ -1,4 +1,4 @@
|
||||||
import Service from 'commons/api/Service';
|
import Service from '@overflow/commons/api/Service';
|
||||||
import DomainMember from '../model/DomainMember';
|
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';
|
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 {
|
interface EmailAuth {
|
||||||
id: number;
|
id: number;
|
|
@ -1,4 +1,4 @@
|
||||||
import Service from 'commons/api/Service';
|
import Service from '@overflow/commons/api/Service';
|
||||||
import EmailAuth from '../model/EmailAuth';
|
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 {
|
interface Infra {
|
||||||
id: number;
|
id: number;
|
||||||
|
@ -8,4 +8,4 @@ interface Infra {
|
||||||
createDate: Date;
|
createDate: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Infra;
|
export default Infra;
|
|
@ -8,4 +8,4 @@ interface InfraHost {
|
||||||
createDate: Date;
|
createDate: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default InfraHost;
|
export default InfraHost;
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
import Probe from 'probe/api/model/Probe';
|
import Probe from '@overflow/probe/api/model/Probe';
|
||||||
|
|
||||||
interface InfraMachine {
|
interface InfraMachine {
|
||||||
id: number;
|
id: number;
|
||||||
|
@ -8,4 +8,4 @@ interface InfraMachine {
|
||||||
createDate: Date;
|
createDate: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default InfraMachine;
|
export default InfraMachine;
|
|
@ -1,4 +1,5 @@
|
||||||
import InfraMachine from './InfraMachine';
|
import InfraMachine from './InfraMachine';
|
||||||
|
import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
||||||
|
|
||||||
|
|
||||||
interface InfraOS {
|
interface InfraOS {
|
||||||
|
@ -9,4 +10,4 @@ interface InfraOS {
|
||||||
vendor: MetaInfraVendor;
|
vendor: MetaInfraVendor;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default InfraOS;
|
export default InfraOS;
|
|
@ -9,4 +9,4 @@ interface InfraOSApplication {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default InfraOSApplication;
|
export default InfraOSApplication;
|
|
@ -7,4 +7,4 @@ interface InfraOSDaemon {
|
||||||
createDate: Date;
|
createDate: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default InfraOSDaemon;
|
export default InfraOSDaemon;
|
|
@ -1,5 +1,5 @@
|
||||||
import InfraOS from './InfraOS';
|
import InfraOS from './InfraOS';
|
||||||
import MetaInfraVendor from 'meta/api/model/MetaInfraVendor';
|
import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
||||||
|
|
||||||
interface InfraOSPort {
|
interface InfraOSPort {
|
||||||
id: number;
|
id: number;
|
||||||
|
@ -11,4 +11,4 @@ interface InfraOSPort {
|
||||||
tlsType: boolean;
|
tlsType: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default InfraOSPort;
|
export default InfraOSPort;
|
|
@ -1,5 +1,5 @@
|
||||||
import InfraHost from './InfraHost';
|
import InfraHost from './InfraHost';
|
||||||
import MetaInfraVendor from 'meta/api/model/MetaInfraVendor';
|
import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
||||||
|
|
||||||
interface InfraService {
|
interface InfraService {
|
||||||
id: number;
|
id: number;
|
||||||
|
@ -11,4 +11,4 @@ interface InfraService {
|
||||||
tlsType: boolean;
|
tlsType: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default InfraService;
|
export default InfraService;
|
|
@ -1,4 +1,4 @@
|
||||||
import Service from 'commons/api/Service';
|
import Service from '@overflow/commons/api/Service';
|
||||||
import InfraHost from '../model/InfraHost';
|
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';
|
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';
|
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';
|
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';
|
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';
|
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