Browse Source

the end?

master
morethanwords 4 years ago
parent
commit
382fc9c4f3
  1. 2
      src/components/groupedLayout.ts
  2. 2
      src/components/sidebarLeft/editProfile.ts
  3. 2
      src/lib/appManagers/AppInlineBotsManager.ts
  4. 2
      src/lib/appManagers/appChatsManager.ts
  5. 2
      src/lib/mediaPlayer.ts
  6. 4
      src/lib/mtproto/timeManager.ts
  7. 4
      src/lib/utils.ts
  8. 2
      src/pages/pageSignQR.ts
  9. 10
      src/pages/pageSignUp.ts

2
src/components/groupedLayout.ts

@ -75,7 +75,7 @@ export class Layouter { @@ -75,7 +75,7 @@ export class Layouter {
}
private layoutThree(): ReturnType<Layouter['layout']> {
console.log('layoutThree:', this);
//console.log('layoutThree:', this);
if(this.proportions[0] == 'n') {
return this.layoutThreeLeftAndOther();
}

2
src/components/sidebarLeft/editProfile.ts

@ -52,7 +52,7 @@ export default class AppEditProfileTab implements SliderTab { @@ -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)';

2
src/lib/appManagers/AppInlineBotsManager.ts

@ -326,7 +326,7 @@ export class AppInlineBotsManager { @@ -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);
});
}

2
src/lib/appManagers/appChatsManager.ts

@ -73,7 +73,7 @@ export class AppChatsManager { @@ -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;
}

2
src/lib/mediaPlayer.ts

@ -348,7 +348,7 @@ export default class VideoPlayer { @@ -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;

4
src/lib/mtproto/timeManager.ts

@ -1,5 +1,5 @@ @@ -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 { @@ -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;
}

4
src/lib/utils.ts

@ -200,9 +200,9 @@ type BroadcastEvents = { @@ -200,9 +200,9 @@ type BroadcastEvents = {
export const $rootScope = {
$broadcast: <T extends keyof BroadcastEvents>(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);

2
src/pages/pageSignQR.ts

@ -168,7 +168,7 @@ let cachedPromise: Promise<() => Promise<void>>; @@ -168,7 +168,7 @@ let cachedPromise: Promise<() => Promise<void>>;
const page = new Page('page-signQR', true, () => {
return cachedPromise;
}, () => {
console.log('onMount');
//console.log('onMount');
if(!cachedPromise) cachedPromise = onFirstMount();
cachedPromise.then(func => {
func();

10
src/pages/pageSignUp.ts

@ -38,13 +38,13 @@ let onFirstMount = () => import('../lib/appManagers/appProfileManager').then(imp @@ -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 @@ -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

Loading…
Cancel
Save