From 3fdd0d0b14ccc3d7e9e0793886e48d8151c9e877 Mon Sep 17 00:00:00 2001 From: WhiteMind Date: Thu, 30 Nov 2023 16:11:11 +0800 Subject: [PATCH 1/2] fix: ua-parser-js library types error --- packages/neuron/package.json | 1 - yarn.lock | 8 -------- 2 files changed, 9 deletions(-) diff --git a/packages/neuron/package.json b/packages/neuron/package.json index aaa584ca..1ff5883f 100644 --- a/packages/neuron/package.json +++ b/packages/neuron/package.json @@ -54,7 +54,6 @@ "@types/node": "^20.2.5", "@types/react": "^18.2.8", "@types/react-dom": "^18.2.4", - "@types/ua-parser-js": "^0.7.36", "@typescript-eslint/eslint-plugin": "^5.59.8", "@typescript-eslint/parser": "^5.59.8", "eslint": "^8.41.0", diff --git a/yarn.lock b/yarn.lock index 6fa95508..1f5cb075 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2304,7 +2304,6 @@ __metadata: "@types/node": ^20.2.5 "@types/react": ^18.2.8 "@types/react-dom": ^18.2.4 - "@types/ua-parser-js": ^0.7.36 "@typescript-eslint/eslint-plugin": ^5.59.8 "@typescript-eslint/parser": ^5.59.8 "@vercel/kv": ^0.2.3 @@ -3950,13 +3949,6 @@ __metadata: languageName: node linkType: hard -"@types/ua-parser-js@npm:^0.7.36": - version: 0.7.36 - resolution: "@types/ua-parser-js@npm:0.7.36" - checksum: 8c24d4dc12ed1b8b98195838093391c358c81bf75e9cae0ecec8f7824b441e069daaa17b974a3e257172caddb671439f0c0b44bf43bfcf409b7a574a25aab948 - languageName: node - linkType: hard - "@types/unist@npm:*, @types/unist@npm:^2.0.0": version: 2.0.6 resolution: "@types/unist@npm:2.0.6" From 017d61edfd282ca93099866555bc63b824be41fd Mon Sep 17 00:00:00 2001 From: WhiteMind Date: Thu, 30 Nov 2023 16:12:06 +0800 Subject: [PATCH 2/2] feat: add the windows version tip in the download page --- .../src/pages/download/Assets/index.module.scss | 1 + packages/neuron/src/pages/download/Assets/index.tsx | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/neuron/src/pages/download/Assets/index.module.scss b/packages/neuron/src/pages/download/Assets/index.module.scss index 03e7f849..90f8be85 100644 --- a/packages/neuron/src/pages/download/Assets/index.module.scss +++ b/packages/neuron/src/pages/download/Assets/index.module.scss @@ -35,6 +35,7 @@ display: flex; gap: 4px; align-items: center; + white-space: nowrap; } &.checksum { diff --git a/packages/neuron/src/pages/download/Assets/index.tsx b/packages/neuron/src/pages/download/Assets/index.tsx index b73c5ec1..be2e9418 100644 --- a/packages/neuron/src/pages/download/Assets/index.tsx +++ b/packages/neuron/src/pages/download/Assets/index.tsx @@ -61,7 +61,16 @@ export const Assets$Desktop: FC = ({ assets, ...tableProps }) => { {asset.os.toLowerCase() === 'windows' && } {asset.os.toLowerCase() === 'macos' && } {asset.os.toLowerCase() === 'linux' && } - {asset.os} + {asset.os.toLowerCase() === 'windows' ? ( + <> + Windows 10+ + + + + + ) : ( + asset.os + )} {asset.arch}