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
chore(touchbar): address self-review
Elian Doran83e7e82252a4
diff --git a/src/public/app/components/app_context.ts b/src/public/app/components/app_context.tsindex f32cf51c43..ad6b70a1cf 100644--- a/src/public/app/components/app_context.ts+++ b/src/public/app/components/app_context.ts@@ -24,7 +24,7 @@ import type NoteTreeWidget from "../widgets/note_tree.js";import type { default as NoteContext, GetTextEditorCallback } from "./note_context.js";import type TypeWidget from "../widgets/type_widgets/type_widget.js";import type EditableTextTypeWidget from "../widgets/type_widgets/editable_text.js";-import type { NativeImage } from "electron";+import type { NativeImage, TouchBar } from "electron";interface Layout {getRootWidget: (appContext: AppContext) => RootWidget;@@ -270,7 +270,7 @@ export type CommandMappings = {geoMapCreateChildNote: CommandData;buildTouchBar: CommandData & {- TouchBar: typeof import("electron").TouchBar;+ TouchBar: typeof TouchBar;buildIcon(name: string): NativeImage;};refreshTouchBar: CommandData;diff --git a/src/public/app/widgets/type_widgets/editable_code.ts b/src/public/app/widgets/type_widgets/editable_code.tsindex 0f2c0d31e8..49bcde3f1f 100644--- a/src/public/app/widgets/type_widgets/editable_code.ts+++ b/src/public/app/widgets/type_widgets/editable_code.ts@@ -1,4 +1,3 @@-import { app } from "electron";import type { CommandListenerData, EventData } from "../../components/app_context.js";import type FNote from "../../entities/fnote.js";import { t } from "../../services/i18n.js";