move translations to CoreVM, move models to CoreVM for sentralization

This commit is contained in:
marlon-erler
2026-04-09 16:48:22 +00:00
parent 6204669ba3
commit 78672afc40
42 changed files with 1786 additions and 1322 deletions
+9 -2
View File
@@ -4,15 +4,22 @@ import * as React from "bloatless-react";
import ChatListViewModel from "../ViewModel/Chat/chatListViewModel";
import { ChatPage } from "./chatPage";
import CoreViewModel from "../ViewModel/Global/coreViewModel";
export function ChatPageWrapper(chatListViewModel: ChatListViewModel) {
export function ChatPageWrapper(
coreViewModel: CoreViewModel,
chatListViewModel: ChatListViewModel,
) {
const chatPageContent = React.createProxyState(
[chatListViewModel.selectedChat],
() => {
if (chatListViewModel.selectedChat.value == undefined) {
return <div></div>;
} else {
return ChatPage(chatListViewModel.selectedChat.value);
return ChatPage(
coreViewModel,
chatListViewModel.selectedChat.value,
);
}
},
);