Package of overFlow has been changed.

This commit is contained in:
crusader 2017-07-03 19:21:42 +09:00
parent 63b55c02ad
commit 87365ba7c8
370 changed files with 195 additions and 113 deletions

View File

@ -42,5 +42,8 @@ module.exports = {
] ]
}, },
plugins: [ plugins: [
] ],
node: {
fs: 'empty'
}
}; };

View File

@ -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"
}, },

View File

@ -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;

View File

@ -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';

View File

@ -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';

View File

@ -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');

View 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;

View 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);
}

View File

@ -0,0 +1,5 @@
interface State {
}
export default State;

View 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,
};

View 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;

View File

@ -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>
); );
} }
} }

View 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;

View File

@ -11,4 +11,4 @@ interface Host {
ports?: Port[]; ports?: Port[];
} }
export default Host; export default Host;

View File

@ -12,4 +12,4 @@ interface Port {
updateDate: Date; updateDate: Date;
} }
export default Port; export default Port;

View File

@ -5,6 +5,6 @@
// TLS = 3, // TLS = 3,
// } // }
type PortType = "TCP" | "UDP" | "TLS"; type PortType = 'TCP' | 'UDP' | 'TLS';
export default PortType; export default PortType;

View File

@ -11,4 +11,4 @@ interface Service {
target: boolean; target: boolean;
} }
export default Service; export default Service;

View File

@ -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 {

View File

@ -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';

View File

@ -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';

View File

@ -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;

View File

@ -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';

View File

@ -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;

View File

@ -8,4 +8,4 @@ interface InfraHost {
createDate: Date; createDate: Date;
} }
export default InfraHost; export default InfraHost;

View File

@ -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;

View File

@ -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;

View File

@ -9,4 +9,4 @@ interface InfraOSApplication {
} }
export default InfraOSApplication; export default InfraOSApplication;

View File

@ -7,4 +7,4 @@ interface InfraOSDaemon {
createDate: Date; createDate: Date;
} }
export default InfraOSDaemon; export default InfraOSDaemon;

View File

@ -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;

View File

@ -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;

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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