aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/domapplicationsregistry
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 21:46:22 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 21:46:22 -0500
commita065e04d529da1d847b5062a12c46d916408bf32 (patch)
treefe0f8bcec1ff39a3c499a2708222dcf15224ff70 /files/es/web/api/domapplicationsregistry
parent218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (diff)
downloadtranslated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.gz
translated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.bz2
translated-content-a065e04d529da1d847b5062a12c46d916408bf32.zip
update based on https://github.com/mdn/yari/issues/2028
Diffstat (limited to 'files/es/web/api/domapplicationsregistry')
-rw-r--r--files/es/web/api/domapplicationsregistry/checkinstalled/index.html49
-rw-r--r--files/es/web/api/domapplicationsregistry/getinstalled/index.html40
-rw-r--r--files/es/web/api/domapplicationsregistry/index.html89
-rw-r--r--files/es/web/api/domapplicationsregistry/install/index.html90
-rw-r--r--files/es/web/api/domapplicationsregistry/installpackage/index.html36
5 files changed, 0 insertions, 304 deletions
diff --git a/files/es/web/api/domapplicationsregistry/checkinstalled/index.html b/files/es/web/api/domapplicationsregistry/checkinstalled/index.html
deleted file mode 100644
index 5c2d298aa9..0000000000
--- a/files/es/web/api/domapplicationsregistry/checkinstalled/index.html
+++ /dev/null
@@ -1,49 +0,0 @@
----
-title: Apps.checkInstalled
-slug: Web/API/DOMApplicationsRegistry/checkInstalled
-tags:
- - API
- - Apps
- - Apps API
- - Firefox OS
- - Procedimiento
-translation_of: Archive/Marketplace/API/DOMApplicationsRegistry/checkInstalled
----
-<p>{{ ApiRef() }}</p>
-<p>{{ non-standard_header() }}</p>
-<h2 id="Resúmen">Resúmen</h2>
-<p><span id="result_box" lang="es"><span class="hps">Obtiene</span> <span class="hps">información acerca de</span> <span class="hps">la aplicación</span> <span class="hps">dada.</span> <span class="hps">Esto puede ser usado</span> <span class="hps">para determinar</span> <span class="hps">si se ha instalado</span> <span class="hps">la aplicación.</span></span></p>
-<h2 id="Sintaxis">Sintaxis</h2>
-<pre><code>var request = window.navigator.mozApps.</code>checkInstalled<code>(url)</code>;
-</pre>
-<h2 id="Parámetros">Parámetros</h2>
-<dl>
- <dt>
- <code>url</code></dt>
- <dd>
- Una <a href="/en-US/docs/JavaScript/Reference/Global_Objects/String">cadena</a> de URL <span id="result_box" lang="es"><span class="hps">que contiene</span> <span class="hps">la ubicación de el</span></span> <a href="/en-US/docs/Web/Apps/Manifest">manifiesto</a> de la aplicación.</dd>
-</dl>
-<h2 id="Returns" name="Returns">Resultados</h2>
-<p>La función <code>checkInstalled()</code> devuelve un objeto {{ domxref("DOMRequest") }}. La propiedad <code>DOMRequest.result</code> contiene un <a href="/en-US/docs/Web/API/App"><code>App</code> object</a>, <span id="result_box" lang="es"><span class="hps">que es un objeto</span> <span class="hps">JavaScript</span> <span class="hps">que describe</span> <span class="hps">la aplicación</span> <span class="hps">instalada</span><span>.</span></span> Si la aplicación no se encuentra instalada, entonces <code>DOMRequest.result</code> es <code>null</code> (nulo).</p>
-<h2 id="Ejemplo">Ejemplo</h2>
-<pre class="brush: js">var request = window.navigator.mozApps.checkInstalled("http://ejemplo.com/manifest.webapp");
-request.onerror = function(e) {
-  alert("Error de llamada checkInstalled: " + request.error.name);
-};
-request.onsuccess = function(e) {
-  if (request.result) {
- console.log("La aplicación está instalada!");
- }
- else {
- console.log("La aplicación no está instalada!");
-  }
-};</pre>
-<p>S<span id="result_box" lang="es"><span>e espera a las personas que llaman</span> <span class="hps">para establecer</span> <span class="hps">las</span> <span class="hps">propiedades</span> <span class="hps">de devolución de llamada</span></span> <code>onsuccess</code> y <code>onerror</code> del objeto devuelto, como se muestra en este ejemplo.<span id="result_box" lang="es"><span class="hps"> Si la llamada</span> <span class="hps">se realiza correctamente, </span> <span class="hps">un</span></span> <a href="/en-US/docs/Web/API/App"><code>App</code> object</a> se devuelve en la propiedad <code>result</code> del objeto devuelto. <span id="result_box" lang="es"><span class="hps">En</span> <span class="hps">el ejemplo esto es </span></span><code>request.result</code>.</p>
-<h2 id="Errores">Errores</h2>
-<p>La cadena <code>ERROR</code> <span class="short_text" id="result_box" lang="es"><span class="hps">pueden ser devueltos</span> <span class="hps">en</span></span> <code>DOMRequest.error</code>.</p>
-<p><span id="result_box" lang="es"><span class="hps">Una excepción</span></span> <code>NS_ERROR_DOM_BAD_URI</code> <span id="result_box" lang="es"><span class="hps">se produce</span> <span class="hps">si</span> <span class="hps">el manifiesto</span> <span class="hps">está en un dominio</span> <span class="hps">diferente a</span> <span class="hps">la página</span> <span class="hps">en que se solicita la información</span></span>. <span id="result_box" lang="es"><span class="hps">Este</span> <span class="hps">se produce</span> <span class="hps">tan pronto como</span> <span class="hps">se invoca</span></span> <code>checkInstalled</code>.</p>
-<h2 id="Temas_relacionados">Temas relacionados</h2>
-<ul>
- <li><a href="/en-US/docs/Web/API/App"><code>App</code> object</a></li>
- <li><a href="/en-US/docs/Web/Apps/JavaScript_API">Apps JavaScript API</a></li>
-</ul>
diff --git a/files/es/web/api/domapplicationsregistry/getinstalled/index.html b/files/es/web/api/domapplicationsregistry/getinstalled/index.html
deleted file mode 100644
index a1b96ee7ff..0000000000
--- a/files/es/web/api/domapplicationsregistry/getinstalled/index.html
+++ /dev/null
@@ -1,40 +0,0 @@
----
-title: Apps.getInstalled
-slug: Web/API/DOMApplicationsRegistry/getInstalled
-tags:
- - API
- - Apps
- - Apps API
- - Firefox OS
- - Procedimiento
-translation_of: Archive/Marketplace/API/DOMApplicationsRegistry/getInstalled
----
-<p>{{ ApiRef() }}</p>
-<p>{{ non-standard_header() }}</p>
-<h2 id="Resumen">Resumen</h2>
-<p><span id="result_box" lang="es"><span class="hps">Obtenga una lista de</span> <span class="hps">todas las aplicaciones instaladas</span> <span class="hps">desde</span> <span class="hps">este origen</span><span>.</span> <span class="hps">Por ejemplo</span><span>,</span> <span class="hps">si se llama a</span> <span class="hps">esto en el</span> <span class="hps">Firefox</span> <span class="hps">Marketplace,</span> <span class="hps">obtendrá</span> <span class="hps">la lista</span> <span class="hps">de aplicaciones instaladas</span> <span class="hps">por el</span> <span class="hps">Firefox</span> <span class="hps">Marketplace.</span></span></p>
-<div class="note">
- <p><strong>Note:</strong> <span id="result_box" lang="es"><span class="hps">Múltiples</span> <span class="hps">aplicaciones</span> <span class="hps">por</span> <span class="hps">origen</span> <span class="hps">no son compatibles.</span> <span class="hps">Para alojar</span> <span class="hps">varias</span> <span class="hps">aplicaciones</span> <span class="hps">de un dominio</span></span>, <a href="/en-US/docs/Web/Apps/Adding_a_subdomain">establezca un subdominio para cada aplicación</a>; por ejemplo: <code>miapp.midominio.com</code>, <code>otraapp.midominio.com</code>, <span class="short_text" id="result_box" lang="es"><span class="hps">y así sucesivamente</span></span>.</p>
-</div>
-<h2 id="Sintaxis">Sintaxis</h2>
-<pre><code>var request = window.navigator.mozApps.<code>getInstalled</code>()</code>;
-</pre>
-<h2 id="Parámetros">Parámetros</h2>
-<p>Ninguno.</p>
-<h2 id="Ejemplo">Ejemplo</h2>
-<pre class="brush: js">var request = window.navigator.mozApps.getInstalled();
-request.onerror = function(e) {
-  alert("Error de llamada getInstalled: " + request.error.name);
-};
-request.onsuccess = function(e) {
-  alert("Éxito, numero de apps: " + request.result.length);
-  var appsRecord = request.result;
-};</pre>
-<p>Se espera a las personas que llaman para establecer las propiedades de devolución <code>onsuccess</code> y <code>onerror</code> del objeto devuelto, como se muestra en este ejemplo. Si la llamada se realiza correctamente un array de <a href="/en-US/docs/Web/API/App"><code>App</code> objects</a> se devuelve en la propiedad <code>result</code> del objeto devuelto. En el ejemplo esto es <code>request.result</code>.</p>
-<h2 id="Errores">Errores</h2>
-<p>La cadena <code>ERROR</code> puede ser devuelta en <code>DOMRequest.error</code>.</p>
-<h2 id="Temas_relacionados">Temas relacionados</h2>
-<ul>
- <li><a href="/en-US/docs/Web/API/App"><code>App</code> object</a></li>
- <li><a href="/en-US/docs/Web/Apps/JavaScript_API">Apps JavaScript API</a></li>
-</ul>
diff --git a/files/es/web/api/domapplicationsregistry/index.html b/files/es/web/api/domapplicationsregistry/index.html
deleted file mode 100644
index e9d68ecf20..0000000000
--- a/files/es/web/api/domapplicationsregistry/index.html
+++ /dev/null
@@ -1,89 +0,0 @@
----
-title: DOMApplicationsRegistry
-slug: Web/API/DOMApplicationsRegistry
-tags:
- - API
- - Apps
- - B2G
- - Firefox OS
- - No estandar
- - Referencia
-translation_of: Archive/Marketplace/API/DOMApplicationsRegistry
----
-<p>{{ ApiRef("Apps") }}</p>
-
-<p>{{ non-standard_header() }}</p>
-
-<p>Provides support for installing, managing, and controlling Open Web apps in a browser. Currently implemented as {{ domxref('window.navigator.mozApps') }}.</p>
-
-<h2 id="Propiedad">Propiedad</h2>
-
-<dl>
- <dt>{{domxref("DOMApplicationsRegistry.mgmt")}}</dt>
- <dd>Un objeto <code>mgmt</code> que define funciones que le permiten a los tableros manejar y arrancar apps  a favor del usuario.</dd>
-</dl>
-
-<h2 id="Metodos">Metodos</h2>
-
-<dl>
- <dt>{{ domxref("DOMApplicationsRegistry.checkInstalled()") }}</dt>
- <dd>Verifica cuando una app se ha instalado tomando el manifiesto como su parametro.</dd>
- <dt>{{ domxref("DOMApplicationsRegistry.install()") }}</dt>
- <dd>Desencade la instalación de una app. Durante el proceso de instalación, la app es validada y se le pregunta al usuario si desea aprovar la instalación.</dd>
- <dt>{{ domxref("DOMApplicationsRegistry.getSelf()") }}</dt>
- <dd>Returna un objeto que contiene un {{ domxref('app') }} para la app.</dd>
- <dt>{{ domxref("DOMApplicationsRegistry.getInstalled()") }}</dt>
- <dd>Obtine una lista de todas las apps instaladas.</dd>
-</dl>
-
-<h2 id="Compatibilidad_de_navegadores">Compatibilidad de navegadores</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Soporte basico</td>
- <td>{{ CompatUnknown() }}</td>
- <td>16.0</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Soporte basico</td>
- <td>{{ CompatUnknown() }}</td>
- <td>16.0</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p> </p>
diff --git a/files/es/web/api/domapplicationsregistry/install/index.html b/files/es/web/api/domapplicationsregistry/install/index.html
deleted file mode 100644
index 56f18e777b..0000000000
--- a/files/es/web/api/domapplicationsregistry/install/index.html
+++ /dev/null
@@ -1,90 +0,0 @@
----
-title: Apps.install
-slug: Web/API/DOMApplicationsRegistry/install
-translation_of: Archive/Marketplace/API/DOMApplicationsRegistry/install
----
-<div>
- {{ ApiRef() }} {{non-standard_header}}</div>
-<h2 id="Summary" name="Summary">Resumen</h2>
-<p>Activa la instalación de una aplicación. Durante este proceso la aplicación es validada y el usuario se le solicita aprovar la instalación .</p>
-<p>Si la aplicación estaba previamente instalada desde el mismo dominio, llamando <code>install()</code>otra vez puede silenciosamente reescribir los datos de instalación. This can be used to modify the purchase receipt, for example, when a user upgrades from a free app to a premium app.</p>
-<h2 id="Syntax" name="Syntax">Syntax</h2>
-<pre class="syntaxbox"><code>var <em>request</em> = window.navigator.mozApps.install(<em>url</em>, <em>[receipt1, …]</em>)</code>;</pre>
-<h3 id="Parameters" name="Parameters">Parameters</h3>
-<div class="note">
- <strong>Note:</strong> There is currently (May 2012) a bug with passing a relative path in the <code>url</code> parameter. See {{ Bug("745928") }}.</div>
-<dl>
- <dt>
- <code>url</code></dt>
- <dd>
- A <a href="/en-US/docs/JavaScript/Reference/Global_Objects/String"><code>string</code></a> URL containing the location of the <a href="/en-US/docs/Web/Apps/Manifest">manifest</a> to be installed. In the case of self distribution (where the installing origin is the same as the app origin), the installing site may omit the origin part of the URL and provide an absolute path (beginning with <code>/</code>).</dd>
- <dt>
- <code><strong>receipts</strong></code></dt>
- <dd>
- (Optional) An array of one or more receipts. Example:</dd>
- <dd>
- <pre>window.navigator.mozApps.install(url, ["receipt"])</pre>
- </dd>
- <dd>
- If <code>receipts</code> is omitted it is treated as <code>null</code>. For more information see <a href="/en-US/docs/Web/Apps/Publishing/Validating_a_receipt">Validating a receipt</a>.</dd>
-</dl>
-<p>The <code>install()</code> function throws an exception if the required argument (<code>url</code>) is missing, or if unsupported arguments are present.</p>
-<h2 id="Returns" name="Returns">Returns</h2>
-<p>The <code>install()</code> function returns a {{ domxref("DOMRequest") }} object. The <code>DOMRequest.result</code> field contains an <a href="/en-US/docs/Web/API/App"><code>App</code> object</a>, which is a JavaScript object that describes the app that was just installed. Before the operation is finished, <code>DOMRequest.result</code> is <code>null</code>.</p>
-<p>If the installation is not successful, <code>DOMRequest.error</code> contains a <a href="/en-US/docs/Web/Apps/JavaScript_API/Error_object"><code>DOMError</code> object</a>, which has information about the error.</p>
-<h2 id="Example" name="Example">Example</h2>
-<p>An example that shows how to use <code>install()</code> with the <code>DOMRequest.onsuccess</code> and <code>DOMRequest.onerror</code> callback properties.</p>
-<pre class="brush: js">var request = window.navigator.mozApps.install(manifestUrl);
-request.onsuccess = function () {
- // Save the App object that is returned
- var appRecord = this.result;
- alert('Installation successful!');
-};
-request.onerror = function () {
- // Display the error information from the DOMError object
- alert('Install failed, error: ' + this.error.name);
-};
-</pre>
-<p>The <code>onsuccess</code> callback is called if the installation is successful. This means that the installation actions described <a href="/en-US/docs/Web/Apps/Platform-specific_details">here</a> have occurred.</p>
-<p>If the installation is not successful the <code>onerror</code> callback is called. On a failed installation, <code>DOMRequest.error</code> contains a <code>DOMError</code> object that has information about the error.</p>
-<p>The code above may look unusual to you, with listeners being added after the function has already been invoked. However, this is the way the <code>DOMRequest</code> object operates. The function invocation will wait until the listeners are defined, and then the listeners will fire appropriately. The <code>install()</code> function also works by itself, without the <code>.onsuccess</code> and <code>.onerror</code> listeners.</p>
-<h2 id="Error" name="Error">Errors</h2>
-<p>When the installation is unsuccessful, one of the following errors can be returned in <code>DOMRequest.error</code>.</p>
-<dl>
- <dt>
- <code>DENIED</code></dt>
- <dd>
- The user cancelled the installation.</dd>
- <dt>
- <code>INVALID_MANIFEST</code></dt>
- <dd>
- The manifest, while well-formed JSON, does not have some required field or is somehow invalid.</dd>
- <dt>
- <code>MANIFEST_URL_ERROR</code></dt>
- <dd>
- Something other than an HTTP 200 status code was received, or some connection errors.</dd>
- <dt>
- <code>MANIFEST_PARSE_ERROR</code></dt>
- <dd>
- Bad JSON in the manifest.</dd>
- <dt>
- <code>NETWORK_ERROR</code></dt>
- <dd>
- Connection error.</dd>
- <dt>
- <code>REINSTALL_FORBIDDEN</code></dt>
- <dd>
- Reinstalls of apps are forbidden.</dd>
- <dt>
- <code>MULTIPLE_APPS_PER_ORIGIN_FORBIDDEN</code></dt>
- <dd>
- Installable apps have a "single app per origin" security policy; basically, you can't host more than one installable app per origin.</dd>
-</dl>
-<h2 id="Related_topics" name="Related_topics">Related topics</h2>
-<ul>
- <li><a href="/en-US/docs/Web/Apps/Publishing/Validating_a_receipt">Validating a receipt</a></li>
- <li><a href="/en-US/docs/Web/Apps/Platform-specific_details">Platform-specific details</a></li>
- <li><a href="/en-US/docs/Web/API/App">App object</a></li>
- <li><a href="/en-US/docs/Web/API/DOMError">DOMError object</a></li>
- <li><a href="/en-US/docs/Web/Apps/JavaScript_API">Apps JavaScript API</a></li>
-</ul>
diff --git a/files/es/web/api/domapplicationsregistry/installpackage/index.html b/files/es/web/api/domapplicationsregistry/installpackage/index.html
deleted file mode 100644
index c269240c60..0000000000
--- a/files/es/web/api/domapplicationsregistry/installpackage/index.html
+++ /dev/null
@@ -1,36 +0,0 @@
----
-title: Apps.installPackage
-slug: Web/API/DOMApplicationsRegistry/installPackage
-translation_of: Archive/Marketplace/API/DOMApplicationsRegistry/installPackage
----
-<div>
- {{ApiRef}} {{non-standard_header}}</div>
-<h2 id="Resumen">Resumen</h2>
-<p>Instala una <a href="/en-US/docs/Apps/Packaged_apps">aplicación empaquetada</a>.</p>
-<div class="warning">
- Solo disponible en Firefox OS.</div>
-<h2 id="Sintaxis">Sintaxis</h2>
-<pre class="syntaxbox">installPackage: function(aURL[, aParams])</pre>
-<h3 id="Parametros">Parametros</h3>
-<ul>
- <li><code>receipts</code>: Será utilizado para especificar los recibos de pago para esta instalación.</li>
- <li><code>categories</code>: Será utilizado para especificar las categorías de la aplicación web.</li>
-</ul>
-<h2 id="Resultados">Resultados</h2>
-<dl>
- <dt>
- <code>aURL</code></dt>
- <dd>
- El URL del paquete de aplicación a instalar. Esta debe ser una URL completa y absoluta.</dd>
- <dt>
- <code>aParams</code></dt>
- <dd>
- Opcionalmente, un objeto con información adicional:</dd>
- <dt>
- <code>DOMRequest</code></dt>
-</dl>
-<h2 id="Véase_también">Véase también</h2>
-<ul>
- <li>{{domxref("Apps.install()")}}</li>
- <li><a href="/en-US/docs/Apps/Apps_JavaScript_API">Apps JavaScript API</a></li>
-</ul>