{"repo":"madneal/subway-shanghai","free":true,"listed":false,"github":"https://github.com/madneal/subway-shanghai","clone":"git clone https://github.com/madneal/subway-shanghai.git","description":":train2:上海地铁线路图PWA，支持离线使用，强烈建议安装Chrome浏览器使用。Subway Shanghai, offline first, it's strongly recommended to use by Chrome.","language":"JavaScript","stars":158,"topics":["pwa","subway","react","create-react-app"],"license":"MIT","category":"ui-components","readme_excerpt":":train2::train2::train2: Subway Shanghai Interactive Shanghai metro map. Stack: Vite 6 + React 18 Live: https://madneal.com/subway-shanghai/ 中文说明: README-CHINESE.md Originally a native JS map, later rewritten with Create React App, and now on Vite. Map data (fully offline at runtime) The web app never calls Shanghai Metro or Amap APIs. All station geometry, times, and facilities are local JSON under src/data/ . Path Role ------ ------ src/data/Data.js Line colors, names, SVG paths (built) src/data/stations.json / transfers.json / labels.json Map pins & text (built) src/data/stationInfo.json Timesheet + toilet / elevator / entrance (built) src/data/official/ Committed dump from 上海地铁官方站点页 src/data/raw/ Local Amap schematic snapshot (geometry) Refresh pipeline (developers only) Official APIs used only inside fetch-official (same as the csdt page): - metromap.aspx?func=stationInfo&station code=… — 卫生间 / 电梯 / 出入口 - metromap.aspx?func=fltimeA&station code=… — 首末班车 - metromap.aspx / func=lines — 站点列表与线路色 After step 1, those payloads live on disk; the site and CI only read files. Component structure The map is a Map with four child pieces: Component Role ----------- ------ Label Station and line name text Station Normal and transfer stations Line Metro line paths InfoCard Timesheet, washroom, entrance, and elevator info Develop App base path is /subway-shanghai/ (project GitHub Pages URL). Local dev uses the same base. Test Command What it covers --------- ---------------- npm test U","default_branch":null,"files":null,"tree":[],"storefront":"/r/madneal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/madneal/subway-shanghai/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}