mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 10:40:41 +01:00
added progress also to export
This commit is contained in:
@@ -218,7 +218,7 @@ async function importEnex(importContext, file, parentNote) {
|
||||
mime: 'text/html'
|
||||
})).note;
|
||||
|
||||
importContext.increaseCount();
|
||||
importContext.increaseProgressCount();
|
||||
|
||||
const noteContent = await noteEntity.getNoteContent();
|
||||
|
||||
@@ -240,7 +240,7 @@ async function importEnex(importContext, file, parentNote) {
|
||||
mime: resource.mime
|
||||
})).note;
|
||||
|
||||
importContext.increaseCount();
|
||||
importContext.increaseProgressCount();
|
||||
|
||||
const resourceLink = `<a href="#root/${resourceNote.noteId}">${utils.escapeHtml(resource.title)}</a>`;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ function toHtml(text) {
|
||||
async function importOutline(importContext, outline, parentNoteId) {
|
||||
const {note} = await noteService.createNote(parentNoteId, outline.$.title, toHtml(outline.$.text));
|
||||
|
||||
importContext.increaseCount();
|
||||
importContext.increaseProgressCount();
|
||||
|
||||
for (const childOutline of (outline.outline || [])) {
|
||||
await importOutline(childOutline, note.noteId);
|
||||
|
||||
@@ -20,7 +20,7 @@ async function importMarkdown(importContext, file, parentNote) {
|
||||
mime: 'text/html'
|
||||
});
|
||||
|
||||
importContext.increaseCount();
|
||||
importContext.increaseProgressCount();
|
||||
importContext.importFinished(note.noteId);
|
||||
|
||||
return note;
|
||||
@@ -35,7 +35,7 @@ async function importHtml(importContext, file, parentNote) {
|
||||
mime: 'text/html'
|
||||
});
|
||||
|
||||
importContext.increaseCount();
|
||||
importContext.increaseProgressCount();
|
||||
importContext.importFinished(note.noteId);
|
||||
|
||||
return note;
|
||||
|
||||
@@ -342,7 +342,7 @@ async function importTar(importContext, fileBuffer, importRootNote) {
|
||||
log.info("Ignoring tar import entry with type " + header.type);
|
||||
}
|
||||
|
||||
importContext.increaseCount();
|
||||
importContext.increaseProgressCount();
|
||||
|
||||
next(); // ready for next entry
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user