MCPcopy Create free account
hub / github.com/bytebase/bytebase / downloadSingle

Function downloadSingle

frontend/src/react/components/DataExportButton.tsx:139–147  ·  view source on GitHub ↗
(entry: DownloadContent, format: ExportFormat)

Source from the content-addressed store, hash-verified

137};
138
139const downloadSingle = (entry: DownloadContent, format: ExportFormat) => {
140 const blob = toBlob(entry, format);
141 const url = window.URL.createObjectURL(blob);
142 const link = document.createElement("a");
143 link.download = entry.filename;
144 link.href = url;
145 link.click();
146 window.URL.revokeObjectURL(url);
147};
148
149const downloadZip = async (
150 contents: DownloadContent[],

Callers 1

downloadAllFunction · 0.85

Calls 1

toBlobFunction · 0.85

Tested by

no test coverage detected