From 45349bf2ffdc461e76cbbbd9a030c02e89ff5d07 Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Tue, 28 Mar 2023 15:00:57 +0200
Subject: [PATCH] publish: Update .gitlab/issue_templates/[QA] Ecolyo.md

generated from commit 8feacd82aa519307a577f539abbda5e2744fecfb
---
 ...722c.js => ecolyo.e1fab980cbe90ebdd342.js} | 74 ++++++++++++++-----
 ...0858.js => ecolyo.3b3a89e3a28c000847d6.js} |  2 +-
 index.html                                    |  2 +-
 3 files changed, 59 insertions(+), 19 deletions(-)
 rename 4/{ecolyo.f1ff5a95cac6b2c1722c.js => ecolyo.e1fab980cbe90ebdd342.js} (98%)
 rename app/{ecolyo.81e411b86b02f1b10858.js => ecolyo.3b3a89e3a28c000847d6.js} (99%)

diff --git a/4/ecolyo.f1ff5a95cac6b2c1722c.js b/4/ecolyo.e1fab980cbe90ebdd342.js
similarity index 98%
rename from 4/ecolyo.f1ff5a95cac6b2c1722c.js
rename to 4/ecolyo.e1fab980cbe90ebdd342.js
index e7b99193f..20d6b88eb 100644
--- a/4/ecolyo.f1ff5a95cac6b2c1722c.js
+++ b/4/ecolyo.e1fab980cbe90ebdd342.js
@@ -2005,37 +2005,37 @@ var OptionsView = function OptionsView() {
   }
 
   function _checkPermission() {
-    _checkPermission = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
+    _checkPermission = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
       var permission;
-      return _regenerator.default.wrap(function _callee3$(_context3) {
+      return _regenerator.default.wrap(function _callee4$(_context4) {
         while (1) {
-          switch (_context3.prev = _context3.next) {
+          switch (_context4.prev = _context4.next) {
             case 0:
-              _context3.next = 2;
+              _context4.next = 2;
               return navigator.permissions.query({
                 name: 'notifications'
               });
 
             case 2:
-              permission = _context3.sent;
+              permission = _context4.sent;
 
               if (permission.state === 'prompt') {
                 console.log('prompt');
               }
 
-              return _context3.abrupt("return");
+              return _context4.abrupt("return");
 
             case 5:
             case "end":
-              return _context3.stop();
+              return _context4.stop();
           }
         }
-      }, _callee3);
+      }, _callee4);
     }));
     return _checkPermission.apply(this, arguments);
   }
 
