From 382fc9c4f3acf32ba704281ece54f6069be3b65c Mon Sep 17 00:00:00 2001 From: morethanwords Date: Wed, 2 Sep 2020 02:32:39 +0300 Subject: [PATCH] the end? --- src/components/groupedLayout.ts | 2 +- src/components/sidebarLeft/editProfile.ts | 2 +- src/lib/appManagers/AppInlineBotsManager.ts | 2 +- src/lib/appManagers/appChatsManager.ts | 2 +- src/lib/mediaPlayer.ts | 2 +- src/lib/mtproto/timeManager.ts | 4 ++-- src/lib/utils.ts | 4 ++-- src/pages/pageSignQR.ts | 2 +- src/pages/pageSignUp.ts | 10 +++++----- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/groupedLayout.ts b/src/components/groupedLayout.ts index 4b12c4cf..192be05d 100644 --- a/src/components/groupedLayout.ts +++ b/src/components/groupedLayout.ts @@ -75,7 +75,7 @@ export class Layouter { } private layoutThree(): ReturnType { - console.log('layoutThree:', this); + //console.log('layoutThree:', this); if(this.proportions[0] == 'n') { return this.layoutThreeLeftAndOther(); } diff --git a/src/components/sidebarLeft/editProfile.ts b/src/components/sidebarLeft/editProfile.ts index 8d19a510..88cb9c12 100644 --- a/src/components/sidebarLeft/editProfile.ts +++ b/src/components/sidebarLeft/editProfile.ts @@ -52,7 +52,7 @@ export default class AppEditProfileTab implements SliderTab { this.userNameInput.addEventListener('input', () => { let value = this.userNameInput.value; - console.log('userNameInput:', value); + //console.log('userNameInput:', value); if(value == this.originalValues.userName || !value.length) { this.userNameInput.classList.remove('valid', 'error'); userNameLabel.innerText = 'Username (optional)'; diff --git a/src/lib/appManagers/AppInlineBotsManager.ts b/src/lib/appManagers/AppInlineBotsManager.ts index f3b36a73..fe36a98b 100644 --- a/src/lib/appManagers/AppInlineBotsManager.ts +++ b/src/lib/appManagers/AppInlineBotsManager.ts @@ -326,7 +326,7 @@ export class AppInlineBotsManager { toast(RichTextProcessor.wrapRichText(callbackAnswer.message, {noLinks: true, noLinebreaks: true})); } - console.log('callbackButtonClick callbackAnswer:', callbackAnswer); + //console.log('callbackButtonClick callbackAnswer:', callbackAnswer); }); } diff --git a/src/lib/appManagers/appChatsManager.ts b/src/lib/appManagers/appChatsManager.ts index ed4f480a..49f2b946 100644 --- a/src/lib/appManagers/appChatsManager.ts +++ b/src/lib/appManagers/appChatsManager.ts @@ -73,7 +73,7 @@ export class AppChatsManager { switch(update._) { case 'updateChannel': const channelID = update.channel_id; - console.log('updateChannel:', update); + //console.log('updateChannel:', update); $rootScope.$broadcast('channel_settings', {channelID: channelID}); break; } diff --git a/src/lib/mediaPlayer.ts b/src/lib/mediaPlayer.ts index 8a5cb2cd..9cf05ff2 100644 --- a/src/lib/mediaPlayer.ts +++ b/src/lib/mediaPlayer.ts @@ -348,7 +348,7 @@ export default class VideoPlayer { onScrub: currentTime => { const value = Math.max(Math.min(currentTime, 1), 0); - console.log('volume scrub:', currentTime, value); + //console.log('volume scrub:', currentTime, value); video.muted = false; video.volume = value; diff --git a/src/lib/mtproto/timeManager.ts b/src/lib/mtproto/timeManager.ts index 3b19836b..ff0d2ba7 100644 --- a/src/lib/mtproto/timeManager.ts +++ b/src/lib/mtproto/timeManager.ts @@ -1,5 +1,5 @@ import AppStorage from '../storage'; -import { nextRandomInt, longFromInts, dT } from '../bin_utils'; +import { nextRandomInt, longFromInts } from '../bin_utils'; export class TimeManager { private lastMessageID = [0, 0]; @@ -41,7 +41,7 @@ export class TimeManager { this.lastMessageID = [0, 0]; this.timeOffset = newTimeOffset; - console.log(dT(), 'Apply server time', serverTime, localTime, newTimeOffset, changed); + //console.log(dT(), 'Apply server time', serverTime, localTime, newTimeOffset, changed); return changed; } diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 89f3a9a6..6e4484bc 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -200,9 +200,9 @@ type BroadcastEvents = { export const $rootScope = { $broadcast: (name: T, detail?: BroadcastEvents[T]) => { - if(name != 'user_update') { + /* if(name != 'user_update') { console.debug(dT(), 'Broadcasting ' + name + ' event, with args:', detail); - } + } */ let myCustomEvent = new CustomEvent(name, {detail}); document.dispatchEvent(myCustomEvent); diff --git a/src/pages/pageSignQR.ts b/src/pages/pageSignQR.ts index 849a6eb2..e31505a9 100644 --- a/src/pages/pageSignQR.ts +++ b/src/pages/pageSignQR.ts @@ -168,7 +168,7 @@ let cachedPromise: Promise<() => Promise>; const page = new Page('page-signQR', true, () => { return cachedPromise; }, () => { - console.log('onMount'); + //console.log('onMount'); if(!cachedPromise) cachedPromise = onFirstMount(); cachedPromise.then(func => { func(); diff --git a/src/pages/pageSignUp.ts b/src/pages/pageSignUp.ts index d99a34ff..83c22ed3 100644 --- a/src/pages/pageSignUp.ts +++ b/src/pages/pageSignUp.ts @@ -38,13 +38,13 @@ let onFirstMount = () => import('../lib/appManagers/appProfileManager').then(imp let sendAvatar = () => new Promise((resolve, reject) => { if(!uploadAvatar) { - console.log('User has not selected avatar'); + //console.log('User has not selected avatar'); return resolve(); } - console.log('invoking uploadFile...'); + //console.log('invoking uploadFile...'); uploadAvatar().then((inputFile: any) => { - console.log('uploaded smthn', inputFile); + //console.log('uploaded smthn', inputFile); appProfileManager.uploadProfilePhoto(inputFile).then(resolve, reject); }, reject); @@ -75,14 +75,14 @@ let onFirstMount = () => import('../lib/appManagers/appProfileManager').then(imp 'last_name': lastName }; - console.log('invoking auth.signUp with params:', params); + //console.log('invoking auth.signUp with params:', params); this.textContent = 'PLEASE WAIT...'; putPreloader(this); apiManager.invokeApi('auth.signUp', params) .then((response: any) => { - console.log('auth.signUp response:', response); + //console.log('auth.signUp response:', response); switch(response._) { case 'auth.authorization': // success