Skip to content

Conversation

@jhll1124
Copy link
Contributor

Type of change

  • Bug fix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document.
  • I have checked to ensure that this Pull Request is not for personal changes.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.

Changes

新增 开发者工具提示信息(devtools warning) 功能。

当用户通过明确用于打开浏览器开发者工具的快捷键(如 F12Ctrl+Shift+I/J/CCmd+Option+I/J/C 等)尝试打开开发者工具时,页面顶部会显示一次提示卡片,用于展示自定义的提示信息。提示仅展示一次,不阻断用户操作,也不干扰开发者工具的正常使用。提示是否启用、内容与显示时长可在 siteConfig 中配置。

How To Test

  1. 启动

  2. 打开页面后,使用以下任意快捷键尝试打开开发者工具:

    • F12
    • Ctrl + Shift + I / J / C
    • Cmd + Option + I / J / C(macOS)
  3. 确认页面顶部显示提示卡片,并在进度条结束后自动隐藏

  4. 刷新页面后再次触发,确认提示只会显示一次

@vercel
Copy link

vercel bot commented Jan 16, 2026

@jhll1124 is attempting to deploy a commit to the xiaye's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link

netlify bot commented Jan 16, 2026

Deploy Preview for demo-firefly ready!

Name Link
🔨 Latest commit e666ea3
🔍 Latest deploy log https://app.netlify.com/projects/demo-firefly/deploys/696a6c6023dcb900083a9f79
😎 Deploy Preview https://deploy-preview-170--demo-firefly.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant