From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/manifest/background_color/index.html | 77 ++++++++++++ files/ru/web/manifest/categories/index.html | 82 ++++++++++++ files/ru/web/manifest/description/index.html | 81 ++++++++++++ files/ru/web/manifest/dir/index.html | 95 ++++++++++++++ files/ru/web/manifest/display/index.html | 122 ++++++++++++++++++ files/ru/web/manifest/iarc_rating_id/index.html | 85 +++++++++++++ files/ru/web/manifest/icons/index.html | 140 +++++++++++++++++++++ files/ru/web/manifest/index.html | 111 ++++++++++++++++ files/ru/web/manifest/lang/index.html | 73 +++++++++++ files/ru/web/manifest/name/index.html | 81 ++++++++++++ files/ru/web/manifest/orientation/index.html | 99 +++++++++++++++ .../prefer_related_applications/index.html | 76 +++++++++++ .../web/manifest/related_applications/index.html | 113 +++++++++++++++++ files/ru/web/manifest/scope/index.html | 88 +++++++++++++ files/ru/web/manifest/screenshots/index.html | 90 +++++++++++++ files/ru/web/manifest/serviceworker/index.html | 91 ++++++++++++++ files/ru/web/manifest/short_name/index.html | 80 ++++++++++++ files/ru/web/manifest/start_url/index.html | 87 +++++++++++++ files/ru/web/manifest/theme_color/index.html | 74 +++++++++++ 19 files changed, 1745 insertions(+) create mode 100644 files/ru/web/manifest/background_color/index.html create mode 100644 files/ru/web/manifest/categories/index.html create mode 100644 files/ru/web/manifest/description/index.html create mode 100644 files/ru/web/manifest/dir/index.html create mode 100644 files/ru/web/manifest/display/index.html create mode 100644 files/ru/web/manifest/iarc_rating_id/index.html create mode 100644 files/ru/web/manifest/icons/index.html create mode 100644 files/ru/web/manifest/index.html create mode 100644 files/ru/web/manifest/lang/index.html create mode 100644 files/ru/web/manifest/name/index.html create mode 100644 files/ru/web/manifest/orientation/index.html create mode 100644 files/ru/web/manifest/prefer_related_applications/index.html create mode 100644 files/ru/web/manifest/related_applications/index.html create mode 100644 files/ru/web/manifest/scope/index.html create mode 100644 files/ru/web/manifest/screenshots/index.html create mode 100644 files/ru/web/manifest/serviceworker/index.html create mode 100644 files/ru/web/manifest/short_name/index.html create mode 100644 files/ru/web/manifest/start_url/index.html create mode 100644 files/ru/web/manifest/theme_color/index.html (limited to 'files/ru/web/manifest') diff --git a/files/ru/web/manifest/background_color/index.html b/files/ru/web/manifest/background_color/index.html new file mode 100644 index 0000000000..25da0d77ce --- /dev/null +++ b/files/ru/web/manifest/background_color/index.html @@ -0,0 +1,77 @@ +--- +title: background_color +slug: Web/Manifest/background_color +tags: + - Manifest + - Web + - background_color +translation_of: Web/Manifest/background_color +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"background_color": "red"
+
+ +

background_color определяет ожидаемый цвет фона для веб-приложения. Это значение повторяет то, что уже доступно в стилях приложения, но может быть использовано браузерами для отрисовки цвета фона приложения после того, как манифест станет доступен, но до того, как стили загрузятся. Это создает плавный переход между запуском приложения и загрузкой содержимого приложения.

+ +

Therefore background_color should match the {{cssxref("background-color")}} CSS property in the site’s stylesheet for a smooth transition between launching the web application and loading the site's content.

+ +
+

Заметка: Свойство background_color предназначено только для улучшения удобства пользования, пока главная таблица стилей загружается из сети или с носителя; не должно быть использовано агентом пользователя как свойство CSS {{cssxref('background-color')}}, когда стили приложения станут доступны.

+
+ +

Пример

+ +
"background_color": "red"
+ +

Спецификации

