Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ess-public-screens
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
ics-software
ess-public-screens
Commits
b3903621
Commit
b3903621
authored
5 years ago
by
Emanuele Laface
Browse files
Options
Downloads
Patches
Plain Diff
Removed TS2 from POS
parent
e3b7ccea
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#31436
passed
5 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
WebSites/pos/dashboard.json
+25
-64
25 additions, 64 deletions
WebSites/pos/dashboard.json
with
25 additions
and
64 deletions
WebSites/pos/dashboard.json
+
25
−
64
View file @
b3903621
...
@@ -18,12 +18,12 @@
...
@@ -18,12 +18,12 @@
"3"
:
1
,
"3"
:
1
,
"4"
:
1
"4"
:
1
},
},
"col_width"
:
3
,
"col_width"
:
4
,
"widgets"
:
[
"widgets"
:
[
{
{
"type"
:
"html"
,
"type"
:
"html"
,
"settings"
:
{
"settings"
:
{
"html"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
]; // trick to trigger the update
\n
var cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');
\n
document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML =
\"\"
;
\n
if (cols == 4){
\n
text =
\"
<div style=
\\\"
position: static; margin-top: -15px;
\\\"
><img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 56px; color:#ffffff !important; position: relative; bottom: 35px; left: 1
2
0px;
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
>Public Operations Screen</div></img></div>
\"
;
\n
}
\n
if (cols == 3){
\n
text =
\"
<div style=
\\\"
position: static; margin-top: -15px;
\\\"
><img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 46px; color:#ffffff !important; position: relative; bottom: 45px; left: 100px;
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
>Public Operations Screen</div></img></div>
\"
;
\n
}
\n\n
if (cols == 2){
\n
text =
\"
<div style=
\\\"
position: static; margin-top: -15px;
\\\"
><img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
>Public Operations Screen</div></img></div>
\"
;
\n
}
\n
if (cols == 1){
\n
text =
\"
<div style=
\\\"
position: static; margin-top: -15px;
\\\"
><img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
></div></img></div>
\"
;
\n
document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML =
\"
Public Operations Screen
\"
;
\n
}
\n\n
return text
\n\n
"
,
"html"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
]; // trick to trigger the update
\n
var cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');
\n
document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML =
\"\"
;
\n
if (cols == 4){
\n
text =
\"
<div style=
\\\"
position: static; margin-top: -15px;
\\\"
><img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 56px; color:#ffffff !important; position: relative; bottom: 35px; left: 1
6
0px;
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
>Public Operations Screen</div></img></div>
\"
;
\n
}
\n
if (cols == 3){
\n
text =
\"
<div style=
\\\"
position: static; margin-top: -15px;
\\\"
><img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 46px; color:#ffffff !important; position: relative; bottom: 45px; left: 100px;
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
>Public Operations Screen</div></img></div>
\"
;
\n
}
\n\n
if (cols == 2){
\n
text =
\"
<div style=
\\\"
position: static; margin-top: -15px;
\\\"
><img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
>Public Operations Screen</div></img></div>
\"
;
\n
}
\n
if (cols == 1){
\n
text =
\"
<div style=
\\\"
position: static; margin-top: -15px;
\\\"
><img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;
\\\"
title=
\\\"
Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.
\\\"
></div></img></div>
\"
;
\n
document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML =
\"
Public Operations Screen
\"
;
\n
}
\n\n
return text
\n\n
"
,
"height"
:
2
"height"
:
2
}
}
}
}
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
"row"
:
{
"row"
:
{
"1"
:
11
,
"1"
:
11
,
"2"
:
7
,
"2"
:
7
,
"3"
:
7
,
"3"
:
11
,
"4"
:
11
,
"4"
:
11
,
"5"
:
7
,
"5"
:
7
,
"6"
:
7
,
"6"
:
7
,
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
"col"
:
{
"col"
:
{
"1"
:
1
,
"1"
:
1
,
"2"
:
2
,
"2"
:
2
,
"3"
:
2
,
"3"
:
1
,
"4"
:
1
,
"4"
:
1
,
"5"
:
2
,
"5"
:
2
,
"6"
:
2
,
"6"
:
2
,
...
@@ -96,66 +96,27 @@
...
@@ -96,66 +96,27 @@
"type"
:
"html"
,
"type"
:
"html"
,
"settings"
:
{
"settings"
:
{
"html"
:
"var date = new Date(datasources[
\"
POS
\"
][
\"
NSO-LCR:Ops:Msg
\"
][
\"
timestamp
\"
]*1e3);
\n
return
\"
<div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 16px; width=100%; margin-top:10px; margin-left:10px; margin-right:10px;
\\\"
title=
\\\"\"
+date+
\"\\\"
>
\"
+ datasources[
\"
POS
\"
][
\"
NSO-LCR:Ops:Msg
\"
][
\"
value
\"
] +
\"
</div>
\"
"
,
"html"
:
"var date = new Date(datasources[
\"
POS
\"
][
\"
NSO-LCR:Ops:Msg
\"
][
\"
timestamp
\"
]*1e3);
\n
return
\"
<div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 16px; width=100%; margin-top:10px; margin-left:10px; margin-right:10px;
\\\"
title=
\\\"\"
+date+
\"\\\"
>
\"
+ datasources[
\"
POS
\"
][
\"
NSO-LCR:Ops:Msg
\"
][
\"
value
\"
] +
\"
</div>
\"
"
,
"height"
:
1
"height"
:
2
}
}
}
}
]
]
},
},
{
{
"title"
:
"
Test Stand 2
"
,
"title"
:
"
Current time
"
,
"width"
:
1
,
"width"
:
1
,
"row"
:
{
"row"
:
{
"1"
:
1
7
,
"1"
:
8
1
,
"2"
:
11
,
"2"
:
11
,
"3"
:
7
,
"3"
:
7
,
"4"
:
17
,
"4"
:
19
,
"5"
:
7
,
"6"
:
7
,
"7"
:
7
},
"col"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
3
,
"4"
:
1
,
"5"
:
3
,
"6"
:
3
,
"7"
:
3
},
"col_width"
:
1
,
"widgets"
:
[
{
"type"
:
"html"
,
"settings"
:
{
"html"
:
"var date = new Date(datasources[
\"
POS
\"
][
\"
NSO-LCR:Ops:TSSL
\"
][
\"
timestamp
\"
]*1e3);
\n
return
\"
<div class=
\\\"
widget
\\\"
data-bind=
\\\"
widget: true, css:{fillsize:fillSize}
\\\"
><div class=
\\\"
tw-display
\\\"
><div class=
\\\"
tw-tr
\\\"
><h2 class=
\\\"
section-title tw-title tw-td
\\\"
>Shift Leader</h2></div><div class=
\\\"
tw-tr
\\\"
><div class=
\\\"
tw-value-wrapper tw-td
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 30px; max-width: 100%;
\\\"
title=
\\\"
\"
+date+
\"\\\"
>
\"
+datasources[
\"
POS
\"
][
\"
NSO-LCR:Ops:TSSL
\"
][
\"
value
\"
]+
\"
</div><div class=
\\\"
tw-unit
\\\"
style=
\\\"
display: none;
\\\"
></div></div></div><div class=
\\\"
tw-tr
\\\"
><div class=
\\\"
tw-sparkline tw-td
\\\"
style=
\\\"
display: none;
\\\"
></div></div></div></div>
\"
"
,
"height"
:
1
}
},
{
"type"
:
"html"
,
"settings"
:
{
"html"
:
"var date = new Date(datasources[
\"
POS
\"
][
\"
NSO-LCR:Ops:TSMsg
\"
][
\"
timestamp
\"
]*1e3);
\n
return
\"
<div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 16px; width=100%; margin-top:10px; margin-left:10px; margin-right:10px;
\\\"
title=
\\\"\"
+date+
\"\\\"
>
\"
+ datasources[
\"
POS
\"
][
\"
NSO-LCR:Ops:TSMsg
\"
][
\"
value
\"
] +
\"
</div>
\"
"
,
"height"
:
1
}
}
]
},
{
"title"
:
"Current time"
,
"width"
:
1
,
"row"
:
{
"1"
:
85
,
"2"
:
13
,
"3"
:
11
,
"4"
:
1
,
"5"
:
19
,
"5"
:
19
,
"6"
:
19
"6"
:
19
},
},
"col"
:
{
"col"
:
{
"1"
:
1
,
"1"
:
1
,
"2"
:
2
,
"2"
:
1
,
"3"
:
1
,
"3"
:
2
,
"4"
:
4
,
"4"
:
1
,
"5"
:
1
,
"5"
:
1
,
"6"
:
1
"6"
:
1
},
},
...
@@ -174,9 +135,9 @@
...
@@ -174,9 +135,9 @@
"title"
:
"LEBT"
,
"title"
:
"LEBT"
,
"width"
:
1
,
"width"
:
1
,
"row"
:
{
"row"
:
{
"1"
:
5
7
,
"1"
:
3
7
,
"2"
:
3
5
,
"2"
:
3
3
,
"3"
:
13
,
"3"
:
7
,
"4"
:
7
,
"4"
:
7
,
"5"
:
1
,
"5"
:
1
,
"6"
:
1
,
"6"
:
1
,
...
@@ -271,9 +232,9 @@
...
@@ -271,9 +232,9 @@
"title"
:
"Beam Mode"
,
"title"
:
"Beam Mode"
,
"width"
:
1
,
"width"
:
1
,
"row"
:
{
"row"
:
{
"1"
:
23
,
"1"
:
19
,
"2"
:
1
9
,
"2"
:
1
5
,
"3"
:
1
3
,
"3"
:
1
9
,
"4"
:
7
,
"4"
:
7
,
"5"
:
11
,
"5"
:
11
,
"6"
:
11
,
"6"
:
11
,
...
@@ -282,7 +243,7 @@
...
@@ -282,7 +243,7 @@
"col"
:
{
"col"
:
{
"1"
:
1
,
"1"
:
1
,
"2"
:
2
,
"2"
:
2
,
"3"
:
2
,
"3"
:
1
,
"4"
:
2
,
"4"
:
2
,
"5"
:
2
,
"5"
:
2
,
"6"
:
2
,
"6"
:
2
,
...
@@ -372,9 +333,9 @@
...
@@ -372,9 +333,9 @@
"title"
:
"Ion Source"
,
"title"
:
"Ion Source"
,
"width"
:
1
,
"width"
:
1
,
"row"
:
{
"row"
:
{
"1"
:
41
,
"1"
:
55
,
"2"
:
1
9
,
"2"
:
1
7
,
"3"
:
1
7
,
"3"
:
1
3
,
"4"
:
7
,
"4"
:
7
,
"5"
:
1
,
"5"
:
1
,
"6"
:
1
,
"6"
:
1
,
...
@@ -383,7 +344,7 @@
...
@@ -383,7 +344,7 @@
"col"
:
{
"col"
:
{
"1"
:
1
,
"1"
:
1
,
"2"
:
1
,
"2"
:
1
,
"3"
:
1
,
"3"
:
2
,
"4"
:
3
,
"4"
:
3
,
"5"
:
1
,
"5"
:
1
,
"6"
:
1
,
"6"
:
1
,
...
@@ -460,9 +421,9 @@
...
@@ -460,9 +421,9 @@
"title"
:
"Beam Current"
,
"title"
:
"Beam Current"
,
"width"
:
1
,
"width"
:
1
,
"row"
:
{
"row"
:
{
"1"
:
7
5
,
"1"
:
7
1
,
"2"
:
5
3
,
"2"
:
5
1
,
"3"
:
3
3
,
"3"
:
3
7
,
"4"
:
25
,
"4"
:
25
,
"5"
:
1
,
"5"
:
1
,
"6"
:
1
,
"6"
:
1
,
...
...
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