mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
merge
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
|||||||
[submodule "utils/question-classes"]
|
[submodule "utils/question-classes"]
|
||||||
path = utils/question-classes
|
path = utils/question-classes
|
||||||
url = git@gitlab.com:MrFry/question-classes.git
|
url = git@gitlab.com:MrFry/question-classes.git
|
||||||
|
[submodule "public/moodle-test-userscript"]
|
||||||
|
path = public/moodle-test-userscript
|
||||||
|
url = git@gitlab.com:MrFry/moodle-test-userscript.git
|
||||||
|
@@ -153,6 +153,12 @@ app.get('/greasy', function (req, res) {
|
|||||||
logger.LogReq(req)
|
logger.LogReq(req)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.get('/scriptgit', function (req, res) {
|
||||||
|
res.redirect('https://gitlab.com/MrFry/question-classes')
|
||||||
|
res.end()
|
||||||
|
logger.LogReq(req)
|
||||||
|
})
|
||||||
|
|
||||||
app.get('/scriptgit', function (req, res) {
|
app.get('/scriptgit', function (req, res) {
|
||||||
res.redirect('https://gitlab.com/MrFry/moodle-test-userscript')
|
res.redirect('https://gitlab.com/MrFry/moodle-test-userscript')
|
||||||
res.end()
|
res.end()
|
||||||
|
1
public/moodle-test-userscript
Submodule
1
public/moodle-test-userscript
Submodule
Submodule public/moodle-test-userscript added at cd87437463
@@ -97,6 +97,7 @@ function ProcessIncomingRequest (data) {
|
|||||||
logger.Log('\t' + d.subj)
|
logger.Log('\t' + d.subj)
|
||||||
var msg = 'All / new count: ' + allQuestions.length + ' / ' + questions.length
|
var msg = 'All / new count: ' + allQuestions.length + ' / ' + questions.length
|
||||||
if (d.version !== undefined) { msg += '. Version: ' + d.version }
|
if (d.version !== undefined) { msg += '. Version: ' + d.version }
|
||||||
|
|
||||||
var color = logger.GetColor('green')
|
var color = logger.GetColor('green')
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@@ -74,8 +74,9 @@ function LogReq (req, toFile, sc) {
|
|||||||
|
|
||||||
if (sc !== undefined && sc === 404) { logEntry += dl + sc }
|
if (sc !== undefined && sc === 404) { logEntry += dl + sc }
|
||||||
|
|
||||||
|
logEntry += C()
|
||||||
if (!toFile) {
|
if (!toFile) {
|
||||||
Log(logEntry + C())
|
Log(logEntry)
|
||||||
} else {
|
} else {
|
||||||
let defLogs = GetDateString() + dl + logEntry
|
let defLogs = GetDateString() + dl + logEntry
|
||||||
|
|
||||||
|
11
utils/merge.sh
Executable file
11
utils/merge.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
p="/home/qminer/nodeServ"
|
||||||
|
|
||||||
|
cp -v $p/public/data.json /tmp/data.json
|
||||||
|
node $p/utils/merger.js /tmp/data.json
|
||||||
|
|
||||||
|
mv -v $p/public/data.json "$p/public/backs/data.json $(date)"
|
||||||
|
mv -v $p/utils/newData $p/public/data.json
|
||||||
|
|
||||||
|
echo Done
|
@@ -40,6 +40,7 @@ greasyforkon</a> |
|
|||||||
<a href="<%= siteurl %>/data.json">Összes kérdés (JSON)</a> |
|
<a href="<%= siteurl %>/data.json">Összes kérdés (JSON)</a> |
|
||||||
<a href="<%= siteurl %>/servergit">Szerver repó</a> |
|
<a href="<%= siteurl %>/servergit">Szerver repó</a> |
|
||||||
<a href="<%= siteurl %>/scriptgit">Userscript repó</a>
|
<a href="<%= siteurl %>/scriptgit">Userscript repó</a>
|
||||||
|
<a href="<%= siteurl %>/classesgit">Classes repó</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
Reference in New Issue
Block a user