somego / subway-shanghai

:train2:上海地铁线路图PWA,支持离线使用,强烈建议安装Chrome浏览器使用。Subway Shanghai, offline first, it's strongly recommended to use by Chrome.

Home Page:https://madneal.github.io/subway-shanghai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🚆🚆🚆 Subway Shanghai

The before vesion is based on native js. With the increse of the size of the code, the code become messy. Therefore, the new version is implemented on the basis of create-react-app.

Component structure

The whole map can be seen as a Map component, and deivde it into 4 child components:

map

  • Label: The text infomation of the map, including station name and line name
  • Station: Station, including normal station and transfer station
  • Line: Subway line
  • InfoCard: The most complex component, including timesheet, washroom position information, entrance infomation and elevator information

subway-react

Run

npm start: Run the app in development mode.

npm decploy: Deploy the build results to gh-pages branch, to display the app.

LICENSE

MIT

About

:train2:上海地铁线路图PWA,支持离线使用,强烈建议安装Chrome浏览器使用。Subway Shanghai, offline first, it's strongly recommended to use by Chrome.

https://madneal.github.io/subway-shanghai/

License:MIT License


Languages

Language:JavaScript 84.5%Language:HTML 6.5%Language:CSS 6.1%Language:Python 2.9%