mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-02 13:29:11 -06:00
b5b9ee46a1
2) Added status bar to the Query Tool. Fixes #3253 3) Ensure that row numbers should be visible in view when scrolling horizontally. Fixes #3989 4) Allow removing a single query history. Refs #4113 5) Partially fixed Macros usability issues. Ref #6969 6) Fixed an issue where the Query tool opens on minimum size if the user opens multiple query tool Window quickly. Fixes #6725 7) Relocate GIS Viewer Button to the Left Side of the Results Table. Fixes #6830 8) Fixed an issue where the connection bar is not visible. Fixes #7188 9) Fixed an issue where an Empty message popup after running a query. Fixes #7260 10) Ensure that Autocomplete should work after changing the connection. Fixes #7262 11) Fixed an issue where the copy and paste row does not work if the first column contains no data. Fixes #7294
31 lines
965 B
JavaScript
31 lines
965 B
JavaScript
/////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2022, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
let svgDownloader = {
|
|
blobURL: function(content, contentType) {
|
|
var blob = new Blob([content], {type: contentType});
|
|
return (window.URL || window.webkitURL).createObjectURL(blob);
|
|
},
|
|
|
|
downloadSVG: function(content, fileName) {
|
|
// Safari xlink NS issue fixblobURL
|
|
content = content.replace(/NS\d+:href/gi, 'xlink:href');
|
|
|
|
var svgURL = this.blobURL(content, 'image/svg+xml');
|
|
var newElement = document.createElement('a');
|
|
newElement.href = svgURL;
|
|
newElement.setAttribute('download', fileName);
|
|
document.body.appendChild(newElement);
|
|
newElement.click();
|
|
document.body.removeChild(newElement);
|
|
},
|
|
};
|
|
|
|
export default svgDownloader;
|