|
1 | 1 | import server from "./server.js";
|
2 | 2 | import froca from "./froca.js";
|
3 | 3 |
|
4 |
| -async function getNoteTypeItems(command, opts = {}) { |
5 |
| - const removeDeprecatedTypes = !!opts.removeDeprecatedTypes; |
6 |
| - |
| 4 | +async function getNoteTypeItems(command) { |
7 | 5 | const items = [
|
8 | 6 | { title: "Text", command: command, type: "text", uiIcon: "bx bx-note" },
|
9 | 7 | { title: "Code", command: command, type: "code", uiIcon: "bx bx-code" },
|
10 | 8 | { title: "Saved Search", command: command, type: "search", uiIcon: "bx bx-file-find" },
|
11 |
| - { title: "Relation Map", command: command, type: "relationMap", uiIcon: "bx bx-map-alt", deprecated: true }, |
| 9 | + { title: "Relation Map", command: command, type: "relationMap", uiIcon: "bx bx-map-alt" }, |
12 | 10 | { title: "Note Map", command: command, type: "noteMap", uiIcon: "bx bx-map-alt" },
|
13 | 11 | { title: "Render Note", command: command, type: "render", uiIcon: "bx bx-extension" },
|
14 | 12 | { title: "Book", command: command, type: "book", uiIcon: "bx bx-book" },
|
15 | 13 | { title: "Mermaid Diagram", command: command, type: "mermaid", uiIcon: "bx bx-selection" },
|
16 | 14 | { title: "Canvas", command: command, type: "canvas", uiIcon: "bx bx-pen" },
|
17 | 15 | { title: "Web View", command: command, type: "webView", uiIcon: "bx bx-globe-alt" },
|
18 |
| - ].filter(item => !removeDeprecatedTypes || !item.deprecated); |
| 16 | + ]; |
19 | 17 |
|
20 | 18 | const templateNoteIds = await server.get("search-templates");
|
21 | 19 | const templateNotes = await froca.getNotes(templateNoteIds);
|
|
0 commit comments