Skip to content

Commit

Permalink
add: sport type: track_running -> Run
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-29 committed Oct 11, 2023
1 parent 64e4a89 commit 20def07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
- 修改 `scripts/config.py`, `TYPE_DICT` 增加类型映射关系, `MAPPING_TYPE` 里增加运动类型
- 修改 `src/utils/const.js`, 增加类型标题,并加入到 `RUN_TITLES`
- 修改 `src/utils/util.js` 里的 `colorFromType`, 增加 case 指定颜色; `titleForRun` 增加 case 指定类型标题
- 参考这个 [commit](https://github.com/ben-29/workouts_page/commit/bfb6e9da4f72bdbdec669c42bdd10062558039cd)
- 参考这个 [commit](https://github.com/ben-29/workouts_page/commit/f3a35884d626009d33e05adc76bbc8372498f317)
-[留言](https://github.com/ben-29/workouts_page/issues/20)
---

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This project is based on [running_page](https://github.com/yihong0618/running_pa
- Modify `TYPE_DICT` & `MAPPING_TYPE` in `scripts/config.py`
- Add Type Name and add it into `RUN_TITLES` in `src/utils/const.js`
- Modify `colorFromType` & `titleForRun` in `src/utils/util.js`
- see [commit](https://github.com/ben-29/workouts_page/commit/bfb6e9da4f72bdbdec669c42bdd10062558039cd)
- see [commit](https://github.com/ben-29/workouts_page/commit/f3a35884d626009d33e05adc76bbc8372498f317)
- or comment [here](https://github.com/ben-29/workouts_page/issues/20)

---
Expand Down
1 change: 1 addition & 0 deletions run_page/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def safeget(dct, *keys):
"running": "Run",
"RUN": "Run",
"Run": "Run",
"track_running": "Run",
"trail_running": "Trail Running",
"cycling": "Ride",
"CYCLING": "Ride",
Expand Down

0 comments on commit 20def07

Please sign in to comment.