+ + + + + + + + + + + + + + + + + + +
СпецификацияСтатусКомментарийFeedback
+

{{SpecName('Manifest', '#background_color-member', 'background_color')}}

+
+

{{Spec2('Manifest')}}

+
+

Первоначальное определение

+
+

Web App Manifest Working Group drafts

+
+ +

Совместимость

+ + + +

{{Compat("html.manifest.background_color")}}

diff --git a/files/ru/web/manifest/categories/index.html b/files/ru/web/manifest/categories/index.html new file mode 100644 index 0000000000..149e413600 --- /dev/null +++ b/files/ru/web/manifest/categories/index.html @@ -0,0 +1,82 @@ +--- +title: categories +slug: Web/Manifest/categories +tags: + - Manifest + - Web + - categories +translation_of: Web/Manifest/categories +--- +
{{QuickLinksWithSubpages("/ru/docs/Web/Manifest")}}
+ + + + + + + + + + + + + + + + +
TypeArray of Strings
MandatoryNo
Example +
+"categories": ["music"]
+
+ +

categories - это массив строк, определяющих имена категорий, к которым, предположительно, относится приложение. Нет стандартного списка возможных значений, но W3C поддерживает список известных категорий.

+ +
+

Note: categories используются только в качестве подсказок для каталогов или магазинов, содержащих веб-приложения. Как и поисковые системы и meta ключевые слова, каталоги и магазины могут игнорировать их.

+
+ +
+

Note: значения categories изменяются в каталогах и магазинах перед обработкой на нижний регистр, поэтому «Новости» и «новости» рассматриваются как одно и то же значение. Разработчикам рекомендуется использовать строчные буквы в первую очередь.

+
+ +

Пример

+ +
"categories": ["books", "education", "medical"]
+
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#categories-member', 'categories')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.categories")}}

diff --git a/files/ru/web/manifest/description/index.html b/files/ru/web/manifest/description/index.html new file mode 100644 index 0000000000..db2787bb52 --- /dev/null +++ b/files/ru/web/manifest/description/index.html @@ -0,0 +1,81 @@ +--- +title: description +slug: Web/Manifest/description +tags: + - Manifest + - Web + - description +translation_of: Web/Manifest/description +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"description": "Удивительное приложение, которое поможет вам достичь вашей мечты."
+
+ +

description это строка, в которой разработчики могут объяснить, что делает приложение. description способно к направленности, что означает, что оно может отображаться слева направо или справа налево на основе значений свойств dir and lang манифеста.

+ +

Примеры

+ +

Простой description на языке слева направо:

+ +
"description": "Удивительное приложение, которое поможет вам достичь вашей мечты."
+ +

description на арабском языке, который будет отображаться справа налево:

+ +
"dir": "rtl",
+"lang": "ar",
+"description": ".تطبيق رائع سيساعدك على تحقيق أحلامك"
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#description-member', 'description')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.description")}}

diff --git a/files/ru/web/manifest/dir/index.html b/files/ru/web/manifest/dir/index.html new file mode 100644 index 0000000000..c7798629be --- /dev/null +++ b/files/ru/web/manifest/dir/index.html @@ -0,0 +1,95 @@ +--- +title: dir +slug: Web/Manifest/dir +tags: + - Manifest + - Web + - dir +translation_of: Web/Manifest/dir +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"dir": "auto"
+
+ +

Базовое направление, в котором отображаются направленные элементы манифеста. Вместе с lang, позволяет корректно отобразить языки, читающиеся справа налево.

+ +

dir может быть одним из следующих значений:

+ + + +

Направленные свойства:

+ + + +
+

Заметка: Если значение опущено или установлено в auto, браузер будет использовать двунаправленный алгоритм Unicode, чтобы сделать наилучшее предположение о направлении текста.

+
+ +

Пример

+ +
"dir": "rtl",
+"lang": "ar",
+"short_name": "!أنا من التطبيق"
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#dir-member', 'dir')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.dir")}}

