mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-12-01 02:04:40 +00:00
Add event standings pages and an Events link
BeamMP now runs community events with combined leaderboards, and the site had nowhere to show them. This adds an Events page listing each event and an event page with live standings, a driver search, the servers taking part and the event rules. Standings come from the API's public events routes, so no key is ever in the browser. The page keeps the last good results on screen if a refresh fails and says the connection was lost rather than going blank. Events with an uploaded banner show it behind the card and the page header, with an overlay so the text stays readable; events without one look as plain cards. The helpers the two pages share live beside them in views/events rather than in lib, since nothing else uses them. The Events link sits before Servers in the desktop and mobile menus. All of the new text is translated into the seven site languages using literal keys, so the locale checks can see every one. The translations are machine written and want a native speaker's review. src/lib/config.js is included because the pages need the API address from it: it is the one place that reads the window.__ENV__ the container writes at start, with the real services as the defaults.
This commit is contained in:
1 parent
1488e3bbdb
commit
38955dcbfe
14 files changed
+931
-7
No files matched your search
+58
-1
@@ -22,7 +22,8 @@
|
||||
"light": "Light Theme",
|
||||
"dark": "Dark Theme",
|
||||
"system": "System Theme"
|
||||
}
|
||||
},
|
||||
"events": "Events"
|
||||
},
|
||||
"footer": {
|
||||
"support_on_patreon": "Support us on Patreon",
|
||||
@@ -274,6 +275,62 @@
|
||||
},
|
||||
"thank_you": "Together, we’re building something special. Thank you for being part of the BeamMP community!"
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"title": "Events",
|
||||
"description": "Follow the latest standings for BeamMP events, combined across every server taking part.",
|
||||
"loading": "Loading events…",
|
||||
"empty": "No events have been set up yet.",
|
||||
"viewTop": "View top {count} →",
|
||||
"ranked": "Ranked drivers: {count}",
|
||||
"servers": "Servers: {count}",
|
||||
"back": "← All events",
|
||||
"loadingEvent": "Loading event…",
|
||||
"standings": "Global standings",
|
||||
"topDrivers": "Top {count} drivers",
|
||||
"statDrivers": "Ranked drivers",
|
||||
"statLaps": "Recorded laps",
|
||||
"statServers": "Servers",
|
||||
"statPlace": "Place {count}",
|
||||
"standingsTitle": "Standings",
|
||||
"search": "Search drivers…",
|
||||
"pos": "Pos",
|
||||
"driver": "Driver",
|
||||
"bestLap": "Best lap",
|
||||
"gap": "Gap",
|
||||
"pen": "Pen.",
|
||||
"server": "Server",
|
||||
"leader": "Leader",
|
||||
"noMatch": "No matching drivers.",
|
||||
"waiting": "Waiting for the first results from event servers.",
|
||||
"sources": "Server sources",
|
||||
"lastResult": "Last result: {when}",
|
||||
"none": "none yet",
|
||||
"noServers": "No servers have joined yet.",
|
||||
"live": "Updates automatically as servers report laps.",
|
||||
"lost": "Connection lost. Retrying…",
|
||||
"lastShown": "Showing the last received results.",
|
||||
"rules": "Event rules",
|
||||
"r1t": "Registered drivers only.",
|
||||
"r1": "Guests are not ranked.",
|
||||
"r2t": "Times as recorded.",
|
||||
"r2": "Penalties are applied by the game server; the time shown is the time it reported.",
|
||||
"r3t": "One place per driver.",
|
||||
"r3": "Best lap across all event servers.",
|
||||
"r4t": "Review.",
|
||||
"r4": "Staff can exclude drivers after review.",
|
||||
"status": {
|
||||
"qualifying": "Qualifying",
|
||||
"live": "Live event",
|
||||
"upcoming": "Upcoming",
|
||||
"finished": "Finished"
|
||||
},
|
||||
"errors": {
|
||||
"notFound": "This event is not available.",
|
||||
"rateLimited": "Too many requests. Retrying shortly.",
|
||||
"unavailable": "Event results are unavailable.",
|
||||
"timeout": "Connection timed out. Retrying automatically."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user