diff --git a/dist/index.js b/dist/index.js index f6a859d3..86aee9ef 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5455,6 +5455,7 @@ // src/ViewModel/Global/coreViewModel.ts var CoreViewModel = class { constructor() { + this.BUILD = "Build 26.04.08.A"; // DRAG & DROP this.draggedObject = new State(void 0); // SUGGESTIONS @@ -5984,7 +5985,7 @@ }; // src/View/homePage.tsx - function HomePage(storageViewModel2, settingsViewModel2, connectionViewModel2, fileTransferViewModel2, chatListViewModel2) { + function HomePage(coreVieWModel2, storageViewModel2, settingsViewModel2, connectionViewModel2, fileTransferViewModel2, chatListViewModel2) { const overviewSection = /* @__PURE__ */ createElement("div", { id: "overview-section" }, /* @__PURE__ */ createElement("h2", null, translations.homePage.overviewHeadline), /* @__PURE__ */ createElement("label", { class: "tile flex-no" }, /* @__PURE__ */ createElement("span", { class: "icon" }, "cell_tower"), /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement("span", null, translations.homePage.serverAddress), /* @__PURE__ */ createElement( "input", { @@ -6069,7 +6070,7 @@ }, /* @__PURE__ */ createElement("span", { class: "icon" }, "hard_drive_2"), /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement("span", null, translations.homePage.manageStorageButton)) - ), /* @__PURE__ */ createElement("div", { class: "mobile-only" }, /* @__PURE__ */ createElement("hr", null), /* @__PURE__ */ createElement("div", { class: "flex-row justify-end" }, /* @__PURE__ */ createElement("button", { class: "ghost width-50", "on:click": scrollToChat }, translations.homePage.scrollToChatButton, /* @__PURE__ */ createElement("span", { class: "icon" }, "arrow_forward"))))); + ), /* @__PURE__ */ createElement("hr", null), /* @__PURE__ */ createElement("b", { class: "secondary" }, coreVieWModel2.BUILD), /* @__PURE__ */ createElement("div", { class: "mobile-only" }, /* @__PURE__ */ createElement("hr", null), /* @__PURE__ */ createElement("div", { class: "flex-row justify-end" }, /* @__PURE__ */ createElement("button", { class: "ghost width-50", "on:click": scrollToChat }, translations.homePage.scrollToChatButton, /* @__PURE__ */ createElement("span", { class: "icon" }, "arrow_forward"))))); const chatSection = /* @__PURE__ */ createElement("div", { id: "chat-section" }, /* @__PURE__ */ createElement("h2", null, translations.homePage.chatsHeadline), /* @__PURE__ */ createElement("div", { class: "flex-row width-input" }, /* @__PURE__ */ createElement( "input", { @@ -6568,6 +6569,7 @@ ); document.querySelector("main").append( HomePage( + coreVieWModel, storageViewModel, settingsViewModel, connectionViewModel, diff --git a/src/View/homePage.tsx b/src/View/homePage.tsx index 24370222..1ce61508 100644 --- a/src/View/homePage.tsx +++ b/src/View/homePage.tsx @@ -11,8 +11,10 @@ import FileTransferViewModel from "../ViewModel/Global/fileTransferViewModel"; import SettingsViewModel from "../ViewModel/Global/settingsViewModel"; import StorageViewModel from "../ViewModel/Global/storageViewModel"; import { translations } from "./translations"; +import CoreViewModel from "../ViewModel/Global/coreViewModel"; export function HomePage( + coreVieWModel: CoreViewModel, storageViewModel: StorageViewModel, settingsViewModel: SettingsViewModel, connectionViewModel: ConnectionViewModel, @@ -147,6 +149,10 @@ export function HomePage( +