From 6772831200d14c2436aea2d0c837f40dbf12156f Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Sun, 26 Sep 2021 13:11:47 +0200 Subject: Prepare Web API section for Markdown conversion (#2464) * Remove summary classes and ids * Remove unecessary hidden * Remove useless span filled with useless attributes / ids * Remove useless font * Remove notranslate * Remove id in other elements than headings * Remove name attributes * Remove
 for JS w/ language-js class

* Remove 
 for HTML w/ language-html class

* Remove 
 for other lang w/ language-* class

* Rm highlighted line in code samples

* fix links, internal, external, absolute URLs

* missing file from last commit

* Fix styles errors apart from table + some classes

* Fix notes and warnings (+ some other :x)

* fix typo during merge which broke a doc

* aand forgot a conflict

* fix remaining classes of errors except dls and images

* Fix dls

* Fix images (deki/mozillademos) and remaining style issues

* Remove script tag from svg file

* Remove script tag from svg fileS

* Compress SVG files for CI
---
 .../web/api/serviceworkerregistration/active/index.html  | 16 ++++++++--------
 .../getnotifications/index.html                          |  6 +++---
 files/fr/web/api/serviceworkerregistration/index.html    | 14 +++++++-------
 .../web/api/serviceworkerregistration/scope/index.html   |  8 ++++----
 .../shownotification/index.html                          |  4 ++--
 5 files changed, 24 insertions(+), 24 deletions(-)

(limited to 'files/fr/web/api/serviceworkerregistration')

diff --git a/files/fr/web/api/serviceworkerregistration/active/index.html b/files/fr/web/api/serviceworkerregistration/active/index.html
index 72ef793946..257fc3eb90 100644
--- a/files/fr/web/api/serviceworkerregistration/active/index.html
+++ b/files/fr/web/api/serviceworkerregistration/active/index.html
@@ -5,33 +5,33 @@ translation_of: Web/API/ServiceWorkerRegistration/active
 ---
 
{{SeeCompatTable}}{{APIRef("Service Workers API")}}
-

La propriété active de l’interface {{domxref("ServiceWorkerRegistration")}} retourne un service worker dont le {{domxref("ServiceWorker.state")}} est activating ou activated. Cette propriété est initialement définie à null.

+

La propriété active de l’interface {{domxref("ServiceWorkerRegistration")}} retourne un service worker dont le {{domxref("ServiceWorker.state")}} est activating ou activated. Cette propriété est initialement définie à null.

Un worker actif contrôle un {{domxref("ServiceWorkerClient")}} si l’URL du client appartient au domaine de l’inscription (l’option scope définie lorsque {{domxref("ServiceWorkerContainer.register")}} est initialement appelé.)

-

Note : Cette fonctionnalité est disponible dans les Web Workers.

+

Note : Cette fonctionnalité est disponible dans les Web Workers.

-

Syntaxe

+

Syntaxe

-
sw = ServiceWorker.active
+
sw = ServiceWorker.active
 

Valeur

Un objet {{domxref("ServiceWorker")}}, si le worker est actuellement dans un état activating ou activated.

-

Spécifications

+

Spécifications

 
- - - + + + diff --git a/files/fr/web/api/serviceworkerregistration/getnotifications/index.html b/files/fr/web/api/serviceworkerregistration/getnotifications/index.html index da50d1745a..23379e7520 100644 --- a/files/fr/web/api/serviceworkerregistration/getnotifications/index.html +++ b/files/fr/web/api/serviceworkerregistration/getnotifications/index.html @@ -15,11 +15,11 @@ translation_of: Web/API/ServiceWorkerRegistration/getNotifications ---
{{APIRef("Service Workers API")}}
-

La méthode getNotifications() de l'interface {{domxref ("ServiceWorkerRegistration")}} renvoie une liste des notifications dans l'ordre dans lequel elles ont été créées à partir de l'origine actuelle via l'enregistrement actuel du service worker. Les origines peuvent avoir de nombreuses inscriptions de service worker actives mais de portée différente. Les notifications créées par un service worker sur la même origine ne seront pas disponibles pour les autres services workers actifs sur la même origine.

+

La méthode getNotifications() de l'interface {{domxref ("ServiceWorkerRegistration")}} renvoie une liste des notifications dans l'ordre dans lequel elles ont été créées à partir de l'origine actuelle via l'enregistrement actuel du service worker. Les origines peuvent avoir de nombreuses inscriptions de service worker actives mais de portée différente. Les notifications créées par un service worker sur la même origine ne seront pas disponibles pour les autres services workers actifs sur la même origine.

Syntaxe

-
s​erviceWorkerRegistration.getNotifications(options)
+
s​erviceWorkerRegistration.getNotifications(options)
 .then(function(notificationsList) { ... })

Paramétres

@@ -39,7 +39,7 @@ translation_of: Web/API/ServiceWorkerRegistration/getNotifications

Exemple

-
navigator.serviceWorker.register('sw.js')
+
navigator.serviceWorker.register('sw.js')
 
 const options = { tag: 'user_alerts' }
 
diff --git a/files/fr/web/api/serviceworkerregistration/index.html b/files/fr/web/api/serviceworkerregistration/index.html
index 15606c9603..7412dfa554 100644
--- a/files/fr/web/api/serviceworkerregistration/index.html
+++ b/files/fr/web/api/serviceworkerregistration/index.html
@@ -18,12 +18,12 @@ translation_of: Web/API/ServiceWorkerRegistration
 
{{SeeCompatTable}}{{APIRef("Service Workers API")}}
-

The ServiceWorkerRegistration interface of the ServiceWorker API represents the service worker registration. You register a service worker to control one or more pages that share the same origin.

+

The ServiceWorkerRegistration interface of the ServiceWorker API represents the service worker registration. You register a service worker to control one or more pages that share the same origin.

The lifetime of a service worker registration is beyond that of the ServiceWorkerRegistration objects that represent them within the lifetime of their corresponding service worker clients. The browser maintains a persistent list of active ServiceWorkerRegistration objects.

-

Note: This feature is available in Web Workers.

+

Note : This feature is available in Web Workers.

Properties

@@ -33,17 +33,17 @@ translation_of: Web/API/ServiceWorkerRegistration
{{domxref("ServiceWorkerRegistration.scope")}} {{readonlyinline}}
Returns a unique identifier for a service worker registration. This must be on the same origin as the document that registers the {{domxref("ServiceWorker")}}.
-
{{domxref("ServiceWorkerRegistration.installing")}} {{readonlyinline}}
+
{{domxref("ServiceWorkerRegistration.installing")}}{{readonlyinline}}
Returns a service worker whose state is installing. This is initially set to null.
-
{{domxref("ServiceWorkerRegistration.waiting")}} {{readonlyinline}}
+
{{domxref("ServiceWorkerRegistration.waiting")}}{{readonlyinline}}
Returns a service worker whose state is waiting. This is initially set to null.
-
{{domxref("ServiceWorkerRegistration.active")}} {{readonlyinline}}
+
{{domxref("ServiceWorkerRegistration.active")}}{{readonlyinline}}
Returns a service worker whose state is either activating or activated. This is initially set to null. An active worker will control a {{domxref("ServiceWorkerClient")}} if the client's URL falls within the scope of the registration (the scope option set when {{domxref("ServiceWorkerContainer.register")}} is first called.)
{{domxref("ServiceWorkerRegistration.navigationPreload")}} {{readonlyinline}}
Returns the instance of {{domxref("NavigationPreloadManager")}} associated with the current service worker registration.
{{domxref("ServiceWorkerRegistration.pushManager")}} {{readonlyinline}}
Returns a reference to the {{domxref("PushManager")}} interface for managing push subscriptions including subscribing, getting an active subscription, and accessing push permission status.
-
{{domxref("ServiceWorkerRegistration.sync")}} {{non-standard_inline}} {{readonlyinline}} 
+
{{domxref("ServiceWorkerRegistration.sync")}} {{non-standard_inline}} {{readonlyinline}} 
Returns a reference to the {{domxref("SyncManager")}} interface, which manages background synchronization processes.
@@ -58,7 +58,7 @@ translation_of: Web/API/ServiceWorkerRegistration
{{domxref("ServiceWorkerRegistration.onupdatefound")}} {{readonlyinline}}
-
An EventListener property called whenever an event of type updatefound is fired; it is fired any time the {{domxref("ServiceWorkerRegistration.installing")}} property acquires a new service worker.
+
An EventListener property called whenever an event of type updatefound is fired; it is fired any time the {{domxref("ServiceWorkerRegistration.installing")}} property acquires a new service worker.

Methods

diff --git a/files/fr/web/api/serviceworkerregistration/scope/index.html b/files/fr/web/api/serviceworkerregistration/scope/index.html index 63627cbb8a..19ef530db5 100644 --- a/files/fr/web/api/serviceworkerregistration/scope/index.html +++ b/files/fr/web/api/serviceworkerregistration/scope/index.html @@ -13,15 +13,15 @@ translation_of: Web/API/ServiceWorkerRegistration/scope ---
{{APIRef("Service Workers API")}}
-

La propriété en lecture seule scope de l'interface {{domxref ("ServiceWorkerRegistration")}} renvoie un identifiant unique pour un enregistrement de service worker. Le service worker doit être sur la même origine que le document qui enregistre le {{domxref ("ServiceWorker")}}.

+

La propriété en lecture seule scope de l'interface {{domxref ("ServiceWorkerRegistration")}} renvoie un identifiant unique pour un enregistrement de service worker. Le service worker doit être sur la même origine que le document qui enregistre le {{domxref ("ServiceWorker")}}.

-

Note: Cette fonctionnalité est disponible dans Web Workers.

+

Note : Cette fonctionnalité est disponible dans Web Workers.

-

Syntaxe

+

Syntaxe

-
serviceWorkerRegistration.scope
+
serviceWorkerRegistration.scope

Spécifications

diff --git a/files/fr/web/api/serviceworkerregistration/shownotification/index.html b/files/fr/web/api/serviceworkerregistration/shownotification/index.html index d65ab4a999..fa1c3dfab1 100644 --- a/files/fr/web/api/serviceworkerregistration/shownotification/index.html +++ b/files/fr/web/api/serviceworkerregistration/shownotification/index.html @@ -14,10 +14,10 @@ translation_of: Web/API/ServiceWorkerRegistration/showNotification ---

{{APIRef("Service Workers API")}}

-

La méthode showNotification() de l'interface {{domxref("ServiceWorkerRegistration")}} crée une notification dans un service worker actif.

+

La méthode showNotification() de l'interface {{domxref("ServiceWorkerRegistration")}} crée une notification dans un service worker actif.

-

Note: Cette fonctionnalité est disponible dans les Web Workers.

+

Note : Cette fonctionnalité est disponible dans les Web Workers.

Syntaxe

-- cgit v1.2.3-54-g00ecf
SpécificationStatutCommentaireSpécificationStatutCommentaire
{{SpecName('Service Workers', '#service-worker-registration-active-attribute', 'ServiceWorkerRegistration.active')}}