2018-12-02 19:27:22 +03:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import ComposeWindow from './ComposeWindow.js';
|
|
|
|
import FolderList from './FolderList.js';
|
|
|
|
import MessageList from './MessageList.js';
|
|
|
|
import MessageView from './MessageView.js';
|
|
|
|
import TabPanel from './TabPanel.js';
|
|
|
|
import Store from './Store.js';
|
|
|
|
import StoreListener from './StoreListener.js';
|
|
|
|
import AllDropdowns from './AllDropdowns.js';
|
2016-09-11 15:49:57 +03:00
|
|
|
|
2016-06-22 00:50:07 +03:00
|
|
|
window.requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame;
|
|
|
|
|
2016-10-01 17:21:32 +03:00
|
|
|
var AllTabs = StoreListener(TabPanel, function(data)
|
|
|
|
{
|
|
|
|
return { tabs: [
|
|
|
|
{
|
|
|
|
className: data.layout,
|
|
|
|
noclose: true,
|
|
|
|
icon: 'mail_unread',
|
|
|
|
title: 'Unread (64)',
|
2018-12-02 19:27:22 +03:00
|
|
|
children: [ <MessageList key="1" />, <MessageView key="2" /> ]
|
2016-10-01 17:21:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
icon: 'mail_drafts',
|
|
|
|
i16: true,
|
|
|
|
title: 'Compose Message',
|
2018-12-02 19:27:22 +03:00
|
|
|
children: [ <ComposeWindow key="1" /> ]
|
2016-10-01 17:21:32 +03:00
|
|
|
}
|
|
|
|
] }
|
|
|
|
});
|
|
|
|
|
2016-06-20 23:11:04 +03:00
|
|
|
ReactDOM.render(
|
|
|
|
<div>
|
2016-09-29 16:23:31 +03:00
|
|
|
{AllDropdowns()}
|
2016-10-03 16:55:14 +03:00
|
|
|
<FolderList />
|
2018-12-02 19:27:22 +03:00
|
|
|
<AllTabs />
|
2016-06-20 23:11:04 +03:00
|
|
|
</div>,
|
2018-12-02 19:27:22 +03:00
|
|
|
document.getElementById('app')
|
2016-06-20 23:11:04 +03:00
|
|
|
);
|
2016-10-01 17:21:32 +03:00
|
|
|
|
|
|
|
Store.loadAccounts();
|