From 8c2354df717922a31ab805e4af5617b417162507 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Mon, 3 Nov 2025 18:16:41 +0200 Subject: [PATCH] client: format code --- .../services/hidden_subtree_launcherbar.ts | 124 +++++++++++++++--- 1 file changed, 104 insertions(+), 20 deletions(-) diff --git a/apps/server/src/services/hidden_subtree_launcherbar.ts b/apps/server/src/services/hidden_subtree_launcherbar.ts index bc537d5f3..dbad2ee56 100644 --- a/apps/server/src/services/hidden_subtree_launcherbar.ts +++ b/apps/server/src/services/hidden_subtree_launcherbar.ts @@ -44,9 +44,21 @@ export default function buildLaunchBarConfig() { }; const desktopAvailableLaunchers: HiddenSubtreeItem[] = [ - { id: "_lbBackInHistory", ...sharedLaunchers.backInHistory }, - { id: "_lbForwardInHistory", ...sharedLaunchers.forwardInHistory }, - { id: "_lbBackendLog", title: t("hidden-subtree.backend-log-title"), type: "launcher", targetNoteId: "_backendLog", icon: "bx bx-terminal" }, + { + id: "_lbBackInHistory", + ...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", title: t("hidden-subtree.zen-mode"), @@ -57,7 +69,10 @@ export default function buildLaunchBarConfig() { ]; const desktopVisibleLaunchers: HiddenSubtreeItem[] = [ - { id: "_lbNewNote", ...sharedLaunchers.newNote }, + { + id: "_lbNewNote", + ...sharedLaunchers.newNote + }, { id: "_lbSearch", title: t("hidden-subtree.search-notes-title"), @@ -74,7 +89,12 @@ export default function buildLaunchBarConfig() { icon: "bx bx-send", 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", title: t("hidden-subtree.llm-chat-title"), @@ -85,12 +105,41 @@ export default function buildLaunchBarConfig() { { type: "label", name: "desktopOnly" } ] }, - { id: "_lbCalendar", ...sharedLaunchers.calendar }, - { 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: "_lbCalendar", + ...sharedLaunchers.calendar + }, + { + 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", title: t("hidden-subtree.quick-search-title"), @@ -99,9 +148,26 @@ export default function buildLaunchBarConfig() { icon: "bx bx-rectangle", 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: "_lbSettings", title: t("hidden-subtree.settings-title"), type: "launcher", command: "showOptions", icon: "bx bx-cog" } + { + 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: "_lbSettings", + title: t("hidden-subtree.settings-title"), + type: "launcher", + command: "showOptions", + icon: "bx bx-cog" + } ]; const mobileAvailableLaunchers: HiddenSubtreeItem[] = [ @@ -110,11 +176,29 @@ export default function buildLaunchBarConfig() { ]; const mobileVisibleLaunchers: HiddenSubtreeItem[] = [ - { id: "_lbMobileBackInHistory", ...sharedLaunchers.backInHistory }, - { 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 } + { + id: "_lbMobileBackInHistory", + ...sharedLaunchers.backInHistory + }, + { + 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 { @@ -123,4 +207,4 @@ export default function buildLaunchBarConfig() { mobileAvailableLaunchers, mobileVisibleLaunchers }; -} +} \ No newline at end of file