From 0d1e712991d7523a584d6aeb6396d74a189c820c Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Wed, 2 Oct 2024 11:30:24 +0200 Subject: [PATCH] publish: chore(logs): add console.group generated from commit 6499c09e635005e86a9f59f3d39bd07f6a79d424 --- ...93d2.js => ecolyo.f41dd05f4129c27e9c2b.js} | 89 ++++++++++--------- index.html | 2 +- 2 files changed, 47 insertions(+), 44 deletions(-) rename app/{ecolyo.89898c035f29fc2893d2.js => ecolyo.f41dd05f4129c27e9c2b.js} (99%) diff --git a/app/ecolyo.89898c035f29fc2893d2.js b/app/ecolyo.f41dd05f4129c27e9c2b.js similarity index 99% rename from app/ecolyo.89898c035f29fc2893d2.js rename to app/ecolyo.f41dd05f4129c27e9c2b.js index 87282e032..f9e5d8b6d 100644 --- a/app/ecolyo.89898c035f29fc2893d2.js +++ b/app/ecolyo.f41dd05f4129c27e9c2b.js @@ -11037,31 +11037,33 @@ var SplashRoot = function SplashRoot(_ref) { name: 'Initialize app' }); _context7.prev = 6; - _context7.next = 9; + console.groupCollapsed('Initialization logs'); + // init Terms + _context7.next = 10; return initializationService.initConsent(); - case 9: + case 10: termsStatus = _context7.sent; if (subscribed) dispatch((0, _global.updateTermsStatus)(termsStatus)); // Init fluidPrices - _context7.next = 13; + _context7.next = 14; return initializationService.initFluidPrices(); - case 13: - _context7.next = 15; + case 14: + _context7.next = 16; return initializationService.initProfile(); - case 15: + case 16: profile = _context7.sent; - _context7.next = 18; + _context7.next = 19; return initializationService.initProfileType(); - case 18: + case 19: profileType = _context7.sent; - _context7.next = 21; + _context7.next = 22; return initializationService.initProfileEcogesture(); - case 21: + case 22: profileEcogesture = _context7.sent; - _context7.next = 24; + _context7.next = 25; return ms.runMigrations(_migration.migrations); - case 24: + case 25: migrationsResult = _context7.sent; // Init last release notes when they exist dispatch((0, _global.showReleaseNotes)({ @@ -11070,13 +11072,13 @@ var SplashRoot = function SplashRoot(_ref) { show: migrationsResult.show })); if (!(subscribed && profile)) { - _context7.next = 45; + _context7.next = 46; break; } setValidExploration(_enums.UserExplorationID.EXPLORATION007); - _context7.next = 30; + _context7.next = 31; return Promise.all([initializationService.initDuelEntity(profile.duelHash), initializationService.initQuizEntity(profile.quizHash), initializationService.initExplorationEntity(profile.challengeHash), initializationService.initChallengeEntity(profile.explorationHash), initializationService.initAnalysis(profile)]); - case 30: + case 31: _yield$Promise$all = _context7.sent; _yield$Promise$all2 = (0, _slicedToArray2.default)(_yield$Promise$all, 5); duelHash = _yield$Promise$all2[0]; @@ -11095,20 +11097,20 @@ var SplashRoot = function SplashRoot(_ref) { dispatch((0, _profile.updateProfile)(updatedProfile)); dispatch((0, _analysis.setAnalysisMonth)(analysisResult.monthlyAnalysisDate)); if (!profileType) { - _context7.next = 43; + _context7.next = 44; break; } - _context7.next = 43; + _context7.next = 44; return loadProfileType(profileType); - case 43: + case 44: if (profileEcogesture) { dispatch((0, _profileEcogesture.setProfileEcogesture)(profileEcogesture)); } dispatch((0, _global.toggleAnalysisNotification)(!profile.haveSeenLastAnalysis)); - case 45: - _context7.next = 47; + case 46: + _context7.next = 48; return initializationService.initFluidStatus(); - case 47: + case 48: fluidStatus = _context7.sent; if (subscribed) { dispatch((0, _global.setFluidStatus)(fluidStatus)); @@ -11128,12 +11130,12 @@ var SplashRoot = function SplashRoot(_ref) { } } // Init Challenge - _context7.next = 51; + _context7.next = 52; return initializationService.initUserChallenges(fluidStatus); - case 51: + case 52: userChallengeList = _context7.sent; if (!subscribed) { - _context7.next = 78; + _context7.next = 79; break; } dispatch((0, _challenge2.setUserChallengeList)(userChallengeList)); @@ -11145,18 +11147,18 @@ var SplashRoot = function SplashRoot(_ref) { } // Set action to notification if action is accomplished if (!(((_filteredCurrentOngoi2 = filteredCurrentOngoingChallenge[0]) === null || _filteredCurrentOngoi2 === void 0 ? void 0 : _filteredCurrentOngoi2.action.state) === _enums.UserActionState.ONGOING)) { - _context7.next = 62; + _context7.next = 63; break; } actionService = new _action.default(client); - _context7.next = 60; + _context7.next = 61; return actionService.isActionDone(filteredCurrentOngoingChallenge[0]); - case 60: + case 61: updatedUserChallenge = _context7.sent; if (updatedUserChallenge) { dispatch((0, _challenge2.updateUserChallengeList)(updatedUserChallenge)); } - case 62: + case 63: // Set Notification if action state is notification if (((_filteredCurrentOngoi3 = filteredCurrentOngoingChallenge[0]) === null || _filteredCurrentOngoi3 === void 0 ? void 0 : _filteredCurrentOngoi3.action.state) === _enums.UserActionState.NOTIFICATION) { dispatch((0, _global.toggleChallengeActionNotification)(true)); @@ -11165,17 +11167,17 @@ var SplashRoot = function SplashRoot(_ref) { return challenge.state === _enums.UserChallengeState.DUEL; }); if (!(((_filteredCurrentDuelC = filteredCurrentDuelChallenge[0]) === null || _filteredCurrentDuelC === void 0 ? void 0 : _filteredCurrentDuelC.duel.state) === _enums.UserDuelState.ONGOING)) { - _context7.next = 78; + _context7.next = 79; break; } - _context7.next = 67; + _context7.next = 68; return initializationService.initDuelProgress(filteredCurrentDuelChallenge[0]); - case 67: + case 68: _yield$initialization = _context7.sent; _updatedUserChallenge = _yield$initialization.updatedUserChallenge; dataloads = _yield$initialization.dataloads; if (!subscribed) { - _context7.next = 78; + _context7.next = 79; break; } dispatch((0, _challenge2.setChallengeConsumption)({ @@ -11184,13 +11186,13 @@ var SplashRoot = function SplashRoot(_ref) { })); // Check is duel is done and display notification challengeService = new _challenge.default(client); - _context7.next = 75; + _context7.next = 76; return challengeService.isChallengeDone(_updatedUserChallenge, dataloads); - case 75: + case 76: _yield$challengeServi = _context7.sent; isDone = _yield$challengeServi.isDone; dispatch((0, _global.toggleChallengeDuelNotification)(isDone)); - case 78: + case 79: /** * Load custom popup and partners info synchronously so these treatments don't block the loading */ @@ -11251,26 +11253,27 @@ var SplashRoot = function SplashRoot(_ref) { }); }); } - _context7.next = 88; + _context7.next = 89; break; - case 83: - _context7.prev = 83; + case 84: + _context7.prev = 84; _context7.t0 = _context7["catch"](6); if (_context7.t0.message === 'Failed to fetch' && !initStepErrors) { setInitStepErrors(_models.InitStepsErrors.UNKNOWN_ERROR); } _logger.default.error("[Initialization] Error : ".concat(_context7.t0)); Sentry.captureException(_context7.t0); - case 88: - _context7.prev = 88; + case 89: + _context7.prev = 89; + console.groupEnd(); transaction.finish(); - return _context7.finish(88); - case 91: + return _context7.finish(89); + case 93: case "end": return _context7.stop(); } } - }, _callee7, null, [[6, 83, 88, 91]]); + }, _callee7, null, [[6, 84, 89, 93]]); })); return _loadData.apply(this, arguments); } diff --git a/index.html b/index.html index c2c05fc36..fad8ad9f0 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.051ab77aa284511d3340.js"></script><script src="app/ecolyo.89898c035f29fc2893d2.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.051ab77aa284511d3340.js"></script><script src="app/ecolyo.f41dd05f4129c27e9c2b.js"></script></div></body></html> \ No newline at end of file -- GitLab