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