-
Notifications
You must be signed in to change notification settings - Fork 217
Develop.sprint8.chat sample #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
notification messages
samples/newChat/css/dashboard.css
Outdated
| .message__wrap.m-notification_message { | ||
| display: block; | ||
| color: #778594; | ||
| font-family: Roboto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you set font-family? If you set Roboto to body .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And may be need alternative fonts - font-family: Roboto, sans-serif;
| color: #778594; | ||
| font-family: Roboto; | ||
| font-size: 13px; | ||
| font-weight: 500; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use font: 500 13px/15px Roboto, sans-serif;
if you set all of property
samples/newChat/css/dashboard.css
Outdated
| } | ||
|
|
||
| .group_chat__user_list { | ||
| .update_update_chat_name_form { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update_update - seriously?
samples/newChat/css/dashboard.css
Outdated
| background: #fff; | ||
| } | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove line
samples/newChat/css/dashboard.css
Outdated
|
|
||
| .create_dialog_form { | ||
| .create_dialog_form, | ||
| .update_dialog_form { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you can use one selector with modifier for form if you form has equals style.
samples/newChat/css/dashboard.css
Outdated
| .create_dialog_btn { | ||
| width: 96px; | ||
| flex: 0 0 96px; | ||
| .create_dialog_btn, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set unified class .btn for buttons, so many repeats
samples/newChat/css/dialogs.css
Outdated
| } | ||
|
|
||
| .message__avatar.m-user__img_not_loaded, | ||
| .message__avatar.m-typing_uncnown { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncnown => unknown
samples/newChat/css/login.css
Outdated
| font-size: 16px; | ||
| line-height: 19px; | ||
| color: #C5CACE; | ||
| transition: 0.15s; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better use all properties: what will animate, time, func of animation
| <form name="loginForm" class="login__form"> | ||
| <div class="login_form__row"> | ||
| <label for="userName">User name</label> | ||
| <input type="text" id="userName" name="userName"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add to spec patterns to input data as username, usergroup
samples/newChat/js/app.js
Outdated
| logoutBtn = document.querySelector('.j-logout'); | ||
|
|
||
| if(activeTabName){ | ||
| renderParams.tabName = activeTabName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
; is all what we need
samples/newChat/js/listeners.js
Outdated
|
|
||
| var activeTab = document.querySelector('.j-sidebar__tab_link.active'), | ||
| tabType = activeTab.dataset.type, | ||
| dialogType = dialog.type === 1 ? "public" : "chat"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use singlequote
samples/newChat/js/listeners.js
Outdated
| if (message.extension && (message.extension.notification_type === '1' || message.extension.notification_type === 'creating_dialog')) { | ||
| var dialog = dialogModule._cache[message.dialog_id || message.extension.dialog_id]; | ||
|
|
||
| if (message.extension && message.extension.notification_type === '1') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set '1' as CONST
| dialogModule.renderDialog(dialogModule._cache[dialog._id], true); | ||
| } | ||
| }).catch(function(error){ | ||
| console.error(error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it all handle if we don't found the dialog?
samples/newChat/js/message.js
Outdated
| this.container = null; | ||
| this.attachmentPreviewContainer = null; | ||
| this.typingTymeout = appConfig.typingTymeout || 3 | ||
| this.typingTymeout = appConfig.typingTymeout || 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typingTymeout => typingTimeout
samples/webrtc/js/helpers.js
Outdated
| } else { | ||
| /** In first trying to login */ | ||
|
|
||
| console.log(userRequiredParams); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console.log
Auto login
Updating dialog
Notification messages