mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 16:39:02 +01:00
This commit is contained in:
parent
d650b801e6
commit
8c2354df71
@ -44,9 +44,21 @@ export default function buildLaunchBarConfig() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const desktopAvailableLaunchers: HiddenSubtreeItem[] = [
|
const desktopAvailableLaunchers: HiddenSubtreeItem[] = [
|
||||||
{ id: "_lbBackInHistory", ...sharedLaunchers.backInHistory },
|
{
|
||||||
{ id: "_lbForwardInHistory", ...sharedLaunchers.forwardInHistory },
|
id: "_lbBackInHistory",
|
||||||
{ id: "_lbBackendLog", title: t("hidden-subtree.backend-log-title"), type: "launcher", targetNoteId: "_backendLog", icon: "bx bx-terminal" },
|
...sharedLaunchers.backInHistory
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbForwardInHistory",
|
||||||
|
...sharedLaunchers.forwardInHistory
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbBackendLog",
|
||||||
|
title: t("hidden-subtree.backend-log-title"),
|
||||||
|
type: "launcher",
|
||||||
|
targetNoteId: "_backendLog",
|
||||||
|
icon: "bx bx-terminal"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "_zenMode",
|
id: "_zenMode",
|
||||||
title: t("hidden-subtree.zen-mode"),
|
title: t("hidden-subtree.zen-mode"),
|
||||||
@ -57,7 +69,10 @@ export default function buildLaunchBarConfig() {
|
|||||||
];
|
];
|
||||||
|
|
||||||
const desktopVisibleLaunchers: HiddenSubtreeItem[] = [
|
const desktopVisibleLaunchers: HiddenSubtreeItem[] = [
|
||||||
{ id: "_lbNewNote", ...sharedLaunchers.newNote },
|
{
|
||||||
|
id: "_lbNewNote",
|
||||||
|
...sharedLaunchers.newNote
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "_lbSearch",
|
id: "_lbSearch",
|
||||||
title: t("hidden-subtree.search-notes-title"),
|
title: t("hidden-subtree.search-notes-title"),
|
||||||
@ -74,7 +89,12 @@ export default function buildLaunchBarConfig() {
|
|||||||
icon: "bx bx-send",
|
icon: "bx bx-send",
|
||||||
attributes: [{ type: "label", name: "desktopOnly" }]
|
attributes: [{ type: "label", name: "desktopOnly" }]
|
||||||
},
|
},
|
||||||
{ id: "_lbNoteMap", title: t("hidden-subtree.note-map-title"), type: "launcher", targetNoteId: "_globalNoteMap", icon: "bx bxs-network-chart" },
|
{ id: "_lbNoteMap",
|
||||||
|
title: t("hidden-subtree.note-map-title"),
|
||||||
|
type: "launcher",
|
||||||
|
targetNoteId: "_globalNoteMap",
|
||||||
|
icon: "bx bxs-network-chart"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "_lbLlmChat",
|
id: "_lbLlmChat",
|
||||||
title: t("hidden-subtree.llm-chat-title"),
|
title: t("hidden-subtree.llm-chat-title"),
|
||||||
@ -85,12 +105,41 @@ export default function buildLaunchBarConfig() {
|
|||||||
{ type: "label", name: "desktopOnly" }
|
{ type: "label", name: "desktopOnly" }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ id: "_lbCalendar", ...sharedLaunchers.calendar },
|
{
|
||||||
{ id: "_lbRecentChanges", ...sharedLaunchers.recentChanges },
|
id: "_lbCalendar",
|
||||||
{ id: "_lbSpacer1", title: t("hidden-subtree.spacer-title"), type: "launcher", builtinWidget: "spacer", baseSize: "50", growthFactor: "0" },
|
...sharedLaunchers.calendar
|
||||||
{ id: "_lbBookmarks", title: t("hidden-subtree.bookmarks-title"), type: "launcher", builtinWidget: "bookmarks", icon: "bx bx-bookmark" },
|
},
|
||||||
{ id: "_lbToday", ...sharedLaunchers.openToday },
|
{
|
||||||
{ id: "_lbSpacer2", title: t("hidden-subtree.spacer-title"), type: "launcher", builtinWidget: "spacer", baseSize: "0", growthFactor: "1" },
|
id: "_lbRecentChanges",
|
||||||
|
...sharedLaunchers.recentChanges
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbSpacer1",
|
||||||
|
title: t("hidden-subtree.spacer-title"),
|
||||||
|
type: "launcher",
|
||||||
|
builtinWidget: "spacer",
|
||||||
|
baseSize: "50",
|
||||||
|
growthFactor: "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbBookmarks",
|
||||||
|
title: t("hidden-subtree.bookmarks-title"),
|
||||||
|
type: "launcher",
|
||||||
|
builtinWidget: "bookmarks",
|
||||||
|
icon: "bx bx-bookmark"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbToday",
|
||||||
|
...sharedLaunchers.openToday
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbSpacer2",
|
||||||
|
title: t("hidden-subtree.spacer-title"),
|
||||||
|
type: "launcher",
|
||||||
|
builtinWidget: "spacer",
|
||||||
|
baseSize: "0",
|
||||||
|
growthFactor: "1"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "_lbQuickSearch",
|
id: "_lbQuickSearch",
|
||||||
title: t("hidden-subtree.quick-search-title"),
|
title: t("hidden-subtree.quick-search-title"),
|
||||||
@ -99,9 +148,26 @@ export default function buildLaunchBarConfig() {
|
|||||||
icon: "bx bx-rectangle",
|
icon: "bx bx-rectangle",
|
||||||
attributes: [{ type: "label", name: "docName", value: "launchbar_quick_search" }]
|
attributes: [{ type: "label", name: "docName", value: "launchbar_quick_search" }]
|
||||||
},
|
},
|
||||||
{ id: "_lbProtectedSession", title: t("hidden-subtree.protected-session-title"), type: "launcher", builtinWidget: "protectedSession", icon: "bx bx bx-shield-quarter" },
|
{
|
||||||
{ id: "_lbSyncStatus", title: t("hidden-subtree.sync-status-title"), type: "launcher", builtinWidget: "syncStatus", icon: "bx bx-wifi" },
|
id: "_lbProtectedSession",
|
||||||
{ id: "_lbSettings", title: t("hidden-subtree.settings-title"), type: "launcher", command: "showOptions", icon: "bx bx-cog" }
|
title: t("hidden-subtree.protected-session-title"),
|
||||||
|
type: "launcher", builtinWidget: "protectedSession",
|
||||||
|
icon: "bx bx bx-shield-quarter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbSyncStatus",
|
||||||
|
title: t("hidden-subtree.sync-status-title"),
|
||||||
|
type: "launcher",
|
||||||
|
builtinWidget: "syncStatus",
|
||||||
|
icon: "bx bx-wifi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbSettings",
|
||||||
|
title: t("hidden-subtree.settings-title"),
|
||||||
|
type: "launcher",
|
||||||
|
command: "showOptions",
|
||||||
|
icon: "bx bx-cog"
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
const mobileAvailableLaunchers: HiddenSubtreeItem[] = [
|
const mobileAvailableLaunchers: HiddenSubtreeItem[] = [
|
||||||
@ -110,11 +176,29 @@ export default function buildLaunchBarConfig() {
|
|||||||
];
|
];
|
||||||
|
|
||||||
const mobileVisibleLaunchers: HiddenSubtreeItem[] = [
|
const mobileVisibleLaunchers: HiddenSubtreeItem[] = [
|
||||||
{ id: "_lbMobileBackInHistory", ...sharedLaunchers.backInHistory },
|
{
|
||||||
{ id: "_lbMobileForwardInHistory", ...sharedLaunchers.forwardInHistory },
|
id: "_lbMobileBackInHistory",
|
||||||
{ id: "_lbMobileJumpTo", title: t("hidden-subtree.jump-to-note-title"), type: "launcher", command: "jumpToNote", icon: "bx bx-plus-circle" },
|
...sharedLaunchers.backInHistory
|
||||||
{ id: "_lbMobileCalendar", ...sharedLaunchers.calendar },
|
},
|
||||||
{ id: "_lbMobileRecentChanges", ...sharedLaunchers.recentChanges }
|
{
|
||||||
|
id: "_lbMobileForwardInHistory",
|
||||||
|
...sharedLaunchers.forwardInHistory
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbMobileJumpTo",
|
||||||
|
title: t("hidden-subtree.jump-to-note-title"),
|
||||||
|
type: "launcher",
|
||||||
|
command: "jumpToNote",
|
||||||
|
icon: "bx bx-plus-circle"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbMobileCalendar",
|
||||||
|
...sharedLaunchers.calendar
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "_lbMobileRecentChanges",
|
||||||
|
...sharedLaunchers.recentChanges
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -123,4 +207,4 @@ export default function buildLaunchBarConfig() {
|
|||||||
mobileAvailableLaunchers,
|
mobileAvailableLaunchers,
|
||||||
mobileVisibleLaunchers
|
mobileVisibleLaunchers
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user