Small code alignments fixes.
This commit is contained in:
parent
c792faa042
commit
0f8e373225
8 changed files with 20 additions and 22 deletions
|
@ -4,9 +4,9 @@
|
|||
#include ui/menus.js
|
||||
|
||||
Umi.UI.Channels = (function() {
|
||||
const sidebarChannel = 'sidebar__channel',
|
||||
sidebarChannelCurrent = 'sidebar__channel--current',
|
||||
sidebarChannelUnread = 'sidebar__channel--unread';
|
||||
const sidebarChannel = 'sidebar__channel';
|
||||
const sidebarChannelCurrent = 'sidebar__channel--current';
|
||||
const sidebarChannelUnread = 'sidebar__channel--unread';
|
||||
|
||||
const markUnread = function(id, mode) {
|
||||
if(!id)
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
#include ui/chat-input-menus.js
|
||||
|
||||
Umi.UI.ChatInput = function() {
|
||||
const menus = new Umi.UI.ChatInputMenus,
|
||||
main = new Umi.UI.ChatInputMain;
|
||||
const menus = new Umi.UI.ChatInputMenus;
|
||||
const main = new Umi.UI.ChatInputMain;
|
||||
|
||||
const html = $e({
|
||||
tag: 'form',
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
#include ui/chat-input.js
|
||||
|
||||
Umi.UI.ChatInterface = function() {
|
||||
const messages = new Umi.UI.ChatMessageList,
|
||||
input = new Umi.UI.ChatInput;
|
||||
const messages = new Umi.UI.ChatMessageList;
|
||||
const input = new Umi.UI.ChatInput;
|
||||
|
||||
const html = $e({
|
||||
attrs: {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
// this needs revising at some point but will suffice for now
|
||||
Umi.UI.ChatLayout = function() {
|
||||
const sideBar = new Umi.UI.ChatSideBar,
|
||||
main = new Umi.UI.ChatInterface;
|
||||
const sideBar = new Umi.UI.ChatSideBar;
|
||||
const main = new Umi.UI.ChatInterface;
|
||||
|
||||
const html = $e({
|
||||
attrs: {
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
#include ui/chat-sidebar-buttons.js
|
||||
|
||||
Umi.UI.ChatSideBar = function() {
|
||||
const container = new Umi.UI.ChatSideBarContainer,
|
||||
buttons = new Umi.UI.ChatSideBarButtons;
|
||||
const container = new Umi.UI.ChatSideBarContainer;
|
||||
const buttons = new Umi.UI.ChatSideBarButtons;
|
||||
|
||||
const html = $e({
|
||||
attrs: {
|
||||
|
|
|
@ -5,8 +5,8 @@ Umi.UI.InputMenus = (function() {
|
|||
const ids = [];
|
||||
let current = '';
|
||||
|
||||
const inputMenuActive = 'input__menu--active',
|
||||
inputButtonActive = 'input__button--active';
|
||||
const inputMenuActive = 'input__menu--active';
|
||||
const inputButtonActive = 'input__button--active';
|
||||
|
||||
const toggle = function(baseId) {
|
||||
const button = 'umi-msg-menu-btn-' + baseId,
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
Umi.UI.Menus = (function() {
|
||||
const ids = [];
|
||||
|
||||
const sidebarMenu = 'sidebar__menu',
|
||||
sidebarMenuActive = 'sidebar__menu--active',
|
||||
sidebarMenuHidden = 'sidebar__menu--hidden',
|
||||
sidebarSelectorMode = 'sidebar__selector-mode',
|
||||
sidebarSelectorModeActive = 'sidebar__selector-mode--active',
|
||||
sidebarSelectorModeAttention = 'sidebar__selector-mode--attention',
|
||||
sidebarSelectorModeHidden = 'sidebar__selector-mode--hidden';
|
||||
const sidebarMenu = 'sidebar__menu';
|
||||
const sidebarMenuActive = 'sidebar__menu--active';
|
||||
const sidebarMenuHidden = 'sidebar__menu--hidden';
|
||||
const sidebarSelectorMode = 'sidebar__selector-mode';
|
||||
const sidebarSelectorModeActive = 'sidebar__selector-mode--active';
|
||||
const sidebarSelectorModeAttention = 'sidebar__selector-mode--attention';
|
||||
const sidebarSelectorModeHidden = 'sidebar__selector-mode--hidden';
|
||||
|
||||
const attention = function(baseId, mode) {
|
||||
if(mode === undefined)
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#include ui/menus.js
|
||||
|
||||
Umi.UI.Uploads = (function() {
|
||||
|
||||
|
||||
return {
|
||||
create: function(fileName) {
|
||||
const uploadHistory = Umi.UI.Menus.Get('uploads');
|
||||
|
|
Loading…
Reference in a new issue