mirror of
https://github.com/horizon-rust/horizon-site.git
synced 2026-12-03 19:12:41 +07:00
[PR #37] [MERGED] Hub: the official server's market (/hub/market) #39
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-site#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/horizon-rust/horizon-site/pull/37
Author: @ludovic111
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111
Base:
main← Head:feat/hub-market📝 Commits (1)
fd6e40bThe official server's market in the hub: /hub/market📊 Changes
4 files changed (+386 additions, -0 deletions)
View changed files
📝
README.md(+2 -0)➕
app/api/market/route.ts(+27 -0)➕
app/hub/market/page.tsx(+50 -0)➕
components/market-board.tsx(+307 -0)📄 Description
/hub/marketis a new page, in the style the hub and/statsalready use: the aurora header,#18112ctiles, and the same range buttons and SVG charts as the player count. No existing page changes.The page
Data
/api/market?file=marketreads Kira'sGET /smp/market.json(horizon-rust/kira#110). The official server pushes its pages to Kira: horizon-rust/horizon-mods#134 (web/market.json, schema 1) POSTs them gzipped, with their own token, each minute they change. Kira holds no key to the server.KIRA_URLis optional and defaults to Kira's Railway address. If Kira has no page, the page says "The server's market isn't available right now."Checks
npm run lintis clean.tsc --noEmitshows only the existingPageProps/LayoutPropserrors, whichnext buildgenerates away.next buildpasses on this head. Kira's/smp/market.jsonis live with the official server's data (2026-11-01 21:13Z), and the page is checked on playhorizon.dev after the merge.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.