Skip to content

Commit

Permalink
Merge pull request #30 from WhiteMinds/feat/328_WindowsVersionTip
Browse files Browse the repository at this point in the history
Download page: Because of the compatibility problems with versions below win10, we need to add a system tip
  • Loading branch information
WhiteMinds authored Dec 1, 2023
2 parents ecbd277 + 017d61e commit 276f7d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 0 additions & 1 deletion packages/neuron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
display: flex;
gap: 4px;
align-items: center;
white-space: nowrap;
}

&.checksum {
Expand Down
11 changes: 10 additions & 1 deletion packages/neuron/src/pages/download/Assets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,16 @@ export const Assets$Desktop: FC<AssetsProps> = ({ assets, ...tableProps }) => {
{asset.os.toLowerCase() === 'windows' && <IconWindows />}
{asset.os.toLowerCase() === 'macos' && <IconMacOS />}
{asset.os.toLowerCase() === 'linux' && <IconLinux />}
{asset.os}
{asset.os.toLowerCase() === 'windows' ? (
<>
Windows 10+
<Tooltip content="System versions that are no longer officially supported are not recommended and may have compatibility or security issues.">
<IconTips />
</Tooltip>
</>
) : (
asset.os
)}
</div>
</td>
<td>{asset.arch}</td>
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

2 comments on commit 276f7d7

@vercel
Copy link

@vercel vercel bot commented on 276f7d7 Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

magickbase-website – ./packages/magickbase

magickbase.vercel.app
magickbase-website-git-master-magickbase.vercel.app
magickbase-website-magickbase.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 276f7d7 Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.