1052 lines
118 KiB
JavaScript
1052 lines
118 KiB
JavaScript
/******/ (function(modules) { // webpackBootstrap
|
|
/******/ // The module cache
|
|
/******/ var installedModules = {};
|
|
/******/
|
|
/******/ // The require function
|
|
/******/ function __webpack_require__(moduleId) {
|
|
/******/
|
|
/******/ // Check if module is in cache
|
|
/******/ if(installedModules[moduleId]) {
|
|
/******/ return installedModules[moduleId].exports;
|
|
/******/ }
|
|
/******/ // Create a new module (and put it into the cache)
|
|
/******/ var module = installedModules[moduleId] = {
|
|
/******/ i: moduleId,
|
|
/******/ l: false,
|
|
/******/ exports: {}
|
|
/******/ };
|
|
/******/
|
|
/******/ // Execute the module function
|
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
/******/
|
|
/******/ // Flag the module as loaded
|
|
/******/ module.l = true;
|
|
/******/
|
|
/******/ // Return the exports of the module
|
|
/******/ return module.exports;
|
|
/******/ }
|
|
/******/
|
|
/******/
|
|
/******/ // expose the modules object (__webpack_modules__)
|
|
/******/ __webpack_require__.m = modules;
|
|
/******/
|
|
/******/ // expose the module cache
|
|
/******/ __webpack_require__.c = installedModules;
|
|
/******/
|
|
/******/ // define getter function for harmony exports
|
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
/******/ }
|
|
/******/ };
|
|
/******/
|
|
/******/ // define __esModule on exports
|
|
/******/ __webpack_require__.r = function(exports) {
|
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
/******/ }
|
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
/******/ };
|
|
/******/
|
|
/******/ // create a fake namespace object
|
|
/******/ // mode & 1: value is a module id, require it
|
|
/******/ // mode & 2: merge all properties of value into the ns
|
|
/******/ // mode & 4: return value when already ns object
|
|
/******/ // mode & 8|1: behave like require
|
|
/******/ __webpack_require__.t = function(value, mode) {
|
|
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
/******/ if(mode & 8) return value;
|
|
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
/******/ var ns = Object.create(null);
|
|
/******/ __webpack_require__.r(ns);
|
|
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
/******/ return ns;
|
|
/******/ };
|
|
/******/
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
/******/ __webpack_require__.n = function(module) {
|
|
/******/ var getter = module && module.__esModule ?
|
|
/******/ function getDefault() { return module['default']; } :
|
|
/******/ function getModuleExports() { return module; };
|
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
/******/ return getter;
|
|
/******/ };
|
|
/******/
|
|
/******/ // Object.prototype.hasOwnProperty.call
|
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
/******/
|
|
/******/ // __webpack_public_path__
|
|
/******/ __webpack_require__.p = "";
|
|
/******/
|
|
/******/
|
|
/******/ // Load entry module and return exports
|
|
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.js");
|
|
/******/ })
|
|
/************************************************************************/
|
|
/******/ ({
|
|
|
|
/***/ "../config/instance.js":
|
|
/*!*****************************!*\
|
|
!*** ../config/instance.js ***!
|
|
\*****************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _module$exports;
|
|
|
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
|
|
var users = __webpack_require__(/*! ./users */ "../config/users.js");
|
|
|
|
var questionnaires = __webpack_require__(/*! ./questionnaires */ "../config/questionnaires.js");
|
|
|
|
module.exports = (_module$exports = {
|
|
apiUrl: "http://localhost:3000/api",
|
|
siteUrl: "http://localhost:8080",
|
|
adminName: "Fabrice",
|
|
adminEmail: "dev@wikilerni.com",
|
|
senderName: "WikiLerni (local)",
|
|
senderEmail: "bonjour@wikilerni.com",
|
|
adminLang: "fr",
|
|
theme: "wikilerni",
|
|
// le thème utilisé (dans /views) pour générer les pages HTML. Contient ses propres fichiers de configuration.
|
|
availableLangs: ["fr"],
|
|
// Languages in which the site is available. The first one is the default one.
|
|
siteName: "WikiLerni (local)",
|
|
beginCodeGodfather: "WL",
|
|
// case-sensitive and can't contain "@" !
|
|
cronTimingAlertInSeconde: 120,
|
|
// for logs
|
|
responseTimingAlertInSeconde: 3,
|
|
// idem
|
|
tokenSignupValidationTimeInHours: "48h",
|
|
// https://github.com/zeit/ms
|
|
tokenLoginLinkTimeInHours: "1h",
|
|
tokenConnexionMinTimeInHours: "24h",
|
|
tokenConnexionMaxTimeInDays: "180 days",
|
|
tokenLoginChangingTimeInHours: "1h",
|
|
// for email & password changing
|
|
tokenDeleteUserTimeInHours: "1h",
|
|
tokenUnsubscribeLinkTimeInDays: "7 days",
|
|
// token send with subscription's emails
|
|
freeAccountTimingInDays: 10,
|
|
freeAccountExpirationNotificationInDays: 5,
|
|
accountExpirationFirstNotificationInDays: 14,
|
|
accountExpirationSecondNotificationInDays: 5,
|
|
inactiveAccountTimeToDeleteInDays: 180,
|
|
// Questionnaires:
|
|
nbQuestionsMin: 1,
|
|
// minimum number of questions for the questionnaire to be publishable
|
|
nbQuestionsMax: 2,
|
|
// if 0 = not maximum
|
|
nbChoicesMax: 10,
|
|
nbNewQuestionnaires: 10,
|
|
// for RSS, etc.
|
|
hourGiveNewQuestionnaireBegin: 1,
|
|
// in user local time
|
|
hourGiveNewQuestionnaireEnd: 24,
|
|
// idem
|
|
numberNewQuestionnaireAtSameTime: 50,
|
|
// for mass mailing
|
|
minSearchQuestionnaires: 3,
|
|
// Illustrations:
|
|
nbIllustrationsMin: 0,
|
|
nbIllustrationsMax: 1,
|
|
maxIllustrationSizeinOctet: 1000000,
|
|
// pas contrôlé pour l'instant. À revoir.
|
|
mimeTypesForIllustration: ["image/jpg", "image/jpeg", "image/png", "image/gif", "image/png"],
|
|
// -- Upload and resize:
|
|
illustrationsWidthMaxInPx: 400,
|
|
illustrationsMiniaturesWidthMaxInPx: 200,
|
|
// Links:
|
|
nbLinksMin: 1,
|
|
nbLinksMax: 1
|
|
}, _defineProperty(_module$exports, "nbQuestionsMin", questionnaires.nbQuestionsMin), _defineProperty(_module$exports, "nbQuestionsMax", questionnaires.nbQuestionsMax), _defineProperty(_module$exports, "nbChoicesMax", questionnaires.nbChoicesMax), _defineProperty(_module$exports, "passwordMinLength", users.password.minlength), _defineProperty(_module$exports, "dirCacheUsers", users.dirCacheUsers), _defineProperty(_module$exports, "dirCacheUsersAnswers", users.dirCacheUsersAnswers), _defineProperty(_module$exports, "dirCacheQuestionnaires", questionnaires.dirCacheQuestionnaires), _defineProperty(_module$exports, "dirCacheQuestions", questionnaires.dirCacheQuestions), _defineProperty(_module$exports, "dirCacheUsersQuestionnaires", questionnaires.dirCacheUsersQuestionnaires), _defineProperty(_module$exports, "dirHTMLQuestionnaire", questionnaires.dirHTMLQuestionnaire), _defineProperty(_module$exports, "dirWebQuestionnaire", questionnaires.dirWebQuestionnaire), _module$exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../config/matomo.js":
|
|
/*!***************************!*\
|
|
!*** ../config/matomo.js ***!
|
|
\***************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
// Si non utilisé, supprimer l'appel des JS front-end puis recompiler.
|
|
// Revoir comment réorganiser cela sous-forme de module indépendant.
|
|
module.exports = {
|
|
// Stats Matomo :
|
|
matomo: {
|
|
url: "https://stats.le-fab-lab.com/",
|
|
siteId: "5"
|
|
}
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../config/questionnaires.js":
|
|
/*!***********************************!*\
|
|
!*** ../config/questionnaires.js ***!
|
|
\***********************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = {
|
|
// API'routes (after "apiUrl" defined in instance.js)
|
|
questionnaireRoutes: "/questionnaire",
|
|
getQuestionnaireRoutes: "/get",
|
|
previewQuestionnaireRoutes: "/preview",
|
|
publishedQuestionnaireRoutes: "/quiz/",
|
|
saveAnswersRoute: "/answer/",
|
|
getStatsQuestionnaires: "/stats/",
|
|
searchQuestionnairesRoute: "/search",
|
|
getRandomQuestionnairesRoute: "/getrandom",
|
|
searchAdminQuestionnairesRoute: "/searchadmin",
|
|
getListNextQuestionnaires: "/getlistnextquestionnaires/",
|
|
regenerateHTML: "/htmlregenerated",
|
|
// -- questions & choices :
|
|
questionsRoute: "/question/",
|
|
// -- tags :
|
|
tagsSearchRoute: "/tags/search/",
|
|
// -- answers :
|
|
getQuestionnairesWithoutAnswer: "/withoutanswer/user/",
|
|
getPreviousAnswers: "/user/answers/",
|
|
getStatsAnswers: "/user/anwswers/stats/",
|
|
getAdminStats: "/getadminstats/",
|
|
// forms : à compléter avec valeurs par défaut, etc. cf modèle
|
|
Questionnaire: {
|
|
title: {
|
|
maxlength: 255,
|
|
required: true
|
|
},
|
|
slug: {
|
|
maxlength: 150
|
|
},
|
|
// champ requis mais calculé à partir du titre qd vide
|
|
introduction: {
|
|
required: true
|
|
}
|
|
},
|
|
searchQuestionnaires: {
|
|
minlength: 3,
|
|
required: true
|
|
},
|
|
Question: {
|
|
text: {
|
|
maxlength: 255,
|
|
required: true
|
|
},
|
|
rank: {
|
|
required: true,
|
|
min: 1,
|
|
defaultValue: 1
|
|
}
|
|
},
|
|
Choice: {
|
|
text: {
|
|
maxlength: 255,
|
|
required: true
|
|
}
|
|
},
|
|
nbQuestionsMin: 1,
|
|
nbQuestionsMax: 0,
|
|
nbChoicesMax: 10,
|
|
nbTagsMin: 0,
|
|
nbTagsMax: 0,
|
|
// 0 = not max
|
|
// JSON and HTML dir
|
|
dirCacheQuestionnaires: "datas/questionnaires",
|
|
dirCacheQuestions: "datas/questionnaires/questions",
|
|
dirCacheUsersQuestionnaires: "datas/users/questionnaires",
|
|
dirCacheTags: "datas/questionnaires/tags",
|
|
dirHTMLQuestionnaire: "front/public/quiz",
|
|
dirHTMLTags: "front/public/quizs",
|
|
dirWebQuestionnaire: "quiz",
|
|
//pour url page
|
|
dirWebTags: "quizs",
|
|
// idem
|
|
nbRandomResults: 3 // limite les résultat du moteur de recherche quand demande de résultats au hasard
|
|
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../config/users.js":
|
|
/*!**************************!*\
|
|
!*** ../config/users.js ***!
|
|
\**************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = {
|
|
// API'routes (after "apiUrl" defined in instance.js)
|
|
userRoutes: "/user",
|
|
subscribeRoute: "/signup",
|
|
getGodfatherRoute: "/getgodfatherid",
|
|
checkIfIsEmailfreeRoute: "/isemailfree",
|
|
checkSubscribeTokenRoute: "/validation/",
|
|
checkLoginRoute: "/checklogin/",
|
|
connectionRoute: "/login",
|
|
getLoginLinkRoute: "/getloginlink",
|
|
connectionWithLinkRoute: "/checkloginlink",
|
|
getUserInfos: "/get/",
|
|
createUserRoute: "/create",
|
|
validateUserRoute: "/validate/",
|
|
updateUserInfos: "/modify/",
|
|
searchUserRoute: "/search/",
|
|
getGodChilds: "/getgodchilds/",
|
|
checkNewLoginLinkRoute: "/confirmnewlogin/",
|
|
checkDeleteLinkRoute: "/confirmdelete/",
|
|
getPayments: "/payment/getforoneuser/",
|
|
unsubscribeRoute: "/subscription/stop/",
|
|
getAdminStats: "/getadminstats/",
|
|
// forms : à compléter avec valeurs par défaut, etc. cf modèle
|
|
name: {
|
|
maxlength: 70,
|
|
required: true
|
|
},
|
|
email: {
|
|
maxlength: 255,
|
|
required: true
|
|
},
|
|
password: {
|
|
minlength: 8,
|
|
maxlength: 72,
|
|
required: true
|
|
},
|
|
// https://www.npmjs.com/package/bcrypt#security-issues-and-concerns
|
|
newPassword: {
|
|
minlength: 8,
|
|
maxlength: 72
|
|
},
|
|
codeGodfather: {
|
|
maxlength: 255
|
|
},
|
|
cguOk: {
|
|
value: "true",
|
|
required: true
|
|
},
|
|
timeDifferenceMin: -720,
|
|
timeDifferenceMax: 840,
|
|
// JSON dir
|
|
dirCacheUsers: "datas/users",
|
|
dirCacheUsersAnswers: "datas/users/questionnaires/answers"
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../tools/main.js":
|
|
/*!************************!*\
|
|
!*** ../tools/main.js ***!
|
|
\************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
|
|
// Quelques fonctions utiles pour les chaînes
|
|
var Tool = /*#__PURE__*/function () {
|
|
function Tool() {
|
|
_classCallCheck(this, Tool);
|
|
}
|
|
|
|
_createClass(Tool, null, [{
|
|
key: "isEmpty",
|
|
value: function isEmpty(myVar) {
|
|
if (myVar === undefined || myVar === null) return true;else {
|
|
myVar += ""; // si autre chose qu'une chaîne envoyé...
|
|
|
|
myVar = myVar.trim();
|
|
if (myVar === "") return true;else return false;
|
|
}
|
|
}
|
|
}, {
|
|
key: "trimIfNotNull",
|
|
value: function trimIfNotNull(myString) {
|
|
if (Tool.isEmpty(myString)) myString = null;else {
|
|
myString += ""; // si autre chose qu'une chaîne envoyé...
|
|
|
|
myString = myString.trim();
|
|
}
|
|
return myString;
|
|
}
|
|
}, {
|
|
key: "shortenIfLongerThan",
|
|
value: function shortenIfLongerThan(myString, max) {
|
|
myString += ""; // au cas où cela ne serait pas une chaîne...
|
|
|
|
if (myString.length > max) myString = myString.substring(0, max - 3) + "...";
|
|
return myString;
|
|
} // source : https://stackoverflow.com/questions/15604140/replace-multiple-strings-with-multiple-other-strings
|
|
|
|
}, {
|
|
key: "replaceAll",
|
|
value: function replaceAll(myString, mapObj) {
|
|
var replaceElts = new RegExp(Object.keys(mapObj).join("|"), "gi");
|
|
return myString.replace(replaceElts, function (matched) {
|
|
return mapObj[matched];
|
|
});
|
|
} // source : https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Math/random
|
|
|
|
}, {
|
|
key: "getRandomInt",
|
|
value: function getRandomInt(min, max) {
|
|
min = Math.ceil(min);
|
|
max = Math.floor(max);
|
|
return Math.floor(Math.random() * (max - min)) + min;
|
|
} // à compléter : https://en.wikipedia.org/wiki/Date_format_by_country
|
|
|
|
}, {
|
|
key: "dateFormat",
|
|
value: function dateFormat(dateString) {
|
|
var lang = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "fr";
|
|
if (Tool.isEmpty(dateString)) return "";
|
|
var myDate = new Date(dateString);
|
|
var myDay = myDate.getDate() + "";
|
|
if (myDay.length === 1) myDay = "0" + myDay;
|
|
var myMounth = myDate.getMonth() + 1 + "";
|
|
if (myMounth.length === 1) myMounth = "0" + myMounth;
|
|
var myYear = myDate.getFullYear();
|
|
if (lang === "fr") return myDay + "/" + myMounth + "/" + myYear;else if (lang === "form") // 2014-02-09
|
|
return myYear + "-" + myMounth + "-" + myDay;else return myMounth + "/" + myDay + "/" + myYear;
|
|
}
|
|
}]);
|
|
|
|
return Tool;
|
|
}();
|
|
|
|
module.exports = Tool;
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../views sync recursive ^\\.\\/.*\\.js$":
|
|
/*!**********************************!*\
|
|
!*** ../views sync ^\.\/.*\.js$ ***!
|
|
\**********************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var map = {
|
|
"./default/config/fr.js": "../views/default/config/fr.js",
|
|
"./wikilerni/config/fr.js": "../views/wikilerni/config/fr.js"
|
|
};
|
|
|
|
|
|
function webpackContext(req) {
|
|
var id = webpackContextResolve(req);
|
|
return __webpack_require__(id);
|
|
}
|
|
function webpackContextResolve(req) {
|
|
if(!__webpack_require__.o(map, req)) {
|
|
var e = new Error("Cannot find module '" + req + "'");
|
|
e.code = 'MODULE_NOT_FOUND';
|
|
throw e;
|
|
}
|
|
return map[req];
|
|
}
|
|
webpackContext.keys = function webpackContextKeys() {
|
|
return Object.keys(map);
|
|
};
|
|
webpackContext.resolve = webpackContextResolve;
|
|
module.exports = webpackContext;
|
|
webpackContext.id = "../views sync recursive ^\\.\\/.*\\.js$";
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../views/default/config/fr.js":
|
|
/*!*************************************!*\
|
|
!*** ../views/default/config/fr.js ***!
|
|
\*************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = {
|
|
headLinks: [{
|
|
anchor: "Accueil",
|
|
attributes: {
|
|
href: "/"
|
|
}
|
|
}, {
|
|
anchor: "Mon compte",
|
|
attributes: {
|
|
href: "/connexion.html",
|
|
id: "accountHeadLink"
|
|
}
|
|
}, {
|
|
anchor: "À propos",
|
|
attributes: {
|
|
href: "/a-propos.html"
|
|
}
|
|
}, {
|
|
anchor: "Contact",
|
|
attributes: {
|
|
href: "/contact.html"
|
|
}
|
|
}],
|
|
footLinks: [{
|
|
anchor: "Crédits",
|
|
attributes: {
|
|
href: "/credits.html"
|
|
}
|
|
}, {
|
|
anchor: "Mentions légales",
|
|
attributes: {
|
|
href: "/mentions-legales.html",
|
|
rel: "nofollow"
|
|
}
|
|
}, {
|
|
anchor: "Données personnelles",
|
|
attributes: {
|
|
href: "/donnees.html"
|
|
}
|
|
}, {
|
|
anchor: "C.G.U.",
|
|
attributes: {
|
|
href: "/cgu.html",
|
|
rel: "nofollow"
|
|
}
|
|
}, {
|
|
anchor: "C.G.V.",
|
|
attributes: {
|
|
href: "/cgv.html",
|
|
rel: "nofollow"
|
|
}
|
|
}],
|
|
maxQuestionnairesByPage: 10,
|
|
userHomePage: "accueil.html",
|
|
adminHomePage: "admin.html",
|
|
managerHomePage: "gestion.html",
|
|
subscribePage: "inscription.html",
|
|
connectionPage: "connexion.html",
|
|
accountPage: "compte.html",
|
|
questionnairesManagementPage: "gestion-quizs.html",
|
|
usersManagementPage: "gestion-utilisateurs.html",
|
|
nbQuestionnairesUserHomePage: 10,
|
|
illustrationDir: "/img/quizs/",
|
|
siteSlogan: "Cultivons notre jardin !",
|
|
homeTitle1: "De nature curieuse ?",
|
|
homeP1: "Avec WikiLerni vous apprenez chaque jour de nouvelles choses.<br>Des articles de Wikipédia sont sélectionnés pour vous et sont suivis d'un quiz vous permettant de tester ce que vous en avez retenu.<br>De jour en jour de nouvelles graines de savoir sont ainsi semées dans votre \"jardin\".",
|
|
homeTitle2: "La culture en liberté",
|
|
homeP2: "Tout comme sur Wikipédia (*), le logiciel et le contenu partagé sur WikiLerni sont libres.<br>Vous pouvez les utiliser, les modifier et les diffuser selon votre souhait.<br>Sur WikiLerni, pas de publicité, ni de commercialisation de vos données personnelles.<br>Vous pouvez venir y \"cultiver votre jardin\" en toute tranquillité.<br><br><small><em>(*) Bien que partageant ses valeurs, WikiLerni est un projet indépendant de la fondation Wikipédia.</em></small>",
|
|
newQuestionnairesTitle: "Les derniers quizs publiés sur WikiLerni",
|
|
newQuestionnairesIntro: "Liste des derniers quizs publiés sur WikiLerni.",
|
|
explanationTitle: "Vous découvrez WikiLerni ?",
|
|
explanationTxt: "Le principe est simple : vous commencez par lire l'article Wikipédia dont le lien vous est proposé.<br>Puis vous afficher le quiz pour vérifier ce que vous en avez retenu de votre lecture. Vous obtenez alors votre résultat immédiatement.<br><br>Toutes les réponses se trouvent dans l'article proposé à la lecture. <b>Vous êtes ici pour apprendre de nouvelles choses</b>, mais libre à vous d'essayer d'y répondre immédiatement.<br><br>Quand le sujet s'y prête, ne vous étonnez pas si certaines des réponses proposées peuvent être un peu décalées, absurdes... On peut apprendre avec le sourire, non ? :-)<br><br>Une fois votre résultat obtenu, il vous sera proposé de créer un compte pour le sauvegarder.<br>Ce compte vous permettra de tester de nouveau ce quiz pour vérifier ce que vous en avez retenu plusieurs jours, semaines, mois... Et de recevoir régulièrement de nouvelles suggestions de lectures.<br><br>Mais <b>la création de ce compte est facultative</b> et <a href='/quizs/' title='Les derniers quizs publiés'>vous pouvez parcourir WikiLerni librement</a>.",
|
|
noJSNotification: "Désolé, mais pour l'instant, l'utilisation de WikiLerni nécessite l'activation du JavaScript.",
|
|
tagsListTxt: "Parcourir les rubriques :"
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ "../views/wikilerni/config/fr.js":
|
|
/*!***************************************!*\
|
|
!*** ../views/wikilerni/config/fr.js ***!
|
|
\***************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = {
|
|
headLinks: [{
|
|
anchor: "Contact",
|
|
attributes: {
|
|
href: "/contact.html",
|
|
rel: "nofollow"
|
|
}
|
|
}, {
|
|
anchor: "Parcourir",
|
|
attributes: {
|
|
href: "/quizs/",
|
|
id: "indexHeadLink",
|
|
title: "Les derniers quizs"
|
|
}
|
|
}, {
|
|
anchor: "Mon compte",
|
|
attributes: {
|
|
href: "/connexion.html",
|
|
id: "accountHeadLink"
|
|
}
|
|
}, {
|
|
anchor: "À propos",
|
|
attributes: {
|
|
href: "/a-propos.html"
|
|
}
|
|
}],
|
|
footLinks: [{
|
|
anchor: "Blog",
|
|
attributes: {
|
|
href: "https://framasphere.org/people/7e54b7a0b53201389eef2a0000053625",
|
|
title: "Blog WikiLerni sur diaspora*"
|
|
}
|
|
}, {
|
|
anchor: "Crédits",
|
|
attributes: {
|
|
href: "/credits.html"
|
|
}
|
|
}, {
|
|
anchor: "Mentions légales",
|
|
attributes: {
|
|
href: "/mentions-legales.html",
|
|
rel: "nofollow"
|
|
}
|
|
}, {
|
|
anchor: "Données personnelles",
|
|
attributes: {
|
|
href: "/donnees.html"
|
|
}
|
|
}, {
|
|
anchor: "CGV & CGU",
|
|
attributes: {
|
|
href: "/CGV-CGU.html",
|
|
rel: "nofollow"
|
|
}
|
|
}],
|
|
maxQuestionnairesSiteHomePage: 3,
|
|
maxQuestionnairesByPage: 9,
|
|
nbQuestionnairesUserHomePage: 3,
|
|
userHomePage: "accueil.html",
|
|
adminHomePage: "admin.html",
|
|
managerHomePage: "gestion.html",
|
|
subscribePage: "inscription.html",
|
|
connectionPage: "connexion.html",
|
|
validationLinkPage: "validation.html?t=",
|
|
loginLinkPage: "login.html?t=",
|
|
newLoginLinkPage: "newlogin.html?t=",
|
|
deleteLinkPage: "aurevoir.html?t=",
|
|
stopMailPage: "stop-mail.html?t=",
|
|
accountPage: "compte.html",
|
|
updateAccountPage: "mon-compte.html",
|
|
questionnairesManagementPage: "gestion-quizs.html",
|
|
usersManagementPage: "gestion-utilisateurs.html",
|
|
aboutPage: "a-propos.html",
|
|
illustrationDir: "/img/quizs/",
|
|
siteSlogan: "Cultivons notre jardin !",
|
|
homePageTxt: "Page d'accueil",
|
|
homeTitle1: "De nature curieuse ?",
|
|
homeP1: "Avec WikiLerni, vous apprenez chaque jour de nouvelles choses.<br>Des articles de Wikipédia sont sélectionnés pour vous et sont suivis d'un quiz vous permettant de tester ce que vous en avez retenu.<br>De jour en jour de nouvelles graines de savoir sont ainsi semées dans votre \"jardin\".",
|
|
homeTitle2: "La culture en liberté",
|
|
homeP2: "Tout comme sur Wikipédia <span class='postscriptum'>(*)</span>, le logiciel et le contenu partagé sur WikiLerni <a href=\"/credits.html\" title=\"En savoir plus\">sont libres</a>.<br>Sur WikiLerni, pas de publicité, ni de commercialisation de vos données personnelles.<br>Vous pouvez venir y \"cultiver votre jardin\" en toute tranquillité.<br><br><span class='postscriptum'>(*) Bien que partageant ses valeurs, WikiLerni est un projet indépendant de la fondation Wikipédia.</span>",
|
|
homeBtnAboutTxt: "En savoir plus sur WikiLerni ?",
|
|
homeBtnSubscribeTxt: "Tester WikiLerni gratuitement.",
|
|
newQuestionnairesTitle: "Les derniers quizs publiés sur WikiLerni",
|
|
newQuestionnairesIntro: "Liste des derniers quizs publiés sur WikiLerni.",
|
|
explanationTitle: "Vous découvrez WikiLerni ?",
|
|
explanationTxt: "Le principe est simple : vous commencez par lire l'article Wikipédia dont le lien vous est proposé.<br>Puis vous afficher le quiz pour vérifier ce que vous avez retenu de votre lecture. Vous obtenez alors votre résultat immédiatement.<br><br>Suivant les questions, une ou plusieurs réponses peuvent être correctes et doivent donc être cochées. <b>C'est toujours le contenu de l'article Wikipédia qui fait foi concernant les \"bonnes\" réponses</b>. Mais les articles de Wikipédia peuvent évoluer, donc n'hésitez pas <a href='/contact.html'>à me signaler une erreur</a>.<br><br>Toutes les réponses se trouvent dans l'article proposé à la lecture. <b>Vous êtes ici pour apprendre de nouvelles choses, mais libre à vous d'essayer d'y répondre immédiatement</b>.<br><br>Quand le sujet s'y prête, ne vous étonnez pas si certaines des réponses proposées peuvent être un peu décalées, absurdes... On peut apprendre avec le sourire, non ? :-)<br><br>Une fois votre résultat obtenu, il vous sera proposé de créer un compte pour le sauvegarder. Ce compte vous permettra de <b>tester de nouveau ce quiz</b> pour vérifier ce que vous en avez retenu plusieurs jours, semaines, mois... Grâce à ce compte, vous pourrez aussi <b>recevoir régulièrement de nouveaux quizs</b> pour continuer à \"cultiver votre jardin\".<br><br>Mais <b>la création de ce compte est facultative</b> et <a href='/quizs/' title='Les derniers quizs publiés'>vous pouvez parcourir WikiLerni librement</a>.",
|
|
noJSNotification: "Désolé, mais pour l'instant, l'utilisation de WikiLerni nécessite l'activation du JavaScript.",
|
|
newsListTitle: "Les dernières graines de savoir",
|
|
tagsListTxt: "Parcourir les rubriques",
|
|
mailRecipientTxt: "Message envoyé à :"
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/index.js":
|
|
/*!**********************!*\
|
|
!*** ./src/index.js ***!
|
|
\**********************/
|
|
/*! no exports provided */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _config_instance_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../config/instance.js */ "../config/instance.js");
|
|
/* harmony import */ var _config_instance_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_config_instance_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _tools_clientstorage_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tools/clientstorage.js */ "./src/tools/clientstorage.js");
|
|
/* harmony import */ var _tools_everywhere_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tools/everywhere.js */ "./src/tools/everywhere.js");
|
|
/* harmony import */ var _tools_matomo_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tools/matomo.js */ "./src/tools/matomo.js");
|
|
/* harmony import */ var _tools_users_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tools/users.js */ "./src/tools/users.js");
|
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
|
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
|
|
// -- SCRIPT DE BASE APPELÉ DANS LES PAGES TYPE ACCUEIL DU SITE
|
|
// Fichier de configuration tirés du backend :
|
|
|
|
var lang = _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["availableLangs"][0];
|
|
|
|
var configTemplate = __webpack_require__("../views sync recursive ^\\.\\/.*\\.js$")("./" + _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["theme"] + "/config/" + lang + ".js");
|
|
|
|
|
|
|
|
|
|
|
|
Object(_tools_everywhere_js__WEBPACK_IMPORTED_MODULE_2__["helloDev"])(); // Test de connexion de l'utilisateur pour adapter le lien du menu...
|
|
|
|
var initialise = /*#__PURE__*/function () {
|
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
var isConnected, user;
|
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.prev = 0;
|
|
_context.next = 3;
|
|
return Object(_tools_users_js__WEBPACK_IMPORTED_MODULE_4__["checkSession"])();
|
|
|
|
case 3:
|
|
isConnected = _context.sent;
|
|
|
|
if (isConnected) {
|
|
// on change le lien du compte en haut
|
|
user = Object(_tools_clientstorage_js__WEBPACK_IMPORTED_MODULE_1__["getLocaly"])("user", true);
|
|
Object(_tools_everywhere_js__WEBPACK_IMPORTED_MODULE_2__["updateAccountLink"])(user.status, configTemplate);
|
|
} else Object(_tools_matomo_js__WEBPACK_IMPORTED_MODULE_3__["loadMatomo"])();
|
|
|
|
_context.next = 10;
|
|
break;
|
|
|
|
case 7:
|
|
_context.prev = 7;
|
|
_context.t0 = _context["catch"](0);
|
|
console.error(_context.t0);
|
|
|
|
case 10:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee, null, [[0, 7]]);
|
|
}));
|
|
|
|
return function initialise() {
|
|
return _ref.apply(this, arguments);
|
|
};
|
|
}();
|
|
|
|
initialise();
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/tools/clientstorage.js":
|
|
/*!************************************!*\
|
|
!*** ./src/tools/clientstorage.js ***!
|
|
\************************************/
|
|
/*! exports provided: saveLocaly, getLocaly, removeLocaly */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveLocaly", function() { return saveLocaly; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaly", function() { return getLocaly; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeLocaly", function() { return removeLocaly; });
|
|
// FONCTIONS UTILES AU STOCKAGE LOCAL (SESSION, COOKIES, INDEXDB, ETC.)
|
|
// Revenir pour gérer le cas où local.storage n'est pas connu pour utiliser cookie
|
|
var saveLocaly = function saveLocaly(name, data) {
|
|
localStorage.setItem(name, JSON.stringify(data));
|
|
};
|
|
var getLocaly = function getLocaly(name) {
|
|
var json = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
if (json) return JSON.parse(localStorage.getItem(name));else return localStorage.getItem(name);
|
|
};
|
|
var removeLocaly = function removeLocaly(name) {
|
|
localStorage.removeItem(name);
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/tools/everywhere.js":
|
|
/*!*********************************!*\
|
|
!*** ./src/tools/everywhere.js ***!
|
|
\*********************************/
|
|
/*! exports provided: helloDev, updateAccountLink */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "helloDev", function() { return helloDev; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateAccountLink", function() { return updateAccountLink; });
|
|
// Ce script fournit des fonctions utilisées sur toutes les pages du site
|
|
var helloDev = function helloDev() {
|
|
console.log("**** Hello ami développeur :-)\n\nLe code de WikiLerni est libre et vous pouvez le trouver si Gitlab :\nhttps://gitlab.com/lefablab/wikilerni\n\nPour les suggestions d'amélioration ou questions : dev@wililerni.com ****");
|
|
return true;
|
|
};
|
|
var updateAccountLink = function updateAccountLink(status, configTemplate) {
|
|
var link = document.getElementById("accountHeadLink");
|
|
var homePage = status + "HomePage";
|
|
link.href = "/" + configTemplate[homePage];
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/tools/matomo.js":
|
|
/*!*****************************!*\
|
|
!*** ./src/tools/matomo.js ***!
|
|
\*****************************/
|
|
/*! exports provided: loadMatomo */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadMatomo", function() { return loadMatomo; });
|
|
/* harmony import */ var _config_matomo_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../config/matomo.js */ "../config/matomo.js");
|
|
/* harmony import */ var _config_matomo_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_config_matomo_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
// Fonction chargeant le code matomo
|
|
|
|
var loadMatomo = function loadMatomo() {
|
|
// chargement de matomo
|
|
var _paq = window._paq = window._paq || []; //ajout cnil :
|
|
|
|
|
|
_paq.push([function () {
|
|
var self = this;
|
|
|
|
function getOriginalVisitorCookieTimeout() {
|
|
var now = new Date(),
|
|
nowTs = Math.round(now.getTime() / 1000),
|
|
visitorInfo = self.getVisitorInfo();
|
|
var createTs = parseInt(visitorInfo[2]);
|
|
var cookieTimeout = 33696000; // 13 mois en secondes
|
|
|
|
var originalTimeout = createTs + cookieTimeout - nowTs;
|
|
return originalTimeout;
|
|
}
|
|
|
|
this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout());
|
|
}]); //--fin ajout cnil
|
|
|
|
|
|
_paq.push(['trackPageView']);
|
|
|
|
_paq.push(['enableLinkTracking']);
|
|
|
|
(function () {
|
|
var u = _config_matomo_js__WEBPACK_IMPORTED_MODULE_0__["matomo"].url;
|
|
|
|
_paq.push(['setTrackerUrl', u + 'matomo.php']);
|
|
|
|
_paq.push(['setSiteId', _config_matomo_js__WEBPACK_IMPORTED_MODULE_0__["matomo"].siteId]);
|
|
|
|
var d = document,
|
|
g = d.createElement('script'),
|
|
s = d.getElementsByTagName('script')[0];
|
|
g.type = 'text/javascript';
|
|
g.async = true;
|
|
g.src = u + 'matomo.js';
|
|
s.parentNode.insertBefore(g, s);
|
|
})();
|
|
};
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/tools/users.js":
|
|
/*!****************************!*\
|
|
!*** ./src/tools/users.js ***!
|
|
\****************************/
|
|
/*! exports provided: getConfig, getTimeDifference, getPassword, setSession, checkAnswerDatas, checkSession */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfig", function() { return getConfig; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTimeDifference", function() { return getTimeDifference; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPassword", function() { return getPassword; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setSession", function() { return setSession; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkAnswerDatas", function() { return checkAnswerDatas; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkSession", function() { return checkSession; });
|
|
/* harmony import */ var _config_instance_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../config/instance.js */ "../config/instance.js");
|
|
/* harmony import */ var _config_instance_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_config_instance_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _config_users_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../config/users.js */ "../config/users.js");
|
|
/* harmony import */ var _config_users_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_config_users_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
/* harmony import */ var _clientstorage_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clientstorage.js */ "./src/tools/clientstorage.js");
|
|
/* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../tools/main */ "../tools/main.js");
|
|
/* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_tools_main__WEBPACK_IMPORTED_MODULE_3__);
|
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
|
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
|
|
|
|
var lang = _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["availableLangs"][0];
|
|
|
|
var configTemplate = __webpack_require__("../views sync recursive ^\\.\\/.*\\.js$")("./" + _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["theme"] + "/config/" + lang + ".js");
|
|
|
|
|
|
|
|
// Récupère les données de configuration des utilisateurs
|
|
// À terme, un fichier statique importable comme module devrait éviter une requête ajax
|
|
|
|
var getConfig = /*#__PURE__*/function () {
|
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open("GET", _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["apiUrl"] + "/user/getconfig");
|
|
|
|
xhr.onload = function () {
|
|
return resolve(JSON.parse(xhr.responseText));
|
|
};
|
|
|
|
xhr.onerror = function () {
|
|
return reject(xhr.statusText);
|
|
};
|
|
|
|
xhr.send();
|
|
}));
|
|
|
|
case 1:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee);
|
|
}));
|
|
|
|
return function getConfig() {
|
|
return _ref.apply(this, arguments);
|
|
};
|
|
}();
|
|
var getTimeDifference = function getTimeDifference() {
|
|
// multiplier par -1, car c'est ce qu'il faut "ajouter" à l'heure UTC pour revenir en heure locale qui m'intéresse et non l'inverse
|
|
var timeLocal = new Date().getTimezoneOffset() * -1;
|
|
if (timeLocal > _config_users_js__WEBPACK_IMPORTED_MODULE_1__["timeDifferenceMax"] || timeLocal < _config_users_js__WEBPACK_IMPORTED_MODULE_1__["timeDifferenceMin"]) return 0;else return timeLocal;
|
|
}; // On enlève volontairement les 0/O pour éviter les confusions !
|
|
// Et mieux vaut aussi débuter et finir par une lettre simple.
|
|
|
|
var getPassword = function getPassword(nbCarMin, nbCarMax) {
|
|
var nbCar = nbCarMin + Math.floor(Math.random() * (nbCarMax - nbCarMin));
|
|
var letters = "ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnpqrstuvwxyz";
|
|
var others = "123456789!?.*-_%@&ÉÀÈÙ€$ÂÊÛÎ";
|
|
var password = letters[Math.floor(Math.random() * letters.length)];
|
|
|
|
for (var i = 1; i < nbCar - 1; i++) {
|
|
if (i % 2 === 1) password += others[Math.floor(Math.random() * others.length)];else password += letters[Math.floor(Math.random() * letters.length)];
|
|
}
|
|
|
|
password += letters[Math.floor(Math.random() * letters.length)];
|
|
return password;
|
|
}; // J'utilise le stockage local du navigateur pour enregistrer les données permettant de reconnaître l'utilisateur par la suite
|
|
// Seul le serveur pourra vérifier que les identifiants sont (toujours) valides.
|
|
|
|
var setSession = function setSession(userId, token, durationTS) {
|
|
var storageUser = {
|
|
id: userId,
|
|
token: token,
|
|
duration: durationTS
|
|
};
|
|
Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["saveLocaly"])("user", storageUser);
|
|
}; // Vérifie qu'il y a des données locales concernant le résultat d'un quiz
|
|
// Et les ajoute aux données envoyées par les formulaires d'inscription/connexion si c'est le cas
|
|
|
|
var checkAnswerDatas = function checkAnswerDatas(datas) {
|
|
var lastAnswer = Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["getLocaly"])("lastAnswer");
|
|
|
|
if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(lastAnswer)) {
|
|
var answer = JSON.parse(lastAnswer);
|
|
|
|
if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.duration) && !Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.nbCorrectAnswers) && !Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.QuestionnaireId) && !Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.nbQuestions)) {
|
|
datas.duration = answer.duration;
|
|
datas.nbCorrectAnswers = answer.nbCorrectAnswers;
|
|
datas.QuestionnaireId = answer.QuestionnaireId;
|
|
datas.nbQuestions = answer.nbQuestions;
|
|
}
|
|
}
|
|
|
|
return datas;
|
|
}; // Cette fonction teste la connexion de l'utilisateur d'une page
|
|
// On peut fournis une liste de statuts acceptés (si vide = tous), ainsi qu'une url de redirection si non connecté, un message d'erreur à afficher sur la page de destination et l'url sur laquelle revenir une fois connecté
|
|
|
|
var checkSession = /*#__PURE__*/function () {
|
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
var status,
|
|
urlRedirection,
|
|
message,
|
|
urlWanted,
|
|
_args2 = arguments;
|
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
while (1) {
|
|
switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
status = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : [];
|
|
urlRedirection = _args2.length > 1 ? _args2[1] : undefined;
|
|
message = _args2.length > 2 ? _args2[2] : undefined;
|
|
urlWanted = _args2.length > 3 ? _args2[3] : undefined;
|
|
return _context2.abrupt("return", new Promise(function (resolve, reject) {
|
|
var userDatas = Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["getLocaly"])("user");
|
|
|
|
if (Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(userDatas)) {
|
|
redirectUser(urlRedirection, message, urlWanted);
|
|
resolve(false);
|
|
} else {
|
|
var user = JSON.parse(userDatas);
|
|
|
|
if (Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(user.id) || Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(user.token) || Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(user.duration) || user.duration < Date.now()) {
|
|
Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["removeLocaly"])("user");
|
|
redirectUser(urlRedirection, message, urlWanted);
|
|
resolve(false);
|
|
} else {
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open("GET", _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["apiUrl"] + _config_users_js__WEBPACK_IMPORTED_MODULE_1__["userRoutes"] + _config_users_js__WEBPACK_IMPORTED_MODULE_1__["checkLoginRoute"] + user.token);
|
|
|
|
xhr.onload = function () {
|
|
var response = JSON.parse(xhr.responseText);
|
|
|
|
if (xhr.status === 200 && response.isValid && response.id != undefined) {
|
|
if (response.id === user.id) {
|
|
user.name = response.name;
|
|
user.language = response.language;
|
|
user.timeDifference = response.timeDifference;
|
|
user.status = response.status; // c'est le token qui sert à vérifier le statut à chaque requête à l'API
|
|
|
|
Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["saveLocaly"])("user", user); // si il s'agit d'un "user" et que son abonnement a expiré, je le redirige vers la caisse :-)
|
|
|
|
if (response.status === "user" && response.nbDaysOk <= 0) {
|
|
var urlAccount = _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["siteUrl"] + "/" + configTemplate.accountPage;
|
|
if (window.location.href.indexOf(urlAccount) === -1) window.location.assign("/" + configTemplate.accountPage + "#subscribe"); // passée directement ici, l'ancre #subscribe ne fonctionne pas !?
|
|
|
|
resolve(true);
|
|
} else {
|
|
if (status.length !== 0 && status.indexOf(response.status) === -1) {
|
|
redirectUser(urlRedirection, message, urlWanted);
|
|
resolve(false);
|
|
} else resolve(true);
|
|
}
|
|
} else {
|
|
Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["removeLocaly"])("user");
|
|
redirectUser(urlRedirection, message, urlWanted);
|
|
resolve(false);
|
|
}
|
|
} else {
|
|
Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["removeLocaly"])("user");
|
|
redirectUser(urlRedirection, message, urlWanted);
|
|
resolve(false);
|
|
}
|
|
};
|
|
|
|
xhr.onerror = function () {
|
|
return reject(xhr.statusText);
|
|
};
|
|
|
|
xhr.send();
|
|
}
|
|
}
|
|
}));
|
|
|
|
case 5:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
|
|
return function checkSession() {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}(); // Cette fonction sert à la précédente en cas de connexion non valide
|
|
|
|
var redirectUser = function redirectUser(urlRedirection, message, urlWanted) {
|
|
if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(message)) Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["saveLocaly"])("message", message);
|
|
if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(urlWanted)) Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["saveLocaly"])("url", urlWanted);
|
|
if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(urlRedirection)) window.location.assign(urlRedirection);
|
|
};
|
|
|
|
/***/ })
|
|
|
|
/******/ });
|
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vd2VicGFjay9ib290c3RyYXAiLCJ3ZWJwYWNrOi8vLy4uL2NvbmZpZy9pbnN0YW5jZS5qcyIsIndlYnBhY2s6Ly8vLi4vY29uZmlnL21hdG9tby5qcyIsIndlYnBhY2s6Ly8vLi4vY29uZmlnL3F1ZXN0aW9ubmFpcmVzLmpzIiwid2VicGFjazovLy8uLi9jb25maWcvdXNlcnMuanMiLCJ3ZWJwYWNrOi8vLy4uL3Rvb2xzL21haW4uanMiLCJ3ZWJwYWNrOi8vLy4uL3ZpZXdzIHN5bmMgXlxcLlxcLy4qXFwuanMkIiwid2VicGFjazovLy8uLi92aWV3cy9kZWZhdWx0L2NvbmZpZy9mci5qcyIsIndlYnBhY2s6Ly8vLi4vdmlld3Mvd2lraWxlcm5pL2NvbmZpZy9mci5qcyIsIndlYnBhY2s6Ly8vLi9zcmMvaW5kZXguanMiLCJ3ZWJwYWNrOi8vLy4vc3JjL3Rvb2xzL2NsaWVudHN0b3JhZ2UuanMiLCJ3ZWJwYWNrOi8vLy4vc3JjL3Rvb2xzL2V2ZXJ5d2hlcmUuanMiLCJ3ZWJwYWNrOi8vLy4vc3JjL3Rvb2xzL21hdG9tby5qcyIsIndlYnBhY2s6Ly8vLi9zcmMvdG9vbHMvdXNlcnMuanMiXSwibmFtZXMiOlsidXNlcnMiLCJyZXF1aXJlIiwicXVlc3Rpb25uYWlyZXMiLCJtb2R1bGUiLCJleHBvcnRzIiwiYXBpVXJsIiwic2l0ZVVybCIsImFkbWluTmFtZSIsImFkbWluRW1haWwiLCJzZW5kZXJOYW1lIiwic2VuZGVyRW1haWwiLCJhZG1pbkxhbmciLCJ0aGVtZSIsImF2YWlsYWJsZUxhbmdzIiwic2l0ZU5hb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ICAgICBlbHNlXG4gICAgICAgIHtcbiAgICAgICAgICAgIG15VmFyKz1cIlwiOy8vIHNpIGF1dHJlIGNob3NlIHF1J3VuZSBjaGHDrm5lIGVudm95w6kuLi5cbiAgICAgICAgICAgIG15VmFyPW15VmFyLnRyaW0oKTtcbiAgICAgICAgICAgIGlmKG15VmFyPT09XCJcIilcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cbiAgICB9XG4gICAgXG4gICAgc3RhdGljIHRyaW1JZk5vdE51bGwobXlTdHJpbmcpXG4gICAge1xuICAgICAgICBpZihUb29sLmlzRW1wdHkobXlTdHJpbmcpKVxuICAgICAgICAgICAgbXlTdHJpbmc9bnVsbDtcbiAgICAgICAgZWxzZVxuICAgICAgICB7XG4gICAgICAgICAgICBteVN0cmluZys9XCJcIjsvLyBzaSBhdXRyZSBjaG9zZSBxdSd1bmUgY2hhw65uZSBlbnZvecOpLi4uXG4gICAgICAgICAgICBteVN0cmluZz1teVN0cmluZy50cmltKCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG15U3RyaW5nO1xuICAgIH1cblxuXG4gICAgc3RhdGljIHNob3J0ZW5JZkxvbmdlclRoYW4obXlTdHJpbmcsIG1heClcbiAgICB7XG4gICAgICAgIG15U3RyaW5nKz1cIlwiOy8vIGF1IGNhcyBvw7kgY2VsYSBuZSBzZXJhaXQgcGFzIHVuZSBjaGHDrm5lLi4uXG4gICAgICAgaWYobXlTdHJpbmcubGVuZ3RoID4gbWF4KVxuICAgICAgICAgICAgbXlTdHJpbmc9bXlTdHJpbmcuc3Vic3RyaW5nKDAsIChtYXgtMykpK1wiLi4uXCI7XG4gICAgICAgIHJldHVybiBteVN0cmluZztcbiAgICB9XG5cbiAgICAvLyBzb3VyY2UgOiBodHRwczovL3N0YWNrb3ZlcmZsb3cuY29tL3F1ZXN0aW9uc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3IERhdGUoZGF0ZVN0cmluZyk7XG4gICAgICAgIGxldCBteURheT1teURhdGUuZ2V0RGF0ZSgpK1wiXCI7XG4gICAgICAgIGlmKG15RGF5Lmxlbmd0aD09PTEpXG4gICAgICAgICAgICBteURheT1cIjBcIitteURheTtcbiAgICAgICAgbGV0IG15TW91bnRoPShteURhdGUuZ2V0TW9udGgoKSsxKStcIlwiO1xuICAgICAgICBpZihteU1vdW50aC5sZW5ndGg9PT0xKVxuICAgICAgICAgICAgbXlNb3VudGg9XCIwXCIrbXlNb3VudGg7XG4gICAgICAgIGxldCBteVllYXI9bXlEYXRlLmdldEZ1bGxZZWFyKCk7XG4gICAgICAgIGlmKGxhbmc9PT1cImZyXCIpXG4gICAgICAgICAgICByZXR1cm4gbXlEYXkrXCIvXCIrbXlNb3VudGgrXCIvXCIrbXlZZWFyO1xuICAgICAgICBlbHNlIGlmIChsYW5nPT09XCJmb3JtXCIpLy8gMjAxNC0wMi0wOVxuICAgICAgICAgICAgcmV0dXJuIG15WWVhcitcIi1cIitteU1vdW50aCtcIi1cIitteURheTtcbiAgICAgICAgZWxzZVxuICAgICAgICAgICAgcmV0dXJuIG15TW91bnRoK1wiL1wiK215RGF5K1wiL1wiK215WWVhcjtcbiAgICB9XG59XG5cbm1vZHVsZS5leHBvcnRzID0gVG9vbDsiLCJ2YXIgbWFwID0ge1xuXHRcIi4vZGVmYXVsdC9jb25maWcvZnIuanNcIjogXCIuLi92aWV3cy9kZWZhdWx0L2NvbmZpZy9mci5qc1wiLFxuXHRcIi4vd2lraWxlcm5pL2NvbmZpZy9mci5qc1wiOiBcIi4uL3ZpZXdzL3dpa2lsZXJuaS9jb25maWcvZnIuanNcIlxufTtcblxuXG5mdW5jdGlvbiB3ZWJwYWNrQ29udGV4dChyZXEpIHtcblx0dmFyIGlkID0gd2VicGFja0NvbnRleHRSZXNvbHZlKHJlcSk7XG5cdHJldHVybiBfX3dlYnBhY2tfcmVxdWlyZV9fKGlkKTtcbn1cbmZ1bmN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gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgY29uc3QgeGhyID0gbmV3IFhNTEh0dHBSZXF1ZXN0KCk7XG4gICAgICAgICAgICAgICAgeGhyLm9wZW4oXCJHRVRcIiwgYXBpVXJsK3VzZXJSb3V0ZXMrY2hlY2tMb2dpblJvdXRlK3VzZXIudG9rZW4pO1xuICAgICAgICAgICAgICAgIHhoci5vbmxvYWQgPSAoKSA9PlxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHJlc3BvbnNlPUpTT04ucGFyc2UoeGhyLnJlc3BvbnNlVGV4dCk7XG4gICAgICAgICAgICAgICAgICAgIGlmICh4aHIuc3RhdHVzID09PSAyMDAgJiYgcmVzcG9uc2UuaXNWYWxpZCAmJiByZXNwb25zZS5pZCAhPSB1bmRlZmluZWQpXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmKHJlc3BvbnNlLmlkPT09dXNlci5pZClcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1c2VyLm5hbWU9cmVzcG9uc2UubmFtZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1c2VyLmxhbmd1YWdlPXJlc3BvbnNlLmxhbmd1YWdlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVzZXIudGltZURpZmZlcmVuY2U9cmVzcG9uc2UudGltZURpZmZlcmVuY2U7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdXNlci5zdGF0dXM9cmVzcG9uc2Uuc3RhdHVzOy8vIGMnZXN0IGxlIHRva2VuIHF1aSBzZXJ0IMOgIHbDqXJpZmllciBsZSBzdGF0dXQgw6AgY2hhcXVlIHJlcXXDqnRlIMOgIGwnQVBJXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2F2ZUxvY2FseShcInVzZXJcIiwgdXNlcik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2kgaWwgcydhZ2l0IGQndW4gXCJ1c2VyXCIgZXQgcXVlIHNvbiBhYm9ubmVtZW50IGEgZXhwaXLDqSwgamUgbGUgcmVkaXJpZ2UgdmVycyBsYSBjYWlzc2UgOi0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYocmVzcG9uc2Uuc3RhdHVzPT09XCJ1c2VyXCIgJiYgcmVzcG9uc2UubmJEYXlzT2sgPD0gMClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHVybEFjY291bnQ9c2l0ZVVybCtcIi9cIitjb25maWdUZW1wbGF0ZS5hY2NvdW50UGFnZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYod2luZG93LmxvY2F0aW9uLmhyZWYuaW5kZXhPZih1cmxBY2NvdW50KT09PS0xKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2luZG93LmxvY2F0aW9uLmFzc2lnbihcIi9cIitjb25maWdUZW1wbGF0ZS5hY2NvdW50UGFnZStcIiNzdWJzY3JpYmVcIik7Ly8gcGFzc8OpZSBkaXJlY3RlbWVudCBpY2ksIGwnYW5jcmUgI3N1YnNjcmliZSBuZSBmb25jdGlvbm5lIHBhcyAhP1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKHRydWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZihzdGF0dXMubGVuZ3RoIT09MCAmJiBzdGF0dXMuaW5kZXhPZihyZXNwb25zZS5zdGF0dXMpPT09LTEpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZGlyZWN0VXNlcih1cmxSZWRpcmVjdGlvbiwgbWVzc2FnZSwgdXJsV2FudGVkKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdmUoZmFsc2UpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdmUodHJ1ZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlbW92ZUxvY2FseShcInVzZXJcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVkaXJlY3RVc2VyKHVybFJlZGlyZWN0aW9uLCBtZXNzYWdlLCB1cmxXYW50ZWQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdmUoZmFsc2UpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVtb3ZlTG9jYWx5KFwidXNlclwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZGlyZWN0VXNlcih1cmxSZWRpcmVjdGlvbiwgbWVzc2FnZSwgdXJsV2FudGVkKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdmUoZmFsc2UpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHhoci5vbmVycm9yID0gKCkgPT4gcmVqZWN0KHhoci5zdGF0dXNUZXh0KTtcbiAgICAgICAgICAgICAgICB4aHIuc2VuZCgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfSk7XG59XG4vLyBDZXR0ZSBmb25jdGlvbiBzZXJ0IMOgIGxhIHByw6ljw6lkZW50ZSBlbiBjYXMgZGUgY29ubmV4aW9uIG5vbiB2YWxpZGVcbmNvbnN0IHJlZGlyZWN0VXNlciA9ICh1cmxSZWRpcmVjdGlvbiwgbWVzc2FnZSwgdXJsV2FudGVkKSA9Plxue1xuICAgIGlmKCFpc0VtcHR5KG1lc3NhZ2UpKVxuICAgICAgICBzYXZlTG9jYWx5KFwibWVzc2FnZVwiLCBtZXNzYWdlKTtcbiAgICBpZighaXNFbXB0eSh1cmxXYW50ZWQpKVxuICAgICAgICBzYXZlTG9jYWx5KFwidXJsXCIsIHVybFdhbnRlZCk7XG4gICAgaWYoIWlzRW1wdHkodXJsUmVkaXJlY3Rpb24pKVxuICAgICAgICB3aW5kb3cubG9jYXRpb24uYXNzaWduKHVybFJlZGlyZWN0aW9uKTtcbn0iXSwic291cmNlUm9vdCI6IiJ9
|