diff --git a/netlify.toml b/netlify.toml index 9b67d297..3b98af21 100644 --- a/netlify.toml +++ b/netlify.toml @@ -36,4 +36,4 @@ status = 301 force = true [build.environment] -NODE_VERSION = "20" +NODE_VERSION = "20.9.0" diff --git a/packages/skin-museum-client/netlify.toml b/packages/skin-museum-client/netlify.toml index 074a0afb..188083dc 100644 --- a/packages/skin-museum-client/netlify.toml +++ b/packages/skin-museum-client/netlify.toml @@ -6,36 +6,35 @@ ID = "be420a16-4ef3-43b1-ac62-35869bdf8679" # Settings in the [build] context are global and are applied to all contexts # unless otherwise overridden by more specific contexts. [build] - # Directory (relative to root of your repo) that contains the deploy-ready - # HTML files and assets generated by the build. - publish = "build/" +# Directory (relative to root of your repo) that contains the deploy-ready +# HTML files and assets generated by the build. +publish = "build/" - # Default build command. - command = "yarn build" - ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../webamp/" +# Default build command. +command = "yarn build" +ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../webamp/" [build.environment] - NODE_VERSION = "16.17.1" - NETLIFY_USE_YARN = "true" - +NODE_VERSION = "20" +NETLIFY_USE_YARN = "true" [[redirects]] - from = "/sitemap*" - to = "https://api.webampskins.org/sitemap:splat" - status = 200 +from = "/sitemap*" +to = "https://api.webampskins.org/sitemap:splat" +status = 200 [[redirects]] - from = "/" - query = {query = ":query"} - to = "https://winamp-skin-museum.jordan1320.workers.dev//" - status = 200 +from = "/" +query = { query = ":query" } +to = "https://winamp-skin-museum.jordan1320.workers.dev//" +status = 200 [[redirects]] - from = "/skin/*" - to = "https://winamp-skin-museum.jordan1320.workers.dev//skin/:splat" - status = 200 +from = "/skin/*" +to = "https://winamp-skin-museum.jordan1320.workers.dev//skin/:splat" +status = 200 [[redirects]] - from = "/*" - to = "/index.html" - status = 200 +from = "/*" +to = "/index.html" +status = 200 diff --git a/packages/webamp/js/components/Balance.tsx b/packages/webamp/js/components/Balance.tsx index 3b8a4f9b..07c9d176 100644 --- a/packages/webamp/js/components/Balance.tsx +++ b/packages/webamp/js/components/Balance.tsx @@ -26,8 +26,8 @@ export default function Balance({ style, className, id }: Props) { value={balance} style={{ ...style, touchAction: "none" }} onChange={(e) => setBalance(Number(e.target.value))} - onMouseDown={() => setFocus("balance")} - onMouseUp={unsetFocus} + onPointerDown={() => setFocus("balance")} + onPointerUp={unsetFocus} title="Balance" /> ); diff --git a/packages/webamp/js/components/FocusTarget.tsx b/packages/webamp/js/components/FocusTarget.tsx index a73e168f..bdb4df95 100644 --- a/packages/webamp/js/components/FocusTarget.tsx +++ b/packages/webamp/js/components/FocusTarget.tsx @@ -68,8 +68,7 @@ function FocusTarget({ onKeyDown, windowId, children }: Props) { return (