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

Function downloadAll

frontend/src/react/components/DataExportButton.tsx:161–171  ·  view source on GitHub ↗
(
  contents: DownloadContent[],
  format: ExportFormat
)

Source from the content-addressed store, hash-verified

159};
160
161const downloadAll = async (
162 contents: DownloadContent[],
163 format: ExportFormat
164) => {
165 if (contents.length === 0) return;
166 if (contents.length === 1) {
167 downloadSingle(contents[0], format);
168 return;
169 }
170 await downloadZip(contents, format);
171};
172
173/**
174 * React port of `frontend/src/components/DataExportButton.vue`.

Callers 1

DataExportButtonFunction · 0.85

Calls 2

downloadSingleFunction · 0.85
downloadZipFunction · 0.85

Tested by

no test coverage detected