Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(metadata): add metadata to csv/excel exports
- Loading branch information
Showing
18 changed files
with
127 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,15 @@ | ||
import { arrayToCsv } from "@common/utils/csv"; | ||
import type { HashesMap } from "@common/utils/hashes-types"; | ||
import type { Observable } from "rxjs"; | ||
|
||
import type { | ||
AliasMap, | ||
CommentsMap, | ||
FilesAndFoldersMap, | ||
} from "../../reducers/files-and-folders/files-and-folders-types"; | ||
import type { FilesAndFoldersMetadataMap } from "../../reducers/files-and-folders-metadata/files-and-folders-metadata-types"; | ||
import type { TagMap } from "../../reducers/tags/tags-types"; | ||
import { generateArrayExport$ } from "../../utils/array-export/array-export"; | ||
import type { ResultMessage } from "../../utils/batch-process/types"; | ||
|
||
export interface GenerateCsvExportOptions { | ||
aliases: AliasMap; | ||
comments: CommentsMap; | ||
elementsToDelete?: string[]; | ||
filesAndFolders: FilesAndFoldersMap; | ||
filesAndFoldersMetadata: FilesAndFoldersMetadataMap; | ||
hashes?: HashesMap; | ||
tags: TagMap; | ||
} | ||
import type { CsvExportData } from "./csv-exporter-types"; | ||
|
||
/** | ||
* Asynchronously generates a csv export | ||
* @param data | ||
* @returns an observable that emits each time a file is computed and emits the export string as the last value | ||
*/ | ||
export const generateCsvExport$ = ( | ||
data: GenerateCsvExportOptions | ||
data: CsvExportData | ||
): Observable<ResultMessage> => generateArrayExport$(data, arrayToCsv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 0 additions & 88 deletions
88
src/renderer/exporters/csv/tree-csv-exporter-serializer.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.