reorganize
This commit is contained in:
@@ -2,10 +2,10 @@ import * as React from "bloatless-react";
|
|||||||
|
|
||||||
import { closeChatView, isShowingChatTools, selectedChat, toggleChatTools } from "../Model/model";
|
import { closeChatView, isShowingChatTools, selectedChat, toggleChatTools } from "../Model/model";
|
||||||
|
|
||||||
import { ChatOptionModal } from "../Views/chatOptionModal";
|
import { ChatOptionModal } from "../Views/Chat/chatOptionModal";
|
||||||
import { ChatToolView } from "../Views/chatToolView";
|
import { ChatToolView } from "../Views/Chat/chatToolView";
|
||||||
import { MessageComposer } from "../Views/messageComposer";
|
import { MessageComposer } from "../Views/Chat/messageComposer";
|
||||||
import { ThreadView } from "../Views/threadView";
|
import { ThreadView } from "../Views/Chat/threadView";
|
||||||
import { translation } from "../translations";
|
import { translation } from "../translations";
|
||||||
|
|
||||||
export function MessageTab() {
|
export function MessageTab() {
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import * as React from "bloatless-react";
|
|||||||
|
|
||||||
import { isConnected, isEncryptionAvailable } from "../Model/model";
|
import { isConnected, isEncryptionAvailable } from "../Model/model";
|
||||||
|
|
||||||
import { ChatListSection } from "../Views/chatListSection";
|
import { ChatListSection } from "../Views/Overview/chatListSection";
|
||||||
import { ConnectionSection } from "../Views/connectionSection";
|
import { ConnectionSection } from "../Views/Overview/connectionSection";
|
||||||
import { PersonalSection } from "../Views/personalSection";
|
import { PersonalSection } from "../Views/Overview/personalSection";
|
||||||
import { translation } from "../translations";
|
import { translation } from "../translations";
|
||||||
|
|
||||||
export function OverviewTab() {
|
export function OverviewTab() {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import { Chat } from "../Model/chatModel";
|
import { Chat } from "../../Model/chatModel";
|
||||||
import { closeChatView } from "../Model/model";
|
import { closeChatView } from "../../Model/model";
|
||||||
import { translation } from "../translations";
|
import { translation } from "../../translations";
|
||||||
|
|
||||||
export function ChatOptionModal(chat: Chat, isPresented: React.State<boolean>) {
|
export function ChatOptionModal(chat: Chat, isPresented: React.State<boolean>) {
|
||||||
function closeModal() {
|
function closeModal() {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import { Chat, Item } from "../Model/chatModel";
|
import { Chat, Item } from "../../Model/chatModel";
|
||||||
|
|
||||||
import { translation } from "../translations";
|
import { translation } from "../../translations";
|
||||||
|
|
||||||
export function ChatToolView(chat: Chat) {
|
export function ChatToolView(chat: Chat) {
|
||||||
function createItem() {
|
function createItem() {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import { Chat } from "../Model/chatModel";
|
import { Chat } from "../../Model/chatModel";
|
||||||
import { translation } from "../translations";
|
import { translation } from "../../translations";
|
||||||
|
|
||||||
export function MessageComposer(chat: Chat) {
|
export function MessageComposer(chat: Chat) {
|
||||||
return (
|
return (
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import { Chat, ChatMessage } from "../Model/chatModel";
|
import { Chat, ChatMessage } from "../../Model/chatModel";
|
||||||
|
|
||||||
import { isShowingChatTools } from "../Model/model";
|
import { isShowingChatTools } from "../../Model/model";
|
||||||
import { translation } from "../translations";
|
import { translation } from "../../translations";
|
||||||
|
|
||||||
export function ThreadView(chat: Chat) {
|
export function ThreadView(chat: Chat) {
|
||||||
const messageConverter: React.StateItemConverter<ChatMessage> = (message) => {
|
const messageConverter: React.StateItemConverter<ChatMessage> = (message) => {
|
||||||
@@ -7,10 +7,10 @@ import {
|
|||||||
newChatName,
|
newChatName,
|
||||||
selectChat,
|
selectChat,
|
||||||
selectedChat,
|
selectedChat,
|
||||||
} from "../Model/model";
|
} from "../../Model/model";
|
||||||
|
|
||||||
import { Chat } from "../Model/chatModel";
|
import { Chat } from "../../Model/chatModel";
|
||||||
import { translation } from "../translations";
|
import { translation } from "../../translations";
|
||||||
|
|
||||||
const chatConverter: React.StateItemConverter<Chat> = (chat) => {
|
const chatConverter: React.StateItemConverter<Chat> = (chat) => {
|
||||||
function select() {
|
function select() {
|
||||||
@@ -13,9 +13,9 @@ import {
|
|||||||
requestMailbox,
|
requestMailbox,
|
||||||
resetAddressInput,
|
resetAddressInput,
|
||||||
serverAddressInput,
|
serverAddressInput,
|
||||||
} from "../Model/model";
|
} from "../../Model/model";
|
||||||
|
|
||||||
import { translation } from "../translations";
|
import { translation } from "../../translations";
|
||||||
|
|
||||||
const addressConverter: React.StateItemConverter<string> = (address) => {
|
const addressConverter: React.StateItemConverter<string> = (address) => {
|
||||||
return <option>{address}</option>;
|
return <option>{address}</option>;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import { senderName } from "../Model/model";
|
import { senderName } from "../../Model/model";
|
||||||
import { translation } from "../translations";
|
import { translation } from "../../translations";
|
||||||
|
|
||||||
export function PersonalSection() {
|
export function PersonalSection() {
|
||||||
return (
|
return (
|
||||||
Reference in New Issue
Block a user