This commit is contained in:
insanity 2017-07-28 18:33:43 +09:00
parent 34adb75d10
commit 7916973e39
8 changed files with 13 additions and 10 deletions

View File

@ -47,6 +47,7 @@ module.exports = WebpackMerge(configBase, {
Path.resolve(__dirname, '../../node_modules/') Path.resolve(__dirname, '../../node_modules/')
] ]
}, },
{ test: /\.jpg$/, loader: 'file' },
// { // {
// test: /\.tsx?$/, // test: /\.tsx?$/,
// loaders: [ // loaders: [

View File

@ -14,7 +14,6 @@
"test": "yarn run jest", "test": "yarn run jest",
"test:watch": "yarn run jest -- --watch", "test:watch": "yarn run jest -- --watch",
"jest": "PWD=$(pwd) NODE_ENV=test ./node_modules/.bin/jest -w 1 --coverage", "jest": "PWD=$(pwd) NODE_ENV=test ./node_modules/.bin/jest -w 1 --coverage",
"prebuild": "./node_modules/.bin/check-dependencies && yarn run clean",
"build": "set NODE_ENV=production && ./node_modules/.bin/webpack-dashboard -m -- ./node_modules/.bin/webpack --progress --profile --colors --config ./config/webpack/webpack.config.prod.js", "build": "set NODE_ENV=production && ./node_modules/.bin/webpack-dashboard -m -- ./node_modules/.bin/webpack --progress --profile --colors --config ./config/webpack/webpack.config.prod.js",
"lint": "./node_modules/.bin/tslint -c tslint.json 'src/ts/**/*.{ts,tsx}' && ./node_modules/.bin/sass-lint 'src/**/*.scss'", "lint": "./node_modules/.bin/tslint -c tslint.json 'src/ts/**/*.{ts,tsx}' && ./node_modules/.bin/sass-lint 'src/**/*.scss'",
"stats": "set NODE_ENV=production && webpack --progress --config ./config/webpack/webpack.config.stats.js --profile --json > ./config/webpack/stats/stats.json" "stats": "set NODE_ENV=production && webpack --progress --config ./config/webpack/webpack.config.stats.js --profile --json > ./config/webpack/stats/stats.json"
@ -87,7 +86,8 @@
"redux-saga": "^0.15.4", "redux-saga": "^0.15.4",
"reflect-metadata": "^0.1.10", "reflect-metadata": "^0.1.10",
"reselect": "^3.0.1", "reselect": "^3.0.1",
"semantic-ui-react": "^0.71.1" "semantic-ui-react": "^0.71.1",
"image-webpack-loader": "^3.3.1"
}, },
"jest": { "jest": {
"moduleFileExtensions": [ "moduleFileExtensions": [

View File

@ -4,9 +4,11 @@ import {
Header, Header,
Container, Container,
Popup, Popup,
Image,
} from 'semantic-ui-react'; } from 'semantic-ui-react';
import { Notification } from '@overflow/commons/react/component/Notification'; import { Notification } from '@overflow/commons/react/component/Notification';
export class LogoBar extends React.Component<any, any> { export class LogoBar extends React.Component<any, any> {
constructor(props: any, context: any) { constructor(props: any, context: any) {

View File

@ -142,14 +142,14 @@ export class SensorItemTree extends React.Component<SensorItemTreeProps, SensorI
SensorJsonData.map((data: any, idx: number) => { SensorJsonData.map((data: any, idx: number) => {
let sensorItem: MetaSensorItem = data; let sensorItem: MetaSensorItem = data;
if (this.itemMap.has(sensorItem.metaSensorItemType.id)) { if (this.itemMap.has(sensorItem.itemType.id)) {
this.itemMap.get(sensorItem.metaSensorItemType.id).metaSensorItemList.push(sensorItem); this.itemMap.get(sensorItem.itemType.id).metaSensorItemList.push(sensorItem);
} else { } else {
let item: TreeItem = { metaSensorItemList: null, metaSensorItemType: null }; let item: TreeItem = { metaSensorItemList: null, metaSensorItemType: null };
item.metaSensorItemList = []; item.metaSensorItemList = [];
item.metaSensorItemList.push(sensorItem); item.metaSensorItemList.push(sensorItem);
item.metaSensorItemType = this.GetMetaSensorItemType(sensorItem.metaSensorItemType.id); item.metaSensorItemType = this.GetMetaSensorItemType(sensorItem.itemType.id);
this.itemMap.set(sensorItem.metaSensorItemType.id, item); this.itemMap.set(sensorItem.itemType.id, item);
} }
}); });
} }

View File

@ -103,7 +103,7 @@ export class ProbeHost extends React.Component<Props, State> {
<Table.Cell collapsing> <Table.Cell collapsing>
<Header size='small'>OS vendor type</Header> <Header size='small'>OS vendor type</Header>
</Table.Cell> </Table.Cell>
<Table.Cell>{this.state.host.os.vendor.type.name}</Table.Cell> <Table.Cell>{this.state.host.os.vendor.infraType.name}</Table.Cell>
</Table.Row> </Table.Row>
</Table.Body> </Table.Body>
</Table> </Table>

View File

@ -99,7 +99,7 @@ export class SensorBasicInfo extends React.Component<SensorBasicInfoProps, Senso
<Table.Cell> <Table.Cell>
<Header size='small'>Name</Header> <Header size='small'>Name</Header>
</Table.Cell> </Table.Cell>
<Table.Cell>{this.state.sensor.target.infra.type.name}</Table.Cell> <Table.Cell>{this.state.sensor.target.displayName}</Table.Cell>
</Table.Row> </Table.Row>
<Table.Row> <Table.Row>
<Table.Cell> <Table.Cell>

View File

@ -62,7 +62,7 @@ export class SensorDetailInfo extends React.Component<SensorDetailInfoProps, Sen
<Table.Cell> <Table.Cell>
<Header size='small'>Name</Header> <Header size='small'>Name</Header>
</Table.Cell> </Table.Cell>
<Table.Cell>{this.state.sensor.target.infra.type.name}</Table.Cell> <Table.Cell>{this.state.sensor.target.displayName}</Table.Cell>
</Table.Row> </Table.Row>
<Table.Row> <Table.Row>
<Table.Cell> <Table.Cell>

View File

@ -52,7 +52,7 @@ export class SensorDetailItems extends React.Component<Props, State> {
return ( return (
<Table.Row key={idx}> <Table.Row key={idx}>
<Table.Cell>{idx}</Table.Cell> <Table.Cell>{idx}</Table.Cell>
<Table.Cell>{sensorItem.item.metaSensorItemType.name}</Table.Cell> <Table.Cell>{sensorItem.item.itemType.name}</Table.Cell>
<Table.Cell>{sensorItem.item.name}</Table.Cell> <Table.Cell>{sensorItem.item.name}</Table.Cell>
<Table.Cell>{sensorItem.item.key}</Table.Cell> <Table.Cell>{sensorItem.item.key}</Table.Cell>
</Table.Row> </Table.Row>