reorganize
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
|||||||
import { decryptString, encryptString } from "../Utility/crypto";
|
import { decryptString, encryptString } from "../Utility/crypto";
|
||||||
|
|
||||||
import ChatListModel from "./chatListModel";
|
import ChatListModel from "./chatListModel";
|
||||||
import { Color } from "../../ViewModel/colors";
|
import { Color } from "../../colors";
|
||||||
import ConnectionModel from "../Global/connectionModel";
|
import ConnectionModel from "../Global/connectionModel";
|
||||||
import SettingsModel from "../Global/settingsModel";
|
import SettingsModel from "../Global/settingsModel";
|
||||||
import { v4 } from "uuid";
|
import { v4 } from "uuid";
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
} from "../Utility/utility";
|
} from "../Utility/utility";
|
||||||
|
|
||||||
import ChatModel from "../Chat/chatModel";
|
import ChatModel from "../Chat/chatModel";
|
||||||
import { Color } from "../../ViewModel/colors";
|
import { Color } from "../../colors";
|
||||||
import TaskModel from "./taskModel";
|
import TaskModel from "./taskModel";
|
||||||
import { v4 } from "uuid";
|
import { v4 } from "uuid";
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
import FileModel, { FileContent } from "./fileModel";
|
import FileModel, { FileContent } from "./fileModel";
|
||||||
|
|
||||||
import ChatModel from "../Chat/chatModel";
|
import ChatModel from "../Chat/chatModel";
|
||||||
import { Color } from "../../ViewModel/colors";
|
import { Color } from "../../colors";
|
||||||
import StorageModel from "../Global/storageModel";
|
import StorageModel from "../Global/storageModel";
|
||||||
import { v4 } from "uuid";
|
import { v4 } from "uuid";
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import "./messagePage.css";
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import { ChatMessageViewModelToView } from "../Components/chatMessage";
|
import { ChatMessageViewModelToView } from "../Components/chatMessage";
|
||||||
import ChatViewModel from "../../ViewModel/chatViewModel";
|
import ChatViewModel from "../../ViewModel/Chat/chatViewModel";
|
||||||
import { translations } from "../translations";
|
import { translations } from "../translations";
|
||||||
|
|
||||||
export function MessagePage(chatViewModel: ChatViewModel) {
|
export function MessagePage(chatViewModel: ChatViewModel) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import ChatViewModel from "../../ViewModel/chatViewModel";
|
import ChatViewModel from "../../ViewModel/chatViewModel";
|
||||||
import { Color } from "../../ViewModel/colors";
|
import { Color } from "../../colors";
|
||||||
import { DangerousActionButton } from "../Components/dangerousActionButton";
|
import { DangerousActionButton } from "../Components/dangerousActionButton";
|
||||||
import { DeletableListItem } from "../Components/deletableListItem";
|
import { DeletableListItem } from "../Components/deletableListItem";
|
||||||
import { translations } from "../translations";
|
import { translations } from "../translations";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import ChatViewModel from "../../ViewModel/chatViewModel";
|
import ChatViewModel from "../../ViewModel/Chat/chatViewModel";
|
||||||
import { translations } from "../translations";
|
import { translations } from "../translations";
|
||||||
|
|
||||||
export function TaskPage(chatViewModel: ChatViewModel) {
|
export function TaskPage(chatViewModel: ChatViewModel) {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import * as React from "bloatless-react";
|
|||||||
|
|
||||||
import { ChatMessageInfoModal } from "./chatMessageInfoModal";
|
import { ChatMessageInfoModal } from "./chatMessageInfoModal";
|
||||||
import { ChatMessageStatus } from "../../Model/Chat/chatModel";
|
import { ChatMessageStatus } from "../../Model/Chat/chatModel";
|
||||||
import ChatMessageViewModel from "../../ViewModel/chatMessageViewModel";
|
import ChatMessageViewModel from "../../ViewModel/Chat/chatMessageViewModel";
|
||||||
import { translations } from "../translations";
|
import { translations } from "../translations";
|
||||||
|
|
||||||
export function ChatMessage(chatMessageViewModel: ChatMessageViewModel) {
|
export function ChatMessage(chatMessageViewModel: ChatMessageViewModel) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import StorageModel, {
|
|||||||
PATH_COMPONENT_SEPARATOR,
|
PATH_COMPONENT_SEPARATOR,
|
||||||
} from "../../Model/Global/storageModel";
|
} from "../../Model/Global/storageModel";
|
||||||
|
|
||||||
import StorageViewModel from "../../ViewModel/storageViewModel";
|
import StorageViewModel from "../../ViewModel/Global/storageViewModel";
|
||||||
|
|
||||||
export function DirectoryItemList(
|
export function DirectoryItemList(
|
||||||
storageViewModel: StorageViewModel,
|
storageViewModel: StorageViewModel,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import * as React from "bloatless-react";
|
|||||||
import { DangerousActionButton } from "./dangerousActionButton";
|
import { DangerousActionButton } from "./dangerousActionButton";
|
||||||
import { DirectoryItemList } from "./directoryItemList";
|
import { DirectoryItemList } from "./directoryItemList";
|
||||||
import { PATH_COMPONENT_SEPARATOR } from "../../Model/Global/storageModel";
|
import { PATH_COMPONENT_SEPARATOR } from "../../Model/Global/storageModel";
|
||||||
import StorageViewModel from "../../ViewModel/storageViewModel";
|
import StorageViewModel from "../../ViewModel/Global/storageViewModel";
|
||||||
import { translations } from "../translations";
|
import { translations } from "../translations";
|
||||||
|
|
||||||
export function FileBrowser(storageViewModel: StorageViewModel) {
|
export function FileBrowser(storageViewModel: StorageViewModel) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import ConnectionViewModel from "../../ViewModel/connectionViewModel";
|
import ConnectionViewModel from "../../ViewModel/Global/connectionViewModel";
|
||||||
import { DeletableListItem } from "../Components/deletableListItem";
|
import { DeletableListItem } from "../Components/deletableListItem";
|
||||||
import { translations } from "../translations";
|
import { translations } from "../translations";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import { FileBrowser } from "../Components/fileBrowser";
|
import { FileBrowser } from "../Components/fileBrowser";
|
||||||
import StorageViewModel from "../../ViewModel/storageViewModel";
|
import StorageViewModel from "../../ViewModel/Global/storageViewModel";
|
||||||
import { translations } from "../translations";
|
import { translations } from "../translations";
|
||||||
|
|
||||||
export function StorageModal(storageViewModel: StorageViewModel) {
|
export function StorageModal(storageViewModel: StorageViewModel) {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import { Option, StringToOption } from "./Components/option";
|
|||||||
|
|
||||||
import ChatListViewModel from "../ViewModel/chatListViewModel";
|
import ChatListViewModel from "../ViewModel/chatListViewModel";
|
||||||
import { ChatViewModelToChatEntry } from "./Components/chatEntry";
|
import { ChatViewModelToChatEntry } from "./Components/chatEntry";
|
||||||
import ConnectionViewModel from "../ViewModel/connectionViewModel";
|
import ConnectionViewModel from "../ViewModel/Global/connectionViewModel";
|
||||||
import SettingsViewModel from "../ViewModel/settingsViewModel";
|
import SettingsViewModel from "../ViewModel/Global/settingsViewModel";
|
||||||
import StorageViewModel from "../ViewModel/storageViewModel";
|
import StorageViewModel from "../ViewModel/Global/storageViewModel";
|
||||||
import { translations } from "./translations";
|
import { translations } from "./translations";
|
||||||
|
|
||||||
export function HomePage(
|
export function HomePage(
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import ChatListModel from "../Model/Chat/chatListModel";
|
import ChatListModel from "../../Model/Chat/chatListModel";
|
||||||
import ChatModel from "../Model/Chat/chatModel";
|
import ChatModel from "../../Model/Chat/chatModel";
|
||||||
import ChatViewModel from "./chatViewModel";
|
import ChatViewModel from "./chatViewModel";
|
||||||
import SettingsViewModel from "./settingsViewModel";
|
import SettingsViewModel from "../Global/settingsViewModel";
|
||||||
import StorageModel from "../Model/Global/storageModel";
|
import StorageModel from "../../Model/Global/storageModel";
|
||||||
|
|
||||||
export default class ChatListViewModel {
|
export default class ChatListViewModel {
|
||||||
chatListModel: ChatListModel;
|
chatListModel: ChatListModel;
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import { ChatMessage, ChatMessageStatus } from "../Model/Chat/chatModel";
|
import { ChatMessage, ChatMessageStatus } from "../../Model/Chat/chatModel";
|
||||||
|
|
||||||
import ChatViewModel from "./chatViewModel";
|
import ChatViewModel from "./chatViewModel";
|
||||||
|
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import ChatModel, { ChatMessage } from "../Model/Chat/chatModel";
|
import ChatModel, { ChatMessage } from "../../Model/Chat/chatModel";
|
||||||
import StorageModel, { filePaths } from "../Model/Global/storageModel";
|
import StorageModel, { filePaths } from "../../Model/Global/storageModel";
|
||||||
|
|
||||||
import ChatListViewModel from "./chatListViewModel";
|
import ChatListViewModel from "./chatListViewModel";
|
||||||
import ChatMessageViewModel from "./chatMessageViewModel";
|
import ChatMessageViewModel from "./chatMessageViewModel";
|
||||||
import { Color } from "./colors";
|
import { Color } from "../../colors";
|
||||||
import SettingsViewModel from "./settingsViewModel";
|
import SettingsViewModel from "../Global/settingsViewModel";
|
||||||
import { localeCompare } from "../Model/Utility/utility";
|
import { localeCompare } from "../../Model/Utility/utility";
|
||||||
|
|
||||||
export default class ChatViewModel {
|
export default class ChatViewModel {
|
||||||
chatModel: ChatModel;
|
chatModel: ChatModel;
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import ConnectionModel from "../Model/Global/connectionModel";
|
import ConnectionModel from "../../Model/Global/connectionModel";
|
||||||
|
|
||||||
export default class ConnectionViewModel {
|
export default class ConnectionViewModel {
|
||||||
connectionModel: ConnectionModel;
|
connectionModel: ConnectionModel;
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import SettingsModel from "../Model/Global/settingsModel";
|
import SettingsModel from "../../Model/Global/settingsModel";
|
||||||
|
|
||||||
export default class SettingsViewModel {
|
export default class SettingsViewModel {
|
||||||
settingsModel: SettingsModel;
|
settingsModel: SettingsModel;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import StorageModel, { PATH_COMPONENT_SEPARATOR } from "../Model/Global/storageModel";
|
import StorageModel, { PATH_COMPONENT_SEPARATOR } from "../../Model/Global/storageModel";
|
||||||
|
|
||||||
import { translations } from "../View/translations";
|
import { translations } from "../../View/translations";
|
||||||
|
|
||||||
export default class StorageViewModel {
|
export default class StorageViewModel {
|
||||||
storageModel: StorageModel;
|
storageModel: StorageModel;
|
||||||
+4
-4
@@ -4,17 +4,17 @@ import "./colors.css";
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import ChatListModel from "./Model/Chat/chatListModel";
|
import ChatListModel from "./Model/Chat/chatListModel";
|
||||||
import ChatListViewModel from "./ViewModel/chatListViewModel";
|
import ChatListViewModel from "./ViewModel/Chat/chatListViewModel";
|
||||||
import { ChatPageWrapper } from "./View/chatPageWrapper";
|
import { ChatPageWrapper } from "./View/chatPageWrapper";
|
||||||
import { ConnectionModal } from "./View/Modals/connectionModal";
|
import { ConnectionModal } from "./View/Modals/connectionModal";
|
||||||
import ConnectionModel from "./Model/Global/connectionModel";
|
import ConnectionModel from "./Model/Global/connectionModel";
|
||||||
import ConnectionViewModel from "./ViewModel/connectionViewModel";
|
import ConnectionViewModel from "./ViewModel/Global/connectionViewModel";
|
||||||
import { HomePage } from "./View/homePage";
|
import { HomePage } from "./View/homePage";
|
||||||
import SettingsModel from "./Model/Global/settingsModel";
|
import SettingsModel from "./Model/Global/settingsModel";
|
||||||
import SettingsViewModel from "./ViewModel/settingsViewModel";
|
import SettingsViewModel from "./ViewModel/Global/settingsViewModel";
|
||||||
import { StorageModal } from "./View/Modals/storageModal";
|
import { StorageModal } from "./View/Modals/storageModal";
|
||||||
import StorageModel from "./Model/Global/storageModel";
|
import StorageModel from "./Model/Global/storageModel";
|
||||||
import StorageViewModel from "./ViewModel/storageViewModel";
|
import StorageViewModel from "./ViewModel/Global/storageViewModel";
|
||||||
|
|
||||||
// models
|
// models
|
||||||
const storageModel = new StorageModel();
|
const storageModel = new StorageModel();
|
||||||
|
|||||||
Reference in New Issue
Block a user