From e8580b525b9abfbd0716a78944cdd4d52c0657b2 Mon Sep 17 00:00:00 2001 From: hoarfroster Date: Fri, 13 Sep 2024 21:21:47 +0800 Subject: [PATCH 1/4] feat: update translation --- .../api/extension/viewtype/index.md | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md diff --git a/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md b/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md new file mode 100644 index 00000000000000..75bd3b336b0e70 --- /dev/null +++ b/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md @@ -0,0 +1,53 @@ +--- +title: extension.ViewType +slug: Mozilla/Add-ons/WebExtensions/API/extension/ViewType +l10n: + sourceCommit: a16fecbf75f71fc11e03ef6cd0b0c34ad6f3d480 +--- + +{{AddonSidebar}} + +插件视图的类型。 + +## 类型 + +该类型的取值是字符串。可能的取值有:`"tab"`、`"popup"`、`"sidebar"`。 + +## 浏览器兼容性 + +{{Compat}} + +{{WebExtExamples}} + +> [!NOTE] +> 此 API 基于 Chromium 的 [`chrome.extension`](https://developer.chrome.com/docs/extensions/reference/extension/#type-ViewType) API。该文档衍生自 Chromium 代码中的 [`extension.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/extension.json)。 + + From ba30c20f6e8dbbba4ae085efce212b88b013c862 Mon Sep 17 00:00:00 2001 From: Hoarfroster Date: Fri, 13 Sep 2024 21:30:37 +0800 Subject: [PATCH 2/4] fix: frontmatter --- .../add-ons/webextensions/api/extension/viewtype/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md b/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md index 75bd3b336b0e70..4cd33cc67e46b1 100644 --- a/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md +++ b/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md @@ -2,7 +2,7 @@ title: extension.ViewType slug: Mozilla/Add-ons/WebExtensions/API/extension/ViewType l10n: - sourceCommit: a16fecbf75f71fc11e03ef6cd0b0c34ad6f3d480 + sourceCommit: a16fecbf75f71fc11e03ef6cd0b0c34ad6f3d480 --- {{AddonSidebar}} From 01ac299cd3df647b8a7908295743d62d0a656733 Mon Sep 17 00:00:00 2001 From: Hoarfroster Date: Fri, 20 Sep 2024 20:12:08 +0800 Subject: [PATCH 3/4] feat: improvements --- .../add-ons/webextensions/api/extension/viewtype/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md b/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md index 4cd33cc67e46b1..7cf613707dde23 100644 --- a/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md +++ b/files/zh-cn/mozilla/add-ons/webextensions/api/extension/viewtype/index.md @@ -2,7 +2,7 @@ title: extension.ViewType slug: Mozilla/Add-ons/WebExtensions/API/extension/ViewType l10n: - sourceCommit: a16fecbf75f71fc11e03ef6cd0b0c34ad6f3d480 + sourceCommit: b8a0743ca8b1e1b1b1a95cc93a4413c020f11262 --- {{AddonSidebar}} @@ -11,7 +11,7 @@ l10n: ## 类型 -该类型的取值是字符串。可能的取值有:`"tab"`、`"popup"`、`"sidebar"`。 +该类型的取值是字符串,且可能的取值包括 `"tab"`、`"popup"`、`"sidebar"`。 ## 浏览器兼容性 @@ -20,7 +20,7 @@ l10n: {{WebExtExamples}} > [!NOTE] -> 此 API 基于 Chromium 的 [`chrome.extension`](https://developer.chrome.com/docs/extensions/reference/extension/#type-ViewType) API。该文档衍生自 Chromium 代码中的 [`extension.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/extension.json)。 +> 此 API 基于 Chromium 的 [`chrome.extension`](https://developer.chrome.com/docs/extensions/reference/api/extension/#type-ViewType) API。该文档衍生自 Chromium 代码中的 [`extension.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/extension.json)。