Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-cn]: create docs for HIDDevice #24290

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

fuchunhui
Copy link
Contributor

Description

Motivation

Additional details

Related issues and pull requests

@fuchunhui fuchunhui requested a review from a team as a code owner October 31, 2024 12:11
@fuchunhui fuchunhui requested review from yin1999 and removed request for a team October 31, 2024 12:11
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Oct 31, 2024
Copy link
Contributor

github-actions bot commented Oct 31, 2024

Preview URLs (13 pages)
Flaws (9)

Note! 7 documents with no flaws that don't need to be listed. 🎉

URL: /zh-CN/docs/Web/API/HIDDevice/inputreport_event
Title: HIDDevice:inputreport 事件
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/HIDInputReportEvent does not exist but fell back to /en-US/docs/Web/API/HIDInputReportEvent
    • /zh-CN/docs/Web/API/HIDInputReportEvent/data does not exist but fell back to /en-US/docs/Web/API/HIDInputReportEvent/data
    • /zh-CN/docs/Web/API/HIDInputReportEvent/device does not exist but fell back to /en-US/docs/Web/API/HIDInputReportEvent/device
    • /zh-CN/docs/Web/API/HIDInputReportEvent/reportId does not exist but fell back to /en-US/docs/Web/API/HIDInputReportEvent/reportId

URL: /zh-CN/docs/Web/API/HIDDevice/opened
Title: HIDDevice:opened 属性
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/HID/getDevices does not exist but fell back to /en-US/docs/Web/API/HID/getDevices

URL: /zh-CN/docs/Web/API/HIDDevice/open
Title: HIDDevice:open() 方法
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/HID/requestDevice does not exist but fell back to /en-US/docs/Web/API/HID/requestDevice

URL: /zh-CN/docs/Web/API/HIDDevice/productName
Title: HIDDevice:productName 属性
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/HID/getDevices does not exist but fell back to /en-US/docs/Web/API/HID/getDevices

URL: /zh-CN/docs/Web/API/HIDDevice/vendorId
Title: HIDDevice:vendorId 属性
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/HID/getDevices does not exist but fell back to /en-US/docs/Web/API/HID/getDevices

URL: /zh-CN/docs/Web/API/HIDDevice/productId
Title: HIDDevice:productId 属性
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/HID/getDevices does not exist but fell back to /en-US/docs/Web/API/HID/getDevices
External URLs (7)

URL: /zh-CN/docs/Web/API/HIDDevice
Title: HIDDevice


URL: /zh-CN/docs/Web/API/HIDDevice/inputreport_event
Title: HIDDevice:inputreport 事件


URL: /zh-CN/docs/Web/API/HIDDevice/collections
Title: HIDDevice:collections 属性


URL: /zh-CN/docs/Web/API/HIDDevice/sendFeatureReport
Title: HIDDevice:sendFeatureReport() 方法


URL: /zh-CN/docs/Web/API/HIDDevice/sendReport
Title: HIDDevice:sendReport() 方法

(comment last updated: 2024-11-01 11:42:17)

files/zh-cn/web/api/hiddevice/close/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/hiddevice/collections/index.md Outdated Show resolved Hide resolved
await device.open();
// 关闭
await device.sendFeatureReport(reportId, Uint32Array.from([0, 0]));
await waitFor(100);
Copy link
Contributor

Choose a reason for hiding this comment

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

这边似乎可以更新下原文的例子,waitFor的函数未定义

Copy link
Contributor Author

Choose a reason for hiding this comment

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

o的k

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mdn/content#36608
等合并,我再同步这里

Copy link
Contributor

@T34-active T34-active left a comment

Choose a reason for hiding this comment

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

nits

files/zh-cn/web/api/hiddevice/collections/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/hiddevice/collections/index.md Outdated Show resolved Hide resolved
Co-authored-by: skyclouds2001 <[email protected]>
Co-authored-by: 720 <[email protected]>
@fuchunhui fuchunhui marked this pull request as draft November 1, 2024 11:29
@fuchunhui fuchunhui marked this pull request as ready for review November 1, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
Status: Review requested
Development

Successfully merging this pull request may close these issues.

3 participants