get rid of eccesive loggin
This commit is contained in:
parent
e3086efb82
commit
66a13c3407
10 changed files with 0 additions and 34 deletions
|
@ -40,18 +40,15 @@ class Channel extends SnowFlake {
|
||||||
messages = new Map();
|
messages = new Map();
|
||||||
static setupcontextmenu() {
|
static setupcontextmenu() {
|
||||||
this.contextmenu.addbutton("Copy channel id", function () {
|
this.contextmenu.addbutton("Copy channel id", function () {
|
||||||
console.log(this);
|
|
||||||
navigator.clipboard.writeText(this.id);
|
navigator.clipboard.writeText(this.id);
|
||||||
});
|
});
|
||||||
this.contextmenu.addbutton("Mark as read", function () {
|
this.contextmenu.addbutton("Mark as read", function () {
|
||||||
console.log(this);
|
|
||||||
this.readbottom();
|
this.readbottom();
|
||||||
});
|
});
|
||||||
this.contextmenu.addbutton("Settings[temp]", function () {
|
this.contextmenu.addbutton("Settings[temp]", function () {
|
||||||
this.generateSettings();
|
this.generateSettings();
|
||||||
});
|
});
|
||||||
this.contextmenu.addbutton("Delete channel", function () {
|
this.contextmenu.addbutton("Delete channel", function () {
|
||||||
console.log(this);
|
|
||||||
this.deleteChannel();
|
this.deleteChannel();
|
||||||
}, null, function () {
|
}, null, function () {
|
||||||
return this.isAdmin();
|
return this.isAdmin();
|
||||||
|
@ -169,7 +166,6 @@ class Channel extends SnowFlake {
|
||||||
return this.idToNext.get(id);
|
return this.idToNext.get(id);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log("at bottom");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}), (async (id) => {
|
}), (async (id) => {
|
||||||
|
@ -699,7 +695,6 @@ class Channel extends SnowFlake {
|
||||||
this.makereplybox();
|
this.makereplybox();
|
||||||
await this.buildmessages();
|
await this.buildmessages();
|
||||||
//loading.classList.remove("loading");
|
//loading.classList.remove("loading");
|
||||||
console.log(this);
|
|
||||||
document.getElementById("typebox").contentEditable = "" + this.canMessage;
|
document.getElementById("typebox").contentEditable = "" + this.canMessage;
|
||||||
}
|
}
|
||||||
static regenLoadingMessages() {
|
static regenLoadingMessages() {
|
||||||
|
|
|
@ -25,15 +25,12 @@ class Guild extends SnowFlake {
|
||||||
static contextmenu = new Contextmenu("guild menu");
|
static contextmenu = new Contextmenu("guild menu");
|
||||||
static setupcontextmenu() {
|
static setupcontextmenu() {
|
||||||
Guild.contextmenu.addbutton("Copy Guild id", function () {
|
Guild.contextmenu.addbutton("Copy Guild id", function () {
|
||||||
console.log(this);
|
|
||||||
navigator.clipboard.writeText(this.id);
|
navigator.clipboard.writeText(this.id);
|
||||||
});
|
});
|
||||||
Guild.contextmenu.addbutton("Mark as read", function () {
|
Guild.contextmenu.addbutton("Mark as read", function () {
|
||||||
console.log(this);
|
|
||||||
this.markAsRead();
|
this.markAsRead();
|
||||||
});
|
});
|
||||||
Guild.contextmenu.addbutton("Notifications", function () {
|
Guild.contextmenu.addbutton("Notifications", function () {
|
||||||
console.log(this);
|
|
||||||
this.setnotifcation();
|
this.setnotifcation();
|
||||||
});
|
});
|
||||||
Guild.contextmenu.addbutton("Leave guild", function () {
|
Guild.contextmenu.addbutton("Leave guild", function () {
|
||||||
|
@ -47,7 +44,6 @@ class Guild extends SnowFlake {
|
||||||
return this.properties.owner_id === this.member.user.id;
|
return this.properties.owner_id === this.member.user.id;
|
||||||
});
|
});
|
||||||
Guild.contextmenu.addbutton("Create invite", function () {
|
Guild.contextmenu.addbutton("Create invite", function () {
|
||||||
console.log(this);
|
|
||||||
}, null, _ => true, _ => false);
|
}, null, _ => true, _ => false);
|
||||||
Guild.contextmenu.addbutton("Settings[temp]", function () {
|
Guild.contextmenu.addbutton("Settings[temp]", function () {
|
||||||
this.generateSettings();
|
this.generateSettings();
|
||||||
|
@ -467,7 +463,6 @@ class Guild extends SnowFlake {
|
||||||
1
|
1
|
||||||
],
|
],
|
||||||
["textbox", "Name of channel", "", function () {
|
["textbox", "Name of channel", "", function () {
|
||||||
console.log(this);
|
|
||||||
name = this.value;
|
name = this.value;
|
||||||
}],
|
}],
|
||||||
["button", "", "submit", function () {
|
["button", "", "submit", function () {
|
||||||
|
@ -482,7 +477,6 @@ class Guild extends SnowFlake {
|
||||||
const category = 4;
|
const category = 4;
|
||||||
const channelselect = new Dialog(["vdiv",
|
const channelselect = new Dialog(["vdiv",
|
||||||
["textbox", "Name of category", "", function () {
|
["textbox", "Name of category", "", function () {
|
||||||
console.log(this);
|
|
||||||
name = this.value;
|
name = this.value;
|
||||||
}],
|
}],
|
||||||
["button", "", "submit", () => {
|
["button", "", "submit", () => {
|
||||||
|
|
|
@ -258,7 +258,6 @@ class InfiniteScroller {
|
||||||
element = thing[0];
|
element = thing[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(id, element, this.HTMLElements.length, ":3");
|
|
||||||
if (element) {
|
if (element) {
|
||||||
if (flash) {
|
if (flash) {
|
||||||
element.scrollIntoView({
|
element.scrollIntoView({
|
||||||
|
|
|
@ -556,7 +556,6 @@ class Localuser {
|
||||||
channels.innerHTML = "";
|
channels.innerHTML = "";
|
||||||
const html = guild.getHTML();
|
const html = guild.getHTML();
|
||||||
channels.appendChild(html);
|
channels.appendChild(html);
|
||||||
console.log("found :3", html);
|
|
||||||
return guild;
|
return guild;
|
||||||
}
|
}
|
||||||
buildservers() {
|
buildservers() {
|
||||||
|
@ -1377,7 +1376,6 @@ class Localuser {
|
||||||
this.presences.set(thing.user.id, thing);
|
this.presences.set(thing.user.id, thing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(chunk);
|
|
||||||
chunk.members ??= [];
|
chunk.members ??= [];
|
||||||
const arr = this.noncebuild.get(chunk.nonce);
|
const arr = this.noncebuild.get(chunk.nonce);
|
||||||
if (!arr)
|
if (!arr)
|
||||||
|
@ -1388,7 +1386,6 @@ class Localuser {
|
||||||
}
|
}
|
||||||
arr[2].push(chunk.chunk_index);
|
arr[2].push(chunk.chunk_index);
|
||||||
if (arr[2].length === chunk.chunk_count) {
|
if (arr[2].length === chunk.chunk_count) {
|
||||||
console.log("got through");
|
|
||||||
this.noncebuild.delete(chunk.nonce);
|
this.noncebuild.delete(chunk.nonce);
|
||||||
const func = this.noncemap.get(chunk.nonce);
|
const func = this.noncemap.get(chunk.nonce);
|
||||||
if (!func)
|
if (!func)
|
||||||
|
@ -1460,7 +1457,6 @@ class Localuser {
|
||||||
}
|
}
|
||||||
func(undefined);
|
func(undefined);
|
||||||
value.delete(thing);
|
value.delete(thing);
|
||||||
console.log("failed");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.fetchingmembers.delete(guildid);
|
this.fetchingmembers.delete(guildid);
|
||||||
|
|
|
@ -115,7 +115,6 @@ class Specialuser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set pfpsrc(e) {
|
set pfpsrc(e) {
|
||||||
console.log("this ran fr");
|
|
||||||
this.json.pfpsrc = e;
|
this.json.pfpsrc = e;
|
||||||
this.updateLocal();
|
this.updateLocal();
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,12 +49,10 @@ class Channel extends SnowFlake{
|
||||||
messages:Map<string,Message>=new Map();
|
messages:Map<string,Message>=new Map();
|
||||||
static setupcontextmenu(){
|
static setupcontextmenu(){
|
||||||
this.contextmenu.addbutton("Copy channel id",function(this:Channel){
|
this.contextmenu.addbutton("Copy channel id",function(this:Channel){
|
||||||
console.log(this);
|
|
||||||
navigator.clipboard.writeText(this.id);
|
navigator.clipboard.writeText(this.id);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.contextmenu.addbutton("Mark as read",function(this:Channel){
|
this.contextmenu.addbutton("Mark as read",function(this:Channel){
|
||||||
console.log(this);
|
|
||||||
this.readbottom();
|
this.readbottom();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -63,7 +61,6 @@ class Channel extends SnowFlake{
|
||||||
});
|
});
|
||||||
|
|
||||||
this.contextmenu.addbutton("Delete channel",function(this:Channel){
|
this.contextmenu.addbutton("Delete channel",function(this:Channel){
|
||||||
console.log(this);
|
|
||||||
this.deleteChannel();
|
this.deleteChannel();
|
||||||
},null,function(){
|
},null,function(){
|
||||||
return this.isAdmin();
|
return this.isAdmin();
|
||||||
|
@ -181,7 +178,6 @@ class Channel extends SnowFlake{
|
||||||
await this.grabAfter(id);
|
await this.grabAfter(id);
|
||||||
return this.idToNext.get(id);
|
return this.idToNext.get(id);
|
||||||
}else{
|
}else{
|
||||||
console.log("at bottom");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
@ -708,7 +704,6 @@ class Channel extends SnowFlake{
|
||||||
|
|
||||||
await this.buildmessages();
|
await this.buildmessages();
|
||||||
//loading.classList.remove("loading");
|
//loading.classList.remove("loading");
|
||||||
console.log(this);
|
|
||||||
(document.getElementById("typebox") as HTMLDivElement).contentEditable=""+this.canMessage;
|
(document.getElementById("typebox") as HTMLDivElement).contentEditable=""+this.canMessage;
|
||||||
}
|
}
|
||||||
static regenLoadingMessages(){
|
static regenLoadingMessages(){
|
||||||
|
|
|
@ -29,17 +29,14 @@ class Guild extends SnowFlake{
|
||||||
static contextmenu=new Contextmenu<Guild,undefined>("guild menu");
|
static contextmenu=new Contextmenu<Guild,undefined>("guild menu");
|
||||||
static setupcontextmenu(){
|
static setupcontextmenu(){
|
||||||
Guild.contextmenu.addbutton("Copy Guild id",function(this:Guild){
|
Guild.contextmenu.addbutton("Copy Guild id",function(this:Guild){
|
||||||
console.log(this);
|
|
||||||
navigator.clipboard.writeText(this.id);
|
navigator.clipboard.writeText(this.id);
|
||||||
});
|
});
|
||||||
|
|
||||||
Guild.contextmenu.addbutton("Mark as read",function(this:Guild){
|
Guild.contextmenu.addbutton("Mark as read",function(this:Guild){
|
||||||
console.log(this);
|
|
||||||
this.markAsRead();
|
this.markAsRead();
|
||||||
});
|
});
|
||||||
|
|
||||||
Guild.contextmenu.addbutton("Notifications",function(this:Guild){
|
Guild.contextmenu.addbutton("Notifications",function(this:Guild){
|
||||||
console.log(this);
|
|
||||||
this.setnotifcation();
|
this.setnotifcation();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -56,7 +53,6 @@ class Guild extends SnowFlake{
|
||||||
});
|
});
|
||||||
|
|
||||||
Guild.contextmenu.addbutton("Create invite",function(this:Guild){
|
Guild.contextmenu.addbutton("Create invite",function(this:Guild){
|
||||||
console.log(this);
|
|
||||||
},null,_=>true,_=>false);
|
},null,_=>true,_=>false);
|
||||||
Guild.contextmenu.addbutton("Settings[temp]",function(this:Guild){
|
Guild.contextmenu.addbutton("Settings[temp]",function(this:Guild){
|
||||||
this.generateSettings();
|
this.generateSettings();
|
||||||
|
@ -476,7 +472,6 @@ class Guild extends SnowFlake{
|
||||||
1
|
1
|
||||||
],
|
],
|
||||||
["textbox","Name of channel","",function(this:HTMLInputElement){
|
["textbox","Name of channel","",function(this:HTMLInputElement){
|
||||||
console.log(this);
|
|
||||||
name=this.value;
|
name=this.value;
|
||||||
}],
|
}],
|
||||||
["button","","submit",function(){
|
["button","","submit",function(){
|
||||||
|
@ -493,7 +488,6 @@ class Guild extends SnowFlake{
|
||||||
const channelselect=new Dialog(
|
const channelselect=new Dialog(
|
||||||
["vdiv",
|
["vdiv",
|
||||||
["textbox","Name of category","",function(this:HTMLInputElement){
|
["textbox","Name of category","",function(this:HTMLInputElement){
|
||||||
console.log(this);
|
|
||||||
name=this.value;
|
name=this.value;
|
||||||
}],
|
}],
|
||||||
["button","","submit",()=>{
|
["button","","submit",()=>{
|
||||||
|
|
|
@ -250,7 +250,6 @@ class InfiniteScroller{
|
||||||
element=thing[0];
|
element=thing[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(id,element,this.HTMLElements.length,":3");
|
|
||||||
if(element){
|
if(element){
|
||||||
if(flash){
|
if(flash){
|
||||||
element.scrollIntoView({
|
element.scrollIntoView({
|
||||||
|
|
|
@ -542,7 +542,6 @@ class Localuser{
|
||||||
channels.innerHTML="";
|
channels.innerHTML="";
|
||||||
const html=guild.getHTML();
|
const html=guild.getHTML();
|
||||||
channels.appendChild(html);
|
channels.appendChild(html);
|
||||||
console.log("found :3",html);
|
|
||||||
return guild;
|
return guild;
|
||||||
}
|
}
|
||||||
buildservers():void{
|
buildservers():void{
|
||||||
|
@ -1379,7 +1378,6 @@ class Localuser{
|
||||||
this.presences.set(thing.user.id,thing);
|
this.presences.set(thing.user.id,thing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(chunk);
|
|
||||||
chunk.members??=[];
|
chunk.members??=[];
|
||||||
const arr=this.noncebuild.get(chunk.nonce);
|
const arr=this.noncebuild.get(chunk.nonce);
|
||||||
if(!arr)return;
|
if(!arr)return;
|
||||||
|
@ -1389,7 +1387,6 @@ class Localuser{
|
||||||
}
|
}
|
||||||
arr[2].push(chunk.chunk_index);
|
arr[2].push(chunk.chunk_index);
|
||||||
if(arr[2].length===chunk.chunk_count){
|
if(arr[2].length===chunk.chunk_count){
|
||||||
console.log("got through");
|
|
||||||
this.noncebuild.delete(chunk.nonce);
|
this.noncebuild.delete(chunk.nonce);
|
||||||
const func=this.noncemap.get(chunk.nonce);
|
const func=this.noncemap.get(chunk.nonce);
|
||||||
if(!func)return;
|
if(!func)return;
|
||||||
|
@ -1457,7 +1454,6 @@ class Localuser{
|
||||||
}
|
}
|
||||||
func(undefined);
|
func(undefined);
|
||||||
value.delete(thing);
|
value.delete(thing);
|
||||||
console.log("failed");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.fetchingmembers.delete(guildid);
|
this.fetchingmembers.delete(guildid);
|
||||||
|
|
|
@ -117,7 +117,6 @@ class Specialuser{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set pfpsrc(e){
|
set pfpsrc(e){
|
||||||
console.log("this ran fr");
|
|
||||||
this.json.pfpsrc=e;
|
this.json.pfpsrc=e;
|
||||||
this.updateLocal();
|
this.updateLocal();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue