Skip to content

Commit df85d32

Browse files
committed
fix: remove asdf icon, icon requirement and tool-versions
1 parent 6849c14 commit df85d32

File tree

8 files changed

+10
-33
lines changed

8 files changed

+10
-33
lines changed

.tool-versions

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
# asdf has specific installation instructions for each operating system.
22
# Please refer to the official documentation at https://asdf-vm.com/guide/getting-started.html.
3-
#
4-
# The following is for macOS and Linux systems with Homebrew installed using ZSH:
5-
brew install asdf
63

7-
# Add asdf's shims directory to your shell configuration:
8-
echo 'export PATH="\$\{ASDF_DATA_DIR:-\$HOME/.asdf\}/shims:\$PATH"' >> ~/.zshrc
9-
10-
# Reload shell configuration:
11-
source ~/.zshrc
12-
13-
# Install the Node.js plugin:
4+
# Install the Node.js plugin
145
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
156

16-
# Download and install Node.js:
7+
# Download and install Node.js ${props.release.version}
178
asdf install nodejs ${props.release.version}
189

19-
# Set global Node.js version:
10+
# Set global Node.js version to ${props.release.version}
2011
asdf set -u nodejs ${props.release.version}

apps/site/types/release.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export type InstallationMethod =
88
| 'BREW'
99
| 'DOCKER'
1010
| 'CHOCO'
11-
| 'N';
11+
| 'N'
12+
| 'ASDF';
1213
export type PackageManager = 'NPM' | 'YARN' | 'PNPM';
1314

1415
// Items with a pipe/default value mean that they are auto inferred

apps/site/util/download/constants.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@
190190
},
191191
{
192192
"id": "ASDF",
193-
"icon": "ASDF",
194193
"name": "asdf",
195194
"compatibility": {
196195
"os": ["MAC", "LINUX"]

apps/site/util/download/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ export const parseCompat = <
7878
*/
7979
const createIcon = (
8080
IconModule: Record<string, ElementType>,
81-
iconName: string
81+
iconName?: string
8282
) => {
83+
if (!iconName) {return undefined;}
8384
const IconComponent = IconModule[iconName];
85+
if (!IconComponent) {return undefined;}
8486
return <IconComponent width={16} height={16} />;
8587
};
8688

packages/ui-components/__design__/platform-logos.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
ASDF,
32
Docker,
43
Homebrew,
54
NVM,
@@ -12,7 +11,7 @@ import { Apple, Linux, Microsoft, AIX } from '#ui/Icons/OperatingSystem';
1211
import type { Meta as MetaObj, StoryObj } from '@storybook/react-webpack5';
1312

1413
const osIcons = [Apple, Linux, Microsoft, AIX];
15-
const installMethodIcons = [ASDF, Docker, Homebrew, NVM, Choco, N, Volta];
14+
const installMethodIcons = [Docker, Homebrew, NVM, Choco, N, Volta];
1615

1716
export const PlatformLogos: StoryObj = {
1817
render: () => (

packages/ui-components/src/Icons/InstallationMethod/ASDF.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import ASDF from '#ui/Icons/InstallationMethod/ASDF';
21
import Choco from '#ui/Icons/InstallationMethod/Choco';
32
import Docker from '#ui/Icons/InstallationMethod/Docker';
43
import FNM from '#ui/Icons/InstallationMethod/FNM';
@@ -7,4 +6,4 @@ import N from '#ui/Icons/InstallationMethod/N';
76
import NVM from '#ui/Icons/InstallationMethod/NVM';
87
import Volta from '#ui/Icons/InstallationMethod/Volta';
98

10-
export { ASDF, Choco, Docker, FNM, Homebrew, N, NVM, Volta };
9+
export { Choco, Docker, FNM, Homebrew, N, NVM, Volta };

0 commit comments

Comments
 (0)