diff --git a/_data/aesthetihawk_sidebar.yml b/_data/aesthetihawk_sidebar.yml index 2f4f2cd599..0fa82b0c1a 100644 --- a/_data/aesthetihawk_sidebar.yml +++ b/_data/aesthetihawk_sidebar.yml @@ -33,6 +33,14 @@ icon: | + - id: bathroom_pass + title: Bathroom Pass + url: /student/bathroom_pass + icon: | + + - id: groups title: Groups url: /student/groups diff --git a/_data/toolkit.yml b/_data/toolkit.yml index fcd14d8495..366bfbb8a3 100644 --- a/_data/toolkit.yml +++ b/_data/toolkit.yml @@ -23,6 +23,15 @@ links: - View your grades for all assignments icon: images/toolkit-nav-buttons/submissions.png + - id: bathroom_pass + href: student/bathroom_pass + label: Bathroom Pass + description: + - Scan your face to enter the bathroom queue + - Real-time occupancy tracking and threshold management + - Integrated facial recognition for quick access + icon: images/toolkit-nav-buttons/bathroom.png + - id: bathroom href: student/hallpass label: Bathroom System diff --git a/_includes/bathroom_pass.html b/_includes/bathroom_pass.html index 5df780f427..8f7294abe9 100644 --- a/_includes/bathroom_pass.html +++ b/_includes/bathroom_pass.html @@ -158,9 +158,9 @@

A101 Pass

// we might not have module support directly unless type="module". // Alternatively, we can assume pythonURI is available globally if defined elsewhere or hardcode/detect it. // For now, let's try to detect it or use a fallback. - const pythonURI = location.hostname === "localhost" || location.hostname === "127.0.0.1" - ? "http://localhost:8587" - : "https://flask.opencodingsociety.com"; + const javaURI = location.hostname === "localhost" || location.hostname === "127.0.0.1" + ? "http://localhost:8585" + : "https://spring.opencodingsociety.com"; async function toggleWebcam() { if (!webcamContainer.classList.contains('hidden')) { @@ -215,11 +215,10 @@

A101 Pass

statusDiv.innerText = "Identifying..."; try { - const response = await fetch(`${pythonURI}/api/identify`, { + const response = await fetch(`${javaURI}/api/person/identify`, { method: 'POST', headers: { - 'Content-Type': 'application/json', - // Add credentials if needed + 'Content-Type': 'application/json' }, body: JSON.stringify({ image: base64Data }) }); diff --git a/_includes/group_dashboard.html b/_includes/group_dashboard.html index 7585ab1187..9913eb118e 100644 --- a/_includes/group_dashboard.html +++ b/_includes/group_dashboard.html @@ -35,63 +35,6 @@

{{ include.gro - -
-
-

- - - - Group Calendar -

-
- - January 2026 - -
-
- -
- -
- -
-
Sun
-
Mon
-
Tue
-
Wed
-
Thu
-
Fri
-
Sat
-
- - -
- -
-
- - -
-

Today's Items

-
-

No events scheduled for today

-
- -
-
-
-
@@ -196,47 +139,50 @@

- - - - - -