mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix(build): build errors
This commit is contained in:
@@ -70,6 +70,7 @@ export interface ExecuteCommandData extends CommandData {
|
|||||||
*/
|
*/
|
||||||
export type CommandMappings = {
|
export type CommandMappings = {
|
||||||
"api-log-messages": CommandData;
|
"api-log-messages": CommandData;
|
||||||
|
focusTree: CommandData,
|
||||||
focusOnDetail: Required<CommandData>;
|
focusOnDetail: Required<CommandData>;
|
||||||
focusOnSearchDefinition: Required<CommandData>;
|
focusOnSearchDefinition: Required<CommandData>;
|
||||||
searchNotes: CommandData & {
|
searchNotes: CommandData & {
|
||||||
@@ -232,9 +233,12 @@ type EventMappings = {
|
|||||||
activeContextChanged: {
|
activeContextChanged: {
|
||||||
noteContext: NoteContext;
|
noteContext: NoteContext;
|
||||||
};
|
};
|
||||||
|
beforeNoteSwitch: {
|
||||||
|
noteContext: NoteContext;
|
||||||
|
};
|
||||||
noteSwitched: {
|
noteSwitched: {
|
||||||
noteContext: NoteContext;
|
noteContext: NoteContext;
|
||||||
notePath: string;
|
notePath: string | null;
|
||||||
};
|
};
|
||||||
noteSwitchedAndActivatedEvent: {
|
noteSwitchedAndActivatedEvent: {
|
||||||
noteContext: NoteContext;
|
noteContext: NoteContext;
|
||||||
@@ -253,12 +257,16 @@ type EventMappings = {
|
|||||||
noteId: string;
|
noteId: string;
|
||||||
};
|
};
|
||||||
hoistedNoteChanged: {
|
hoistedNoteChanged: {
|
||||||
ntxId: string;
|
noteId: string;
|
||||||
|
ntxId: string | null;
|
||||||
};
|
};
|
||||||
contextsReopenedEvent: {
|
contextsReopenedEvent: {
|
||||||
mainNtxId: string;
|
mainNtxId: string;
|
||||||
tabPosition: number;
|
tabPosition: number;
|
||||||
};
|
};
|
||||||
|
noteDetailRefreshed: {
|
||||||
|
ntxId?: string | null;
|
||||||
|
};
|
||||||
noteContextReorderEvent: {
|
noteContextReorderEvent: {
|
||||||
oldMainNtxId: string;
|
oldMainNtxId: string;
|
||||||
newMainNtxId: string;
|
newMainNtxId: string;
|
||||||
@@ -275,6 +283,9 @@ type EventMappings = {
|
|||||||
geoMapCreateChildNote: {
|
geoMapCreateChildNote: {
|
||||||
ntxId: string | null | undefined; // TODO: deduplicate ntxId
|
ntxId: string | null | undefined; // TODO: deduplicate ntxId
|
||||||
};
|
};
|
||||||
|
tabReorder: {
|
||||||
|
ntxIdsInOrder: string[]
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EventListener<T extends EventNames> = {
|
export type EventListener<T extends EventNames> = {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default class LeftPaneContainer extends FlexContainer<Component> {
|
|||||||
this.toggleInt(visible);
|
this.toggleInt(visible);
|
||||||
|
|
||||||
if (visible) {
|
if (visible) {
|
||||||
this.triggerEvent("focusTree");
|
this.triggerEvent("focusTree", {});
|
||||||
} else {
|
} else {
|
||||||
const activeNoteContext = appContext.tabManager.getActiveContext();
|
const activeNoteContext = appContext.tabManager.getActiveContext();
|
||||||
this.triggerEvent("focusOnDetail", { ntxId: activeNoteContext.ntxId });
|
this.triggerEvent("focusOnDetail", { ntxId: activeNoteContext.ntxId });
|
||||||
|
|||||||
Reference in New Issue
Block a user