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/pt-pt/web/manifest/index.html | 121 ++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 files/pt-pt/web/manifest/index.html (limited to 'files/pt-pt/web/manifest') diff --git a/files/pt-pt/web/manifest/index.html b/files/pt-pt/web/manifest/index.html new file mode 100644 index 0000000000..f6329c8353 --- /dev/null +++ b/files/pt-pt/web/manifest/index.html @@ -0,0 +1,121 @@ +--- +title: Web App Manifest (Manifesto da Aplicação da Web) +slug: Web/Manifest +tags: + - Aplicação + - Manifest + - Manifesto + - Referencia + - Web +translation_of: Web/Manifest +--- +
{{QuickLinksWithSubpages("/en-US/docs/Web/Manifest")}}
+ +
{{SeeCompatTable}}
+ +

Manifestos de aplicação da Web são parte de uma coleção de tecnologias da Web chamadas de progressive web apps (PWAs), que são sites da Web que podem ser instalados num ecrã inicial do dispositivo sem uma loja de aplicações. Unlike regular web apps with simple homescreen links or bookmarks, PWAs can be downloaded in advance and can work offline, as well as use regular Web APIs.

+ +

The web app manifest provides information about a web application in a JSON text file, necessary for the web app to be downloaded and be presented to the user similarly to a native app (e.g., be installed on the homescreen of a device, providing users with quicker access and a richer experience). PWA manifests include its name, author, icon(s), version, description, and list of all the necessary resources (among other things).

+ + + +

Membros

+ +

Web manifests can contain the following keys. Click on each one to link through to more information about it:

+ +

{{ListSubpages("/en-US/docs/Web/Manifest")}}

+ +

Manifest exemplo

+ +
{
+  "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": "play",
+    "url": "https://play.google.com/store/apps/details?id=cheeaun.hackerweb"
+  }]
+}
+ + + +

Web app manifests are deployed in your HTML pages using a {{HTMLElement("link")}} element in the {{HTMLElement("head")}} of a document:

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

Note: The .webmanifest extension is specified in the Media type registration section of the specification (the response of the manifest file should return Content-Type: application/manifest+json). Browsers generally support manifests with other appropriate extensions like .json (Content-Type: application/json).

+
+ +
+

Note: If the manifest requires credentials to fetch - the crossorigin attribute must be set to "use-credentials", even if the manifest file is in the same origin as the current page.

+
+ + + +

Splash screens

+ +

In Chrome 47 and later, a splash screen is displayed for sites launched from a homescreen. This splashscreen is auto-generated from properties in the web app manifest, specifically:

+ + + +

Mime type

+ +

Manifests should be served using the application/manifest+json MIME type. However, it is optional to do so.  

+ +

Especificações

+ + + + + + + + + + + + + + +
EspecificaçãoEstadoComentário
{{SpecName("Manifest")}}{{Spec2("Manifest")}}Initial definition.
+ +

Compatibilidade de navegador

+ +

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

-- cgit v1.2.3-54-g00ecf