style(www): 更新官网品牌视觉主题#422
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
| textarea.style.opacity = '0' | ||
| document.body.appendChild(textarea) | ||
| textarea.select() | ||
| document.execCommand('copy') |
There was a problem hiding this comment.
document.execCommand('copy') returns a boolean and may fail without throwing. In that case this code still reports copy success. Please check the return value and surface failure (e.g., throw when it returns false) so the button state is accurate.
|
|
||
| // scheduleReset 用于在提示短暂展示后恢复默认文案。 | ||
| function scheduleReset() { | ||
| resetTimer = window.setTimeout(() => { |
There was a problem hiding this comment.
resetTimer is never cleared on component unmount. If navigation happens before timeout fires, the callback still runs and mutates stale component state. Add onBeforeUnmount(() => clearResetTimer()) to avoid timer leaks and stale updates.
| <CodePanel language="powershell" label="PowerShell" :code="envWindows" /> | ||
| <div class="quickstart-links"> | ||
| <p>Workspace isolation: <code>--workdir</code></p> | ||
| <p>Gateway mode: <code>--runtime-mode gateway</code></p> |
There was a problem hiding this comment.
The docs still advertise --runtime-mode gateway, but CLI help only supports gateway as a subcommand (neocode gateway). This guidance leads to a non-working command (same issue is duplicated again later in this file).
背景
官网需要切换到新的 NeoCode 品牌图标,并让整体视觉主题与深蓝黑 + 蜜桃橙的品牌风格保持一致。
当前修改
验证
pnpm docs:build