chore(client/ts): port menus/launcher_context_menu

This commit is contained in:
Elian Doran
2024-12-22 17:56:53 +02:00
parent a14d112a5c
commit 6140bb5d99
4 changed files with 46 additions and 26 deletions

View File

@@ -24,7 +24,7 @@ interface Layout {
}
interface RootWidget extends Component {
render: () => JQuery<HTMLElement>;
render: () => JQuery<HTMLElement>;
}
interface BeforeUploadListener extends Component {
@@ -61,7 +61,7 @@ type CommandMappings = {
showConfirmDialog: ConfirmWithMessageOptions;
openNewNoteSplit: CommandData & {
ntxId: string;
notePath: string;
notePath: string;
};
executeInActiveNoteDetailWidget: CommandData & {
callback: (value: NoteDetailWidget | PromiseLike<NoteDetailWidget>) => void
@@ -69,11 +69,12 @@ type CommandMappings = {
addTextToActiveEditor: CommandData & {
text: string;
};
importMarkdownInline: CommandData;
showPasswordNotSet: CommandData;
showProtectedSessionPasswordDialog: CommandData;
closeProtectedSessionPasswordDialog: CommandData;
resetLauncher: CommandData;
}
type EventMappings = {