diff --git a/files/ru/web/manifest/display/index.html b/files/ru/web/manifest/display/index.html new file mode 100644 index 0000000000..7278265dad --- /dev/null +++ b/files/ru/web/manifest/display/index.html @@ -0,0 +1,122 @@ +--- +title: display +slug: Web/Manifest/display +tags: + - Manifest + - Web + - display +translation_of: Web/Manifest/display +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"display": "standalone"
+
+ +
+

Note: Если свойство display не указано, по умолчанию используется "browser".

+
+ +

display - это строка, которая определяет предпочитаемый разработчиком режим отображения для веб-сайта. Режим отображения изменяет количество отображаемого пользовательского интерфейса браузера и может варьироваться от "browser" (когда отображается полное окно браузера) до "fullscreen" (когда приложение полноэкранно).

+ +
+

Заметка: Вы можете выборочно применить CSS к своему приложению на основе режима отображения, используя медиа-функцию {{cssxref("@media/display-mode", "display-mode")}}. Это может быть использовано для обеспечения более гладкого перехода для пользователя от загрузки сайта по URL к запуску по иконке на рабочем столе.

+
+ +

Значения

+ +

Валидные значения следующие:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Режим отображенияОписаниеРезервный режим отображения
fullscreenИспользуется все доступное пространство экрана и агент пользователя {{Glossary("chrome")}} не отображается.standalone
standaloneПриложение будет выглядеть и ощущаться, как отдельное приложение. Это может включать наличие другого окна у приложения, собственной иконки в меню запуска и т.д. В этом режиме агент пользователя будет исключать элементы пользовательского интерфейса (ПИ) для контроля за навигацией, но может включать другие элементы ПИ, такие как статус-бар.minimal-ui
minimal-uiПриложение будет выглядеть и ощущаться, как отдельное приложение, но будет иметь минимальный набор элементов ПИ для контроля над навигацией. Элементы будут варьироваться в зависимости от браузера.browser
browserПриложение открывается в обычной вкладке браузера или новом окне, в зависимости от браузера и платформы. По умолчанию.(None)
+ +

Пример

+ +
"display": "standalone"
+
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#display-member', 'display')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ +
+

Note: Firefox version 47 supports only browser value of display; minimal-ui, standalone , and fullscreen were added in Firefox 57.

+
+ + + +

{{Compat("html.manifest.display")}}

