|
|
|
|
@ -2,19 +2,20 @@ import server from "./server.js";
|
|
|
|
|
import froca from "./froca.js";
|
|
|
|
|
import { t } from "./i18n.js";
|
|
|
|
|
import { MenuItem } from "../menus/context_menu.js";
|
|
|
|
|
import { CommandNames } from "../components/app_context.js";
|
|
|
|
|
|
|
|
|
|
async function getNoteTypeItems(command?: string) {
|
|
|
|
|
async function getNoteTypeItems(command?: CommandNames) {
|
|
|
|
|
const items: MenuItem[] = [
|
|
|
|
|
{ title: t("note_types.text"), command: command, type: "text", uiIcon: "bx bx-note" },
|
|
|
|
|
{ title: t("note_types.code"), command: command, type: "code", uiIcon: "bx bx-code" },
|
|
|
|
|
{ title: t("note_types.saved-search"), command: command, type: "search", uiIcon: "bx bx-file-find" },
|
|
|
|
|
{ title: t("note_types.relation-map"), command: command, type: "relationMap", uiIcon: "bx bxs-network-chart" },
|
|
|
|
|
{ title: t("note_types.note-map"), command: command, type: "noteMap", uiIcon: "bx bxs-network-chart" },
|
|
|
|
|
{ title: t("note_types.render-note"), command: command, type: "render", uiIcon: "bx bx-extension" },
|
|
|
|
|
{ title: t("note_types.book"), command: command, type: "book", uiIcon: "bx bx-book" },
|
|
|
|
|
{ title: t("note_types.mermaid-diagram"), command: command, type: "mermaid", uiIcon: "bx bx-selection" },
|
|
|
|
|
{ title: t("note_types.canvas"), command: command, type: "canvas", uiIcon: "bx bx-pen" },
|
|
|
|
|
{ title: t("note_types.web-view"), command: command, type: "webView", uiIcon: "bx bx-globe-alt" },
|
|
|
|
|
{ title: t("note_types.text"), command, type: "text", uiIcon: "bx bx-note" },
|
|
|
|
|
{ title: t("note_types.code"), command, type: "code", uiIcon: "bx bx-code" },
|
|
|
|
|
{ title: t("note_types.saved-search"), command, type: "search", uiIcon: "bx bx-file-find" },
|
|
|
|
|
{ title: t("note_types.relation-map"), command, type: "relationMap", uiIcon: "bx bxs-network-chart" },
|
|
|
|
|
{ title: t("note_types.note-map"), command, type: "noteMap", uiIcon: "bx bxs-network-chart" },
|
|
|
|
|
{ title: t("note_types.render-note"), command, type: "render", uiIcon: "bx bx-extension" },
|
|
|
|
|
{ title: t("note_types.book"), command, type: "book", uiIcon: "bx bx-book" },
|
|
|
|
|
{ title: t("note_types.mermaid-diagram"), command, type: "mermaid", uiIcon: "bx bx-selection" },
|
|
|
|
|
{ title: t("note_types.canvas"), command, type: "canvas", uiIcon: "bx bx-pen" },
|
|
|
|
|
{ title: t("note_types.web-view"), command, type: "webView", uiIcon: "bx bx-globe-alt" },
|
|
|
|
|
{ title: t("note_types.mind-map"), command, type: "mindMap", uiIcon: "bx bx-sitemap" }
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|