Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kus-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
kus-admin
Commits
b4fa4276
Commit
b4fa4276
authored
Jul 07, 2020
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
51f0ad11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
monitor.html
public/monitor.html
+4
-3
quiz.js
src/api/quiz.js
+2
-1
No files found.
public/monitor.html
View file @
b4fa4276
...
@@ -141,8 +141,8 @@
...
@@ -141,8 +141,8 @@
hh1
.
style
.
display
=
'none'
;
hh1
.
style
.
display
=
'none'
;
hh2
.
style
.
display
=
'block'
;
hh2
.
style
.
display
=
'block'
;
var
begin
=
0
;
var
begin
=
0
;
var
f
;
setInterval
(
function
()
{
setInterval
(
f
=
f
unction
()
{
fetch
(
'http://vkusvill.flexlab.pro:4001/api/quiz/monitordata?start='
+
begin
)
fetch
(
'http://vkusvill.flexlab.pro:4001/api/quiz/monitordata?start='
+
begin
)
.
then
(
response
=>
response
.
json
())
.
then
(
response
=>
response
.
json
())
.
then
(
data
=>
{
.
then
(
data
=>
{
...
@@ -153,7 +153,8 @@
...
@@ -153,7 +153,8 @@
begin
=
data
.
date
;
begin
=
data
.
date
;
})
})
}
);
}
);
},
1000
);
},
60000
);
f
()
let
socket
=
new
WebSocket
(
'ws://'
+
location
.
hostname
+
':8080'
);
let
socket
=
new
WebSocket
(
'ws://'
+
location
.
hostname
+
':8080'
);
...
...
src/api/quiz.js
View file @
b4fa4276
...
@@ -282,7 +282,7 @@ module.exports = {
...
@@ -282,7 +282,7 @@ module.exports = {
},
},
summary
:
'monitordata'
,
summary
:
'monitordata'
,
fn
:
async
function
(
args
,
req
,
res
){
fn
:
async
function
(
args
,
req
,
res
){
return
log
.
logging
.
filter
(
l
=>
l
.
start
>
=
args
.
start
);
return
log
.
logging
.
filter
(
l
=>
l
.
start
>
args
.
start
);
}
}
}
}
};
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment