Added several player profile stats to the web UI.

Refactored and cleaned up several functions.
MDB loader now logs the number of loaded songs available to GF and DM.
MDB: Fixed "is_secret" field being ignored (always set to false)
This commit is contained in:
Thome Valentin
2022-05-04 06:58:17 +02:00
parent 2fe270dbfa
commit 257c9962f5
12 changed files with 236 additions and 124 deletions
-5
View File
@@ -7,7 +7,6 @@ export default class Logger {
this.category = (category == null) ? null : `[${category}]`
}
public error(...args: any[]) {
this.argsHandler(console.error, ...args)
}
@@ -18,7 +17,6 @@ export default class Logger {
}
}
public warn(...args: any[]) {
this.argsHandler(console.warn, ...args)
}
@@ -29,7 +27,6 @@ export default class Logger {
}
}
public info(...args: any[]) {
this.argsHandler(console.info, ...args)
}
@@ -40,7 +37,6 @@ export default class Logger {
}
}
public log(...args: any[]) {
this.argsHandler(console.log, ...args)
}
@@ -51,7 +47,6 @@ export default class Logger {
}
}
private argsHandler(target: Function, ...args: any[]) {
if (this.category == null) {
target(...args)