-  var action = /*#__PURE__*/function () {
+  var requestNotification = /*#__PURE__*/function () {
     var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
       return _regenerator.default.wrap(function _callee$(_context) {
         while (1) {
@@ -2055,7 +2055,7 @@ var OptionsView = function OptionsView() {
       }, _callee);
     }));
 
-    return function action() {
+    return function requestNotification() {
       return _ref.apply(this, arguments);
     };
   }();
@@ -2068,9 +2068,8 @@ var OptionsView = function OptionsView() {
   }), /*#__PURE__*/_react.default.createElement(_Content.default, {
     height: headerHeight
   }, /*#__PURE__*/_react.default.createElement(_ProfileTypeOptions.default, null), /*#__PURE__*/_react.default.createElement(_ExportData.default, null), /*#__PURE__*/_react.default.createElement(_ReportOptions.default, null), /*#__PURE__*/_react.default.createElement("button", {
-    onClick: action
+    onClick: requestNotification
   }, "REQUEST"), /*#__PURE__*/_react.default.createElement("button", {
-    id: "doIt",
     onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
       return _regenerator.default.wrap(function _callee2$(_context2) {
         while (1) {
@@ -2084,7 +2083,7 @@ var OptionsView = function OptionsView() {
               _context2.prev = 1;
               console.log('api badge supported');
               _context2.next = 5;
-              return navigator.setAppBadge(42);
+              return navigator.setAppBadge(2);
 
             case 5:
               _context2.next = 10;
@@ -2093,8 +2092,7 @@ var OptionsView = function OptionsView() {
             case 7:
               _context2.prev = 7;
               _context2.t0 = _context2["catch"](1);
-              console.log(_context2.t0); // The badge is not supported, or the user has prevented the app
-              // from setting a badge.
+              console.log(_context2.t0); // The badge is not supported, or the user has prevented the app from setting a badge.
 
             case 10:
               _context2.next = 13;
@@ -2111,14 +2109,56 @@ var OptionsView = function OptionsView() {
       }, _callee2, null, [[1, 7]]);
     }))
   }, "SET BADGE"), /*#__PURE__*/_react.default.createElement("button", {
+    onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
+      return _regenerator.default.wrap(function _callee3$(_context3) {
+        while (1) {
+          switch (_context3.prev = _context3.next) {
+            case 0:
+              if (!('clearAppBadge' in navigator)) {
+                _context3.next = 12;
+                break;
+              }
+
+              _context3.prev = 1;
+              console.log('api badge supported');
+              _context3.next = 5;
+              return navigator.clearAppBadge();
+
+            case 5:
+              _context3.next = 10;
+              break;
+
+            case 7:
+              _context3.prev = 7;
+              _context3.t0 = _context3["catch"](1);
+              console.log(_context3.t0); // The badge is not supported, or the user has prevented the app from setting a badge.
+
+            case 10:
+              _context3.next = 13;
+              break;
+
+            case 12:
+              console.log('api badge not supported');
+
+            case 13:
+            case "end":
+              return _context3.stop();
+          }
+        }
+      }, _callee3, null, [[1, 7]]);
+    }))
+  }, "CLEAR BADGE"), /*#__PURE__*/_react.default.createElement("button", {
     onClick: function onClick() {
       new Notification('Test de notification', {
-        badge: 'badge',
         vibrate: 100,
         body: 'hello world'
       });
     }
-  }, "NOTIFICATION"), /*#__PURE__*/_react.default.createElement(_HelpLink.default, null), /*#__PURE__*/_react.default.createElement(_LegalNoticeLink.default, null), /*#__PURE__*/_react.default.createElement(_GCULink.default, null), /*#__PURE__*/_react.default.createElement(_Accessibility.default, null), /*#__PURE__*/_react.default.createElement(_MatomoOptOut.default, null), /*#__PURE__*/_react.default.createElement("div", {
+  }, "NOTIFICATION"), /*#__PURE__*/_react.default.createElement("button", {
+    onClick: function onClick() {
+      navigator.vibrate(1000);
+    }
+  }, "VIBRATE"), /*#__PURE__*/_react.default.createElement(_HelpLink.default, null), /*#__PURE__*/_react.default.createElement(_LegalNoticeLink.default, null), /*#__PURE__*/_react.default.createElement(_GCULink.default, null), /*#__PURE__*/_react.default.createElement(_Accessibility.default, null), /*#__PURE__*/_react.default.createElement(_MatomoOptOut.default, null), /*#__PURE__*/_react.default.createElement("div", {
     className: "parameters-logos"
   }, /*#__PURE__*/_react.default.createElement("img", {
     src: _logos_partenaires.default,
diff --git a/app/ecolyo.81e411b86b02f1b10858.js b/app/ecolyo.3b3a89e3a28c000847d6.js
similarity index 99%
rename from app/ecolyo.81e411b86b02f1b10858.js
rename to app/ecolyo.3b3a89e3a28c000847d6.js
index 5b413eec4..5ea9ed9f2 100644
--- a/app/ecolyo.81e411b86b02f1b10858.js
+++ b/app/ecolyo.3b3a89e3a28c000847d6.js
@@ -64,7 +64,7 @@
 /******/
 /******/ 	// script path function
 /******/ 	function jsonpScriptSrc(chunkId) {
-/******/ 		return __webpack_require__.p + "" + ({}[chunkId]||chunkId) + "/ecolyo." + {"1":"c44aefc530d1de68ee3f","3":"673e8ddd696663d6ffcf","4":"f1ff5a95cac6b2c1722c","5":"82bfea9d56ce3943d256","6":"68590aa155e034150cca","7":"d2a6fc631880361b47a0","8":"5a104e5906433ba909f2","9":"d4e0f8345c64c54574af"}[chunkId] + ".js"
+/******/ 		return __webpack_require__.p + "" + ({}[chunkId]||chunkId) + "/ecolyo." + {"1":"c44aefc530d1de68ee3f","3":"673e8ddd696663d6ffcf","4":"e1fab980cbe90ebdd342","5":"82bfea9d56ce3943d256","6":"68590aa155e034150cca","7":"d2a6fc631880361b47a0","8":"5a104e5906433ba909f2","9":"d4e0f8345c64c54574af"}[chunkId] + ".js"
 /******/ 	}
 /******/
 /******/ 	// The require function
diff --git a/index.html b/index.html
index e9630d2d0..0567cc954 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="vendors/ecolyo.8db661a341ead8755066.js"></script><script src="app/ecolyo.81e411b86b02f1b10858.js"></script></div></body></html>
\ No newline at end of file
+<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><!-- PWA Colors --><meta name="theme-color" content="#343641"><meta name="background-color" content="#121212">{{.ThemeCSS}} {{.CozyBar}}<script src="//{{.Domain}}/assets/js/piwik.js"></script></head><body><div role="application" class="application" data-cozy="{{.CozyData}}"><script src="vendors/ecolyo.8db661a341ead8755066.js"></script><script src="app/ecolyo.3b3a89e3a28c000847d6.js"></script></div></body></html>
\ No newline at end of file
-- 
GitLab