wip: canvas-note patch

Conflicts:
	src/public/app/services/library_loader.js
	src/public/app/services/tree_context_menu.js
	src/public/app/widgets/note_actions.js
	src/services/consistency_checks.js
	src/services/utils.js
This commit is contained in:
Tom Free
2021-11-25 13:45:58 +01:00
committed by Tom
parent f6ebc76917
commit 0469962c5e
9 changed files with 505 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ function deriveMime(type, mime) {
mime = 'text/html';
} else if (type === 'code' || type === 'mermaid') {
mime = 'text/plain';
} else if (['relation-map', 'search'].includes(type)) {
} else if (['relation-map', 'search', 'canvas-note'].includes(type)) {
mime = 'application/json';
} else if (['render', 'book'].includes(type)) {
mime = '';
@@ -83,7 +83,7 @@ function copyChildAttributes(parentNote, childNote) {
* - {string} parentNoteId
* - {string} title
* - {*} content
* - {string} type - text, code, file, image, search, book, relation-map, render
* - {string} type - text, code, file, image, search, book, relation-map, canvas-note, render
*
* Following are optional (have defaults)
* - {string} mime - value is derived from default mimes for type