2024-01-18 19:50:37 +00:00
|
|
|
#include utility.js
|
|
|
|
#include ui/chat-interface.js
|
2024-06-24 21:36:07 +00:00
|
|
|
#include sidebar/sidebar.jsx
|
2024-01-18 19:50:37 +00:00
|
|
|
|
|
|
|
// this needs revising at some point but will suffice for now
|
2024-06-24 21:36:07 +00:00
|
|
|
Umi.UI.ChatLayout = function(sideBar) {
|
2024-02-20 21:13:34 +00:00
|
|
|
const main = new Umi.UI.ChatInterface;
|
2024-01-18 19:50:37 +00:00
|
|
|
|
|
|
|
const html = $e({
|
|
|
|
attrs: {
|
|
|
|
id: 'umi-chat',
|
|
|
|
className: 'umi',
|
|
|
|
},
|
|
|
|
child: [
|
|
|
|
main,
|
|
|
|
sideBar,
|
|
|
|
],
|
|
|
|
});
|
|
|
|
|
|
|
|
return {
|
|
|
|
getSideBar: function() {
|
|
|
|
return sideBar;
|
|
|
|
},
|
|
|
|
getInterface: function() {
|
|
|
|
return main;
|
|
|
|
},
|
|
|
|
getElement: function() {
|
|
|
|
return html;
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|