cleanup console spam
This commit is contained in:
parent
6fc115ff41
commit
b990c13f78
2 changed files with 1 additions and 9 deletions
|
@ -45,9 +45,7 @@ export class AdapterElement extends HTMLElement {
|
||||||
// initialize the view if it's changed
|
// initialize the view if it's changed
|
||||||
const view = this.getAttribute("data-view");
|
const view = this.getAttribute("data-view");
|
||||||
if (this._view != view ?? "index") {
|
if (this._view != view ?? "index") {
|
||||||
console.log("view changed! let's go")
|
|
||||||
this._view = view ?? "index";
|
this._view = view ?? "index";
|
||||||
console.log(this._view);
|
|
||||||
switch (this._view) {
|
switch (this._view) {
|
||||||
case "index":
|
case "index":
|
||||||
this.setIdxView();
|
this.setIdxView();
|
||||||
|
@ -68,7 +66,6 @@ export class AdapterElement extends HTMLElement {
|
||||||
const latest = this.getAttribute("latest");
|
const latest = this.getAttribute("latest");
|
||||||
if (latest ?? "" != this._latest) {
|
if (latest ?? "" != this._latest) {
|
||||||
this._latest = latest ?? "";
|
this._latest = latest ?? "";
|
||||||
console.log("about to update the index view");
|
|
||||||
let datastore = _("datastore");
|
let datastore = _("datastore");
|
||||||
console.log(datastore);
|
console.log(datastore);
|
||||||
const latestMsg = datastore.messages.get(this._latest);
|
const latestMsg = datastore.messages.get(this._latest);
|
||||||
|
@ -160,20 +157,16 @@ export class AdapterElement extends HTMLElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
buildThreads() {
|
buildThreads() {
|
||||||
console.log("building threads for " + this._name);
|
|
||||||
const datastore = _("datastore")[this._name];
|
const datastore = _("datastore")[this._name];
|
||||||
// make multiple passes over the store until every message is either
|
// make multiple passes over the store until every message is either
|
||||||
// placed in a thread, or orphaned and waiting for its parent to be returned
|
// placed in a thread, or orphaned and waiting for its parent to be returned
|
||||||
do{
|
do{
|
||||||
console.log("making a pass at all the messages");
|
|
||||||
for (let k of datastore.messages.keys()) {
|
for (let k of datastore.messages.keys()) {
|
||||||
this.placeMsg(k);
|
this.placeMsg(k);
|
||||||
}
|
}
|
||||||
} while (this._threads.reduce((sum: number, thread: MessageThread)=>{
|
} while (this._threads.reduce((sum: number, thread: MessageThread)=>{
|
||||||
return sum + thread.messageCount;
|
return sum + thread.messageCount;
|
||||||
}, 0) + this._orphans.length < datastore.messages.keys().length)
|
}, 0) + this._orphans.length < datastore.messages.keys().length);
|
||||||
console.log("all messages have been placed");
|
|
||||||
console.log(JSON.stringify(this._threads));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
placeMsg(k: string): string | null {
|
placeMsg(k: string): string | null {
|
||||||
|
|
|
@ -95,7 +95,6 @@ export class SettingsElement extends HTMLElement {
|
||||||
let adapterdata: any = {};
|
let adapterdata: any = {};
|
||||||
// get selected adapter protocol
|
// get selected adapter protocol
|
||||||
const proto = $("settings_newadapter_protocolselect") as HTMLSelectElement;
|
const proto = $("settings_newadapter_protocolselect") as HTMLSelectElement;
|
||||||
console.log(proto.options[proto.selectedIndex]);
|
|
||||||
|
|
||||||
const nickname = ($("settings_newadapter_nickname") as HTMLInputElement)?.value ?? "" ;
|
const nickname = ($("settings_newadapter_nickname") as HTMLInputElement)?.value ?? "" ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue