Skip to content
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

Implement environment variables #99

Merged
merged 29 commits into from
Dec 31, 2024
Merged

Conversation

karlromets
Copy link
Collaborator

@karlromets karlromets commented Dec 28, 2024

Resolves #97
Fixes #93

Description:
Introduces 3 new env vars

Changes made:
56de767 solves #97, adds t("Join at") {link} to /game page
586dfd1 adds csv and image max upload size vars
29003ce fixes a setTimeout bug
e0db5e2 solves #93 by checking actual file extension, also introduces utils/ folder for commonly used JS functions
c8cf2b3 adds prettier config so contributors can format with the same settings

- added styling, new elements also
- delay wasnt actually working
- MIME type validation using regex patterns to support various vendor-specific formats
- Created utils folder and moved file handlers to utils/files.js for better code organization
- Now supports additional CSV MIME types (e.g., 'application/vnd.ms-excel')
- So contributors will hopefully all use consistent formatting
components/title.js Outdated Show resolved Hide resolved
.env Show resolved Hide resolved
components/admin.js Outdated Show resolved Hide resolved
.env Outdated Show resolved Hide resolved
Copy link
Owner

@joshzcold joshzcold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the title page needs a rearrangement for the new UI element.

@karlromets karlromets requested a review from joshzcold December 28, 2024 13:01
Copy link
Owner

@joshzcold joshzcold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some final tweaks to the title page and we should be finished here

components/Title/TitlePage.jsx Outdated Show resolved Hide resolved
components/title.js Outdated Show resolved Hide resolved
components/title.js Outdated Show resolved Hide resolved
@karlromets
Copy link
Collaborator Author

karlromets commented Dec 29, 2024

The title page logo/title sizing needs an overhaul, I've made a band-aid fix to it, but it should be simpler than what is currently done, also merge conflicts should be solved I'm not sure why it is still showing conflicts

@karlromets karlromets marked this pull request as draft December 30, 2024 14:10
@karlromets
Copy link
Collaborator Author

Waiting for #109

@karlromets karlromets marked this pull request as ready for review December 30, 2024 14:50
- Prevent server crash when accessing session array index without proper bounds checking.
Previously, accessing session[1] would panic if cookie didn't contain colons.
- Send full session string on game view
- Prevent player_not_found errors for spectator pings
- Add useEffect hook to set initial timer value when entering final round
Copy link
Owner

@joshzcold joshzcold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One tiny change to the returned errors in display.go

backend/api/display.go Outdated Show resolved Hide resolved
@joshzcold joshzcold merged commit 8d8fc68 into joshzcold:master Dec 31, 2024
@karlromets karlromets deleted the feat/env-vars branch January 2, 2025 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: show the URL of the website on the game screen Cannot upload CSV on firefox
2 participants