2024-07-25 16:02:49 +02:00
|
|
|
import * as React from "bloatless-react";
|
2026-04-09 16:48:22 +00:00
|
|
|
import SettingsModel from "../../Model/Global/settingsModel";
|
|
|
|
|
import { allTranslations, Translations } from "../../View/translations";
|
|
|
|
|
import StorageModel from "../../Model/Global/storageModel";
|
|
|
|
|
import ConnectionModel from "../../Model/Global/connectionModel";
|
|
|
|
|
import ChatListModel from "../../Model/Chat/chatListModel";
|
|
|
|
|
import FileTransferModel from "../../Model/Global/fileTransferModel";
|
2024-07-25 16:02:49 +02:00
|
|
|
|
|
|
|
|
export default class CoreViewModel {
|
2026-04-12 12:54:39 +00:00
|
|
|
readonly BUILD = "Build 26.04.12.A";
|
2026-04-09 16:48:22 +00:00
|
|
|
|
|
|
|
|
translations: Translations;
|
2026-04-08 09:56:37 +00:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
// DRAG & DROP
|
|
|
|
|
draggedObject: React.State<any> = new React.State<any>(undefined);
|
2024-07-27 15:31:45 +02:00
|
|
|
|
2026-04-01 08:29:39 +00:00
|
|
|
// SUGGESTIONS
|
|
|
|
|
// boards & tasks
|
2026-04-06 15:50:13 +00:00
|
|
|
boardFilterStringSuggestions: React.ListState<string> =
|
|
|
|
|
new React.ListState();
|
2026-04-01 08:29:39 +00:00
|
|
|
|
|
|
|
|
taskCategorySuggestions: React.ListState<string> = new React.ListState();
|
|
|
|
|
taskStatusSuggestions: React.ListState<string> = new React.ListState();
|
2026-04-09 16:48:22 +00:00
|
|
|
|
|
|
|
|
// init
|
|
|
|
|
constructor(
|
|
|
|
|
public storageModel: StorageModel,
|
|
|
|
|
public settingsModel: SettingsModel,
|
|
|
|
|
public connectionModel: ConnectionModel,
|
|
|
|
|
public chatListModel: ChatListModel,
|
|
|
|
|
public fileTransferModel: FileTransferModel,
|
|
|
|
|
) {
|
|
|
|
|
this.translations =
|
|
|
|
|
allTranslations[settingsModel.language] || allTranslations.en;
|
|
|
|
|
}
|
2024-07-25 16:02:49 +02:00
|
|
|
}
|