mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Merge
This commit is contained in:
@@ -195,7 +195,9 @@ function getDayName(day) {
|
||||
case -2:
|
||||
return 'Before yesterday'
|
||||
default:
|
||||
return `Day ${d.toString()}`
|
||||
const now = new Date()
|
||||
now.setDate(now.getDate() + d);
|
||||
return now.toDateString()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,7 +268,7 @@ function pCols(cols, rowTitles, colorNames, firstRowColor) {
|
||||
slicedName = slicedName + sep
|
||||
}
|
||||
|
||||
let ammount = val[i].val ? val[i].val.toString() : ''
|
||||
let ammount = val[i].val ? val[i].val.toLocaleString() : ''
|
||||
while (ammount.length < 5) {
|
||||
ammount = ammount + ' '
|
||||
}
|
||||
@@ -446,9 +448,9 @@ try {
|
||||
return [getDayName(-x)]
|
||||
})
|
||||
data.forEach((dataCount, i) => {
|
||||
res[i].push(dataCount.userCount.toString())
|
||||
res[i].push(dataCount.subjectCount.toString())
|
||||
res[i].push(dataCount.questionCount.toString())
|
||||
res[i].push(dataCount.userCount.toLocaleString())
|
||||
res[i].push(dataCount.subjectCount.toLocaleString())
|
||||
res[i].push(dataCount.questionCount.toLocaleString())
|
||||
})
|
||||
|
||||
pCols(res, ['', 'Users', 'Subjects', 'Questions'], false, 'green')
|
||||
@@ -470,8 +472,8 @@ try {
|
||||
}
|
||||
return [
|
||||
getDayName(day),
|
||||
countLinesMatching(log, '?install').toString(),
|
||||
countLinesMatching(log, '?up').toString(),
|
||||
countLinesMatching(log, '?install').toLocaleString(),
|
||||
countLinesMatching(log, '?up').toLocaleString(),
|
||||
]
|
||||
}
|
||||
|
||||
|
@@ -148,6 +148,9 @@ function setup(data: SubmoduleData): void {
|
||||
|
||||
socket.on('chat message', (message) => {
|
||||
const { reciever, msg, type } = message
|
||||
if (!reciever || !msg || !type) {
|
||||
return
|
||||
}
|
||||
const recieverUser = dbtools.Select(userDB, 'users', {
|
||||
id: reciever,
|
||||
})[0]
|
||||
|
@@ -1,41 +1,39 @@
|
||||
<html>
|
||||
|
||||
<body bgcolor="#212127">
|
||||
|
||||
<body bgcolor="#212127">
|
||||
<head>
|
||||
<title>FryLabs.net</title>
|
||||
<title>frylabs.net</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=0.8" />
|
||||
<style>
|
||||
body {
|
||||
font: normal 14px Verdana;
|
||||
color: #999999;
|
||||
margin: 0px;
|
||||
height: 100%;
|
||||
font: bold 0.75vw Verdana;
|
||||
color: #999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
td {
|
||||
vertical-align: top
|
||||
}
|
||||
|
||||
a {
|
||||
color: #9999ff;
|
||||
h2 {
|
||||
color: #99f;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
</p>
|
||||
|
||||
<h2>
|
||||
<a>
|
||||
<pre>
|
||||
____ __ __
|
||||
/ __/_____ __ / /__ _/ / ___
|
||||
/ _// __/ // / / / _ `/ _ \(_-<
|
||||
/_/ /_/ \_, / /_/\_,_/_.__/___/
|
||||
/___/
|
||||
</pre>
|
||||
</a>
|
||||
<pre> /$$$$$$$$ /$$ /$$ /$$
|
||||
| $$_____/ | $$ | $$ | $$
|
||||
| $$ /$$$$$$ /$$ /$$| $$ /$$$$$$ | $$$$$$$ /$$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$
|
||||
| $$$$$ /$$__ $$| $$ | $$| $$ |____ $$| $$__ $$ /$$_____/ | $$__ $$ /$$__ $$|_ $$_/
|
||||
| $$__/| $$ \__/| $$ | $$| $$ /$$$$$$$| $$ \ $$| $$$$$$ | $$ \ $$| $$$$$$$$ | $$
|
||||
| $$ | $$ | $$ | $$| $$ /$$__ $$| $$ | $$ \____ $$ | $$ | $$| $$_____/ | $$ /$$
|
||||
| $$ | $$ | $$$$$$$| $$| $$$$$$$| $$$$$$$/ /$$$$$$$//$$| $$ | $$| $$$$$$$ | $$$$/
|
||||
|__/ |__/ \____ $$|__/ \_______/|_______/ |_______/|__/|__/ |__/ \_______/ \___/
|
||||
/$$ | $$
|
||||
| $$$$$$/
|
||||
\______/</pre>
|
||||
</h2>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
Submodule submodules/qmining-page updated: 8e4e24bed6...4f82b9d8c9
Reference in New Issue
Block a user