diff --git a/app/ecolyo.212030b1e23ec80acc05.js b/app/ecolyo.8c7ed150c6b08113dd45.js similarity index 99% rename from app/ecolyo.212030b1e23ec80acc05.js rename to app/ecolyo.8c7ed150c6b08113dd45.js index 0394d0ba93b44c31ffa1f84a879f316a63f371cd..230240799e6f93a013fc03f6135f4c7997126b09 100644 --- a/app/ecolyo.212030b1e23ec80acc05.js +++ b/app/ecolyo.8c7ed150c6b08113dd45.js @@ -35061,12 +35061,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o = function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } var MigrationService = /*#__PURE__*/function () { - function MigrationService(_client, _setinitStepError) { + function MigrationService(_client, _setInitStepError) { (0, _classCallCheck2.default)(this, MigrationService); (0, _defineProperty2.default)(this, "_client", void 0); - (0, _defineProperty2.default)(this, "_setinitStepError", void 0); + (0, _defineProperty2.default)(this, "_setInitStepError", void 0); this._client = _client; - this._setinitStepError = _setinitStepError; + this._setInitStepError = _setInitStepError; } /** * Return schema version @@ -35180,7 +35180,7 @@ var MigrationService = /*#__PURE__*/function () { } // Error in case of second failure - this._setinitStepError(_initialisationSteps.InitStepsErrors.MIGRATION_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.MIGRATION_ERROR); _logger.default.error((0, _migration.migrationLog)(migration, result)); @@ -38151,14 +38151,14 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len var logStack = _cozyLogger.default.namespace('initializationService'); var InitializationService = /*#__PURE__*/function () { - function InitializationService(_client, _setinitStep, _setinitStepError) { + function InitializationService(_client, _setInitStep, _setInitStepError) { (0, _classCallCheck2.default)(this, InitializationService); (0, _defineProperty2.default)(this, "_client", void 0); - (0, _defineProperty2.default)(this, "_setinitStep", void 0); - (0, _defineProperty2.default)(this, "_setinitStepError", void 0); + (0, _defineProperty2.default)(this, "_setInitStep", void 0); + (0, _defineProperty2.default)(this, "_setInitStepError", void 0); this._client = _client; - this._setinitStep = _setinitStep; - this._setinitStepError = _setinitStepError; + this._setInitStep = _setInitStep; + this._setInitStepError = _setInitStepError; } /** * Check if profil exist @@ -38181,7 +38181,7 @@ var InitializationService = /*#__PURE__*/function () { profileService = new _profile.default(this._client); _context.prev = 1; - this._setinitStep(_initialisationSteps.InitSteps.PROFILE); + this._setInitStep(_initialisationSteps.InitSteps.PROFILE); _context.next = 5; return profileService.getProfile(); @@ -38212,7 +38212,7 @@ var InitializationService = /*#__PURE__*/function () { break; case 15: - this._setinitStepError(_initialisationSteps.InitStepsErrors.PROFILE_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.PROFILE_ERROR); throw new Error('initProfile: Profile not created'); @@ -38239,7 +38239,7 @@ var InitializationService = /*#__PURE__*/function () { _context.prev = 26; _context.t0 = _context["catch"](1); - this._setinitStepError(_initialisationSteps.InitStepsErrors.PROFILE_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.PROFILE_ERROR); errorMessage = "Initialization error - initProfile: :".concat(JSON.stringify(_context.t0)); logStack('error', errorMessage); @@ -38295,7 +38295,7 @@ var InitializationService = /*#__PURE__*/function () { _context2.prev = 9; _context2.t0 = _context2["catch"](1); - this._setinitStepError(_initialisationSteps.InitStepsErrors.PROFILETYPE_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.PROFILETYPE_ERROR); errorMessage = "Initialization error - initProfileType: ".concat(JSON.stringify(_context2.t0)); logStack('error', errorMessage); @@ -38344,7 +38344,7 @@ var InitializationService = /*#__PURE__*/function () { _context3.prev = 9; _context3.t0 = _context3["catch"](1); - this._setinitStepError(_initialisationSteps.InitStepsErrors.PROFILETYPE_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.PROFILETYPE_ERROR); errorMessage = "Initialization error - initProfileEcogesture: ".concat(JSON.stringify(_context3.t0)); logStack('error', errorMessage); @@ -38378,7 +38378,7 @@ var InitializationService = /*#__PURE__*/function () { while (1) { switch (_context4.prev = _context4.next) { case 0: - this._setinitStep(_initialisationSteps.InitSteps.ECOGESTURE); + this._setInitStep(_initialisationSteps.InitSteps.ECOGESTURE); hashEcogestureType = (0, _hash.hashFile)(_ecogestureData.default); ecogestureService = new _ecogesture2.default(this._client); // Populate data if none ecogesture exists @@ -38443,7 +38443,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.ECOGESTURE_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.ECOGESTURE_ERROR); throw new Error('initEcogesture: Created ecogesture type entities does not match'); @@ -38456,7 +38456,7 @@ var InitializationService = /*#__PURE__*/function () { _context4.prev = 35; _context4.t1 = _context4["catch"](7); - this._setinitStepError(_initialisationSteps.InitStepsErrors.ECOGESTURE_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.ECOGESTURE_ERROR); errorMessage = "Initialization error - initEcogesture: ".concat(JSON.stringify(_context4.t1)); logStack('error', errorMessage); @@ -38531,7 +38531,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.ECOGESTURE_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.ECOGESTURE_ERROR); throw new Error('initEcogesture: Created ecogesture type entities does not match'); @@ -38544,7 +38544,7 @@ var InitializationService = /*#__PURE__*/function () { _context4.prev = 75; _context4.t3 = _context4["catch"](44); - this._setinitStepError(_initialisationSteps.InitStepsErrors.ECOGESTURE_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.ECOGESTURE_ERROR); _errorMessage = "Initialization error - initEcogesture: ".concat(JSON.stringify(_context4.t3)); logStack('error', _errorMessage); @@ -38688,7 +38688,7 @@ var InitializationService = /*#__PURE__*/function () { while (1) { switch (_context6.prev = _context6.next) { case 0: - this._setinitStep(_initialisationSteps.InitSteps.CHALLENGES); + this._setInitStep(_initialisationSteps.InitSteps.CHALLENGES); challengeHash = (0, _hash.hashFile)(_challengeEntity2.default); challengeService = new _challenge.default(this._client); // Populate data if none challengeEntity exists @@ -38753,7 +38753,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); throw new Error('initChallengeEntity: Created challenge entities does not match'); @@ -38766,7 +38766,7 @@ var InitializationService = /*#__PURE__*/function () { _context6.prev = 35; _context6.t1 = _context6["catch"](7); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); errorMessage = "Initialization error - initChallengeEntity: ".concat(JSON.stringify(_context6.t1)); logStack('error', errorMessage); @@ -38836,7 +38836,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); throw new Error('initChallengeEntity: Created challenge entities does not match'); @@ -38849,7 +38849,7 @@ var InitializationService = /*#__PURE__*/function () { _context6.prev = 74; _context6.t3 = _context6["catch"](44); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); _errorMessage2 = "Initialization error - initChallengeEntity: ".concat(JSON.stringify(_context6.t3)); logStack('error', _errorMessage2); @@ -38956,7 +38956,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); throw new Error('initDuelEntity: Created duel entities does not match'); @@ -38969,7 +38969,7 @@ var InitializationService = /*#__PURE__*/function () { _context7.prev = 34; _context7.t1 = _context7["catch"](6); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); errorMessage = "Initialization error - initDuelEntity: ".concat(JSON.stringify(_context7.t1)); logStack('error', errorMessage); @@ -39039,7 +39039,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); throw new Error('initDuelEntity: Created duel entities does not match'); @@ -39052,7 +39052,7 @@ var InitializationService = /*#__PURE__*/function () { _context7.prev = 73; _context7.t3 = _context7["catch"](43); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); _errorMessage3 = "Initialization error - initDuelEntity: ".concat(JSON.stringify(_context7.t3)); logStack('error', _errorMessage3); @@ -39159,7 +39159,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); throw new Error('initQuizEntity: Created quiz entities does not match'); @@ -39172,7 +39172,7 @@ var InitializationService = /*#__PURE__*/function () { _context8.prev = 34; _context8.t1 = _context8["catch"](6); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); errorMessage = "Initialization error - initQuizEntity: ".concat(JSON.stringify(_context8.t1)); logStack('error', errorMessage); @@ -39242,7 +39242,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); throw new Error('initQuizEntity: Created quiz entities does not match'); @@ -39255,7 +39255,7 @@ var InitializationService = /*#__PURE__*/function () { _context8.prev = 73; _context8.t3 = _context8["catch"](43); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); _errorMessage4 = "Initialization error - initQuizEntity: ".concat(JSON.stringify(_context8.t3)); logStack('error', _errorMessage4); @@ -39362,7 +39362,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); throw new Error('initExplorationEntity: Created exploration entities does not match'); @@ -39375,7 +39375,7 @@ var InitializationService = /*#__PURE__*/function () { _context9.prev = 34; _context9.t1 = _context9["catch"](6); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); errorMessage = "Initialization error - initExplorationEntity: ".concat(JSON.stringify(_context9.t1)); logStack('error', errorMessage); @@ -39445,7 +39445,7 @@ var InitializationService = /*#__PURE__*/function () { break; } - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); throw new Error('initExplorationEntity: Created exploration entities does not match'); @@ -39458,7 +39458,7 @@ var InitializationService = /*#__PURE__*/function () { _context9.prev = 73; _context9.t3 = _context9["catch"](43); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); _errorMessage5 = "Initialization error - initExplorationEntity: ".concat(JSON.stringify(_context9.t3)); logStack('error', _errorMessage5); @@ -39530,7 +39530,7 @@ var InitializationService = /*#__PURE__*/function () { _context10.prev = 10; _context10.t0 = _context10["catch"](0); - this._setinitStepError(_initialisationSteps.InitStepsErrors.ANALYSIS_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.ANALYSIS_ERROR); errorMessage = "Initialization error - initAnalysis: ".concat(JSON.stringify(_context10.t0)); logStack('error', errorMessage); @@ -39587,7 +39587,7 @@ var InitializationService = /*#__PURE__*/function () { return _context11.abrupt("return", fluidtypes); case 10: - this._setinitStepError(_initialisationSteps.InitStepsErrors.CONSOS_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CONSOS_ERROR); throw new Error('initFluidTypes: FluidTypes not found'); @@ -39599,7 +39599,7 @@ var InitializationService = /*#__PURE__*/function () { _context11.prev = 14; _context11.t0 = _context11["catch"](1); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CONSOS_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CONSOS_ERROR); _logger.default.error('Initialization error - : ', _context11.t0); @@ -39643,7 +39643,7 @@ var InitializationService = /*#__PURE__*/function () { fs = new _fluid2.default(this._client); _context12.prev = 1; - this._setinitStep(_initialisationSteps.InitSteps.CONSOS); + this._setInitStep(_initialisationSteps.InitSteps.CONSOS); _context12.next = 5; return fs.getFluidStatus(); @@ -39661,7 +39661,7 @@ var InitializationService = /*#__PURE__*/function () { return _context12.abrupt("return", fluidStatus); case 11: - this._setinitStepError(_initialisationSteps.InitStepsErrors.CONSOS_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CONSOS_ERROR); throw new Error('initFluidStatus: fluidStatus not found'); @@ -39673,7 +39673,7 @@ var InitializationService = /*#__PURE__*/function () { _context12.prev = 15; _context12.t0 = _context12["catch"](1); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CONSOS_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CONSOS_ERROR); errorMessage = "Initialization error - initFluidStatus: ".concat(JSON.stringify(_context12.t0)); logStack('error', errorMessage); @@ -39730,7 +39730,7 @@ var InitializationService = /*#__PURE__*/function () { return _context13.abrupt("return", userChallengeList); case 10: - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); throw new Error('initUserChallenges: userChallengeList not found'); @@ -39742,7 +39742,7 @@ var InitializationService = /*#__PURE__*/function () { _context13.prev = 14; _context13.t0 = _context13["catch"](1); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); errorMessage = "Initialization error - initUserChallenges: ".concat(JSON.stringify(_context13.t0)); logStack('error', errorMessage); @@ -39800,7 +39800,7 @@ var InitializationService = /*#__PURE__*/function () { _context14.prev = 10; _context14.t0 = _context14["catch"](1); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CHALLENGES_ERROR); errorMessage = "Initialization error - : ".concat(JSON.stringify(_context14.t0)); logStack('error', errorMessage); @@ -39839,7 +39839,7 @@ var InitializationService = /*#__PURE__*/function () { }; _context15.prev = 1; - this._setinitStep(_initialisationSteps.InitSteps.CONSENT); + this._setInitStep(_initialisationSteps.InitSteps.CONSENT); termService = new _terms.default(this._client); _context15.next = 6; @@ -39920,7 +39920,7 @@ var InitializationService = /*#__PURE__*/function () { _context15.prev = 30; _context15.t0 = _context15["catch"](1); - this._setinitStepError(_initialisationSteps.InitStepsErrors.CONSENT_ERROR); + this._setInitStepError(_initialisationSteps.InitStepsErrors.CONSENT_ERROR); errorMessage = "Initialization error - initConsent: ".concat(JSON.stringify(_context15.t0)); logStack('error', errorMessage); diff --git a/index.html b/index.html index a6dd38d7da758252fb684ae1212e9c5f418ccff0..9eb83858e16b6ce1443dbe42292c70f52a646516 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.18c101a0fa585f93c419.js"></script><script src="app/ecolyo.212030b1e23ec80acc05.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.18c101a0fa585f93c419.js"></script><script src="app/ecolyo.8c7ed150c6b08113dd45.js"></script></div></body></html> \ No newline at end of file