Cleanup log messages

This commit is contained in:
KernelDeimos 2024-05-06 16:44:23 -04:00
parent 429b7033a4
commit adbefb4622
8 changed files with 4 additions and 15 deletions

View File

@ -27,14 +27,12 @@ export default class Flexer extends Component {
}
on_ready ({ listen }) {
console.log('Flexer on_ready called');
for ( const child of this.get('children') ) {
child.setAttribute('slot', 'inside');
child.attach(this);
}
listen('gap', gap => {
console.log('gap called', gap);
$(this.dom_).find('div').first().css('gap', gap);
});
}
@ -45,6 +43,5 @@ export default class Flexer extends Component {
if ( ! window.__component_flexer ) {
window.__component_flexer = true;
console.log('this is here');
customElements.define('c-flexer', Flexer);
}

View File

@ -40,9 +40,7 @@ export default class QRCodeView extends Component {
}
on_ready ({ listen }) {
console.log('QRCodeView on_ready called');
listen('value', value => {
console.log('got value', value);
// $(this.dom_).find('.qr-code').empty();
new QRCode($(this.dom_).find('.qr-code').get(0), {
text: value,

View File

@ -28,7 +28,6 @@ export default class StringView extends Component {
on_ready ({ listen }) {
// TODO: listener composition, to avoid this
const either = ({ heading, text }) => {
console.log('---', { heading, text });
const wrapper_nodeName = heading ? 'h' + heading : 'span';
$(this.dom_).find('span').html(`<${wrapper_nodeName}>${
this.get('no_html_encode') ? text : html_encode(text)

View File

@ -21,7 +21,6 @@ export default async function UIComponentWindow (options) {
options.component.attach(placeholder);
options.component.focus();
console.log('UIComponentWindow', options.component);
return win;
}

View File

@ -2816,9 +2816,7 @@ $.fn.close = async function(options) {
}
}
console.log('deos ')
if ( this.on_before_exit ) {
console.log('this happens??');
if ( ! await this.on_before_exit() ) return false;
}

View File

@ -115,8 +115,6 @@ const UIWindow2FASetup = async function UIWindow2FASetup () {
new CodeEntryView({
_ref: me => code_entry = me,
async [`property.value`] (value, { component }) {
console.log('value? ', value)
if ( ! await check_code_(value) ) {
component.set('error', 'Invalid code');
component.set('is_checking_code', false);
@ -172,7 +170,8 @@ const UIWindow2FASetup = async function UIWindow2FASetup () {
stepper.values_['done'].sub(value => {
if ( ! value ) return;
$(win).close();
console.log('WE GOT HERE')
// Write "2FA enabled" in green in the console
console.log('%c2FA enabled', 'color: green');
promise.resolve(true);
})

View File

@ -227,7 +227,8 @@ async function UIWindowLogin(options){
$(win).close();
p.resolve();
} catch (e) {
console.log('error object', e)
// keeping this log; useful in screenshots
console.log('2FA Login Error', e);
component.set('error', i18n(error_i18n_key));
component.set('is_checking_code', false);
}

View File

@ -56,7 +56,6 @@ export class Component extends HTMLElement {
}
}
this.addEventListener('focus', () => {
console.log('got the event?');
if ( this.on_focus ) {
this.on_focus();
}
@ -87,7 +86,6 @@ export class Component extends HTMLElement {
}
connectedCallback () {
console.log('connectedCallback called')
this.on_ready && this.on_ready(this.get_api_());
}