Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# React app settings. Restart the process for changes to take effect.

# Set to connect to a Coniql server.
# REACT_APP_CONIQL_SOCKET=cs03r-sc-serv-40.diamond.ac.uk:8080
# REACT_APP_CONIQL_SOCKET=cs03r-sc-serv-39.diamond.ac.uk:8080

REACT_APP_BASE_URL=http://localhost:3000
REACT_APP_SIMULATION_TIME=100
Expand Down
123 changes: 123 additions & 0 deletions public/json/device.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"type": "display",
"position": "relative",
"overflow": "auto",
"backgroundColor": "#012265",
"children": [
{
"type": "shape",
"position": "relative",
"height": "5vh",
"width": "100%",
"backgroundColor": "#012265"
},
{
"type": "slideshow",
"position": "relative",
"width": "90%",
"margin": "auto",
"overflow": "auto",
"backgroundColor": "white",
"border": {
"style": "line",
"width": 5,
"color": "#ffcf00",
"radius": 10
},
"children": [
{
"type": "display",
"position": "relative",
"width": "100%",
"backgroundColor": "#cccccc",
"overflow": "auto",
"children": [
{
"type": "label",
"position": "relative",
"height": "4rem",
"textAlign": "center",
"font": {
"style": "bold",
"size": 20
},
"backgroundColor": "#eeeeee",
"text": "Device Test"
},
{
"type": "embeddedDisplay",
"position": "relative",
"file": "xpress.json",
"filetype": "json",
"defaultProtocol": "ca"
}
]
},
{
"type": "display",
"position": "relative",
"width": "100%",
"backgroundColor": "#cccccc",
"overflow": "auto",
"macros": {
"motor": "1"
},
"children": [
{
"type": "label",
"position": "relative",
"width": "100%",
"height": "4rem",
"textAlign": "center",
"font": {
"style": "bold",
"size": 30
},
"backgroundColor": "#eeeeee",
"text": "Embed"
},
{
"type": "dynamicpage",
"position": "relative",
"routePath": "embed"
}
]
},
{
"type": "display",
"position": "relative",
"width": "100%",
"backgroundColor": "#cccccc",
"overflow": "auto",
"children": [
{
"type": "label",
"position": "relative",
"width": "100%",
"height": "4rem",
"textAlign": "center",
"font": {
"style": "bold",
"size": 30
},
"backgroundColor": "#eeeeee",
"text": "Detail"
},
{
"type": "dynamicpage",
"position": "relative",
"routePath": "detail"
}
]
}
]
},
{
"type": "shape",
"position": "relative",
"height": "5vh",
"width": "100%",
"backgroundColor": "#012265"
}
]
}
36 changes: 36 additions & 0 deletions public/json/drawer.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,42 @@
]
}
},
{
"type": "actionbutton",
"text": "Device Testing",
"position": "relative",
"width": "100%",
"height": "4rem",
"margin": "1% 5% 1% 5%",
"foregroundColor": "#012265",
"backgroundColor": "#ffcf00",
"font": {
"size": "25"
},
"border": {
"style": "none",
"color": "#ffcf00",
"width": 1
},
"actions": {
"executeAsOne": false,
"actions": [
{
"type": "OPEN_PAGE",
"dynamicInfo": {
"name": "app",
"location": "app",
"description": "",
"file": {
"path": "xpress.json",
"macros": {},
"defaultProtocol": "pva"
}
}
}
]
}
},
{
"type": "actionbutton",
"text": "Mobile Layout",
Expand Down
164 changes: 164 additions & 0 deletions public/json/menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"type": "flexcontainer",
"position": "relative",
"children": [
{
"type": "actionbutton",
"text": "Beamline Synoptic",
"position": "relative",
"width": "300px",
"height": "200px",
"margin": "10px",
"backgroundColor": "#4da6ff",
"font": {
"size": 30
},
"actions": {
"executeAsOne": false,
"actions": [
{
"type": "OPEN_PAGE",
"openPageInfo": {
"page": "app",
"pageDescription": {
"filename": "beamline",
"filetype": "json",
"macros": {}
}
}
}
]
}
},
{
"type": "actionbutton",
"text": "Mobile Layout",
"position": "relative",
"width": "300px",
"height": "200px",
"margin": "10px",
"backgroundColor": "#ffa64d",
"font": {
"size": 30
},
"actions": {
"executeAsOne": false,
"actions": [
{
"type": "OPEN_PAGE",
"openPageInfo": {
"page": "app",
"pageDescription": {
"filename": "mobileDemo",
"filetype": "json",
"macros": {}
}
}
}
]
}
},
{
"type": "actionbutton",
"text": "Device Testing",
"position": "relative",
"width": "300px",
"height": "200px",
"margin": "10px",
"backgroundColor": "#ffa64d",
"font": {
"size": 30
},
"actions": {
"executeAsOne": false,
"actions": [
{
"type": "OPEN_PAGE",
"openPageInfo": {
"page": "app",
"pageDescription": {
"filename": "device",
"filetype": "json",
"macros": {}
}
}
}
]
}
},
{
"type": "actionbutton",
"text": "Performance Testing",
"position": "relative",
"width": "300px",
"height": "200px",
"margin": "10px",
"backgroundColor": "#4dffa6",
"font": {
"size": 30
},
"actions": {
"executeAsOne": false,
"actions": [
{
"type": "OPEN_PAGE",
"openPageInfo": {
"page": "app",
"pageDescription": {
"filename": "performance",
"filetype": "json",
"macros": {}
}
}
}
]
}
},
{
"type": "actionbutton",
"text": "Machine Status",
"position": "relative",
"width": "300px",
"height": "200px",
"margin": "10px",
"backgroundColor": "#e580ff",
"fontSize": "3rem",
"actions": {
"executeAsOne": false,
"actions": [
{
"type": "OPEN_PAGE",
"openPageInfo": {
"location": "app",
"page": "machineStatus",
"macros": "{}"
}
}
]
}
},
{
"type": "actionbutton",
"text": "Modern Machine Status",
"position": "relative",
"width": "300px",
"height": "200px",
"margin": "10px",
"backgroundColor": "#ff7070",
"fontSize": "3rem",
"actions": {
"executeAsOne": false,
"actions": [
{
"type": "OPEN_PAGE",
"openPageInfo": {
"location": "app",
"page": "modernMachineStatus",
"macros": "{}"
}
}
]
}
}
]
}
2 changes: 1 addition & 1 deletion public/json/opiTesting.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"position": "relative",
"margin": "10px",
"file": {
"path": "synoptic.opi",
"path": "motor_detail.opi",
"macros": {},
"defaultProtocol": "ca"
}
Expand Down
13 changes: 13 additions & 0 deletions public/json/xpress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "display",
"position": "relative",
"width": "100%",
"children": [
{
"type": "device",
"deviceName": "device://Xspress3",
"position": "relative",
"width": "100%"
}
]
}
Loading