-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(pages): add MacOS, Linux, and Windows install channels #904
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,9 @@ export const en = { | |
| 'hero.installNpm': 'npm', | ||
| 'hero.installBrew': 'Homebrew', | ||
| 'hero.installMacPorts': 'MacPorts', | ||
| 'hero.installMacOS': 'MacOS', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| 'hero.installLinux': 'Linux', | ||
| 'hero.installWindows': 'Windows', | ||
| 'hero.installMore': 'More', | ||
| 'hero.allInstallOptions': 'All install options', | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,6 +23,9 @@ export const zh: TranslationKeys = { | |||||
| 'hero.installNpm': 'npm', | ||||||
| 'hero.installBrew': 'Homebrew', | ||||||
| 'hero.installMacPorts': 'MacPorts', | ||||||
| 'hero.installMacOS': 'MacOS', | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggestion:
Suggested change
|
||||||
| 'hero.installLinux': 'Linux', | ||||||
| 'hero.installWindows': 'Windows', | ||||||
| 'hero.installMore': '更多', | ||||||
| 'hero.allInstallOptions': '全部安装方式', | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoded URLs: The installation URLs (
https://open-codereview.ai/install.shandhttps://open-codereview.ai/install.ps1) are hardcoded business-related strings that should be extracted to a constants or configuration file. This violates the coding standard that prohibits hardcoded URL paths.Additionally, these URLs appear in multiple places throughout the codebase (documentation files, README files), creating maintenance burden. If the domain or path changes, you would need to update many files.
Recommendation: Create a constants file (e.g.,
src/constants/install.ts) to centralize these URLs:Then reference them in the install channels: