Import upstream latest with local security and Hermes sync fixes#80
Open
Cheng455153666 wants to merge 1 commit into170-carry:mainfrom
Open
Import upstream latest with local security and Hermes sync fixes#80Cheng455153666 wants to merge 1 commit into170-carry:mainfrom
Cheng455153666 wants to merge 1 commit into170-carry:mainfrom
Conversation
| report += '| Key | 英文值(基准) | 复用语言 |\n'; | ||
| report += '|-----|----------------|---------|\n'; | ||
| for (const issue of englishReuseIssues) { | ||
| const safeValue = issue.value.replace(/\r?\n/g, ' ').replace(/\|/g, '\\|'); |
| report += '| suffix | 文案值(en-US) | 平台 | 当前 key | 建议 common key |\n'; | ||
| report += '|--------|----------------|------|----------|------------------|\n'; | ||
| for (const issue of platformCommonIssues) { | ||
| const safeValue = issue.value.replace(/\r?\n/g, ' ').replace(/\|/g, '\\|'); |
| report += '|--------|----------------|------|----------|------------------|\n'; | ||
| for (const issue of platformCommonIssues) { | ||
| const safeValue = issue.value.replace(/\r?\n/g, ' ').replace(/\|/g, '\\|'); | ||
| const safeKeys = issue.keys.join(', ').replace(/\r?\n/g, ' ').replace(/\|/g, '\\|'); |
| const lastKey = keys[keys.length - 1]; | ||
| if (!isSafeKey(lastKey)) return false; | ||
| if (!Object.prototype.hasOwnProperty.call(current, lastKey)) { | ||
| Object.defineProperty(current, lastKey, { |
| if (!isSafeKey(lastKey)) return false; | ||
| const existing = Object.prototype.hasOwnProperty.call(current, lastKey) ? current[lastKey] : undefined; | ||
| if (!Object.prototype.hasOwnProperty.call(current, lastKey) || existing === englishValue) { | ||
| Object.defineProperty(current, lastKey, { |
| fn builds_cli_device_login_url_without_redirect_uri() { | ||
| let url = build_cli_device_login_url( | ||
| DEFAULT_LOGIN_BASE_URL, | ||
| "test-nonce", |
| // lgtm[rs/weak-cryptographic-algorithm] 仅用于生成本地稳定账号 ID(非密码学用途,不参与认证/签名/加密) | ||
| let generated_id = format!( | ||
| "windsurf_{:x}", | ||
| md5::compute(format!("{}:{}", normalized_login, payload.github_id)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.