diff --git a/app/ecolyo.bbf6af314cfbc61e2217.js b/app/ecolyo.4301cd6438f7ffd3d8e4.js similarity index 100% rename from app/ecolyo.bbf6af314cfbc61e2217.js rename to app/ecolyo.4301cd6438f7ffd3d8e4.js index f67d915cc5ed49d1284c5dc1aaa685b8a551d260..b414828df840a77013780af054e280e845d01b4b 100644 --- a/app/ecolyo.bbf6af314cfbc61e2217.js +++ b/app/ecolyo.4301cd6438f7ffd3d8e4.js @@ -15005,11 +15005,12 @@ var ActionBegin = function ActionBegin(_ref) { var action = _ref.action, setShowList = _ref.setShowList, userChallenge = _ref.userChallenge; - var client = (0, _cozyClient.useClient)(); var _useI18n = (0, _I18n.useI18n)(), t = _useI18n.t; + var client = (0, _cozyClient.useClient)(); + var _useAppSelector = (0, _hooks.useAppSelector)(function (state) { return state.ecolyo; }), @@ -28630,11 +28631,11 @@ __webpack_require__("Ge/O"); var QuizBegin = function QuizBegin(_ref) { var userChallenge = _ref.userChallenge; - var client = (0, _cozyClient.useClient)(); var _useI18n = (0, _I18n.useI18n)(), t = _useI18n.t; + var client = (0, _cozyClient.useClient)(); var dispatch = (0, _hooks.useAppDispatch)(); var launchQuiz = /*#__PURE__*/function () { @@ -33018,6 +33019,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && var QuizQuestion = function QuizQuestion(_ref) { var userChallenge = _ref.userChallenge; + var client = (0, _cozyClient.useClient)(); + + var _useAppSelector = (0, _hooks.useAppSelector)(function (state) { + return state.ecolyo.global; + }), + fluidTypes = _useAppSelector.fluidTypes; + + var navigate = (0, _reactRouterDom.useNavigate)(); var questionsIsLocked = userChallenge.quiz.questions.some(function (answer) { return answer.result == 0; }); @@ -33037,15 +33046,6 @@ var QuizQuestion = function QuizQuestion(_ref) { customQuestionLoading = _useState6[0], setCustomQuestionLoading = _useState6[1]; - var client = (0, _cozyClient.useClient)(); - - var _useAppSelector = (0, _hooks.useAppSelector)(function (state) { - return state.ecolyo.global; - }), - fluidTypes = _useAppSelector.fluidTypes; - - var navigate = (0, _reactRouterDom.useNavigate)(); - var goBack = function goBack() { navigate('/challenges'); }; diff --git a/index.html b/index.html index ae17918d15e3f6383550364b5d6062e7305f9991..73d40f45853ca2d3c10af70476c8ee32c282b080 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.fbf1f65c47dc10085503.js"></script><script src="app/ecolyo.bbf6af314cfbc61e2217.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.fbf1f65c47dc10085503.js"></script><script src="app/ecolyo.4301cd6438f7ffd3d8e4.js"></script></div></body></html> \ No newline at end of file