mirror of
https://github.com/outline/outline.git
synced 2026-01-08 12:09:58 -06:00
* Allow setting permission of collections during import closes #6767 * Remove unused column
18 lines
568 B
TypeScript
18 lines
568 B
TypeScript
import JSZip from "jszip";
|
|
import { FileOperationFormat } from "@shared/types";
|
|
import { Collection, FileOperation } from "@server/models";
|
|
import ExportDocumentTreeTask from "./ExportDocumentTreeTask";
|
|
|
|
export default class ExportHTMLZipTask extends ExportDocumentTreeTask {
|
|
public async export(collections: Collection[], fileOperation: FileOperation) {
|
|
const zip = new JSZip();
|
|
|
|
return await this.addCollectionsToArchive(
|
|
zip,
|
|
collections,
|
|
FileOperationFormat.HTMLZip,
|
|
fileOperation.options?.includeAttachments ?? true
|
|
);
|
|
}
|
|
}
|