Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #2

Open
wants to merge 556 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
556 commits
Select commit Hold shift + click to select a range
d8460fa
Merge pull request #387 from imnxg/patch-1
yihong0618 May 8, 2023
0062d88
Merge pull request #411 from shaonianche/fix-css
yihong0618 May 8, 2023
4917272
Merge pull request #414 from shaonianche/dustman
yihong0618 May 8, 2023
78afad0
commit: fix click area problem
VintLin May 11, 2023
cb3ffed
Merge pull request #416 from VintLin/fix_click_area
yihong0618 May 11, 2023
18c57a8
commit: add personal website
VintLin May 11, 2023
d480cc2
commit: formatting
VintLin May 11, 2023
73306e9
Merge pull request #417 from VintLin/feat_vint_website
yihong0618 May 11, 2023
21e2948
fix: #412
yihong0618 May 12, 2023
fddf9a7
fix: eval evil for joyrun and replace string by install of
yihong0618 May 20, 2023
3cacfc6
fix: lint
yihong0618 May 20, 2023
1e04b05
:running: share muyids's running page
wonderfulest Jun 5, 2023
95e1b96
Merge pull request #419 from muyids/feature/share
yihong0618 Jun 5, 2023
1e75680
doc: new runner
yihong0618 Jun 7, 2023
240a22a
doc: new runner
yihong0618 Jun 17, 2023
5b64a70
fix: #426
yihong0618 Jun 20, 2023
49dea38
申请加入
oreray Jun 21, 2023
9cf7161
Merge pull request #428 from raywangsy/patch-1
yihong0618 Jun 22, 2023
52ec6bf
城市分割问题修改
zongbintu Jun 28, 2023
12cedf0
Update utils.js
zongbintu Jun 28, 2023
aedc1f2
Merge pull request #431 from 2tu/fix-city
yihong0618 Jun 28, 2023
d32a187
申请加入
tiny656 Jun 29, 2023
c24622d
Merge pull request #432 from tiny656/new-1
yihong0618 Jun 29, 2023
4b984fe
refactor: use event delegation to handle all <rect> & <polyline> in t…
vlin Jun 29, 2023
a595ca3
Merge pull request #434 from vlin/refactor
yihong0618 Jun 29, 2023
40797f0
fix: drop useless log
yihong0618 Jun 29, 2023
3b37470
feat:add garmin device in strava_to_garmin_sync script
zhaohongxuan Jun 29, 2023
fcd8652
style:add default value for use_fake_garmin_device
zhaohongxuan Jul 1, 2023
dddde0a
Merge pull request #435 from zhaohongxuan/feature/adapter_garmin_device
yihong0618 Jul 1, 2023
58f396a
chore: use <></> instead of the root node of the components to improv…
vlin Jul 3, 2023
ef5cc24
chore: remove unnecessary <div> tags to reduce dom node nesting
vlin Jul 3, 2023
770abf6
Merge pull request #440 from yihong0618/dev-remove-tags
yihong0618 Jul 3, 2023
f17a3e6
feat(privacy): ignore start, end and choose points
EINDEX Jul 4, 2023
59ea643
docs: adding eindex workouts page
EINDEX Jul 4, 2023
26674cf
Merge pull request #442 from EINDEX/patch-1
yihong0618 Jul 4, 2023
eec7945
fix: catch ValueError for non-number RANGES
EINDEX Jul 4, 2023
fc3de6e
fix(privacy): using strava way to hidding polyline
EINDEX Jul 5, 2023
18b4d67
Merge branch 'yihong0618:master' into master
EINDEX Jul 5, 2023
9a462a6
style: black format
EINDEX Jul 5, 2023
94fd1a2
refactor(privacy): for-loop to list-comprehension and typo fix
EINDEX Jul 5, 2023
0fee27f
Merge pull request #441 from EINDEX/master
yihong0618 Jul 5, 2023
f58dd64
Fix ci (#444)
yihong0618 Jul 5, 2023
24563b8
fix: strava same logic as garmin
yihong0618 Jul 5, 2023
fda0a1d
doc: info only run
yihong0618 Jul 5, 2023
d76bf39
fix: #443
yihong0618 Jul 6, 2023
a9a3f78
feat:support for download Garmin fit file (#446)
Jul 7, 2023
d56ef2c
Update README-CN.md (#447)
yihong0618 Jul 9, 2023
0336dc7
fix: ignore device info for origin fit file in strava_to_garmin_sync …
zhaohongxuan Jul 10, 2023
23e6866
fix: polyline_str maybe None
yihong0618 Jul 10, 2023
33bd596
fit文件读取 (#449)
agassiyzh Jul 17, 2023
76ebf39
Update README.md (#453)
fpGHwd Jul 17, 2023
6a19a55
Update README.md (#455)
deepinwine Jul 20, 2023
2cbfadc
Fix Sports Type in codoon_sync.py (#457)
hyyz17200 Jul 22, 2023
cff9529
Update README-CN.md (#459)
fpGHwd Jul 22, 2023
085a585
Save synced filenams and skip sync next times (#454)
agassiyzh Jul 23, 2023
b71b5a0
fix: 457, add TCX_TYPE_DICT (#462)
ben-29 Jul 23, 2023
46b3a32
fix: #454, no `file_names` when sync from app (#463)
ben-29 Jul 24, 2023
c02d1da
Merge branch 'master' into v2.0
yihong0618 Jul 26, 2023
f8250ea
添加保存过程中产生的数据文件到github action cache选项,顺便重新整理了一下github aciton workflow …
agassiyzh Jul 29, 2023
386ab1f
ci: fix typo
yihong0618 Jul 29, 2023
8b7f78b
readme中node版本修改 (#466)
ttkltll Aug 3, 2023
b3b8df7
feat: Typescript! (#461)
frostming Aug 3, 2023
47d2b45
fix: 同一天有多个运动时选中地图路线显示错误问题 (#468)
Coder-ZJQ Aug 5, 2023
6f718af
Add sync strava data args comment: `--only-run` (#471)
Bpazy Aug 17, 2023
6a636f0
feat: change to SPA and vite (#472)
frostming Aug 23, 2023
8ec7f3e
fix: set gh page default to true for newbie.......
yihong0618 Aug 25, 2023
07e7c32
Add correction on instruction of build github pages. (#476)
fpGHwd Aug 27, 2023
2d6ad92
feat: add a new runner's page (#482)
donghao526 Sep 5, 2023
dfd3931
fix: using session to download keep route
yihong0618 Sep 8, 2023
cc3e147
chore: merge example data
yihong0618 Sep 10, 2023
3d5b8d9
doc: drop vercel cache build doc for newbie
yihong0618 Sep 10, 2023
a0ada4b
fix: fix fullscreen css (#487)
yihong0618 Sep 10, 2023
e484aa1
chore:upgrade node version and pnpm (#474)
shaonianche Sep 10, 2023
d6b95ba
doc: fix v2.0 doc and actions change (#488)
yihong0618 Sep 11, 2023
9ca343b
fix: gh-pages to Actions and fix the path bug (#490)
yihong0618 Sep 13, 2023
3a089e3
fix: v2.0 can not zoom (#492)
yihong0618 Sep 17, 2023
97f62b6
chore: merge mater to fix confict
yihong0618 Sep 17, 2023
59ff75a
fix: gpx encode error maybe
yihong0618 Sep 17, 2023
fda1841
Merge branch 'master' into v2.0
yihong0618 Sep 18, 2023
6c63bbc
chore:gnore ./dist (#494)
shaonianche Sep 18, 2023
c4e4384
fix: by comments
yihong0618 Sep 18, 2023
19bfd3c
Merge branch 'v2.0' of https://github.com/yihong0618/running_page int…
yihong0618 Sep 18, 2023
13cdddd
doc: v2.0 doc
yihong0618 Sep 23, 2023
3e342dc
chore: my data
yihong0618 Sep 23, 2023
84ffd06
fix wrong path (#498)
tiny656 Sep 23, 2023
0ea2f4a
#484 导出keep接口升级无法获取gpx数据的跑步记录 (#496)
Fariacool Sep 23, 2023
758695a
fix Readme errors about `deploy to Cloudflare` (#499)
L1cardo Sep 23, 2023
6585dc2
doc: chore, change typo
yihong0618 Sep 24, 2023
4b5accd
Merge branch 'master' of https://github.com/yihong0618/running_page
yihong0618 Sep 24, 2023
38e044c
fix: #500
yihong0618 Sep 26, 2023
6c9d49b
feat: fix garmin down (#505)
yihong0618 Sep 26, 2023
5ecb608
fix: garth package
yihong0618 Sep 26, 2023
e73fc6f
Merge branch 'master' of https://github.com/yihong0618/running_page
yihong0618 Sep 26, 2023
98ff750
fix: reverse bug
yihong0618 Sep 27, 2023
e088d55
fix: use garth package
yihong0618 Sep 27, 2023
22966d8
Update README.md for 2.0 github pages deployment (#506)
conge Sep 29, 2023
320e853
doc: bring perssions in page back
yihong0618 Sep 29, 2023
5add127
fix: garmin sync cn configure
yihong0618 Oct 4, 2023
3290b3f
fix typo (#510)
NaturezzZ Oct 6, 2023
1c08b83
Update README.md
yihong0618 Oct 6, 2023
d778e65
Update README-CN.md
yihong0618 Oct 6, 2023
00a6e04
更新新版本佳明同步文档 (#507)
LeslieeHwang Oct 6, 2023
e4a2cb6
feat: add IOS Shortcuts in README (#513)
jujimeizuo Oct 10, 2023
a0d6ed5
fix: strava to garmin sync
yihong0618 Oct 10, 2023
9e0c6e2
fix: #516 (#517)
yihong0618 Oct 11, 2023
be1cefe
doc: new runner
yihong0618 Oct 11, 2023
657d135
fix: upload to strava type
yihong0618 Oct 11, 2023
ae72e21
fix: cityMatch (#521)
ben-29 Oct 15, 2023
34cbf5d
upd runner's page url (#522)
haowei93 Oct 18, 2023
a49bd16
doc: new runner
yihong0618 Oct 19, 2023
c2a4c0b
updatereadme (#527)
zerone0x Oct 20, 2023
386fa32
fix: #484 keep gps data decode (#524)
ben-29 Oct 21, 2023
34c859e
fix: bring old logic back
yihong0618 Oct 21, 2023
a7b2e68
fix: drop useless png
yihong0618 Oct 23, 2023
94485c3
docs:rewrite docs (#514)
shaonianche Oct 25, 2023
c74099b
doc: runner info fix
yihong0618 Oct 26, 2023
3f073b7
fix: show in firefox
yihong0618 Oct 27, 2023
23464b5
feat: add NavigationControl (#534)
ben-29 Oct 28, 2023
272c081
feat:suport heart_rate in export gpx file (#529)
zhaohongxuan Oct 29, 2023
2ff0529
feat: reduce grid svg file size (#535)
ben-29 Oct 29, 2023
ccb1db1
upd deploy to github-pages (#537)
haowei93 Nov 3, 2023
875f87a
fix: gh-pages build: drop the ref while trigger from Run Data Sync (#…
ben-29 Nov 6, 2023
cee8e18
fix: nrc sync
yihong0618 Nov 11, 2023
0a99e20
Master (#545)
zlog-in Nov 12, 2023
0911ed8
Update strava_to_garmin_sync.py (#544)
lipeng31 Nov 13, 2023
9727d59
doc: add nrc detail written by @angolap
yihong0618 Nov 18, 2023
dbdfa8c
perf: use auto instead of scroll (#550)
orionna319 Nov 23, 2023
048e941
feat: `RunRow` toggle selection & cursor pointer (#551)
orionna319 Nov 24, 2023
3f9584a
perf: split `activities.json` from index (#552)
orionna319 Nov 27, 2023
b63aa7d
fix a bug in track.py. (#559)
conanyangqun Dec 2, 2023
71705f0
fix: #566
yihong0618 Dec 8, 2023
7c39ed2
fix: update the year when change by Title & City, otherwise the `SVG`…
ben-29 Dec 11, 2023
b2007b5
fix: dockerfile typo thanks @dywu516
yihong0618 Dec 12, 2023
b432476
fix: Codoon tcx output use start_time as ID instead of Codoon id (#568)
anChaOs Dec 12, 2023
2951a08
docs: add runner (#571)
XmchxUp Dec 15, 2023
7726ee4
feat: :sparkles: Support ga, default off (#572)
XmchxUp Dec 18, 2023
f9af394
docs: add runner page (#577)
85Ryan Dec 19, 2023
57c3360
添加 (#578)
8824PPZ Dec 20, 2023
7938c44
Update index.tsx (#579)
ElvisZhu Dec 20, 2023
6d7bd29
Reduce svg size & lzay load github.svg and grid.svg (#580)
vlin Dec 22, 2023
0ce9e31
feat: sync garmin cn to garmin global
NaturezzZ Dec 27, 2023
08aaf63
github workflow
NaturezzZ Dec 27, 2023
c75da4a
nits
NaturezzZ Dec 27, 2023
8cc6fd4
nits
NaturezzZ Dec 27, 2023
64e4821
fix fit download gpx file (#582)
NaturezzZ Dec 27, 2023
04ee962
garmin-cn sync garmin-global tutorial in readme and readme-cn
NaturezzZ Dec 27, 2023
f32d6d0
fix: lock lxml version
yihong0618 Dec 30, 2023
11bb7dc
merge upstream
NaturezzZ Dec 30, 2023
6eaf5af
Refactor: sync garmin cn to global
NaturezzZ Dec 30, 2023
d927ee9
nits
NaturezzZ Dec 30, 2023
5a0f33e
remove fake device
NaturezzZ Jan 3, 2024
7180aa2
fix: #584 change fit-tool to garmin-fit-sdk (#590)
ben-29 Jan 4, 2024
d24092e
Merge branch 'upstream-master' into sync_garmin_cn_global
NaturezzZ Jan 4, 2024
a17ac4b
step 2, generate running page from .fit and .gpx
NaturezzZ Jan 4, 2024
9871465
nits
NaturezzZ Jan 4, 2024
634b25f
fix readme
NaturezzZ Jan 5, 2024
3a35e45
Merge pull request #583 from NaturezzZ/sync_garmin_cn_global
NaturezzZ Jan 5, 2024
84e2a2b
Feat: lights switch (#591)
ben-29 Jan 9, 2024
bfc9f26
doc: note for PRIVACY_MODE (#594)
ben-29 Jan 10, 2024
4b37099
chore: my data
yihong0618 Jan 14, 2024
ba466d1
Merge branch 'master' of https://github.com/yihong0618/running_page
yihong0618 Jan 14, 2024
6a56fe3
fix: resolve issue #597 (#599)
NaturezzZ Jan 16, 2024
fd55e89
fix: svg not found causes page crash (#598)
orionna319 Jan 16, 2024
b9d9c30
Joyrun gpx export fix for pauses and gpx segments (#601)
Rayjry Jan 25, 2024
7742a00
fix: text position change when map zoom in and zoom out (#604)
sayidhe Jan 25, 2024
b19490d
set default file_suffix = gpx (#609)
yangyang5214 Jan 31, 2024
52a3876
add yer1k's running page (#608)
Yer1k Jan 31, 2024
c2ccce1
Update ci.yml (#610)
Yer1k Feb 1, 2024
c30a060
Update GitHub Actions and README (#611)
Yer1k Feb 2, 2024
d903edf
fix: strava version
yihong0618 Mar 1, 2024
e3b1e20
fix: stravaweblib version
yihong0618 Mar 1, 2024
bab17a5
fix: ts type error (#622)
yihong0618 Mar 3, 2024
198b34a
Fix README typo (#624)
tianheg Mar 9, 2024
289dc07
feat: coros sync (#623)
haowei93 Mar 10, 2024
117b9a6
add run.drink.cafe (#628)
weaming Mar 20, 2024
aff3de2
chore: Update package manager and ignore requirements-dev.txt (#632)
yihong0618 Mar 26, 2024
010409f
chore: fix typo (#633)
qianphong Mar 28, 2024
5452631
Add proxy config, add keep config, change npm registry, use yarn (#634)
lalalala256 Apr 2, 2024
f93e0a8
Update README.md (#638)
gavenwan Apr 6, 2024
bd59f0d
fix: tachyons-sass import error (#639)
tianheg Apr 6, 2024
e05b665
fix: no package manager
yihong0618 Apr 6, 2024
eae7de2
docs: add a comment in `src/utils/consts.ts` to remind about security…
changchiyou Apr 8, 2024
66789b9
docs: update README (#650)
superleeyom Apr 12, 2024
9279ae1
doc: add new runner
yihong0618 Apr 12, 2024
7901120
docs: add runner (#651)
NoonieBao Apr 13, 2024
e7eec7c
feat: fill country (#654)
ben-29 Apr 15, 2024
628c071
style: use Tailwind CSS (#655)
tianheg Apr 15, 2024
64b1338
Add data to 'running page runners' table (#656)
yaoper Apr 15, 2024
5d84bd4
add keep2strava (#653)
SongJgit Apr 18, 2024
bb7aed4
Update README-CN.md (#663)
NoZTurn Apr 23, 2024
c91c325
Fix codoon and Upload tcx_to_garmin (#662)
Vensent Apr 24, 2024
78b2a1c
fix the deprecation warning (#668)
oilbeater May 6, 2024
0b40a9c
add </details> (#669)
haowei93 May 6, 2024
faa5fc0
chore: add raycast extension support (#670)
bxb100 May 7, 2024
56101dc
Add laqieer's running page to README (#672)
laqieer May 15, 2024
38ad7a3
chore: my data
yihong0618 Jun 6, 2024
6284194
Join Running page runners (#683)
GuoxinL Jun 23, 2024
3f852ed
feat: integrate gen_svg into joyrun_sync.py(#675) (#680)
wayichao Jun 25, 2024
31cd85e
Update README-CN.md (#685)
uiolee Jun 27, 2024
e557ca0
add laihj's run page (#691)
laihj Jul 6, 2024
a74e9db
Update README-CN.md (#693)
Flavored4179 Jul 8, 2024
c2efa30
new way to sync nrc (#699)
xiaolonggee Jul 26, 2024
d34a6a3
fix: lint
yihong0618 Jul 26, 2024
fa7790b
Fix readme tag closure (#700)
shiyang07ca Jul 29, 2024
e652647
Modified `Track` class to accept an optional `run_from` parameter in …
Fariacool Aug 6, 2024
6240702
fix: use `KEEP_SPORT_TYPES` instead of `KEEP_DATA_TYPE_API` (#703)
Fariacool Aug 7, 2024
10cf78d
feat: adding illustration for special tracks (#705)
zhaohongxuan Aug 21, 2024
da0d957
Add new runner (#707)
mar-heaven Aug 24, 2024
1868ade
Some Front Optimization for Keep indoor data (#709)
houfeng0923 Sep 5, 2024
3a973b8
doc: fix typo close #704
yihong0618 Sep 11, 2024
fa3b736
Fix AttributeError in Activity class (#714)
Liudon Sep 22, 2024
371ce67
ignore the year which has no running data when drawing github.svg (#712)
Narglc Sep 22, 2024
d58493b
feat: conditionally output analysis JS only in Vercel environment (#715)
Liudon Sep 25, 2024
5cc03b4
feat: fix nrc Changed their apis (#718)
yihong0618 Sep 29, 2024
13be20c
ci: fix Actions bot as committer deafault
yihong0618 Oct 3, 2024
d4ff2ee
fix: light mode change to false as default (#724)
yihong0618 Oct 17, 2024
9080dec
chore: update my data
yihong0618 Oct 17, 2024
fac33dd
fix: `FullscreenControl` is not fullscreen until resizing window (#726)
orionna319 Oct 21, 2024
b8e8fe1
perf: listen to `fullscreenchange` instead of `onRender` resize (#729)
orionna319 Oct 23, 2024
d1244e4
fix: tracks color (#730)
orionna319 Oct 27, 2024
afe2b25
fixed the bug where incremental uploads failed for not storing synced…
NaturezzZ Nov 12, 2024
46473b6
Python 3.7 to 3.11 in Cloudflare (#736)
dafengy Nov 19, 2024
058a222
feat: pargent (#738)
yihong0618 Nov 19, 2024
8e1f868
fix: default false for duckdb
yihong0618 Nov 19, 2024
fb4290a
Richer activity title with more sport types and locations (#733)
NaturezzZ Nov 24, 2024
23f5824
fix: subtype issue (#744)
yihong0618 Nov 25, 2024
8219ff1
fix: #745 and subtype to strava
yihong0618 Nov 27, 2024
2c973eb
fix: update python version
yihong0618 Nov 28, 2024
6c18048
doc: readme python version
yihong0618 Nov 28, 2024
fb98ab9
chore: sync my data to latest
yihong0618 Dec 5, 2024
73489da
Update README.md (#754)
SamuelDixxon Dec 20, 2024
33d7b31
Remove duplicate runs from joyrun (#757)
simongong Dec 30, 2024
157f4ed
fix arguments not match error (#758)
tiny656 Dec 31, 2024
6aeac48
add Evan's page (English and Chinese) (#759)
LinghaoChan Jan 2, 2025
b2d06f0
Update LICENSE, fix license year (#760)
JasonnnW3000 Jan 2, 2025
2152916
fix Dockerfile: package manager from yarn->pnpm (#761)
walkerdu Jan 3, 2025
4b42c49
Fix: using pnpm from corepack when install dependency (#762)
OrkWard Jan 4, 2025
a8c590e
doc: new runner
yihong0618 Jan 12, 2025
9a123ff
chore: Optimize the Github svg style (#765)
kingcanfish Jan 13, 2025
ceccf2b
fix: corepack
yihong0618 Feb 3, 2025
24312cf
Fix CI format failure (#772)
laqieer Feb 6, 2025
bb909cc
ci: fix permission
yihong0618 Feb 6, 2025
7fee382
fix: ci upload
yihong0618 Feb 6, 2025
d17fb19
fix: page permission fucked
yihong0618 Feb 6, 2025
fc098a6
fix:...
yihong0618 Feb 6, 2025
768ac56
docs: new runner
yihong0618 Feb 7, 2025
aee4ed5
docs: new runner
yihong0618 Feb 7, 2025
bba1f91
ci: safe ci using zizmor (#774)
yihong0618 Feb 8, 2025
1f7643b
fix: id-token write
yihong0618 Feb 8, 2025
181a506
fix: Enable persist-credentials to resolve authentication failure in …
viazure Feb 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"plugins": [
"prettier"
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],

"env": {
"browser": true,
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/run_data_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,9 @@ jobs:
python scripts/gen_svg.py --from-db --year $(date +"%Y") --language zh_CN --title "$(date +"%Y") Running" --type github --athlete "${{ env.ATHLETE }}" --special-distance 10 --special-distance2 20 --special-color yellow --special-color2 red --output assets/github_$(date +"%Y").svg --use-localtime --min-distance 0.5

- name: Push new runs
uses: github-actions-x/commit@v2.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Add new runs"
files: activities src/static/ scripts/ assets/ GPX_OUT/
rebase: 'true'
name: ${{ env.GITHUB_NAME }}
email: ${{ env.GITHUB_EMAIL }}
run: |
git config --local user.email "${{ env.GITHUB_EMAIL }}"
git config --local user.name "${{ env.GITHUB_EMAIL }}"
git commit -a -m 'update new runs' || echo "nothing to commit"
git push || echo "nothing to push"

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.15.0
23 changes: 16 additions & 7 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ R.I.P. 希望大家都能健康顺利的跑过终点,逝者安息。

| Runner | page | App |
| ----------------------------------------------- | ------------------------------------------ | --------- |
| [shaonianche](https://github.com/shaonianche) | https://run.duangfei.org | Nike |
| [yihong0618](https://github.com/yihong0618) | https://yihong.run/running | Nike |
| [shaonianche](https://github.com/shaonianche) | https://run.duanfei.org | Strava |
| [yihong0618](https://github.com/yihong0618) | https://yihong.run | Nike |
| [superleeyom](https://github.com/superleeyom) | https://running.leeyom.top | Nike |
| [geekplux](https://github.com/geekplux) | https://activities.geekplux.com | Nike |
| [guanlan](https://github.com/guanlan) | https://grun.vercel.app | Strava |
Expand All @@ -37,15 +37,18 @@ R.I.P. 希望大家都能健康顺利的跑过终点,逝者安息。
| [wh1994](https://github.com/wh1994) | https://run4life.fun | Garmin |
| [liuyihui](https://github.com/YiHui-Liu) | https://run.foolishfox.cn | Keep |
| [FrankSun](https://github.com/hi-franksun) | https://hi-franksun.github.io/running_page | Nike |
| [AhianZhang](https://github.com/AhianZhang) | https://running.ahianzhang.com | Keep |
| [AhianZhang](https://github.com/AhianZhang) | https://running.ahianzhang.com | Nike |
| [L1cardo](https://github.com/L1cardo) | https://run.licardo.cn | Nike |
| [luckylele666](https://github.com/luckylele666) | https://0000928.xyz | Strava |
| [MFYDev](https://github.com/MFYDev) | https://mfydev.run | Garmin-cn |
| [Jim Gao](https://github.com/tianheg) | https://run.yidajiabei.xyz/ | Keep |
| [tianheg](https://github.com/tianheg) | https://run.tianheg.xyz/ | Keep |
| [Oysmart](https://github.com/oysmart) | https://run.ouyang.wang | Garmin-cn |
| [Eished](https://github.com/eished) | https://run.iknow.fun | Keep |
| [Liuxin](https://github.com/liuxindtc) | https://liuxin.run | Nike |
| [Liuxin](https://github.com/liuxindtc) | https://liuxin.run | Nike |
| [loucx](https://github.com/loucx) | https://loucx.github.io/running | Nike |
| [winf42](https://github.com/winf42) | https://winf42.github.io | Garmin-cn |
| [sun0225SUN](https://github.com/sun0225SUN) | https://run.sunguoqi.com | Nike |
| [Zhan](https://www.zlog.in/about) | https://run.zlog.in | Nike |

## 它是怎么工作的

Expand Down Expand Up @@ -113,7 +116,7 @@ const MAPBOX_TOKEN =

## 一些个性化选项

在仓库目录下找到 `gatsby-config.js`,找到以下内容并修改成你自己想要的。
* 在仓库目录下找到 `gatsby-config.js`,找到以下内容并修改成你自己想要的。

```javascript
siteMetadata: {
Expand All @@ -133,7 +136,13 @@ siteMetadata: {
],
},
```

* 修改 `src/utils/const.js` 文件中的样式:
```javascript
// styling: 关闭虚线: 设置为 `false`
const USE_DASH_LINE = true;
// styling: 透明度: [0, 1]
const LINE_OPACITY = 0.4;
```
## 下载您的 Nike Run Club/Strava/Garmin/Garmin-cn/Keep 数据, [别忘了在 `total` 页面生成可视化 SVG](#Total-Data-Analysis).

### GPX
Expand Down
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</p>

<h3 align="center">
<a href="https://yihong.run/running"> Create a personal running home page </a>
<a href="https://yihong.run"> Create a personal running home page </a>
</h3>

<p align="center">
Expand All @@ -21,8 +21,8 @@ English | [简体中文](https://github.com/yihong0618/running_page/blob/master/

| Runner | page | App |
| ----------------------------------------------- | ------------------------------------------ | --------- |
| [shaonianche](https://github.com/shaonianche) | https://run.duangfei.org | Nike |
| [yihong0618](https://github.com/yihong0618) | https://yihong.run/running | Nike |
| [shaonianche](https://github.com/shaonianche) | https://run.duanfei.org | Strava |
| [yihong0618](https://github.com/yihong0618) | https://yihong.run | Nike |
| [superleeyom](https://github.com/superleeyom) | https://running.leeyom.top | Nike |
| [geekplux](https://github.com/geekplux) | https://activities.geekplux.com | Nike |
| [guanlan](https://github.com/guanlan) | https://grun.vercel.app | Strava |
Expand All @@ -39,13 +39,17 @@ English | [简体中文](https://github.com/yihong0618/running_page/blob/master/
| [wh1994](https://github.com/wh1994) | https://run4life.fun | Garmin |
| [liuyihui](https://github.com/YiHui-Liu) | https://run.foolishfox.cn | Keep |
| [FrankSun](https://github.com/hi-franksun) | https://hi-franksun.github.io/running_page | Nike |
| [AhianZhang](https://github.com/AhianZhang) | https://running.ahianzhang.com | Keep |
| [AhianZhang](https://github.com/AhianZhang) | https://running.ahianzhang.com | Nike |
| [L1cardo](https://github.com/L1cardo) | https://run.licardo.cn | Nike |
| [luckylele666](https://github.com/luckylele666) | https://0000928.xyz | Strava |
| [MFYDev](https://github.com/MFYDev) | https://mfydev.run | Garmin-cn |
| [Jim Gao](https://github.com/tianheg) | https://run.yidajiabei.xyz/ | Keep |
| [tianheg](https://github.com/tianheg) | https://run.tianheg.xyz/ | Keep |
| [Eished](https://github.com/eished) | https://run.iknow.fun | Keep |
| [Liuxin](https://github.com/liuxindtc) | https://liuxin.run | Nike |
| [Liuxin](https://github.com/liuxindtc) | https://liuxin.run | Nike |
| [loucx](https://github.com/loucx) | https://loucx.github.io/running | Nike |
| [winf42](https://github.com/winf42) | https://winf42.github.io | Garmin-cn |
| [sun0225SUN](https://github.com/sun0225SUN) | https://run.sunguoqi.com | Nike |
| [Zhan](https://www.zlog.in/about/) | https://run.zlog.in | Nike |

## How it works

Expand Down Expand Up @@ -107,7 +111,7 @@ const MAPBOX_TOKEN =

## Custom your page

Find `gatsby-config.js` in the repository directory, find the following content, and change it to what you want.
* Find `gatsby-config.js` in the repository directory, find the following content, and change it to what you want.

```javascript
siteMetadata: {
Expand All @@ -127,6 +131,13 @@ siteMetadata: {
],
},
```
* Modifying styling in `src/utils/const.js`
```javascript
// styling: set to `false` if you want to disable dash-line route
const USE_DASH_LINE = true;
// styling: route line opacity: [0, 1]
const LINE_OPACITY = 0.4;
```

## Download your running data and do not forget to [generate svg in `total` page](#Total-Data-Analysis).

Expand Down
2 changes: 1 addition & 1 deletion assets/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/github_2021.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/github_2022.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/grid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/year_2021.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/year_2022.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
pathPrefix: `/`, // Change to `/running_page` when running on github pages
pathPrefix: '/', // Change to `/running_page` when running on github pages
siteMetadata: {
siteTitle: 'Running Page',
siteUrl: 'https://yihong.run',
Expand Down Expand Up @@ -57,7 +57,12 @@ module.exports = {
{
resolve: 'gatsby-plugin-sass',
options: {
precision: 8,
cssLoaderOptions: {
esModule: false,
modules: {
namedExport: false,
},
},
},
},
{
Expand Down
44 changes: 23 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,41 @@
"@mapbox/polyline": "^1.1.1",
"classnames": "^2.2.6",
"date-fns": "^2.14.0",
"gatsby": "^2.29.2",
"gatsby": "^4.6.2",
"gatsby-alias-imports": "^1.0.6",
"gatsby-image": "^2.8.0",
"gatsby-plugin-feed": "^2.5.5",
"gatsby-plugin-manifest": "^2.4.11",
"gatsby-image": "^3.0.0",
"gatsby-plugin-feed": "^4.6.0",
"gatsby-plugin-manifest": "^4.6.0",
"gatsby-plugin-meta-redirect": "^1.1.1",
"gatsby-plugin-offline": "^3.2.9",
"gatsby-plugin-react-helmet": "^3.7.0",
"gatsby-plugin-offline": "^5.6.0",
"gatsby-plugin-react-helmet": "^5.6.0",
"gatsby-plugin-react-svg": "^3.0.0",
"gatsby-plugin-robots-txt": "^1.5.1",
"gatsby-plugin-sass": "^2.3.4",
"gatsby-plugin-sharp": "^2.6.11",
"gatsby-plugin-sitemap": "^2.4.5",
"gatsby-redirect-from": "^0.2.4",
"gatsby-remark-autolink-headers": "^2.3.5",
"gatsby-plugin-sass": "^5.6.0",
"gatsby-plugin-sharp": "^4.6.0",
"gatsby-plugin-sitemap": "^5.6.0",
"gatsby-redirect-from": "^0.4.3",
"gatsby-remark-autolink-headers": "^5.6.0",
"gatsby-remark-classes": "^1.0.0",
"gatsby-remark-external-links": "^0.0.4",
"gatsby-remark-images": "^3.3.10",
"gatsby-remark-responsive-iframe": "^2.4.5",
"gatsby-remark-smartypants": "^2.3.4",
"gatsby-remark-images": "^6.6.0",
"gatsby-remark-responsive-iframe": "^5.6.0",
"gatsby-remark-smartypants": "^5.6.0",
"gatsby-remark-widows": "^1.0.0",
"gatsby-source-filesystem": "^2.8.1",
"gatsby-transformer-json": "^2.8.0",
"gatsby-transformer-remark": "^2.8.15",
"gatsby-transformer-sharp": "^2.5.5",
"gatsby-transformer-yaml": "^2.4.4",
"node-sass": "^4.14.1",
"gatsby-source-filesystem": "^4.6.0",
"gatsby-transformer-json": "^4.6.0",
"gatsby-transformer-remark": "^5.6.0",
"gatsby-transformer-sharp": "^4.6.0",
"gatsby-transformer-yaml": "^4.6.0",
"gcoord": "^0.3.2",
"pngquant-bin": "^6.0.0",
"prettier": "^2.2.1",
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-helmet": "^6.1.0",
"react-map-gl": "^5.2.11",
"sass": "^1.50.0",
"sass-mq": "^5.0.1",
"styled-components": "^4.4.1",
"tachyons": "^4.12.0",
Expand All @@ -61,8 +62,9 @@
"check": "npx prettier --write *.{js,jsx,scss,json,md,yaml}",
"ci": "yarn run check && yarn run build && yarn run test"
},
"engineStrict": true,
"engines": {
"node": ">=10.0.0 < 15.0.0"
"node": ">=14.15.0"
},
"repository": {
"type": "git",
Expand Down
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
httpx==0.15.4
gpxpy==1.4.2
# stravalib==0.10.2
git+https://github.com/hozn/stravalib.git
stravalib
appdirs>=1.4.0
svgwrite>=1.1.9
colour
Expand All @@ -13,4 +12,4 @@ sqlalchemy
timezonefinder
pyyaml
aiofiles
cloudscraper
cloudscraper==1.2.58
7 changes: 5 additions & 2 deletions scripts/gpxtrackposter/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ def load_gpx(self, file_name):
raise TrackLoadError("Empty GPX file")
with open(file_name, "r") as file:
self._load_gpx_data(mod_gpxpy.parse(file))
except:
except Exception as e:
print(
f"Something went wrong when loading GPX. for file {self.file_names[0]}, we just ignore this file and continue"
)
print(str(e))
pass

def load_from_db(self, activity):
Expand Down Expand Up @@ -204,7 +205,9 @@ def _get_moving_data(gpx):
"elapsed_time": datetime.timedelta(
seconds=(moving_data.moving_time + moving_data.stopped_time)
),
"average_speed": moving_data.moving_distance / moving_data.moving_time,
"average_speed": moving_data.moving_distance / moving_data.moving_time
if moving_data.moving_time
else 0,
}

def to_namedtuple(self):
Expand Down
5 changes: 4 additions & 1 deletion scripts/nike_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def run(refresh_token):
# ignore NTC record
app_id = activity["app_id"]
activity_id = activity["id"]
if app_id == "com.nike.ntc.brand.ios":
if (
app_id == "com.nike.ntc.brand.ios"
or app_id == "com.nike.ntc.brand.droid"
):
logger.info(f"Ignore NTC record {activity_id}")
continue

Expand Down
7 changes: 6 additions & 1 deletion src/components/RunMap/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
MAIN_COLOR,
MAPBOX_TOKEN,
PROVINCE_FILL_COLOR,
USE_DASH_LINE,
LINE_OPACITY,
} from 'src/utils/const';
import { geoJsonForMap } from 'src/utils/utils';
import RunMarker from './RunMaker';
Expand Down Expand Up @@ -59,6 +61,7 @@ const RunMap = ({
[startLon, startLat] = points[0];
[endLon, endLat] = points[points.length - 1];
}
let dash = USE_DASH_LINE && !isSingleRun ? [2, 2] : [2, 0];

return (
<ReactMapGL
Expand All @@ -75,7 +78,7 @@ const RunMap = ({
/>
<Source id="data" type="geojson" data={geoData}>
<Layer
id="prvince"
id="province"
type="fill"
paint={{
'fill-color': PROVINCE_FILL_COLOR,
Expand All @@ -88,6 +91,8 @@ const RunMap = ({
paint={{
'line-color': MAIN_COLOR,
'line-width': isBigMap ? 1 : 2,
'line-dasharray': dash,
'line-opacity': isSingleRun ? 1 : LINE_OPACITY,
}}
layout={{
'line-join': 'round',
Expand Down
3 changes: 0 additions & 3 deletions src/components/Stat/style.module.scss

This file was deleted.

4 changes: 3 additions & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
titleForShow,
} from 'src/utils/utils';

export default () => {
const Index = () => {
const { siteTitle } = useSiteMetadata();
const { activities, thisYear } = useActivities();
const [year, setYear] = useState(thisYear);
Expand Down Expand Up @@ -209,3 +209,5 @@ export default () => {
</Layout>
);
};

export default Index;
2 changes: 1 addition & 1 deletion src/static/activities.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/utils/const.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const MUNICIPALITY_CITIES_ARR = [
'澳门特别行政区',
];

// styling: set to `true` if you want dash-line route
const USE_DASH_LINE = true;
// styling: route line opacity: [0, 1]
const LINE_OPACITY = 0.4;

// IF you outside China please make sure IS_CHINESE = false
const IS_CHINESE = true;
const USE_ANIMATION_FOR_GRID = false;
Expand Down Expand Up @@ -53,8 +58,14 @@ export {
INFO_MESSAGE,
RUN_TITLES,
USE_ANIMATION_FOR_GRID,
USE_DASH_LINE,
LINE_OPACITY,
};

const nike = 'rgb(224,237,94)'; // if you want change the main color change here src/styles/variables.scss

// If your map has an offset please change this line
// issues #92 and #198
export const NEED_FIX_MAP = false;
export const MAIN_COLOR = nike;
export const PROVINCE_FILL_COLOR = '#47b8e0';
5 changes: 3 additions & 2 deletions src/utils/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as mapboxPolyline from '@mapbox/polyline';
import gcoord from 'gcoord';
import { WebMercatorViewport } from 'react-map-gl';
import { chinaGeojson } from '../static/run_countries';
import { MUNICIPALITY_CITIES_ARR, RUN_TITLES } from './const';
import { MUNICIPALITY_CITIES_ARR, NEED_FIX_MAP, RUN_TITLES } from './const';

const titleForShow = (run) => {
const date = run.start_date_local.slice(0, 11);
Expand Down Expand Up @@ -91,7 +92,7 @@ const pathForRun = (run) => {
const c = mapboxPolyline.decode(run.summary_polyline);
// reverse lat long for mapbox
c.forEach((arr) => {
[arr[0], arr[1]] = [arr[1], arr[0]];
[arr[0], arr[1]] = !NEED_FIX_MAP ? [arr[1], arr[0]] : gcoord.transform([arr[1], arr[0]], gcoord.GCJ02, gcoord.WGS84);
});
return c;
} catch (err) {
Expand Down
Loading