poi-plugin-ship-info
Advanced tools
Comparing version 3.0.2 to 3.0.3
{ | ||
"name": "poi-plugin-ship-info", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Show detailed information of all owned ship girls", | ||
@@ -5,0 +5,0 @@ "main": "index.es", |
@@ -65,2 +65,12 @@ 'use strict'; | ||
config.set('plugin.ShipInfo.shipTypes', (0, _utils.boolArrayToInt)(checked)); | ||
}, this.handleRightClickSuperType = index => () => { | ||
const checked = this.props.checked.slice(); | ||
const keys = _constants.shipSuperTypeMap[index].id; | ||
checked.fill(false); | ||
keys.forEach(key => { | ||
checked[key - 1] = true; | ||
}); | ||
config.set('plugin.ShipInfo.shipTypes', (0, _utils.boolArrayToInt)(checked)); | ||
}, this.handleClickSingleBox = index => () => { | ||
@@ -78,2 +88,8 @@ const checked = this.props.checked.slice(); | ||
config.set('plugin.ShipInfo.shipTypes', (0, _utils.boolArrayToInt)(checked)); | ||
}, this.handleRightClickSingleBox = index => () => { | ||
const checked = this.props.checked.slice(); | ||
checked.fill(false); | ||
checked[index] = true; | ||
config.set('plugin.ShipInfo.shipTypes', (0, _utils.boolArrayToInt)(checked)); | ||
}, _temp; | ||
@@ -115,3 +131,4 @@ } | ||
}), | ||
onClick: this.handleClickSuperType(checkedTypes, index) | ||
onClick: this.handleClickSuperType(checkedTypes, index), | ||
onContextMenu: this.handleRightClickSuperType(index) | ||
}, | ||
@@ -131,2 +148,3 @@ __(`Filter${supertype.name}`) | ||
onClick: this.handleClickSingleBox(key - 1), | ||
onContextMenu: this.handleRightClickSingleBox(key - 1), | ||
className: (0, _classnames2.default)('shiptype', { checked: checked[key - 1] }) | ||
@@ -133,0 +151,0 @@ }, |
@@ -64,3 +64,2 @@ 'use strict'; | ||
handleClickTitle, | ||
onMouseEnter, | ||
className | ||
@@ -72,3 +71,2 @@ }) => _react2.default.createElement( | ||
tabIndex: 0, | ||
onMouseEnter: onMouseEnter, | ||
style: _extends({}, style), | ||
@@ -99,3 +97,2 @@ onClick: sortable ? handleClickTitle : '', | ||
down: _propTypes2.default.bool.isRequired, | ||
onMouseEnter: _propTypes2.default.func.isRequired, | ||
className: _propTypes2.default.string.isRequired | ||
@@ -234,2 +231,8 @@ }; | ||
}; | ||
const onContextMenu = () => { | ||
setState({ | ||
activeColumn: -1, | ||
activeRow: -1 | ||
}); | ||
}; | ||
const highlight = (columnIndex === this.state.activeColumn || rowIndex === this.state.activeRow) && !(columnIndex === 0 && rowIndex !== this.state.activeRow) && !(rowIndex === 0 && columnIndex !== this.state.activeColumn); | ||
@@ -239,2 +242,3 @@ const props = { | ||
onClick, | ||
onContextMenu, | ||
className: (0, _classnames2.default)({ | ||
@@ -241,0 +245,0 @@ 'ship-info-cell': true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
236381
2923