Skip to content

Commit

Permalink
Move static images to /img
Browse files Browse the repository at this point in the history
  • Loading branch information
starsep committed Aug 9, 2023
1 parent cd747c2 commit 9208677
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"typecheck": "tsc -p ./tsconfig.json --noEmit",
"sprites": "spritezero ./public/sprite ./src/marker_icons; spritezero --ratio=2 ./public/sprite@2x ./src/marker_icons",
"sprites": "spritezero ./public/img/sprite ./src/marker_icons; spritezero --ratio=2 ./public/img/sprite@2x ./src/marker_icons",
"lint": "eslint . --ext .ts,.tsx",
"lint-fix": "eslint . --ext .ts,.tsx --fix"
},
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<meta name="theme-color" content="#f5f5f5" />
<meta name="msapplication-TileColor" content="#da532c">
<link href="https://openaedmap.org" rel="canonical" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="icon" href="%PUBLIC_URL%/img/favicon.ico" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/img/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"type": "image/x-icon"
},
{
"src": "logo192.png",
"src": "img/logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"src": "img/logo512.png",
"type": "image/png",
"sizes": "512x512"
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/map_style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { backendBaseUrl } from "../backend";

const getUrl = window.location;
const baseUrl = `${getUrl.protocol}//${getUrl.host}${getUrl.pathname}`;
const spriteUrl = (new URL("sprite", baseUrl)).href;
const spriteUrl = (new URL("img/sprite", baseUrl)).href;
// can't use URL class since this is a template not literal url
const tilesUrl = `${backendBaseUrl}/api/v1/tile/{z}/{x}/{y}.mvt`;

Expand Down

0 comments on commit 9208677

Please sign in to comment.