mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 11:39:36 +02:00
Added user themes section to Theme settings
This commit is contained in:
parent
89bd921875
commit
48e28b9abd
10 changed files with 136 additions and 44 deletions
|
@ -1,6 +1,6 @@
|
|||
class Logger {
|
||||
log(message, level = 'INFO') {
|
||||
console.log(`[${this.generateTimestamp()}] [${level}] ${message}`)
|
||||
console.log(`[${this.generateTimestamp()}] [${level}] ${message}`);
|
||||
}
|
||||
|
||||
generateTimestamp() {
|
||||
|
@ -20,7 +20,9 @@ class Logger {
|
|||
// Timezone
|
||||
const tz = -d.getTimezoneOffset() / 60;
|
||||
|
||||
return `${year}-${month}-${day} ${hour}:${minutes}:${seconds}.${miliseconds} UTC${tz >= 0 ? '+' + tz : tz}`;
|
||||
return `${year}-${month}-${day} ${hour}:${minutes}:${seconds}.${miliseconds} UTC${
|
||||
tz >= 0 ? '+' + tz : tz
|
||||
}`;
|
||||
}
|
||||
|
||||
parseDate(date, ms = false) {
|
||||
|
@ -36,4 +38,4 @@ class Logger {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = Logger;
|
||||
module.exports = Logger;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue