-
Couldn't load subscription status.
- Fork 0
Dev : Middleware & ETC. #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
3631609
feat: added staff scan qr page
dhanavadh fe86339
Merge branch 'dev' into feat/firstdate/staff-qr
dhanavadh 076210b
fix: firstdate staff bg
dhanavadh a25dc69
Merge branch 'dev' into feat/firstdate/staff-qr
dhanavadh 2eb62c2
feat: add @yudiel/react-qr-scanner
dhanavadh 4cbcbd3
Merge branch 'dev' into feat/firstdate/staff-qr
dhanavadh a70b642
Merge branch 'dev' into feat/firstdate/staff-qr
dhanavadh 2fa23d2
Merge branch 'dev' into feat/firstdate/staff-qr
dhanavadh 560d6a0
Feat: added staff-qr page
dhanavadh 382c2c8
Merge branch 'dev' into feat/firstdate/staff-qr
neennera a5e278f
chore: fix middleware doesn't work
Dpyde 9846fda
feat: Implement qr scan with api
Dpyde 6b9742a
Merge branch 'dev' into feat/firstdate/staff-qr
dhanavadh 9447040
fix: staff-qr code
dhanavadh d3ac27c
Merge branch 'feat/firstdate/staff-qr' of https://github.com/isd-sgcu…
neennera cd6e983
Merge branch 'dev' into feat/firstdate/staff-qr
neennera e53584f
fix: conflicts
MasterIceZ 707f4a7
fix: qr scan error, body stream err, cannot send cookie to backend err
dhanavadh 8395fc4
Fix: alternative form handle error
dhanavadh 919a945
fix: no event active layout
dhanavadh 9523a05
Merge branch 'dev' into feat/firstdate/staff-qr
dhanavadh 7878eff
Merge branch 'feat/firstdate/staff-qr' of https://github.com/isd-sgcu…
neennera 4104be7
[Fix] Staff-QR (#71)
dhanavadh 0b94782
fix: fest content
neennera e0c6a73
fix: qrcode in /events go to /firstdate/qrcode
neennera f6e264a
add : checkin not found & remove freshmennight
neennera 09d2d67
add: fix event period
neennera 1c252d1
fix: staff with navbar
neennera 82d9fc3
feat: add nonStartedRoutes time constraint whitelist
Taihenc c3c7d6a
fix : home & map unclickable
neennera 8448136
fix: new Date()
neennera 05e7123
Merge pull request #80 from isd-sgcu/fix/qr-code-not-scan
neennera 96e5daf
fix: qrcode
neennera 6a6f02d
Merge branch 'dev' into feat/firstdate/staff-qr
neennera ac39a95
Merge branch 'feat/firstdate/staff-qr' into fix/qr-code-not-scan
neennera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,145 @@ | ||
| <div> | ||
| <div class="relative my-8 flex w-full px-4"> | ||
| <!-- QR Code Tab with Border --> | ||
| <div class="tab-container-qr active relative flex-1"> | ||
| <!-- Border layer --> | ||
| <div | ||
| class="border-layer cut-edge-l absolute -top-[2px] -right-[2px] -bottom-[3px] -left-[2px]" | ||
| > | ||
| </div> | ||
| <!-- Tab button --> | ||
| <button | ||
| class="tab-button tab-qr active cut-edge-l relative mx-0 h-full w-full bg-white px-0 py-2 transition-all duration-300" | ||
| data-tab="qr" | ||
| > | ||
| <span class="relative z-10 text-base font-semibold">ใช้ QR Code</span> | ||
| </button> | ||
| </div> | ||
|
|
||
| <!-- Student ID Tab with Border --> | ||
| <div class="tab-container-student relative -ml-[40px] flex-1"> | ||
| <!-- Border layer --> | ||
| <div | ||
| class="border-layer cut-edge-r absolute -top-[2px] -right-[2px] -bottom-[3px] -left-[2px]" | ||
| > | ||
| </div> | ||
| <!-- Tab button --> | ||
| <button | ||
| class="tab-button tab-student cut-edge-r relative mx-0 h-full w-full bg-transparent px-0 py-2 transition-all duration-300" | ||
| data-tab="student" | ||
| > | ||
| <span class="relative z-10 text-base font-semibold">ใช้รหัสนิสิต</span> | ||
| </button> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Tab Content --> | ||
| <div class="tab-content mt-4"> | ||
| <div class="tab-pane tab-pane-qr active"> | ||
| <slot name="qr-content" /> | ||
| </div> | ||
| <div class="tab-pane tab-pane-student"> | ||
| <slot name="student-content" /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <style> | ||
| /* Tab container glow effect like ButtonFd */ | ||
| .tab-qr.active { | ||
| background: white; | ||
| color: #121212; | ||
| } | ||
|
|
||
| .tab-qr:not(.active) { | ||
| background: transparent; | ||
| color: #fffff2; | ||
| } | ||
|
|
||
| .tab-student.active { | ||
| background: white; | ||
| color: #121212; | ||
| } | ||
|
|
||
| .tab-student:not(.active) { | ||
| background: transparent; | ||
| color: #fffff2; | ||
| } | ||
|
|
||
| /* Container glow effects - applied to the wrapper div */ | ||
| .tab-container-qr.active { | ||
| filter: drop-shadow(0px 0px 6px #ffb6c1); | ||
| } | ||
|
|
||
| .tab-container-student.active { | ||
| filter: drop-shadow(0px 0px 6px #ffb6c1); | ||
| } | ||
|
|
||
| /* Border layer - only visible when container is active */ | ||
| .border-layer { | ||
| background: #ffb6c1; | ||
| display: none; | ||
| } | ||
|
|
||
| .tab-container-qr.active .border-layer, | ||
| .tab-container-student.active .border-layer { | ||
| display: block; | ||
| } | ||
|
|
||
| /* Tab Content Visibility */ | ||
| .tab-pane { | ||
| display: none; | ||
| } | ||
|
|
||
| .tab-pane.active { | ||
| display: block; | ||
| } | ||
|
|
||
| /* Hover Effects */ | ||
| .tab-button:hover:not(.active) { | ||
| background: rgba(255, 255, 255, 0.1); | ||
| } | ||
| </style> | ||
|
|
||
| <script> | ||
| document.addEventListener("DOMContentLoaded", function () { | ||
| const qrTab = document.querySelector(".tab-qr"); | ||
| const studentTab = document.querySelector(".tab-student"); | ||
| const qrContainer = document.querySelector(".tab-container-qr"); | ||
| const studentContainer = document.querySelector(".tab-container-student"); | ||
| const qrPane = document.querySelector(".tab-pane-qr"); | ||
| const studentPane = document.querySelector(".tab-pane-student"); | ||
|
|
||
| function switchToQR() { | ||
| // Update tab states | ||
| qrTab?.classList.add("active"); | ||
| studentTab?.classList.remove("active"); | ||
|
|
||
| // Update container glow states | ||
| qrContainer?.classList.add("active"); | ||
| studentContainer?.classList.remove("active"); | ||
|
|
||
| // Update content visibility | ||
| qrPane?.classList.add("active"); | ||
| studentPane?.classList.remove("active"); | ||
| } | ||
|
|
||
| function switchToStudent() { | ||
| // Update tab states | ||
| studentTab?.classList.add("active"); | ||
| qrTab?.classList.remove("active"); | ||
|
|
||
| // Update container glow states | ||
| studentContainer?.classList.add("active"); | ||
| qrContainer?.classList.remove("active"); | ||
|
|
||
| // Update content visibility | ||
| studentPane?.classList.add("active"); | ||
| qrPane?.classList.remove("active"); | ||
| } | ||
|
|
||
| // Add event listeners | ||
| qrTab?.addEventListener("click", switchToQR); | ||
| studentTab?.addEventListener("click", switchToStudent); | ||
| }); | ||
| </script> | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tab component is missing ARIA roles and properties (e.g.,
role="tablist",role="tab",aria-selected). Add appropriate accessibility attributes for screen reader support.