mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 16:32:33 +08:00
feat(mobile): add recent changes dialog
This commit is contained in:
parent
aafd905c72
commit
bd5232ed14
@ -30,6 +30,7 @@ import HelpDialog from "../widgets/dialogs/help.js";
|
|||||||
import type AppContext from "../components/app_context.js";
|
import type AppContext from "../components/app_context.js";
|
||||||
import TabRowWidget from "../widgets/tab_row.js";
|
import TabRowWidget from "../widgets/tab_row.js";
|
||||||
import JumpToNoteDialog from "../widgets/dialogs/jump_to_note.js";
|
import JumpToNoteDialog from "../widgets/dialogs/jump_to_note.js";
|
||||||
|
import RecentChangesDialog from "../widgets/dialogs/recent_changes.js";
|
||||||
|
|
||||||
const MOBILE_CSS = `
|
const MOBILE_CSS = `
|
||||||
<style>
|
<style>
|
||||||
@ -187,6 +188,7 @@ export default class MobileLayout {
|
|||||||
.child(new ClassicEditorToolbar())
|
.child(new ClassicEditorToolbar())
|
||||||
.child(new AboutDialog())
|
.child(new AboutDialog())
|
||||||
.child(new HelpDialog())
|
.child(new HelpDialog())
|
||||||
|
.child(new RecentChangesDialog())
|
||||||
.child(new JumpToNoteDialog());
|
.child(new JumpToNoteDialog());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,12 @@ export default function buildLaunchBarConfig() {
|
|||||||
type: "launcher",
|
type: "launcher",
|
||||||
builtinWidget: "calendar",
|
builtinWidget: "calendar",
|
||||||
icon: "bx bx-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: "_lbNoteMap", title: t("hidden-subtree.note-map-title"), type: "launcher", targetNoteId: "_globalNoteMap", icon: "bx bxs-network-chart" },
|
||||||
{ id: "_lbCalendar", ...sharedLaunchers.calendar },
|
{ id: "_lbCalendar", ...sharedLaunchers.calendar },
|
||||||
{
|
{ id: "_lbRecentChanges", ...sharedLaunchers.recentChanges },
|
||||||
id: "_lbRecentChanges",
|
|
||||||
title: t("hidden-subtree.recent-changes-title"),
|
|
||||||
type: "launcher",
|
|
||||||
command: "showRecentChanges",
|
|
||||||
icon: "bx bx-history",
|
|
||||||
attributes: [{ type: "label", name: "desktopOnly" }]
|
|
||||||
},
|
|
||||||
{ id: "_lbSpacer1", title: t("hidden-subtree.spacer-title"), type: "launcher", builtinWidget: "spacer", baseSize: "50", growthFactor: "0" },
|
{ 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: "_lbBookmarks", title: t("hidden-subtree.bookmarks-title"), type: "launcher", builtinWidget: "bookmarks", icon: "bx bx-bookmark" },
|
||||||
{ id: "_lbToday", ...sharedLaunchers.openToday },
|
{ id: "_lbToday", ...sharedLaunchers.openToday },
|
||||||
@ -90,7 +89,8 @@ export default function buildLaunchBarConfig() {
|
|||||||
{ id: "_lbMobileBackInHistory", ...sharedLaunchers.backInHistory },
|
{ id: "_lbMobileBackInHistory", ...sharedLaunchers.backInHistory },
|
||||||
{ id: "_lbMobileForwardInHistory", ...sharedLaunchers.forwardInHistory },
|
{ id: "_lbMobileForwardInHistory", ...sharedLaunchers.forwardInHistory },
|
||||||
{ id: "_lbMobileJumpTo", title: t("hidden-subtree.jump-to-note-title"), type: "launcher", command: "jumpToNote", icon: "bx bx-plus-circle" },
|
{ 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 {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user