Package of overFlow has been changed.
This commit is contained in:
11
src/ts/@overflow/apikey/api/model/ApiKey.ts
Normal file
11
src/ts/@overflow/apikey/api/model/ApiKey.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
import Domain from '@overflow/domain/api/model/Domain';
|
||||
|
||||
export interface ApiKey {
|
||||
id?: number;
|
||||
apiKey: string;
|
||||
createDate?: Date;
|
||||
domain: Domain;
|
||||
}
|
||||
|
||||
export default ApiKey;
|
||||
18
src/ts/@overflow/apikey/api/service/ApiKeyService.ts
Normal file
18
src/ts/@overflow/apikey/api/service/ApiKeyService.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import ApiKey from '../model/ApiKey';
|
||||
|
||||
|
||||
class ApiKeyService extends Service {
|
||||
public constructor() {
|
||||
super('ApiKeyService');
|
||||
}
|
||||
|
||||
public regist(apikey: ApiKey): void {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default ApiKeyService;
|
||||
0
src/ts/@overflow/apikey/index.ts
Normal file
0
src/ts/@overflow/apikey/index.ts
Normal file
0
src/ts/@overflow/apikey/react/Regist.tsx
Normal file
0
src/ts/@overflow/apikey/react/Regist.tsx
Normal file
0
src/ts/@overflow/apikey/react/components/Regist.tsx
Normal file
0
src/ts/@overflow/apikey/react/components/Regist.tsx
Normal file
18
src/ts/@overflow/apikey/redux/action/regist.ts
Normal file
18
src/ts/@overflow/apikey/redux/action/regist.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import Action from '@overflow/commons/redux/Action';
|
||||
import ApiKey from '@overflow/apikey/api/model/ApiKey';
|
||||
|
||||
import RegistPayload from '../payload/RegistPayload';
|
||||
|
||||
// Action Type
|
||||
export type REQUEST = '@overflow/apikey/regist/REQUEST';
|
||||
export type REQUEST_SUCCESS = '@overflow/apikey/regist/REQUEST_SUCCESS';
|
||||
export type REQUEST_FAILURE = '@overflow/apikey/regist/REQUEST_FAILURE';
|
||||
|
||||
export const REQUEST: REQUEST = '@overflow/apikey/regist/REQUEST';
|
||||
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/apikey/regist/REQUEST_SUCCESS';
|
||||
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/apikey/regist/REQUEST_FAILURE';
|
||||
|
||||
// Action Creater
|
||||
export type request = () => Action<RegistPayload>;
|
||||
export type requestSuccess = (apiKey: ApiKey) => Action<ApiKey>;
|
||||
export type requestFailure = (error: Error) => Action;
|
||||
6
src/ts/@overflow/apikey/redux/payload/RegistPayload.ts
Normal file
6
src/ts/@overflow/apikey/redux/payload/RegistPayload.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
interface RegistPayload {
|
||||
signinId: string;
|
||||
signinPw: string;
|
||||
}
|
||||
|
||||
export default RegistPayload;
|
||||
0
src/ts/@overflow/apikey/redux/reducer/regist.ts
Normal file
0
src/ts/@overflow/apikey/redux/reducer/regist.ts
Normal file
0
src/ts/@overflow/apikey/redux/saga/regist.ts
Normal file
0
src/ts/@overflow/apikey/redux/saga/regist.ts
Normal file
0
src/ts/@overflow/apikey/redux/selector/index.ts
Normal file
0
src/ts/@overflow/apikey/redux/selector/index.ts
Normal file
0
src/ts/@overflow/apikey/redux/state/Regist.ts
Normal file
0
src/ts/@overflow/apikey/redux/state/Regist.ts
Normal file
0
src/ts/@overflow/app/api/service.ts
Normal file
0
src/ts/@overflow/app/api/service.ts
Normal file
54
src/ts/@overflow/app/index.tsx
Normal file
54
src/ts/@overflow/app/index.tsx
Normal file
@@ -0,0 +1,54 @@
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import { fork } from 'redux-saga/effects';
|
||||
|
||||
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 '@overflow/commons/platform';
|
||||
import { store, sagaMiddleware, history } from './redux/store';
|
||||
|
||||
import sagas from './redux/saga';
|
||||
import muiTheme from './theme/mui';
|
||||
|
||||
import App from './views/App';
|
||||
|
||||
injectTapEventPlugin();
|
||||
|
||||
|
||||
function* app(): any {
|
||||
const appContainer: HTMLElement = yield Platform.getAppContainer('react-placeholder');
|
||||
|
||||
|
||||
|
||||
ReactDOM.render(
|
||||
<div style={{
|
||||
width: '100vw',
|
||||
height: '100vh',
|
||||
backgroundColor: 'white',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
}}>
|
||||
<h1>Loading...</h1>
|
||||
</div>,
|
||||
appContainer,
|
||||
);
|
||||
|
||||
sagaMiddleware.run(sagas);
|
||||
|
||||
ReactDOM.render(
|
||||
<Provider store={store}>
|
||||
<ConnectedRouter history={history}>
|
||||
<MuiThemeProvider muiTheme={muiTheme}>
|
||||
<App/>
|
||||
</MuiThemeProvider>
|
||||
</ConnectedRouter>
|
||||
</Provider>,
|
||||
appContainer,
|
||||
);
|
||||
}
|
||||
|
||||
sagaMiddleware.run(app);
|
||||
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,
|
||||
};
|
||||
0
src/ts/@overflow/app/router/index.tsx
Normal file
0
src/ts/@overflow/app/router/index.tsx
Normal file
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;
|
||||
27
src/ts/@overflow/app/views/App.tsx
Normal file
27
src/ts/@overflow/app/views/App.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import { Route } from 'react-router-dom';
|
||||
import { RouteComponentProps, Switch } from 'react-router';
|
||||
|
||||
export interface Props {
|
||||
|
||||
}
|
||||
|
||||
export interface State {
|
||||
|
||||
}
|
||||
|
||||
export default class App extends React.Component<Props, State> {
|
||||
public constructor(props: Props, context: State) {
|
||||
super(props, context);
|
||||
}
|
||||
|
||||
public render(): JSX.Element {
|
||||
|
||||
return (
|
||||
<Switch>
|
||||
|
||||
</Switch>
|
||||
);
|
||||
}
|
||||
}
|
||||
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;
|
||||
13
src/ts/@overflow/commons/api/Client.ts
Normal file
13
src/ts/@overflow/commons/api/Client.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
class Client {
|
||||
private wss: WebSocket;
|
||||
|
||||
|
||||
}
|
||||
|
||||
export interface Protocol {
|
||||
serviceName: string;
|
||||
methodName: string;
|
||||
params?: string[];
|
||||
}
|
||||
|
||||
export default Client;
|
||||
15
src/ts/@overflow/commons/api/Service.ts
Normal file
15
src/ts/@overflow/commons/api/Service.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
abstract class Service {
|
||||
private name: string;
|
||||
protected constructor(name: string) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
protected send(methodName: string, ...params: any[]): Promise<string> {
|
||||
return new Promise<string>(resolve => {
|
||||
resolve('');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default Service;
|
||||
17
src/ts/@overflow/commons/context/index.ts
Normal file
17
src/ts/@overflow/commons/context/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
class AppContext {
|
||||
private static context: AppContext;
|
||||
|
||||
private constructor() {
|
||||
|
||||
}
|
||||
|
||||
public static getService<T>(): T {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static getContext(): AppContext {
|
||||
return AppContext.context;
|
||||
}
|
||||
}
|
||||
|
||||
export default AppContext;
|
||||
14
src/ts/@overflow/commons/platform/index.ts
Normal file
14
src/ts/@overflow/commons/platform/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
abstract class Platform {
|
||||
|
||||
public static * getAppContainer(containerId: string): IterableIterator<Promise<HTMLElement>> {
|
||||
const appContainer = yield new Promise<HTMLElement>(resolve => {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
resolve(document.getElementById(containerId));
|
||||
});
|
||||
});
|
||||
|
||||
return appContainer;
|
||||
}
|
||||
}
|
||||
|
||||
export default Platform;
|
||||
8
src/ts/@overflow/commons/redux/Action.ts
Normal file
8
src/ts/@overflow/commons/redux/Action.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import * as Redux from 'redux';
|
||||
|
||||
interface Action<Payload = {}> extends Redux.Action {
|
||||
payload?: Payload;
|
||||
error?: Error;
|
||||
}
|
||||
|
||||
export default Action;
|
||||
14
src/ts/@overflow/discovery/api/model/Host.ts
Normal file
14
src/ts/@overflow/discovery/api/model/Host.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import Port from './Port';
|
||||
|
||||
interface Host {
|
||||
id?: number;
|
||||
ip: number;
|
||||
mac: number;
|
||||
createDate?: Date;
|
||||
updateDate: Date;
|
||||
os: string;
|
||||
target: boolean;
|
||||
ports?: Port[];
|
||||
}
|
||||
|
||||
export default Host;
|
||||
15
src/ts/@overflow/discovery/api/model/Port.ts
Normal file
15
src/ts/@overflow/discovery/api/model/Port.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import Host from './Host';
|
||||
import Service from './Service';
|
||||
import PortType from './PortType';
|
||||
|
||||
interface Port {
|
||||
id?: number;
|
||||
host: Host;
|
||||
portType: PortType;
|
||||
portNumber: number;
|
||||
services?: Service[];
|
||||
createDate?: Date;
|
||||
updateDate: Date;
|
||||
}
|
||||
|
||||
export default Port;
|
||||
10
src/ts/@overflow/discovery/api/model/PortType.ts
Normal file
10
src/ts/@overflow/discovery/api/model/PortType.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
// enum PortType {
|
||||
// TCP = 1,
|
||||
// UDP = 2,
|
||||
// TLS = 3,
|
||||
// }
|
||||
|
||||
type PortType = 'TCP' | 'UDP' | 'TLS';
|
||||
|
||||
export default PortType;
|
||||
14
src/ts/@overflow/discovery/api/model/Service.ts
Normal file
14
src/ts/@overflow/discovery/api/model/Service.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import Port from './Port';
|
||||
import PortType from './PortType';
|
||||
|
||||
interface Service {
|
||||
id: number;
|
||||
port: Port;
|
||||
portType: PortType;
|
||||
serviceName: string;
|
||||
createDate: Date;
|
||||
updateDate: Date;
|
||||
target: boolean;
|
||||
}
|
||||
|
||||
export default Service;
|
||||
0
src/ts/@overflow/discovery/api/service/_
Normal file
0
src/ts/@overflow/discovery/api/service/_
Normal file
0
src/ts/@overflow/discovery/index.ts
Normal file
0
src/ts/@overflow/discovery/index.ts
Normal file
0
src/ts/@overflow/discovery/react/Discovery.tsx
Normal file
0
src/ts/@overflow/discovery/react/Discovery.tsx
Normal file
0
src/ts/@overflow/discovery/redux/saga/discovery.ts
Normal file
0
src/ts/@overflow/discovery/redux/saga/discovery.ts
Normal file
0
src/ts/@overflow/discovery/redux/selector/index.ts
Normal file
0
src/ts/@overflow/discovery/redux/selector/index.ts
Normal file
0
src/ts/@overflow/discovery/redux/state/Discovery.ts
Normal file
0
src/ts/@overflow/discovery/redux/state/Discovery.ts
Normal file
10
src/ts/@overflow/domain/api/model/Domain.ts
Normal file
10
src/ts/@overflow/domain/api/model/Domain.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
interface Domain {
|
||||
id: number;
|
||||
name: string;
|
||||
createDate: Date;
|
||||
}
|
||||
|
||||
|
||||
export default Domain;
|
||||
11
src/ts/@overflow/domain/api/model/DomainMember.ts
Normal file
11
src/ts/@overflow/domain/api/model/DomainMember.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import Member from '@overflow/member/api/model/Member';
|
||||
import Domain from './Domain';
|
||||
|
||||
interface DomainMember {
|
||||
id: number;
|
||||
createDate: Date;
|
||||
member: Member;
|
||||
domain: Domain;
|
||||
}
|
||||
|
||||
export default DomainMember;
|
||||
18
src/ts/@overflow/domain/api/service/DomainMemberService.ts
Normal file
18
src/ts/@overflow/domain/api/service/DomainMemberService.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import DomainMember from '../model/DomainMember';
|
||||
|
||||
|
||||
class DomainMemberService extends Service {
|
||||
public constructor() {
|
||||
super('DomainMemberService');
|
||||
}
|
||||
|
||||
public regist(domainMember: DomainMember): void {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default DomainMemberService;
|
||||
18
src/ts/@overflow/domain/api/service/DomainService.ts
Normal file
18
src/ts/@overflow/domain/api/service/DomainService.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import Domain from '../model/Domain';
|
||||
|
||||
|
||||
class DomainService extends Service {
|
||||
public constructor() {
|
||||
super('DomainService');
|
||||
}
|
||||
|
||||
public regist(domain: Domain): void {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default DomainService;
|
||||
0
src/ts/@overflow/domain/index.ts
Normal file
0
src/ts/@overflow/domain/index.ts
Normal file
0
src/ts/@overflow/domain/react/DomainRegist.tsx
Normal file
0
src/ts/@overflow/domain/react/DomainRegist.tsx
Normal file
0
src/ts/@overflow/domain/redux/saga/domain_regist.ts
Normal file
0
src/ts/@overflow/domain/redux/saga/domain_regist.ts
Normal file
0
src/ts/@overflow/domain/redux/selector/index.ts
Normal file
0
src/ts/@overflow/domain/redux/selector/index.ts
Normal file
11
src/ts/@overflow/email/api/model/EmailAuth.ts
Normal file
11
src/ts/@overflow/email/api/model/EmailAuth.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import Member from '@overflow/member/api/model/Member';
|
||||
|
||||
interface EmailAuth {
|
||||
id: number;
|
||||
emailAuthKey: string;
|
||||
createDate: Date;
|
||||
authConfirmDate: Date;
|
||||
member: Member;
|
||||
}
|
||||
|
||||
export default EmailAuth;
|
||||
18
src/ts/@overflow/email/api/service/EmailAuthService.ts
Normal file
18
src/ts/@overflow/email/api/service/EmailAuthService.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import EmailAuth from '../model/EmailAuth';
|
||||
|
||||
|
||||
class EmailAuthService extends Service {
|
||||
public constructor() {
|
||||
super('EmailAuthService');
|
||||
}
|
||||
|
||||
public sendEmail(to: string, sub: string, message: string): void {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default EmailAuthService;
|
||||
0
src/ts/@overflow/email/index.ts
Normal file
0
src/ts/@overflow/email/index.ts
Normal file
0
src/ts/@overflow/email/react/SendEmail.tsx
Normal file
0
src/ts/@overflow/email/react/SendEmail.tsx
Normal file
0
src/ts/@overflow/email/redux/action/sendemail.ts
Normal file
0
src/ts/@overflow/email/redux/action/sendemail.ts
Normal file
0
src/ts/@overflow/email/redux/reducer/sendemail.ts
Normal file
0
src/ts/@overflow/email/redux/reducer/sendemail.ts
Normal file
0
src/ts/@overflow/email/redux/saga/sendemail.ts
Normal file
0
src/ts/@overflow/email/redux/saga/sendemail.ts
Normal file
0
src/ts/@overflow/email/redux/selector/index.ts
Normal file
0
src/ts/@overflow/email/redux/selector/index.ts
Normal file
0
src/ts/@overflow/email/redux/state/sendemail.ts
Normal file
0
src/ts/@overflow/email/redux/state/sendemail.ts
Normal file
0
src/ts/@overflow/history/api/_
Normal file
0
src/ts/@overflow/history/api/_
Normal file
0
src/ts/@overflow/history/api/model/_
Normal file
0
src/ts/@overflow/history/api/model/_
Normal file
0
src/ts/@overflow/history/api/service/_
Normal file
0
src/ts/@overflow/history/api/service/_
Normal file
0
src/ts/@overflow/history/index.ts
Normal file
0
src/ts/@overflow/history/index.ts
Normal file
0
src/ts/@overflow/history/react/_
Normal file
0
src/ts/@overflow/history/react/_
Normal file
0
src/ts/@overflow/history/react/components/_
Normal file
0
src/ts/@overflow/history/react/components/_
Normal file
0
src/ts/@overflow/history/redux/_
Normal file
0
src/ts/@overflow/history/redux/_
Normal file
0
src/ts/@overflow/history/redux/action/_
Normal file
0
src/ts/@overflow/history/redux/action/_
Normal file
0
src/ts/@overflow/history/redux/payload/_
Normal file
0
src/ts/@overflow/history/redux/payload/_
Normal file
0
src/ts/@overflow/history/redux/reducer/_
Normal file
0
src/ts/@overflow/history/redux/reducer/_
Normal file
0
src/ts/@overflow/history/redux/saga/_
Normal file
0
src/ts/@overflow/history/redux/saga/_
Normal file
0
src/ts/@overflow/history/redux/selector/index.ts
Normal file
0
src/ts/@overflow/history/redux/selector/index.ts
Normal file
0
src/ts/@overflow/history/redux/state/_
Normal file
0
src/ts/@overflow/history/redux/state/_
Normal file
11
src/ts/@overflow/infra/api/model/Infra.ts
Normal file
11
src/ts/@overflow/infra/api/model/Infra.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
import MetaInfraType from '@overflow/meta/api/model/MetaInfraType';
|
||||
|
||||
interface Infra {
|
||||
id: number;
|
||||
type: MetaInfraType;
|
||||
childId: number;
|
||||
createDate: Date;
|
||||
}
|
||||
|
||||
export default Infra;
|
||||
11
src/ts/@overflow/infra/api/model/InfraHost.ts
Normal file
11
src/ts/@overflow/infra/api/model/InfraHost.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import InfraOS from './InfraOS';
|
||||
|
||||
interface InfraHost {
|
||||
id: number;
|
||||
os: InfraOS;
|
||||
ip: number;
|
||||
mac: number;
|
||||
createDate: Date;
|
||||
}
|
||||
|
||||
export default InfraHost;
|
||||
11
src/ts/@overflow/infra/api/model/InfraMachine.ts
Normal file
11
src/ts/@overflow/infra/api/model/InfraMachine.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
import Probe from '@overflow/probe/api/model/Probe';
|
||||
|
||||
interface InfraMachine {
|
||||
id: number;
|
||||
probe: Probe;
|
||||
meta: string;
|
||||
createDate: Date;
|
||||
}
|
||||
|
||||
export default InfraMachine;
|
||||
13
src/ts/@overflow/infra/api/model/InfraOS.ts
Normal file
13
src/ts/@overflow/infra/api/model/InfraOS.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import InfraMachine from './InfraMachine';
|
||||
import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
||||
|
||||
|
||||
interface InfraOS {
|
||||
id: number;
|
||||
machine: InfraMachine;
|
||||
meta: string;
|
||||
createDate: Date;
|
||||
vendor: MetaInfraVendor;
|
||||
}
|
||||
|
||||
export default InfraOS;
|
||||
12
src/ts/@overflow/infra/api/model/InfraOSApplication.ts
Normal file
12
src/ts/@overflow/infra/api/model/InfraOSApplication.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
import InfraOS from './InfraOS';
|
||||
|
||||
interface InfraOSApplication {
|
||||
id: number;
|
||||
os: InfraOS;
|
||||
name: string;
|
||||
createDate: Date;
|
||||
}
|
||||
|
||||
|
||||
export default InfraOSApplication;
|
||||
10
src/ts/@overflow/infra/api/model/InfraOSDaemon.ts
Normal file
10
src/ts/@overflow/infra/api/model/InfraOSDaemon.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import InfraOS from './InfraOS';
|
||||
|
||||
interface InfraOSDaemon {
|
||||
id: number;
|
||||
os: InfraOS;
|
||||
name: string;
|
||||
createDate: Date;
|
||||
}
|
||||
|
||||
export default InfraOSDaemon;
|
||||
14
src/ts/@overflow/infra/api/model/InfraOSPort.ts
Normal file
14
src/ts/@overflow/infra/api/model/InfraOSPort.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import InfraOS from './InfraOS';
|
||||
import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
||||
|
||||
interface InfraOSPort {
|
||||
id: number;
|
||||
os: InfraOS;
|
||||
createDate: Date;
|
||||
port: number;
|
||||
portType: string;
|
||||
vendor: MetaInfraVendor;
|
||||
tlsType: boolean;
|
||||
}
|
||||
|
||||
export default InfraOSPort;
|
||||
14
src/ts/@overflow/infra/api/model/InfraService.ts
Normal file
14
src/ts/@overflow/infra/api/model/InfraService.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import InfraHost from './InfraHost';
|
||||
import MetaInfraVendor from '@overflow/meta/api/model/MetaInfraVendor';
|
||||
|
||||
interface InfraService {
|
||||
id: number;
|
||||
host: InfraHost;
|
||||
portType: string;
|
||||
port: number;
|
||||
vendor: MetaInfraVendor;
|
||||
createDate: Date;
|
||||
tlsType: boolean;
|
||||
}
|
||||
|
||||
export default InfraService;
|
||||
22
src/ts/@overflow/infra/api/service/InfraHostService.ts
Normal file
22
src/ts/@overflow/infra/api/service/InfraHostService.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraHost from '../model/InfraHost';
|
||||
|
||||
|
||||
class InfraHostService extends Service {
|
||||
public constructor() {
|
||||
super('InfraHostService');
|
||||
}
|
||||
|
||||
public regist(infraHost: InfraHost): InfraHost {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public read(id: number): InfraHost {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default InfraHostService;
|
||||
22
src/ts/@overflow/infra/api/service/InfraMachineService.ts
Normal file
22
src/ts/@overflow/infra/api/service/InfraMachineService.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraMachine from '../model/InfraMachine';
|
||||
|
||||
|
||||
class InfraMachinetService extends Service {
|
||||
public constructor() {
|
||||
super('InfraMachinetService');
|
||||
}
|
||||
|
||||
public regist(infraMachine: InfraMachine): InfraMachine {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public read(id: number): InfraMachine {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default InfraMachinetService;
|
||||
@@ -0,0 +1,22 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraOSApplication from '../model/InfraOSApplication';
|
||||
|
||||
|
||||
class InfraOSApplicationService extends Service {
|
||||
public constructor() {
|
||||
super('InfraOSApplicationService');
|
||||
}
|
||||
|
||||
public regist(infraOSApplication: InfraOSApplication): InfraOSApplication {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public read(id: number): InfraOSApplication {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default InfraOSApplicationService;
|
||||
22
src/ts/@overflow/infra/api/service/InfraOSDaemonService.ts
Normal file
22
src/ts/@overflow/infra/api/service/InfraOSDaemonService.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraOSDaemon from '../model/InfraOSDaemon';
|
||||
|
||||
|
||||
class InfraOSDaemonService extends Service {
|
||||
public constructor() {
|
||||
super('InfraOSDaemonService');
|
||||
}
|
||||
|
||||
public regist(infraOSDaemon: InfraOSDaemon): InfraOSDaemon {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public read(id: number): InfraOSDaemon {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default InfraOSDaemonService;
|
||||
22
src/ts/@overflow/infra/api/service/InfraOSPortService.ts
Normal file
22
src/ts/@overflow/infra/api/service/InfraOSPortService.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraOSPort from '../model/InfraOSPort';
|
||||
|
||||
|
||||
class InfraOSDaemonService extends Service {
|
||||
public constructor() {
|
||||
super('InfraOSDaemonService');
|
||||
}
|
||||
|
||||
public regist(infraOSPort: InfraOSPort): InfraOSPort {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public read(id: number): InfraOSPort {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default InfraOSDaemonService;
|
||||
22
src/ts/@overflow/infra/api/service/InfraOSService.ts
Normal file
22
src/ts/@overflow/infra/api/service/InfraOSService.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraOS from '../model/InfraOS';
|
||||
|
||||
|
||||
class InfraOSService extends Service {
|
||||
public constructor() {
|
||||
super('InfraOSService');
|
||||
}
|
||||
|
||||
public regist(infraOS: InfraOS): InfraOS {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public read(id: number): InfraOS {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default InfraOSService;
|
||||
22
src/ts/@overflow/infra/api/service/InfraService.ts
Normal file
22
src/ts/@overflow/infra/api/service/InfraService.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import Infra from '../model/Infra';
|
||||
|
||||
|
||||
class InfraService extends Service {
|
||||
public constructor() {
|
||||
super('InfraService');
|
||||
}
|
||||
|
||||
public regist(infra: Infra): Infra {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public read(id: number): Infra {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default InfraService;
|
||||
23
src/ts/@overflow/infra/api/service/InfraServiceService.ts
Normal file
23
src/ts/@overflow/infra/api/service/InfraServiceService.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import Service from '@overflow/commons/api/Service';
|
||||
import InfraService from '../model/InfraService';
|
||||
|
||||
|
||||
class InfraServiceService extends Service {
|
||||
public constructor() {
|
||||
super('InfraServiceService');
|
||||
}
|
||||
|
||||
public regist(infraService: InfraService): InfraService {
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public read(id: number): InfraService {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default InfraServiceService;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user