Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@
},
"newTokenDialog": {
"title": "Token Created Successfully",
"description": "Copy your new API token now. You won't be able to see it again!",
"description": "Copy your new API token now. ",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

移除尾随空格以避免文案渲染噪声。

Line 837 的字符串末尾包含多余空格,建议删除,避免出现不必要间距或快照差异。

建议修改
-      "description": "Copy your new API token now. ",
+      "description": "Copy your new API token now.",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"description": "Copy your new API token now. ",
"description": "Copy your new API token now.",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@web/src/locales/en.json` at line 837, Remove the trailing space at the end of
the "description" string value in web/src/locales/en.json (the key "description"
whose current value is "Copy your new API token now. "); update it to "Copy your
new API token now." to eliminate the extraneous whitespace that can cause
rendering/layout noise and snapshot diffs.

"tokenName": "Token Name",
"apiToken": "API Token",
"warning": "This token will only be shown once. Make sure to copy it now.",
Expand Down
2 changes: 1 addition & 1 deletion web/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@
},
"newTokenDialog": {
"title": "令牌创建成功",
"description": "请立即复制您的新 API 令牌。您将无法再次看到它!",
"description": "请立即复制您的新 API 令牌。",
"tokenName": "令牌名称",
"apiToken": "API 令牌",
"warning": "此令牌仅显示一次。请确保现在复制它。",
Expand Down
5 changes: 0 additions & 5 deletions web/src/pages/api-tokens/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -616,11 +616,6 @@ export function APITokensPage() {
</Button>
</div>
</div>
<div className="bg-amber-500/10 border border-amber-500/20 rounded-lg p-3">
<p className="text-sm text-amber-600 dark:text-amber-400">
<strong>{t('common.confirm')}:</strong> {t('apiTokens.newTokenDialog.warning')}
</p>
</div>
</div>
<DialogFooter>
<Button onClick={() => setNewTokenDialog(null)}>
Expand Down