Skip to content

Commit

Permalink
added first stab video clicker for control points #2
Browse files Browse the repository at this point in the history
  • Loading branch information
hcwinsemius committed Jan 24, 2025
1 parent 9000c19 commit feb29c6
Show file tree
Hide file tree
Showing 18 changed files with 639 additions and 83 deletions.
1 change: 1 addition & 0 deletions dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ npm install axios # for API connection
npm install react-router-dom # for organizing the router
npm install dotenv # for setting environment variables
npm install react-icons
npm install react-zoom-pan-pinch

# Start dev server, ensuring the API url is added as environment variable
VITE_API_BASE_URL="http://<name-of-server>:<port-of-server>" npm run dev
Expand Down
121 changes: 121 additions & 0 deletions dashboard/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@
"preview": "vite preview"
},
"dependencies": {
"@xterm/addon-fit": "^0.10.0",
"@xterm/xterm": "^5.5.0",
"axios": "^1.7.9",
"dotenv": "^16.4.7",
"leaflet": "^1.9.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.4.0",
"react-leaflet": "^4.2.1",
"react-router-dom": "^7.1.1",
"react-xtermjs": "^1.0.9",
"react-zoom-pan-pinch": "^3.6.1",
"shpjs": "^6.1.0",
"webpack-dev-server": "^5.2.0"
},
"devDependencies": {
Expand Down
18 changes: 18 additions & 0 deletions dashboard/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@
overflow-y: auto; /* scrollable with overflowing content */
padding: 1rem; /* Optional: Add some padding */
}
.btn {
background-color: #0a4777;
border-color: #0a4777;
color: #fff;
marginBottom: 10px;
}
/* Close Button for menus and widgets */
.close-button {
align-self: flex-end;
font-size: 24px;
font-weight: bold;
color: white;
background: none;
border: none;
cursor: pointer;
margin-bottom: 20px;
}



.logo {
Expand Down
3 changes: 3 additions & 0 deletions dashboard/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Device from './views/device';
import DiskManagement from './views/diskManagement'
import WaterLevel from './views/waterLevel'
import CameraAim from './views/cameraAim'
import Calibration from './views/calibration'
import api from './api'

const App = () => {
Expand All @@ -27,6 +28,8 @@ const App = () => {
<Route path="/disk_management" element={<DiskManagement />} />
<Route path="/water_level" element={<WaterLevel />} />
<Route path="/camera_aim" element={<CameraAim />} />
<Route path="/calibration" element={<Calibration />} />

</Routes>
</div>
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/nav/Footer.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.footer {
background-color: #2c3e50; /* Consistent color */
background-color: #0a4777; /* Consistent color */
color: white;
text-align: center;
padding: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/nav/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import './Footer.css'

const Footer = () => {
return (
<footer className="footer bg-primary">
<footer className="footer">
<div className="footer-content">
<img src="./public/orc_favicon.svg" alt="ORC Logo" width="20" className="footer-logo"/>
{' '}
Expand Down
Loading

0 comments on commit feb29c6

Please sign in to comment.