Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tv_panel
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hermod
tv_panel
Commits
8b905dc1
Commit
8b905dc1
authored
Feb 20, 2018
by
Aymeric Bernard
Browse files
Options
Downloads
Patches
Plain Diff
panel_data0 socket to receive dummy data
parent
ce814c33
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/index.js
+31
-0
31 additions, 0 deletions
server/index.js
with
31 additions
and
0 deletions
server/index.js
+
31
−
0
View file @
8b905dc1
...
...
@@ -21,4 +21,35 @@ io.of('/').on('connection', (socket) => {
.
then
(
res
=>
socket
.
emit
(
'
panel_data
'
,
res
))
.
catch
(
console
.
log
);
});
// TEMP Respond to panel_data message by fetching the info from the server
socket
.
on
(
'
panel_data0
'
,
()
=>
{
socket
.
emit
(
'
panel_data
'
,
{
version
:
'
0.0.4
'
,
ttl
:
300000
,
rows
:
[
{
type
:
1
,
image
:
'
https://people.via.ecp.fr/~bebert/toddy.jpg
'
,
text
:
[
{
text
:
'
What I want to display
'
,
style
:
{
color
:
'
#000000
'
}
},
{
text
:
'
42
'
,
style
:
{
color
:
'
#BB8800
'
,
fontWeight
:
'
bold
'
}
},
],
},
{
type
:
0
,
text
:
[
{
text
:
'
Some text
'
,
style
:
{
color
:
'
#000000
'
}
},
{
text
:
'
66
'
,
style
:
{
color
:
'
#BB8800
'
,
fontWeight
:
'
bold
'
}
},
],
},
{
type
:
2
,
image
:
'
https://people.via.ecp.fr/~bebert/chatenay.jpg
'
,
heightFactor
:
3
,
text
:
[{
text
:
'
Nope
'
}],
},
],
});
});
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment