Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
s1smart committed Sep 22, 2023
1 parent 59ff75a commit e5e1617
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
# Build directory to deploy
build_dir: public
# Write the given domain name to the CNAME file
#fqdn: custom.domain.name # optional
# fqdn: # optional
# Prevent Jekyll from building the site
jekyll: false
env:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/run_data_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ on:

env:
# please change to your own config.
RUN_TYPE: pass # support strava/nike/garmin/garmin_cn/keep/only_gpx/only_fit/nike_to_strava/strava_to_garmin/strava_to_garmin_cn/garmin_to_strava/garmin_to_strava_cn/codoon, Please change the 'pass' it to your own
ATHLETE: yihong0618
TITLE: Yihong0618 Running
RUN_TYPE: strava # support strava/nike/garmin/garmin_cn/keep/only_gpx/only_fit/nike_to_strava/strava_to_garmin/strava_to_garmin_cn/garmin_to_strava/garmin_to_strava_cn/codoon, Please change the 'pass' it to your own
ATHLETE: 太空战士
TITLE: 太空战士
MIN_GRID_DISTANCE: 10 # change min distance here
TITLE_GRID: Over 10km Runs # also here
GITHUB_NAME: yihong0618 # change to yours
GITHUB_EMAIL: zouzou0208@gmail.com # change to yours
TITLE_GRID: 跑10公里以上 #Over 10km Runs
GITHUB_NAME: s1smart # change to yours
GITHUB_EMAIL: yishenhk@gmail.com # change to yours

# IGNORE_BEFORE_SAVING: True # if you want to ignore some data before saving, set this to True
IGNORE_START_END_RANGE: 10 # Unit meter
# Dont making this huge, just picking points you needing. https://developers.google.com/maps/documentation/utilities/polylineutility using this tool to making your polyline
IGNORE_POLYLINE: "ktjrFoemeU~IorGq}DeB"
IGNORE_RANGE: 10 # Unit meter
SAVE_DATA_IN_GITHUB_CACHE: false # if you deploy in the vercal, check the README
SAVE_DATA_IN_GITHUB_CACHE: true # if you deploy in the vercal, check the README
DATA_CACHE_PREFIX: "track_data"
BUILD_GH_PAGES: true # If you do not need GitHub Page please set it to `false`

Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 点击[我的跑步主页](https://s1smart.github.io/running_page)

欢迎来到我的跑步主页,这是一个基于@yihong0618 优秀的开源项目:[running page](https://github.com/yihong0618/running_page) 构建的小项目。


![my running data](https://github.com/s1smart/running_page/blob/gh-pages/static/assets/github.svg)

## 以下引用:

## 注:如果是之前 clone 或 Fork 的朋友 vercel 显示 404 可能需要更新下代码

<p align="center">
Expand Down
10 changes: 5 additions & 5 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
module.exports = {
pathPrefix: process.env.PATH_PREFIX || '/',
siteMetadata: {
siteTitle: 'Running Page',
siteUrl: 'https://yihong.run',
logo: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQTtc69JxHNcmN1ETpMUX4dozAgAN6iPjWalQ&usqp=CAU',
siteTitle: '太空战士',
siteUrl: 'https://s1smart.github.io/running_page',
logo: 'https://dgalywyr863hv.cloudfront.net/pictures/clubs/1115150/26570966/1/medium.jpg',
description: 'Personal site and blog',
navLinks: [
{
name: 'Blog',
url: 'https://yihong.run/running',
url: 'https://github.com/s1smart',
},
{
name: 'About',
url: 'https://github.com/yihong0618/running_page/blob/master/README-CN.md',
url: 'https://github.com/s1smart/running_page',
},
],
},
Expand Down
2 changes: 2 additions & 0 deletions src/components/RunMap/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ const RunMap = ({
width="100%"
height={MAP_HEIGHT}
mapStyle="mapbox://styles/mapbox/dark-v10"
//mapStyle="mapbox://styles/mapbox/satellite-v9"
//mapStyle="mapbox://styles/mapbox/navigation-night-v1"
onViewportChange={setViewport}
ref={mapRefCallback}
mapboxApiAccessToken={MAPBOX_TOKEN}
Expand Down
8 changes: 5 additions & 3 deletions src/utils/const.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// const
const MAPBOX_TOKEN =
'pk.eyJ1IjoieWlob25nMDYxOCIsImEiOiJja2J3M28xbG4wYzl0MzJxZm0ya2Fua2p2In0.PNKfkeQwYuyGOTT_x9BJ4Q';
'pk.eyJ1Ijoic2FtaGswMDkiLCJhIjoiY2xtZm9iZm5qMjNlYjNkbzVxang2YWtuNyJ9.CEuWiutcW26sf68TTN_rTA';
//'pk.eyJ1Ijoic2FtaGswMDkiLCJhIjoiY2xtazNzZ2F4MDl1dzJzbXB3cGh1NXVwMCJ9.xWcdqUYiIxZT6E9o7CM07w';

const MUNICIPALITY_CITIES_ARR = [
'北京市',
'上海市',
Expand All @@ -9,6 +11,7 @@ const MUNICIPALITY_CITIES_ARR = [
'香港特别行政区',
'澳门特别行政区',
];

const MAP_LAYER_LIST = [
'road-label',
'waterway-label',
Expand All @@ -31,7 +34,7 @@ const LINE_OPACITY = 0.4;
// styling: map height
const MAP_HEIGHT = 600;
//set to `false` if you want to hide the road label characters
const ROAD_LABEL_DISPLAY = true;
const ROAD_LABEL_DISPLAY = false;

// IF you outside China please make sure IS_CHINESE = false
const IS_CHINESE = true;
Expand Down Expand Up @@ -84,7 +87,6 @@ export {
};

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;
Expand Down

0 comments on commit e5e1617

Please sign in to comment.