-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Comparing changes
Open a pull request
base repository: coder/code-server
base: 14bdb36
head repository: strickvl/code-server
compare: 0d4bd15
- 19 commits
- 8 files changed
- 3 contributors
Commits on Jun 12, 2025
-
feat: add comprehensive login page customization options
Add CLI arguments and environment variables to customize all login page elements: - Login title, subtitle, and welcome text - Password field placeholder and submit button text - Password instruction messages (config file, env var, hashed) - Error messages (rate limit, missing/incorrect password) New CLI options: --login-title, --login-below, --password-placeholder, --submit-text --login-password-msg, --login-env-password-msg, --login-hashed-password-msg --login-rate-limit-msg, --missing-password-msg, --incorrect-password-msg New environment variables: CS_LOGIN_TITLE, CS_LOGIN_BELOW, CS_PASSWORD_PLACEHOLDER, CS_SUBMIT_TEXT CS_LOGIN_PASSWORD_MSG, CS_LOGIN_ENV_PASSWORD_MSG, CS_LOGIN_HASHED_PASSWORD_MSG CS_LOGIN_RATE_LIMIT_MSG, CS_MISSING_PASSWORD_MSG, CS_INCORRECT_PASSWORD_MSG Features: - Full backwards compatibility with existing --app-name/--welcome-text - HTML escaping for security (prevents XSS) - Config file support (YAML) - Priority: CLI args > env vars > config file > defaults - Internationalization preserved for non-customized messages Perfect for Docker deployments and corporate branding. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for cd99956 - Browse repository at this point
Copy the full SHA cd99956View commit details
Commits on Jun 17, 2025
-
Configuration menu - View commit details
-
Copy full SHA for bac8b42 - Browse repository at this point
Copy the full SHA bac8b42View commit details -
feat: replace individual UI flags with unified --custom-strings flag
Replace non-scalable individual flags (--login-title, --login-below, etc.) with a unified --custom-strings flag that accepts JSON file paths or inline JSON for UI customization. This leverages the existing i18n system for better scalability and maintainability. Changes: - Add --custom-strings flag with JSON validation - Extend i18n system to merge custom strings with defaults - Remove newly-added individual login/UI flags - Deprecate legacy --app-name and --welcome-text flags - Update login route to use unified i18n system - Add comprehensive tests for new functionality - Update documentation with migration guide and examples 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 2553f45 - Browse repository at this point
Copy the full SHA 2553f45View commit details -
docs: simplify migration guide to only cover released flags
Remove migration examples for flags that were never released. Only --app-name and --welcome-text were in the original codebase and might be used by existing users. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for c2eb61d - Browse repository at this point
Copy the full SHA c2eb61dView commit details -
docs: update Docker customization examples to use --custom-strings
Replace outdated CS_* environment variable examples with the new --custom-strings flag approach. Include both inline JSON and mounted file examples for Docker users. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for c0189ed - Browse repository at this point
Copy the full SHA c0189edView commit details
Commits on Jun 21, 2025
-
Configuration menu - View commit details
-
Copy full SHA for cacf3cc - Browse repository at this point
Copy the full SHA cacf3ccView commit details
Commits on Jun 24, 2025
-
docs: remove niche customization sections from FAQ and install guide
Remove login page customization sections from FAQ.md and install.md as they were too specific for those documents. Move customization reference to guide.md where it's more appropriate. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 2b2819e - Browse repository at this point
Copy the full SHA 2b2819eView commit details -
refactor: remove redundant custom-strings validation and global variable
Remove duplicate validation in cli.ts since comprehensive validation already exists in loadCustomStrings(). Also eliminate unnecessary customStrings global variable by using customStringsData directly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for b275d52 - Browse repository at this point
Copy the full SHA b275d52View commit details -
refactor: simplify loadCustomStrings function signature and error han…
…dling Make customStringsArg parameter required since caller already checks existence. Remove redundant try-catch block in main.ts to avoid duplicate error logging since loadCustomStrings already provides descriptive error messages. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for af2f599 - Browse repository at this point
Copy the full SHA af2f599View commit details -
test: remove outdated tests for deprecated custom UI flags
Remove tests for legacy individual flags (--login-title, --password-placeholder, --submit-text, etc.) that have been replaced by the unified --custom-strings flag. Also remove cleanup of non-existent environment variables in CLI tests. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for e89a9af - Browse repository at this point
Copy the full SHA e89a9afView commit details -
refactor: use addResourceBundle instead of re-initializing i18next
Replace manual resource merging and re-initialization with i18next's built-in addResourceBundle API. This is more efficient, cleaner, and the idiomatic way to add custom translations dynamically. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for a8b7fbe - Browse repository at this point
Copy the full SHA a8b7fbeView commit details -
docs: improve custom-strings flag description
Change "custom UI strings" to "custom translations" to better reflect that this feature uses the i18n system and could be used for more than just UI elements, making it more accurate and future-proof. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 27ee714 - Browse repository at this point
Copy the full SHA 27ee714View commit details -
refactor: keep --app-name flag as non-deprecated for {{app}} placeholder
Remove deprecation from --app-name since it serves a valuable purpose for the {{app}} placeholder in custom strings, especially useful for internationalization. Update documentation to show how --app-name works with --custom-strings and clarify that only --welcome-text is deprecated. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>Configuration menu - View commit details
-
Copy full SHA for d5c0c88 - Browse repository at this point
Copy the full SHA d5c0c88View commit details -
refactor: rename --custom-strings flag to --i18n
Change CLI flag from --custom-strings to --i18n to use standard internationalization terminology. This is more accurate since the feature leverages the i18next system and follows industry conventions. Update all documentation, tests, and code references. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for fd6ca51 - Browse repository at this point
Copy the full SHA fd6ca51View commit details -
docs: consolidate i18n documentation in guide.md
Replace login-specific customization.md with generic internationalization section in guide.md. This approach is more maintainable, reduces file sprawl, points to source files as truth, and encourages community contributions. Removes repetitive examples that could get out of sync. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for ca12a25 - Browse repository at this point
Copy the full SHA ca12a25View commit details -
refactor: simplify --i18n flag to file-only approach
Replace dual JSON/file path functionality with file-only approach for cleaner, more predictable behavior. Since this is a new feature that hasn't been released yet, this change eliminates potential user confusion without breaking existing workflows. Changes: - Modify loadCustomStrings() to only accept file paths - Enhanced error handling with specific messages for file vs JSON errors - Remove inline JSON parsing from CLI argument handling - Update flag description to reflect file-only approach - Add comprehensive test suite covering all error scenarios - Update documentation to show only file-based examples Benefits: - Eliminates semantic ambiguity about argument format - Clearer error messages (file not found vs invalid JSON) - Follows Unix conventions for configuration files - Simpler implementation with better TypeScript typing - Can enhance with inline JSON later if demand exists 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for dceb0a6 - Browse repository at this point
Copy the full SHA dceb0a6View commit details
Commits on Jun 27, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 9bf53dc - Browse repository at this point
Copy the full SHA 9bf53dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 354677c - Browse repository at this point
Copy the full SHA 354677cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d4bd15 - Browse repository at this point
Copy the full SHA 0d4bd15View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 14bdb36...0d4bd15