added users and groups

This commit is contained in:
2024-10-26 05:31:22 +03:00
parent cf8559aa13
commit e07ee822fb
21 changed files with 2797 additions and 0 deletions

24
src/utils/log.js Normal file
View File

@@ -0,0 +1,24 @@
import config from '../../config.json' with {type: "json"};
const debug = (text) => {
if (config.debug) console.debug(`[D] [${Date()}]: ${text}`)
}
const info = (text) => {
console.log(`[I] [${Date()}]: ${text}`)
}
const error = (text) => {
console.error(`[E] [${Date()}]: ${text}`)
}
const warn = (text) => {
console.warn(`[W] [${Date()}]: ${text}`)
}
const unknownError = (text) => {
error(text);
return "Unknown server error. Please, report to the developer"
}
export default { debug, info, error, warn, unknownError }