Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(mobile): add recent changes dialog
Elian Doranbd5232ed1413
diff --git a/src/public/app/layouts/mobile_layout.ts b/src/public/app/layouts/mobile_layout.tsindex 6ded38ae49..a98b3df295 100644--- a/src/public/app/layouts/mobile_layout.ts+++ b/src/public/app/layouts/mobile_layout.ts@@ -30,6 +30,7 @@ import HelpDialog from "../widgets/dialogs/help.js";import type AppContext from "../components/app_context.js";import TabRowWidget from "../widgets/tab_row.js";import JumpToNoteDialog from "../widgets/dialogs/jump_to_note.js";+import RecentChangesDialog from "../widgets/dialogs/recent_changes.js";const MOBILE_CSS = `<style>@@ -187,6 +188,7 @@ export default class MobileLayout {.child(new ClassicEditorToolbar()).child(new AboutDialog()).child(new HelpDialog())+ .child(new RecentChangesDialog()).child(new JumpToNoteDialog());}}diff --git a/src/services/hidden_subtree_launcherbar.ts b/src/services/hidden_subtree_launcherbar.tsindex 01fec5985e..40fde7253c 100644--- a/src/services/hidden_subtree_launcherbar.ts+++ b/src/services/hidden_subtree_launcherbar.ts@@ -34,6 +34,12 @@ export default function buildLaunchBarConfig() {type: "launcher",builtinWidget: "calendar",icon: "bx bx-calendar"+ },+ recentChanges: {+ title: t("hidden-subtree.recent-changes-title"),+ type: "launcher",+ command: "showRecentChanges",+ icon: "bx bx-history"}};@@ -63,14 +69,7 @@ export default function buildLaunchBarConfig() {},{ id: "_lbNoteMap", title: t("hidden-subtree.note-map-title"), type: "launcher", targetNoteId: "_globalNoteMap", icon: "bx bxs-network-chart" },{ id: "_lbCalendar", ...sharedLaunchers.calendar },- {- id: "_lbRecentChanges",- title: t("hidden-subtree.recent-changes-title"),- type: "launcher",- command: "showRecentChanges",- icon: "bx bx-history",- attributes: [{ type: "label", name: "desktopOnly" }]- },+ { 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 },@@ -90,7 +89,8 @@ export default function buildLaunchBarConfig() {{ 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: "_lbMobileCalendar", ...sharedLaunchers.calendar },+ { id: "_lbMobileRecentChanges", ...sharedLaunchers.recentChanges }];return {