Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed Sep 20, 2023
1 parent 53b32c1 commit 54e7196
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 2,228 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"sass-loader": "^8.0.2",
"typeorm-uml": "^1.6.4",
"typescript": "^4",
"vue-cli-plugin-electron-builder": "^2.1.1",
"vue-cli-plugin-electron-builder": "^3.0.0-alpha.4",
"vue-template-compiler": "^2.6.12"
},
"browserslist": [
Expand Down
7 changes: 7 additions & 0 deletions src/components/ExportData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export default class ExportData extends Vue {
this.exportDiffFormatData(content, 'JSON')
})
.catch((err) => {
// @ts-ignore
this.$message.error(err.toString())
})
.finally(() => {
Expand All @@ -169,6 +170,7 @@ export default class ExportData extends Vue {
this.exportDiffFormatData(yamlContent, 'YAML')
})
.catch((err) => {
// @ts-ignore
this.$message.error(err.toString())
})
.finally(() => {
Expand Down Expand Up @@ -211,6 +213,7 @@ export default class ExportData extends Vue {
saveExcelData(newWorkBook)
})
.catch((err) => {
// @ts-ignore
this.$message.error(err.toString())
})
.finally(() => {
Expand All @@ -227,6 +230,7 @@ export default class ExportData extends Vue {
content = content.replace(/<([0-9]*)>/g, '<oneConnection>').replace(/<(\/[0-9]*)>/g, '</oneConnection>')
this.exportDiffFormatData(content, 'XML')
} catch (err) {
// @ts-ignore
this.$message.error(err.toString())
}
}
Expand All @@ -240,6 +244,7 @@ export default class ExportData extends Vue {
exportDataToXML(content)
})
.catch((err) => {
// @ts-ignore
this.$message.error(err.toString())
})
.finally(() => {
Expand All @@ -256,6 +261,7 @@ export default class ExportData extends Vue {
content = CSVConvert(JSON.parse(content)).replace(/"(\d+\.(\d+)?0)"/g, '="$1"')
this.exportDiffFormatData(content, 'CSV')
} catch (err) {
// @ts-ignore
this.$message.error(err.toString())
}
}
Expand All @@ -269,6 +275,7 @@ export default class ExportData extends Vue {
exportDataToCSV(content)
})
.catch((err) => {
// @ts-ignore
this.$message.error(err.toString())
})
.finally(() => {
Expand Down
5 changes: 5 additions & 0 deletions src/components/ImportData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export default class ImportData extends Vue {
properties = JSON.parse(properties)
will = JSON.parse(will)
} catch (err) {
// @ts-ignore
this.$message.error(err.toString())
caughtError = true
}
Expand All @@ -195,6 +196,7 @@ export default class ImportData extends Vue {
const fileContent = this.getDiffFormatData(content)
this.assignValueToRecord(filePath, fileContent)
} catch (err) {
// @ts-ignore
this.$message.error(err.toString())
}
})
Expand Down Expand Up @@ -277,6 +279,7 @@ export default class ImportData extends Vue {
const keyName = Object.keys(parentElement._parent)[keyNameIndex]
parentElement._parent[keyName] = nativeType(keyName, value)
} catch (err) {
// @ts-ignore
this.$message.error(err.toString())
}
}
Expand All @@ -301,6 +304,7 @@ export default class ImportData extends Vue {
if (!Array.isArray(subscriptions)) connection.subscriptions = [subscriptions]
})
} catch (err) {
// @ts-ignore
this.$message.error(err.toString())
}
return fileContent
Expand Down Expand Up @@ -356,6 +360,7 @@ export default class ImportData extends Vue {
})
fileContent.push({ messages, subscriptions, properties, will, ...otherProps })
} catch (err) {
// @ts-ignore
this.$message.error(err.toString())
}
})
Expand Down
1 change: 1 addition & 0 deletions src/views/connections/ConnectionsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ export default class ConnectionsList extends Vue {
})
} catch (error) {
const err = error as Error
// @ts-ignore
this.$message.error(err.toString())
} finally {
this.showContextmenu = false
Expand Down
Loading

0 comments on commit 54e7196

Please sign in to comment.