mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	add missing canvas-note entries in helper functions
Conflicts: src/public/app/entities/note_short.js src/public/app/services/tree_context_menu.js
This commit is contained in:
		
							parent
							
								
									0469962c5e
								
							
						
					
					
						commit
						a894c19c2b
					
				| @ -16,7 +16,8 @@ const NOTE_TYPE_ICONS = { | |||||||
|     "relation-map": "bx bx-map-alt", |     "relation-map": "bx bx-map-alt", | ||||||
|     "book": "bx bx-book", |     "book": "bx bx-book", | ||||||
|     "note-map": "bx bx-map-alt", |     "note-map": "bx bx-map-alt", | ||||||
|     "mermaid": "bx bx-selection" |     "mermaid": "bx bx-selection", | ||||||
|  |     "canvas-note": "bx bx-pen" | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  | |||||||
| @ -10,6 +10,7 @@ import FileTypeWidget from "./type_widgets/file.js"; | |||||||
| import ImageTypeWidget from "./type_widgets/image.js"; | import ImageTypeWidget from "./type_widgets/image.js"; | ||||||
| import RenderTypeWidget from "./type_widgets/render.js"; | import RenderTypeWidget from "./type_widgets/render.js"; | ||||||
| import RelationMapTypeWidget from "./type_widgets/relation_map.js"; | import RelationMapTypeWidget from "./type_widgets/relation_map.js"; | ||||||
|  | import CanvasNoteTypeWidget from "./type_widgets/canvas_note.js"; | ||||||
| import ProtectedSessionTypeWidget from "./type_widgets/protected_session.js"; | import ProtectedSessionTypeWidget from "./type_widgets/protected_session.js"; | ||||||
| import BookTypeWidget from "./type_widgets/book.js"; | import BookTypeWidget from "./type_widgets/book.js"; | ||||||
| import appContext from "../services/app_context.js"; | import appContext from "../services/app_context.js"; | ||||||
| @ -50,6 +51,7 @@ const typeWidgetClasses = { | |||||||
|     'search': NoneTypeWidget, |     'search': NoneTypeWidget, | ||||||
|     'render': RenderTypeWidget, |     'render': RenderTypeWidget, | ||||||
|     'relation-map': RelationMapTypeWidget, |     'relation-map': RelationMapTypeWidget, | ||||||
|  |     'canvas-note': CanvasNoteTypeWidget, | ||||||
|     'protected-session': ProtectedSessionTypeWidget, |     'protected-session': ProtectedSessionTypeWidget, | ||||||
|     'book': BookTypeWidget, |     'book': BookTypeWidget, | ||||||
|     'note-map': NoteMapTypeWidget |     'note-map': NoteMapTypeWidget | ||||||
|  | |||||||
| @ -11,6 +11,7 @@ const NOTE_TYPES = [ | |||||||
|     { type: "text", mime: "text/html", title: "Text", selectable: true }, |     { type: "text", mime: "text/html", title: "Text", selectable: true }, | ||||||
|     { type: "relation-map", mime: "application/json", title: "Relation Map", selectable: true }, |     { type: "relation-map", mime: "application/json", title: "Relation Map", selectable: true }, | ||||||
|     { type: "render", mime: '', title: "Render Note", selectable: true }, |     { type: "render", mime: '', title: "Render Note", selectable: true }, | ||||||
|  |     { type: "canvas-note", mime: 'application/json', title: "Canvas Note", selectable: true }, | ||||||
|     { type: "book", mime: '', title: "Book", selectable: true }, |     { type: "book", mime: '', title: "Book", selectable: true }, | ||||||
|     { type: "mermaid", mime: 'text/mermaid', title: "Mermaid Diagram", selectable: true }, |     { type: "mermaid", mime: 'text/mermaid', title: "Mermaid Diagram", selectable: true }, | ||||||
|     { type: "code", mime: 'text/plain', title: "Code", selectable: true } |     { type: "code", mime: 'text/plain', title: "Code", selectable: true } | ||||||
|  | |||||||
| @ -217,8 +217,6 @@ function changeTitle(req) { | |||||||
|         noteService.triggerNoteTitleChanged(note); |         noteService.triggerNoteTitleChanged(note); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     console.log(note, await note.getContent()); |  | ||||||
| 
 |  | ||||||
|     return note; |     return note; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Free
						Tom Free