diff --git a/files/ru/web/manifest/iarc_rating_id/index.html b/files/ru/web/manifest/iarc_rating_id/index.html new file mode 100644 index 0000000000..188472ad28 --- /dev/null +++ b/files/ru/web/manifest/iarc_rating_id/index.html @@ -0,0 +1,85 @@ +--- +title: iarc_rating_id +slug: Web/Manifest/iarc_rating_id +tags: + - Manifest + - Web + - iarc_rating_id +translation_of: Web/Manifest/iarc_rating_id +--- +
{{QuickLinksWithSubpages("/ru/docs/Web/Manifest")}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"iarc_rating_id": "e84b072d-71b3-4d3e-86ae-31a8ce4e53b7"
+
+ +

iarc_rating_id - это строка, представляющая Международной коалиции возрастных рейтингов (IARC) код сертификации веб-приложения. Он предназначен для определения возраста, для которого подходит веб-приложение.

+ +
+

Note: The same code can be shared across multiple participating storefronts, as long as the distributed product remains the same (i.e., doesn’t serve totally different code paths on different storefronts).

+
+ +

Пример

+ +
"iarc_rating_id": "e84b072d-71b3-4d3e-86ae-31a8ce4e53b7"
+
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#iarc_rating_id-member', 'iarc_rating_id')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.iarc_rating_id")}}

+ +

See also

+ + diff --git a/files/ru/web/manifest/icons/index.html b/files/ru/web/manifest/icons/index.html new file mode 100644 index 0000000000..e9ba3bfe32 --- /dev/null +++ b/files/ru/web/manifest/icons/index.html @@ -0,0 +1,140 @@ +--- +title: icons +slug: Web/Manifest/icons +tags: + - Icons + - Manifest + - Web +translation_of: Web/Manifest/icons +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeArray
MandatoryYes
Example +
+"icons": [
+  {
+    "src": "icon.webp",
+    "sizes": "48x48",
+    "type": "image/webp"
+  }
+]
+
+ +

icons Определяет массив объектов изображений, которые могут использованы как иконки приложения в различных контекстах. К примеру, они могут быть использованы для представления приложения среди списка других приложений или для интеграции его с переключателем задач ОС и/или настроек системы.

+ +

Примеры

+ +
"icons": [
+  {
+    "src": "icon/lowres.webp",
+    "sizes": "48x48",
+    "type": "image/webp"
+  },
+  {
+    "src": "icon/lowres",
+    "sizes": "48x48"
+  },
+  {
+    "src": "icon/hd_hi.ico",
+    "sizes": "72x72 96x96 128x128 256x256"
+  },
+  {
+    "src": "icon/hd_hi.svg",
+    "sizes": "72x72"
+  }
+]
+ +

Значения

+ +

Объекты изображений могут содержать следующие значения:

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
ПараметрОписание
sizesСтрока, содержащая разделенные пробелами размеры изображения.
srcПуть к файлу изображения. Если src является относительным URL, основным URL будет URL манифеста.
type +

Служит для определения медиа-типа изображения.Цель свойства позволить агенту пользователя быстро проигнорировать изображения медиа-типа, который он не поддерживает.

+
purpose +

Определяет назначение изображения, например, если изображение предназначено для каких-то особых целей в контексте ОС (т. е. для лучшей интеграции)

+ +

purpose может иметь одно из следующих значений:

+ +
    +
  • badge: Пользовательский агент может представить этот значок там, где ограничения пространства и/или требования к цвету отличаются от таковых для значка приложения.
  • +
  • maskable: Изображение разработано с учетом масок значков и безопасной зоны, так что пользовательский агент может безопасно игнорировать и маскировать любую часть изображения за пределами безопасной зоны.
  • +
  • any: Пользовательский агент может отображать значок в любом контексте (это значение по умолчанию).
  • +
+
+ +

Specifications

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#icons-member', 'icons')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.icons")}}

diff --git a/files/ru/web/manifest/index.html b/files/ru/web/manifest/index.html new file mode 100644 index 0000000000..1a7eb8beb4 --- /dev/null +++ b/files/ru/web/manifest/index.html @@ -0,0 +1,111 @@ +--- +title: Web App Manifest +slug: Web/Manifest +tags: + - App + - Manifest + - Reference + - Web +translation_of: Web/Manifest +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ +
{{SeeCompatTable}}
+ +

Манифесты веб-приложений являются частью набора веб-технологий, называемых прогрессивными веб-приложениями (PWA, progressive web apps), представляющими собой веб-сайты, которые можно установить на домашний экран устройства без магазина приложений. В отличие от обычных веб-приложений с простыми ссылками на домашний экран или закладками, PWA можно загружать заранее и работать в автономном режиме, а также использовать обычные {{domxref('','Web API')}}.

+ +

Манифест веб-приложения предоставляет информацию о приложении в текстовом файле {{glossary ("JSON")}}, который необходим того, чтобы веб-приложение было загружено и отображалось пользователю аналогично нативному приложению (например, для установки на домашний экран устройства, предоставляющий пользователям более быстрый доступ и больше возможностей).

+ + + + + +

Манифест может содержать следующие элементы:

+ +

{{ListSubpages("/ru/docs/Web/Manifest")}}

+ + + +
{
+  "name": "HackerWeb",
+  "short_name": "HackerWeb",
+  "start_url": ".",
+  "display": "standalone",
+  "background_color": "#fff",
+  "description": "A simply readable Hacker News app.",
+  "icons": [{
+    "src": "images/touch/homescreen48.png",
+    "sizes": "48x48",
+    "type": "image/png"
+  }, {
+    "src": "images/touch/homescreen72.png",
+    "sizes": "72x72",
+    "type": "image/png"
+  }, {
+    "src": "images/touch/homescreen96.png",
+    "sizes": "96x96",
+    "type": "image/png"
+  }, {
+    "src": "images/touch/homescreen144.png",
+    "sizes": "144x144",
+    "type": "image/png"
+  }, {
+    "src": "images/touch/homescreen168.png",
+    "sizes": "168x168",
+    "type": "image/png"
+  }, {
+    "src": "images/touch/homescreen192.png",
+    "sizes": "192x192",
+    "type": "image/png"
+  }],
+  "related_applications": [{
+    "platform": "web"
+  }, {
+    "platform": "play",
+    "url": "https://play.google.com/store/apps/details?id=cheeaun.hackerweb"
+  }]
+}
+ + + +

Манифест веб-приложения внедряется в вашу HTML-страницу, с помощью тега ссылки в заголовке вашего документа:

+ +
+
<link rel="manifest" href="/manifest.webmanifest">
+
+ +
+

Note: Расширение .webmanifest указывается в разделе спецификации Media type registration section of the specification (ответ файла манифеста должен возвращать Content-Type: application/manifest+json). Браузеры обычно поддерживают манифесты с другими соответствующими расширениями, такими как .json (Content-Type: application/json).

+
+ +
+

Note: Если для получения манифеста требуются учетные данные - атрибут crossorigin должен иметь значение "use-credentials", даже если файл манифеста находится в том же источнике, что и текущая страница.

+
+ +

Заставки

+ +

В Chrome 47 и более поздних версиях заставки отображаются при загрузке веб-приложения с домашнего экрана. Эти заставки автоматически генерируются с использованием свойств, указанных в манифесте приложения, например: name, background_color и иконки в массиве icons, которые ближе к 128dpi для устройства.

+ +

Спецификации

+ + + + + + + + + + + + + + +
СпецификацияСтатусКомментарий
{{SpecName('Manifest')}}{{Spec2('Manifest')}}Initial definition.
+ +

Поддержка браузерами

+ +
{{Compat("html.manifest")}}
diff --git a/files/ru/web/manifest/lang/index.html b/files/ru/web/manifest/lang/index.html new file mode 100644 index 0000000000..bc0fecb593 --- /dev/null +++ b/files/ru/web/manifest/lang/index.html @@ -0,0 +1,73 @@ +--- +title: lang +slug: Web/Manifest/lang +tags: + - Manifest + - Web + - lang +translation_of: Web/Manifest/lang +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"lang": "en-US"
+
+ +

lang является строкой, содержащей единственный языковой тег. Он определяет основной язык для значений направленных свойств манифеста, и вместе с dir определяет их направленность.

+ +

Пример

+ +
"lang": "en-US"
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#lang-member', 'lang')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.lang")}}

diff --git a/files/ru/web/manifest/name/index.html b/files/ru/web/manifest/name/index.html new file mode 100644 index 0000000000..4be2e6411d --- /dev/null +++ b/files/ru/web/manifest/name/index.html @@ -0,0 +1,81 @@ +--- +title: name +slug: Web/Manifest/name +tags: + - Manifest + - Web + - name +translation_of: Web/Manifest/name +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryYes
Example +
+"name": "Awesome application"
+
+ +

name - это строка, которая представляет имя веб-приложения, как оно обычно отображается пользователю (например, среди списка других приложений или в качестве метки для значка). name поддерживает направленность, что означает, что оно может отображаться слева направо или справа налево в зависимости от значений свойств манифеста dir и lang.

+ +

Примеры

+ +

Простое name на языке слева направо:

+ +
"name": "Потрясающее приложение"
+ +

name справа налево на арабском:

+ +
"dir": "rtl",
+"lang": "ar",
+"name": "!أنا من التطبيق"
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#name-member', 'name')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.name")}}

diff --git a/files/ru/web/manifest/orientation/index.html b/files/ru/web/manifest/orientation/index.html new file mode 100644 index 0000000000..eae33e0614 --- /dev/null +++ b/files/ru/web/manifest/orientation/index.html @@ -0,0 +1,99 @@ +--- +title: orientation +slug: Web/Manifest/orientation +tags: + - Manifest + - Orientation + - Web +translation_of: Web/Manifest/orientation +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"orientation": "portrait-primary"
+
+ +

orientation определяет ориентацию по умолчанию для всех верхних уровней {{Glossary("Browsing context", "контекстов браузера")}} приложения.

+ + + +
+

Note: orientation и/или его конкретные значения могут не поддерживаться пользовательским агентом в различных режимах отображения, поскольку их поддержка не имеет смысла для конкретного контекста.

+
+ +
+

Note: Ориентация может быть изменена во время выполнения через {{domxref('Screen/orientation', 'API Ориентации экрана')}}.

+
+ +

Значения

+ +

orientation может иметь одно из следующих значений:

+ + + +

Пример

+ +
​​"orientation": "portrait-primary"
+ +

Specifications

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#orientation-member', 'orientation')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.orientation")}}

diff --git a/files/ru/web/manifest/prefer_related_applications/index.html b/files/ru/web/manifest/prefer_related_applications/index.html new file mode 100644 index 0000000000..45322e5da7 --- /dev/null +++ b/files/ru/web/manifest/prefer_related_applications/index.html @@ -0,0 +1,76 @@ +--- +title: prefer_related_applications +slug: Web/Manifest/prefer_related_applications +tags: + - Manifest + - Web + - prefer_related_applications +translation_of: Web/Manifest/prefer_related_applications +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeBoolean
MandatoryNo
Example +
+"prefer_related_applications": true
+
+ +

prefer_related_applications является значением типа boolean, которое указывает, что приложения, перечисленные в related_applications, должны быть предпочтительнее веб-приложения. Если для prefer_related_applications установлено значение true, пользовательский агент может предложить установить одно из связанных приложений вместо этого веб-приложения.

+ +

Если опущено, prefer_related_applications по умолчанию false.

+ +

Пример

+ +
"prefer_related_applications": true
+
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#prefer_related_applications-member', 'prefer_related_applications')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.prefer_related_applications")}}

diff --git a/files/ru/web/manifest/related_applications/index.html b/files/ru/web/manifest/related_applications/index.html new file mode 100644 index 0000000000..d2a9675c31 --- /dev/null +++ b/files/ru/web/manifest/related_applications/index.html @@ -0,0 +1,113 @@ +--- +title: related_applications +slug: Web/Manifest/related_applications +tags: + - Manifest + - Web + - related_applications +translation_of: Web/Manifest/related_applications +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"related_applications": [
+  {
+    "platform": "play",
+    "url": "https://play.google.com/store/apps/details?id=com.example.app1",
+    "id": "com.example.app1"
+  }
+]
+
+ +

Поле related_applications field is an array of objects specifying native applications that are installable by, or accessible to, the underlying platform — for example, a native Android application obtainable through the Google Play Store. Предполагается, что такие приложения являются альтернативами веб-сайту манифеста, который предоставляет аналогичные/эквивалентные функции - как эквивалент нативного приложения.

+ +
+

Note: Разработчик может указать, что нативные приложения предпочтительнее, чем веб-приложение, установив значение prefer_related_applications в true.

+
+ +

Пример

+ +
"related_applications": [
+  {
+    "platform": "play",
+    "url": "https://play.google.com/store/apps/details?id=com.example.app1",
+    "id": "com.example.app1"
+  }, {
+    "platform": "itunes",
+    "url": "https://itunes.apple.com/app/example-app1/id123456789"
+  }
+]
+ +

Значения

+ +

Объекты приложения могут содержать следующие значения:

+ + + + + + + + + + + + + + + + + + + + + + +
СвойствоОписание
platformПлатформа, на которой может быть найдено приложение. List of available values
urlURL, по которому может быть найдено приложение.
idID, используемое для представления приложения на определенной платформе.
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
{{SpecName('Manifest', '#related_applications-member', 'related_applications')}} +

{{Spec2('Manifest')}}

+
Initial definition.Web App Manifest Working Group drafts
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.related_applications")}}

diff --git a/files/ru/web/manifest/scope/index.html b/files/ru/web/manifest/scope/index.html new file mode 100644 index 0000000000..fc23de8adc --- /dev/null +++ b/files/ru/web/manifest/scope/index.html @@ -0,0 +1,88 @@ +--- +title: scope +slug: Web/Manifest/scope +tags: + - Manifest + - Web + - scope +translation_of: Web/Manifest/scope +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"scope": "/app/"
+
+ +

Определяет область навигации контекста веб-приложения. Обычно ограничивается тем, какая веб-страница может быть просмотрена, пока манифест загружается. Если пользователь выходит за пределы области, приложение возвращается к нормальному виду веб-страницы.

+ +

Если область относительный URL, базовым URL будет URL манифеста.

+ +

Примеры

+ +

Если область относительная, URL манифеста используется как базовый URL:

+ +
"scope": "/app/"
+
+ +

Следующая область ограничивает навигацию текущим сайтом:

+ +
"scope": "https://example.com/"
+
+ +

Наконец, в следующем примере навигация ограничена подкаталогом текущего сайта:

+ +
"scope": "https://example.com/subdirectory/"
+
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#scope-member', 'scope')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.scope")}}

diff --git a/files/ru/web/manifest/screenshots/index.html b/files/ru/web/manifest/screenshots/index.html new file mode 100644 index 0000000000..4b91fbcdd4 --- /dev/null +++ b/files/ru/web/manifest/screenshots/index.html @@ -0,0 +1,90 @@ +--- +title: screenshots +slug: Web/Manifest/screenshots +tags: + - Manifest + - Screenshots + - Web +translation_of: Web/Manifest/screenshots +--- +
{{QuickLinksWithSubpages("/ru/docs/Web/Manifest")}}
+ + + + + + + + + + + + + + + + +
TypeObject
MandatoryNo
Example +
+"screenshots": [
+  {
+    "src": "screenshot.webp",
+    "sizes": "1280x720",
+    "type": "image/webp"
+  }
+]
+
+ +

screenshots определяет массив снимков экрана, предназначенных для демонстрации приложения. Эти изображения предназначены для использования в прогрессивных веб-приложениях магазинов.

+ +

Пример

+ +
"screenshots" : [
+  {
+    "src": "screenshot1.webp",
+    "sizes": "1280x720",
+    "type": "image/webp"
+  },
+  {
+    "src": "screenshot2.webp",
+    "sizes": "1280x720",
+    "type": "image/webp"
+  }
+]
+ +

Specifications

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#screenshots-member', 'screenshots')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.screenshots")}}

diff --git a/files/ru/web/manifest/serviceworker/index.html b/files/ru/web/manifest/serviceworker/index.html new file mode 100644 index 0000000000..11681a7060 --- /dev/null +++ b/files/ru/web/manifest/serviceworker/index.html @@ -0,0 +1,91 @@ +--- +title: serviceworker +slug: Web/Manifest/serviceworker +tags: + - Manifest + - ServiceWorker + - Web +translation_of: Web/Manifest/serviceworker +--- +
{{QuickLinksWithSubpages("/ru/docs/Web/Manifest")}}
+ +
{{obsolete_header}}
+ + + + + + + + + + + + + + + + +
TypeObject
MandatoryNo
Example +
+"serviceworker": {
+  "src": "./serviceworker.js"
+}
+
+ +

serviceworker описывает {{domxref('Service_Worker_API', 'рабочий сервис')}}, который разработчик намеревается установить для управления PWA.

+ +

Examples

+ +
"serviceworker": {
+  "src": "./serviceworker.js",
+  "scope": "/app",
+  "type": "",
+  "update_via_cache": "none"
+}
+
+ +

Значения

+ +

Сервисный работник может содержать следующие значения (требуется только src):

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
ПараметрОписание
src +

URL-адрес для загрузки сценария рабочего сервиса. Это единственный обязательный параметр для serviceworker.

+
scope +

Строка, представляющая URL, который определяет область регистрации рабочего сервиса; то есть, какой диапазон URL-адресов может контролировать рабочий сервис. Обычно это относительный URL-адрес, относительно базового URL-адреса приложения. По умолчанию в качестве области действия для регистрации рабочего сервиса задан каталог, в котором находится сценарий рабочий сервис.

+
type?
update_via_cache +

Нужно ли обходить кэш пользовательского агента при получении рабочего сервиса.

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.serviceworker")}}

diff --git a/files/ru/web/manifest/short_name/index.html b/files/ru/web/manifest/short_name/index.html new file mode 100644 index 0000000000..a11e2e2664 --- /dev/null +++ b/files/ru/web/manifest/short_name/index.html @@ -0,0 +1,80 @@ +--- +title: short_name +slug: Web/Manifest/short_name +tags: + - Manifest + - Web + - short-name +translation_of: Web/Manifest/short_name +--- +
{{QuickLinksWithSubpages("/ru/docs/Web/Manifest")}}
+ + + + + + + + + + + + + + + + +
ТипString
ОбязателенНет
Пример +
+"short_name": "Awesome app"
+
+ +

Элемент short_name -- это строка, которая определяет название веб-приложения показываемае пользователю, если для отображения name не достаточно места (например, в качестве надписи под иконкой приложения на экране телефона). short_name может отображаться слева-направо или справе-налево, в зависимости от значений элементов манифеста dir and lang.

+ +

Примеры

+ +

Обычно short_name отображается слева-направо:

+ +
"name": "Awesome application",
+"short_name": "Awesome app"
+ +

short_name на арабском отображается справа-налево:

+ +
"dir": "rtl",
+"lang": "ar",
+"name": "تطبيق رائع",
+"short_name": "رائع"
+
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#short_name-member', 'short_name')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Поддержка браузерами

+ +

{{Compat("html.manifest.name")}}

diff --git a/files/ru/web/manifest/start_url/index.html b/files/ru/web/manifest/start_url/index.html new file mode 100644 index 0000000000..46a76fb058 --- /dev/null +++ b/files/ru/web/manifest/start_url/index.html @@ -0,0 +1,87 @@ +--- +title: start_url +slug: Web/Manifest/start_url +tags: + - Manifest + - Web + - start_url +translation_of: Web/Manifest/start_url +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"start_url": "https://example.com"
+
+ +

start_url является строкой, представляющей начальный URL-адрес веб-приложения — tпредпочтительный URL-адрес, который должен быть загружен при запуске пользователем веб-приложения (например, когда пользователь нажимает на значок веб-приложения в меню приложений или на домашнем экране).

+ +
+

Note: start_url носит чисто рекомендательный характер, и пользовательский агент может его игнорировать или разрешить пользователю изменять его во время установки или после.

+
+ +

Примеры

+ +

Absolute URL

+ +
"start_url": "https://example.com"
+
+ +

Relative URL

+ +

Если URL является относительным, для его разрешения используется URL манифеста.

+ +
"start_url": "../startpoint.html"
+
+ +

Specifications

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#start_url-member', 'start_url')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.start_url")}}

diff --git a/files/ru/web/manifest/theme_color/index.html b/files/ru/web/manifest/theme_color/index.html new file mode 100644 index 0000000000..7536102ca6 --- /dev/null +++ b/files/ru/web/manifest/theme_color/index.html @@ -0,0 +1,74 @@ +--- +title: theme_color +slug: Web/Manifest/theme_color +tags: + - Manifest + - Web + - theme_color +translation_of: Web/Manifest/theme_color +--- +
{{QuickLinksWithSubpages('/ru/docs/Web/Manifest')}}
+ + + + + + + + + + + + + + + + +
TypeString
MandatoryNo
Example +
+"theme_color": "red"
+
+ +

theme_color определяет цвет темы по умолчанию для приложения. Иногда влияет на то, как приложение отображается ОС (например, в переключателе задач Android цвет темы окружает приложение).

+ +

Пример

+ +
"theme_color": "red"
+
+ +

Specification

+ + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentFeedback
+

{{SpecName('Manifest', '#theme_color-member', 'theme_color')}}

+
+

{{Spec2('Manifest')}}

+
+

Initial definition.

+
+

Web App Manifest Working Group drafts

+
+ +

Browser compatibility

+ + + +

{{Compat("html.manifest.theme_color")}}

-- cgit v1.2.3-54-g00ecf