poi-plugin-ship-info
Advanced tools
Comparing version 7.1.10 to 7.2.0
module.exports = { | ||
linters: { | ||
'*.{css}': 'stylelint', | ||
'*.{ts,tsx}': ['tslint --fix', 'git add'], | ||
}, | ||
ignore: ['shims/**/*.d.ts'], | ||
'*.{css}': 'stylelint', | ||
'*.{ts,tsx}': ['tslint --fix', 'git add'], | ||
} |
{ | ||
"name": "poi-plugin-ship-info", | ||
"version": "7.1.10", | ||
"version": "7.2.0", | ||
"description": "Show detailed information of all owned ship girls", | ||
@@ -49,3 +49,2 @@ "main": "index.es", | ||
"@types/html2canvas": "^0.0.35", | ||
"@types/i18next": "^13.0.0", | ||
"@types/lodash": "^4.14.133", | ||
@@ -61,3 +60,3 @@ "@types/react": "^16.8.19", | ||
"@typescript-eslint/parser": "^2.0.0", | ||
"babel-eslint": "10.0.2", | ||
"babel-eslint": "10.0.3", | ||
"husky": "^3.0.0", | ||
@@ -67,5 +66,5 @@ "kcsapi": "^1.190112.0", | ||
"poi-util-transpile": "^10.3.4", | ||
"prettier": "^1.17.1", | ||
"stylelint": "^10.0.1", | ||
"stylelint-config-standard": "^18.3.0", | ||
"prettier": "^1.19.1", | ||
"stylelint": "^11.1.1", | ||
"stylelint-config-standard": "^19.0.0", | ||
"tslint": "^5.17.0", | ||
@@ -72,0 +71,0 @@ "tslint-config-prettier": "^1.18.0", |
@@ -123,3 +123,3 @@ "use strict"; | ||
this.handleExportToFile = () => { | ||
this.handleExportToFile = async () => { | ||
const { | ||
@@ -131,3 +131,3 @@ t | ||
dialog.showSaveDialog(bw, { | ||
const selection = await dialog.showSaveDialog(bw, { | ||
filters: [{ | ||
@@ -138,16 +138,16 @@ extensions: ['csv'], | ||
title: t('Position the file to save into') | ||
}, async filename => { | ||
if (filename) { | ||
const { | ||
sep, | ||
end | ||
} = this.state; | ||
}); | ||
try { | ||
await (0, _fsExtra.outputFile)(filename, (0, _buildCsv.buildCsv)(this.getShipData(), sep, end)); | ||
} catch (e) { | ||
console.error(e); | ||
} | ||
if (!selection.canceled && selection.filePath) { | ||
const { | ||
sep, | ||
end | ||
} = this.state; | ||
try { | ||
await (0, _fsExtra.outputFile)(selection.filePath, (0, _buildCsv.buildCsv)(this.getShipData(), sep, end)); | ||
} catch (e) { | ||
console.error(e); | ||
} | ||
}); | ||
} | ||
}; | ||
@@ -154,0 +154,0 @@ } |
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
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
Sorry, the diff of this file is not supported yet
29
769634
11282