fix: snyk report security patches
Some checks failed
Build / Build-and-ng-test (pull_request) Successful in 4m0s
Lighthouse Checks / lighthouse (20.15.1) (pull_request) Successful in 19m23s
Build / Build-and-test-development (pull_request) Failing after 11m1s

This commit is contained in:
Trevor Moody
2025-10-10 12:54:22 +01:00
parent db5887de21
commit 387f5122f1
4 changed files with 18 additions and 74 deletions

View File

@@ -171,23 +171,8 @@ export class EditRecordComponent implements OnInit {
}
public copyToClip(text: string) {
const modalElement = document.querySelector('#recordModalRef .modal-title')
if (modalElement) {
const selBox = document.createElement('textarea')
selBox.style.position = 'fixed'
selBox.style.left = '0'
selBox.style.top = '0'
selBox.style.opacity = '0'
selBox.style.zIndex = '5000'
selBox.value = text
modalElement.appendChild(selBox)
selBox.focus()
selBox.select()
document.execCommand('copy')
modalElement.removeChild(selBox)
this.generatedRecordUrl = text
}
navigator.clipboard.writeText(text)
this.generatedRecordUrl = text
}
async generateEditRecordUrl() {

View File

@@ -52,6 +52,7 @@ export class LicensingComponent implements OnInit {
constructor(
private route: ActivatedRoute,
private router: Router,
private licenceService: LicenceService,
private sasService: SasService,
private appService: AppService
@@ -124,7 +125,7 @@ export class LicensingComponent implements OnInit {
res.adapterResponse.return[0] &&
res.adapterResponse.return[0].MSG === 'SUCCESS'
) {
location.replace(location.href.split('#')[0])
this.router.navigateByUrl('/')
}
})
.finally(() => {

View File

@@ -746,28 +746,13 @@ export class LineageComponent {
return URL.createObjectURL(svg_blob)
}
private getSVGBlob() {
let svg: any = document.getElementById('graph')
let serializer = new XMLSerializer()
let svg_blob = new Blob([serializer.serializeToString(svg)], {
type: 'image/svg+xml'
})
return svg_blob
}
downloadSVG() {
d3Viz.graphviz('#graph').resetZoom()
if (navigator.appVersion.toString().indexOf('.NET') > 0) {
window.navigator.msSaveBlob(this.getSVGBlob(), this.constructName('svg'))
} else {
let downloadLink = document.createElement('a')
downloadLink.href = this.getSVGURL()
downloadLink.download = this.constructName('svg')
document.body.appendChild(downloadLink)
downloadLink.click()
document.body.removeChild(downloadLink)
}
let downloadLink = document.createElement('a')
downloadLink.href = this.getSVGURL()
downloadLink.download = this.constructName('svg')
downloadLink.click()
}
async downloadPNG() {
@@ -795,16 +780,11 @@ export class LineageComponent {
var a = document.createElement('a')
var blob = new Blob([csvArray], { type: 'text/csv' })
if (navigator.appVersion.toString().indexOf('.NET') > 0) {
window.navigator.msSaveBlob(blob, this.constructName('csv'))
} else {
var url = window.URL.createObjectURL(blob)
a.href = url
a.download = this.constructName('csv')
a.click()
window.URL.revokeObjectURL(url)
a.remove()
}
var url = window.URL.createObjectURL(blob)
a.href = url
a.download = this.constructName('csv')
a.click()
window.URL.revokeObjectURL(url)
}
private getDotUrl() {
@@ -813,23 +793,11 @@ export class LineageComponent {
return window.URL.createObjectURL(dot_blob)
}
private getDotBlob() {
let data = this.vizInput
let dot_blob = new Blob([data], { type: 'text/plain' })
return dot_blob
}
downloadDot() {
if (navigator.appVersion.toString().indexOf('.NET') > 0) {
window.navigator.msSaveBlob(this.getDotBlob(), this.constructName('txt'))
} else {
let downloadLink = document.createElement('a')
downloadLink.href = this.getDotUrl()
downloadLink.download = this.constructName('txt')
document.body.appendChild(downloadLink)
downloadLink.click()
document.body.removeChild(downloadLink)
}
let downloadLink = document.createElement('a')
downloadLink.href = this.getDotUrl()
downloadLink.download = this.constructName('txt')
downloadLink.click()
}
public showSvg() {

View File

@@ -536,17 +536,7 @@ export class ViewerComponent
}
public copyToClip() {
let selBox = document.createElement('textarea')
selBox.style.position = 'fixed'
selBox.style.left = '0'
selBox.style.top = '0'
selBox.style.opacity = '0'
selBox.value = this.webQueryText
document.body.appendChild(selBox)
selBox.focus()
selBox.select()
document.execCommand('copy')
document.body.removeChild(selBox)
navigator.clipboard.writeText(this.webQueryText)
}
public goToViewer() {