the end?
This commit is contained in:
parent
be8976e0d9
commit
382fc9c4f3
@ -75,7 +75,7 @@ export class Layouter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private layoutThree(): ReturnType<Layouter['layout']> {
|
private layoutThree(): ReturnType<Layouter['layout']> {
|
||||||
console.log('layoutThree:', this);
|
//console.log('layoutThree:', this);
|
||||||
if(this.proportions[0] == 'n') {
|
if(this.proportions[0] == 'n') {
|
||||||
return this.layoutThreeLeftAndOther();
|
return this.layoutThreeLeftAndOther();
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ export default class AppEditProfileTab implements SliderTab {
|
|||||||
this.userNameInput.addEventListener('input', () => {
|
this.userNameInput.addEventListener('input', () => {
|
||||||
let value = this.userNameInput.value;
|
let value = this.userNameInput.value;
|
||||||
|
|
||||||
console.log('userNameInput:', value);
|
//console.log('userNameInput:', value);
|
||||||
if(value == this.originalValues.userName || !value.length) {
|
if(value == this.originalValues.userName || !value.length) {
|
||||||
this.userNameInput.classList.remove('valid', 'error');
|
this.userNameInput.classList.remove('valid', 'error');
|
||||||
userNameLabel.innerText = 'Username (optional)';
|
userNameLabel.innerText = 'Username (optional)';
|
||||||
|
@ -326,7 +326,7 @@ export class AppInlineBotsManager {
|
|||||||
toast(RichTextProcessor.wrapRichText(callbackAnswer.message, {noLinks: true, noLinebreaks: true}));
|
toast(RichTextProcessor.wrapRichText(callbackAnswer.message, {noLinks: true, noLinebreaks: true}));
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('callbackButtonClick callbackAnswer:', callbackAnswer);
|
//console.log('callbackButtonClick callbackAnswer:', callbackAnswer);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ export class AppChatsManager {
|
|||||||
switch(update._) {
|
switch(update._) {
|
||||||
case 'updateChannel':
|
case 'updateChannel':
|
||||||
const channelID = update.channel_id;
|
const channelID = update.channel_id;
|
||||||
console.log('updateChannel:', update);
|
//console.log('updateChannel:', update);
|
||||||
$rootScope.$broadcast('channel_settings', {channelID: channelID});
|
$rootScope.$broadcast('channel_settings', {channelID: channelID});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -348,7 +348,7 @@ export default class VideoPlayer {
|
|||||||
onScrub: currentTime => {
|
onScrub: currentTime => {
|
||||||
const value = Math.max(Math.min(currentTime, 1), 0);
|
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.muted = false;
|
||||||
video.volume = value;
|
video.volume = value;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import AppStorage from '../storage';
|
import AppStorage from '../storage';
|
||||||
import { nextRandomInt, longFromInts, dT } from '../bin_utils';
|
import { nextRandomInt, longFromInts } from '../bin_utils';
|
||||||
|
|
||||||
export class TimeManager {
|
export class TimeManager {
|
||||||
private lastMessageID = [0, 0];
|
private lastMessageID = [0, 0];
|
||||||
@ -41,7 +41,7 @@ export class TimeManager {
|
|||||||
|
|
||||||
this.lastMessageID = [0, 0];
|
this.lastMessageID = [0, 0];
|
||||||
this.timeOffset = newTimeOffset;
|
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;
|
return changed;
|
||||||
}
|
}
|
||||||
|
@ -200,9 +200,9 @@ type BroadcastEvents = {
|
|||||||
|
|
||||||
export const $rootScope = {
|
export const $rootScope = {
|
||||||
$broadcast: <T extends keyof BroadcastEvents>(name: T, detail?: BroadcastEvents[T]) => {
|
$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);
|
console.debug(dT(), 'Broadcasting ' + name + ' event, with args:', detail);
|
||||||
}
|
} */
|
||||||
|
|
||||||
let myCustomEvent = new CustomEvent(name, {detail});
|
let myCustomEvent = new CustomEvent(name, {detail});
|
||||||
document.dispatchEvent(myCustomEvent);
|
document.dispatchEvent(myCustomEvent);
|
||||||
|
@ -168,7 +168,7 @@ let cachedPromise: Promise<() => Promise<void>>;
|
|||||||
const page = new Page('page-signQR', true, () => {
|
const page = new Page('page-signQR', true, () => {
|
||||||
return cachedPromise;
|
return cachedPromise;
|
||||||
}, () => {
|
}, () => {
|
||||||
console.log('onMount');
|
//console.log('onMount');
|
||||||
if(!cachedPromise) cachedPromise = onFirstMount();
|
if(!cachedPromise) cachedPromise = onFirstMount();
|
||||||
cachedPromise.then(func => {
|
cachedPromise.then(func => {
|
||||||
func();
|
func();
|
||||||
|
@ -38,13 +38,13 @@ let onFirstMount = () => import('../lib/appManagers/appProfileManager').then(imp
|
|||||||
|
|
||||||
let sendAvatar = () => new Promise((resolve, reject) => {
|
let sendAvatar = () => new Promise((resolve, reject) => {
|
||||||
if(!uploadAvatar) {
|
if(!uploadAvatar) {
|
||||||
console.log('User has not selected avatar');
|
//console.log('User has not selected avatar');
|
||||||
return resolve();
|
return resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('invoking uploadFile...');
|
//console.log('invoking uploadFile...');
|
||||||
uploadAvatar().then((inputFile: any) => {
|
uploadAvatar().then((inputFile: any) => {
|
||||||
console.log('uploaded smthn', inputFile);
|
//console.log('uploaded smthn', inputFile);
|
||||||
|
|
||||||
appProfileManager.uploadProfilePhoto(inputFile).then(resolve, reject);
|
appProfileManager.uploadProfilePhoto(inputFile).then(resolve, reject);
|
||||||
}, reject);
|
}, reject);
|
||||||
@ -75,14 +75,14 @@ let onFirstMount = () => import('../lib/appManagers/appProfileManager').then(imp
|
|||||||
'last_name': lastName
|
'last_name': lastName
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('invoking auth.signUp with params:', params);
|
//console.log('invoking auth.signUp with params:', params);
|
||||||
|
|
||||||
this.textContent = 'PLEASE WAIT...';
|
this.textContent = 'PLEASE WAIT...';
|
||||||
putPreloader(this);
|
putPreloader(this);
|
||||||
|
|
||||||
apiManager.invokeApi('auth.signUp', params)
|
apiManager.invokeApi('auth.signUp', params)
|
||||||
.then((response: any) => {
|
.then((response: any) => {
|
||||||
console.log('auth.signUp response:', response);
|
//console.log('auth.signUp response:', response);
|
||||||
|
|
||||||
switch(response._) {
|
switch(response._) {
|
||||||
case 'auth.authorization': // success
|
case 'auth.authorization': // success
|
||||||
|
Loading…
x
Reference in New Issue
Block a user