diff --git a/package-lock.json b/package-lock.json index ce66b9a49..d19e23dc7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "rmg", - "version": "5.2.8", + "version": "5.2.9", "license": "GPL-3.0-only", "dependencies": { "@chakra-ui/react": "^2.1.0", @@ -17,6 +17,7 @@ "@railmapgen/rmg-templates-resources": "^0.1.12", "ag-grid-community": "^27.3.0", "ag-grid-react": "^27.3.0", + "electron-is-dev": "^2.0.0", "framer-motion": "^6.3.3", "i18next": "^21.8.4", "i18next-browser-languagedetector": "^6.1.4", @@ -44,7 +45,6 @@ "cross-env": "^7.0.3", "electron": "^17.2.0", "electron-builder": "^22.14.13", - "electron-is-dev": "^2.0.0", "eslint-plugin-prettier": "^4.0.0", "identity-obj-proxy": "^3.0.0", "jest": "^27.5.1", @@ -8478,7 +8478,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/electron-is-dev/-/electron-is-dev-2.0.0.tgz", "integrity": "sha512-3X99K852Yoqu9AcW50qz3ibYBWY79/pBhlMCab8ToEWS48R0T9tyxRiQhwylE7zQdXrMnx2JKqUJyMPmt5FBqA==", - "dev": true, "funding": { "url": "https://github.com/sponsors/sindresorhus" } @@ -26002,8 +26001,7 @@ "electron-is-dev": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/electron-is-dev/-/electron-is-dev-2.0.0.tgz", - "integrity": "sha512-3X99K852Yoqu9AcW50qz3ibYBWY79/pBhlMCab8ToEWS48R0T9tyxRiQhwylE7zQdXrMnx2JKqUJyMPmt5FBqA==", - "dev": true + "integrity": "sha512-3X99K852Yoqu9AcW50qz3ibYBWY79/pBhlMCab8ToEWS48R0T9tyxRiQhwylE7zQdXrMnx2JKqUJyMPmt5FBqA==" }, "electron-osx-sign": { "version": "0.5.0", diff --git a/package.json b/package.json index f9b7c65ef..807c5a301 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@railmapgen/rmg-templates-resources": "^0.1.12", "ag-grid-community": "^27.3.0", "ag-grid-react": "^27.3.0", + "electron-is-dev": "^2.0.0", "framer-motion": "^6.3.3", "i18next": "^21.8.4", "i18next-browser-languagedetector": "^6.1.4", @@ -42,7 +43,6 @@ "cross-env": "^7.0.3", "electron": "^17.2.0", "electron-builder": "^22.14.13", - "electron-is-dev": "^2.0.0", "eslint-plugin-prettier": "^4.0.0", "identity-obj-proxy": "^3.0.0", "jest": "^27.5.1", @@ -76,7 +76,7 @@ "last 1 safari version" ] }, - "version": "5.2.8", + "version": "5.2.9", "main": "public/electron.js", "build": { "publish": [ diff --git a/public/index.html b/public/index.html index e5ff23981..794ab6e35 100644 --- a/public/index.html +++ b/public/index.html @@ -9,19 +9,19 @@ + 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/ + --> + Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will + work correctly both with client-side routing and a non-root public URL. + Learn how to configure a non-root public URL by running `npm run build`. + --> Rail Map Generator diff --git a/src/svgs/railmap/methods/mtr.ts b/src/svgs/railmap/methods/mtr.ts index ed931d68c..8d894b28a 100644 --- a/src/svgs/railmap/methods/mtr.ts +++ b/src/svgs/railmap/methods/mtr.ts @@ -1,5 +1,5 @@ import { Stations } from './share'; -import { RmgStyle, StationDict, StationInfo } from '../../../constants/constants'; +import { StationDict, StationInfo } from '../../../constants/constants'; import { getSidingPath } from '../../mtr/line-diagram-utils'; export const leftWideFactor = (stnList: StationDict, stnId: string) => {