From d88a893c6800f543f1a6bd383d6f46d8b070fe6e Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Mon, 13 Apr 2026 11:23:56 +0000 Subject: [PATCH] build --- dist/index.js | 31 +++++++++++++++++++-------- src/ViewModel/Global/coreViewModel.ts | 2 +- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/dist/index.js b/dist/index.js index cf7f32ac..c110abc4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2254,7 +2254,7 @@ this.connectionModel = connectionModel2; this.chatListModel = chatListModel2; this.fileTransferModel = fileTransferModel2; - this.BUILD = "Build 26.04.13.A"; + this.BUILD = "Build 26.04.13.B"; // CONTEXT this.contextStack = /* @__PURE__ */ new Map(); this.logContexts = () => { @@ -2266,7 +2266,8 @@ ); }; this.closeContext = (contextId) => { - if (!this.contexts.map((context) => context.contextId).includes(contextId)) return; + if (!this.contexts.map((context) => context.contextId).includes(contextId)) + return; while (this.contexts.length > 0) { const currentContext = this.context; this.contextStack.delete(currentContext.contextId); @@ -2315,7 +2316,9 @@ this.contextId = v4_default(); this.keystrokes = /* @__PURE__ */ new Map(); this.handleKeystroke = (e) => { - const fn = this.keystrokes.get(e.key.toLowerCase()); + const fn = this.keystrokes.get( + e.key.toLowerCase() + ); if (!fn) return false; e.preventDefault(); fn(); @@ -2336,18 +2339,21 @@ }; this.closeContext = () => { if (this.currentContext.value) { - this.coreViewModel.closeContext(this.currentContext.value.contextId); + this.coreViewModel.closeContext( + this.currentContext.value.contextId + ); } this.currentContext.value = void 0; }; this.updateContexts = () => { if (this.isOpen == false) return; - const selectedContext = this.contexts.get(this.contextSelection); + const selectedContext = this.contexts.get( + this.contextSelection + ); if (!selectedContext) return; if (selectedContext != this.currentContext.value) { this.closeContext(); } - ; this.coreViewModel.logContexts(); this.coreViewModel.context = selectedContext; this.currentContext.value = selectedContext; @@ -2372,7 +2378,9 @@ window.location.reload(); } function setFocus() { - const focusedInModal = document.querySelector(".modal[open] #focused"); + const focusedInModal = document.querySelector( + ".modal[open] #focused" + ); if (focusedInModal) return focusedInModal.focus(); document.getElementById("focused")?.focus(); } @@ -3657,7 +3665,9 @@ "," /* Settings */, () => this.openPage("settings" /* Settings */) ); - this.chatListViewModel.selectedChat.subscribeSilent(this.updateContexts); + this.chatListViewModel.selectedChat.subscribeSilent( + this.updateContexts + ); this.selectedPage.subscribeSilent(this.updateContexts); } // context @@ -6751,7 +6761,10 @@ "change", () => this.applyTheme() ); - this.registerKeyStroke("backspace" /* CloseOrCancel */, this.hideSettingsModal); + this.registerKeyStroke( + "backspace" /* CloseOrCancel */, + this.hideSettingsModal + ); } static generateThemeMedia() { return window.matchMedia("(prefers-color-scheme: dark)"); diff --git a/src/ViewModel/Global/coreViewModel.ts b/src/ViewModel/Global/coreViewModel.ts index 6539b490..0124ff7e 100644 --- a/src/ViewModel/Global/coreViewModel.ts +++ b/src/ViewModel/Global/coreViewModel.ts @@ -8,7 +8,7 @@ import FileTransferModel from "../../Model/Global/fileTransferModel"; import { v4 } from "uuid"; export default class CoreViewModel { - readonly BUILD = "Build 26.04.13.A"; + readonly BUILD = "Build 26.04.13.B"; translations: Translations;