kopia lustrzana https://github.com/jakecoppinger/safe-cycling-map
Add deploy script and clean up
rodzic
71641eeaeb
commit
4e61372e26
|
@ -64,7 +64,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "PORT=5000 node scripts/start.js",
|
"start": "PORT=5000 node scripts/start.js",
|
||||||
"build": "node scripts/build.js",
|
"build": "node scripts/build.js",
|
||||||
"test": "node scripts/test.js"
|
"test": "node scripts/test.js",
|
||||||
|
"deploy": "npm run build && rsync -r --progress build/ ../deploy-safe-cycling-map/"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": "react-app"
|
"extends": "react-app"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
safecyclingmap.com
|
|
@ -10,7 +10,7 @@ export function Map() {
|
||||||
|
|
||||||
const [lng, setLng] = useState(151.21084276742022);
|
const [lng, setLng] = useState(151.21084276742022);
|
||||||
const [lat, setLat] = useState(-33.8720286260115);
|
const [lat, setLat] = useState(-33.8720286260115);
|
||||||
const [zoom, setZoom] = useState(17);
|
const [zoom, setZoom] = useState(18);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// This is called on every pan
|
// This is called on every pan
|
||||||
|
@ -61,7 +61,7 @@ export function Map() {
|
||||||
<div>
|
<div>
|
||||||
<div className="sidebar">
|
<div className="sidebar">
|
||||||
<label>
|
<label>
|
||||||
A work in progrss side project by{" "}
|
A work in progress side project by{" "}
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
|
Ładowanie…
Reference in New Issue