-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Create a JSON file for download utilities #7561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Vishal-K-988
added a commit
to Vishal-K-988/nodejs.org
that referenced
this issue
May 15, 2025
Moved hardcoded OS, installation methods, and package manager labels from downloadUtils.tsx to a separate downloadConstants.json file for better maintainability. Updated the utility to import and use data from JSON without changing existing behavior. Fixes: nodejs#7561 Signed-off-by: vishal <vishalkumarvkvk988@gmail.com>
5 tasks
Vishal-K-988
added a commit
to Vishal-K-988/nodejs.org
that referenced
this issue
May 16, 2025
… utils Moved downloadConstants.json and downloadUtils.tsx into a dedicated subdirectory. Removed redundant UserOs array and now infer it dynamically from OperatingSystemLabel keys. Fixes: nodejs#7561 Signed-off-by: vishal <vishalkumarvkvk988@gmail.com>
Vishal-K-988
added a commit
to Vishal-K-988/nodejs.org
that referenced
this issue
May 16, 2025
… utils Moved constants.json and index.tsx into a dedicated subdirectory. Reorganized constants such as PLATFORMS into constants.json using object destructuring. Refactored INSTALL_METHODS to use object destructuring and removed explicit any types. Similarly for OS_NOT_SUPPORTING_INSTALLERS, OperatingSystems Fixes: nodejs#7561 Signed-off-by: vishal <vishalkumarvkvk988@gmail.com>
Vishal-K-988
added a commit
to Vishal-K-988/nodejs.org
that referenced
this issue
May 18, 2025
… utils >> >> Moved constants.json and index.tsx into a dedicated subdirectory. >> Reorganized constants such as PLATFORMS into constants.json using object destructuring. >> Similarly for OS_NOT_SUPPORTING_INSTALLERS, OperatingSystems >> >> Fixes: nodejs#7561 Signed-off-by: vishal <vishalkumarvkvk988@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally posted by @ovflowd in #7401 (comment)
In the
apps/site/util/downloadUtils.tsx
file, we have several constants that could probably find a new home in a JSON file, for ease of editing.The text was updated successfully, but these errors were encountered: