Changeset 3225104
- Timestamp:
- 01/19/2025 04:46:50 PM (8 weeks ago)
- Location:
- fapi-member
- Files:
-
- 413 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
fapi-member/trunk/app/dist/bundle.js
r3189049 r3225104 537 537 /***/ ((module, __webpack_exports__, __webpack_require__) => { 538 538 539 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"./node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n___CSS_LOADER_EXPORT___.push([module.id, \"@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);\"]);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `#alert{display:inline;position:fixed;right:40px;top:50px;opacity:0;transition:opacity .2s,width .2s;border-top:none;border-bottom:none;border-left:none;border-right:1px solid #0074e2;border-right-width:5px;border-radius:5px;z-index:9;min-height:18.2px;width:0px;background-color:#fff;box-shadow:0px 0px 7px rgba(0,0,0,.37);padding:10px;text-align:center}#alert div{height:18px;opacity:0;transition:opacity .1s}#alert.error{border-color:#fa5329}#alert.success{border-color:#aad20e}#alert.success strong{display:none}#alert.warning{border-color:#f2bb3e}#alert.warning strong{display:none}#alert.alert-visible{opacity:1;width:300px;transition:opacity .3s,width .3s}#alert.alert-visible div{opacity:1;transition:opacity .5s;height:fit-content}.fm-settings{display:grid;grid-template-columns:min-content auto;grid-template-rows:60px auto;margin:20px;font-family:\"proxima_novaregular\",sans-serif;font-size:15px}.fm-settings *{font-family:\"Roboto\",sans-serif !important}.fm-settings .fapi-logo{grid-column:1/2;grid-row:1/2;align-self:center;justify-self:center}.fm-settings .navigation{grid-column:1/2;grid-row:2/3;margin:0px}.navigation-item{display:grid;grid-template-columns:auto 72px;grid-template-rows:90px;height:90px;padding-left:20px;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;margin-bottom:0px;cursor:pointer;transition:background-color .2s}.navigation-item span{grid-row:1/2;grid-column:1/2;justify-self:center;align-self:center;transition:color .2s}.navigation-item object{width:24px;grid-row:1/2;grid-column:2/3;justify-self:center;align-self:center;filter:invert(84%) sepia(8%) saturate(10%) hue-rotate(196deg) brightness(93%) contrast(81%);transition:filter .3s}.navigation-item.selected{background-color:#fff}.navigation-item.selected span{color:#0074e2}.navigation-item.selected object{filter:invert(33%) sepia(79%) saturate(4286%) hue-rotate(196deg) brightness(95%) contrast(101%)}.navigation-item:hover:not(.selected){background-color:#e7e7e7}.sub-navigation{grid-row:1/2;grid-column:2/3;margin:0px;display:flex}.sub-navigation .sub-navigation-item{padding:8px 24px;line-height:20px;display:flex;align-items:center;justify-content:center;border-top-left-radius:.25rem;border-top-right-radius:.25rem;margin:0px;transition:background-color .2s,color .2s;cursor:pointer}.sub-navigation .sub-navigation-item.selected{color:#0074e2;background-color:#fff}.sub-navigation .sub-navigation-item:hover:not(.selected){background-color:#e7e7e7}.content{background-color:#fff;padding:20px;grid-column:2/3;grid-row:2/3;min-width:750px}.content-help{width:200px;padding-left:30px;border-left:1px solid #e7e7e7;margin-left:30px}.content-help .inner{display:grid;grid-template-columns:auto;grid-template-rows:auto auto auto;align-items:center}.content-help .inner .vertical-divider{margin:20px 0px}.fm-no-licence{margin:20px }.fm-no-licence .image{background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(7px);height:700px;display:flex;justify-content:center;align-items:center}.fm-no-licence a{position:absolute;top:50%;left:50%;transform:translate(0%, -50%);text-align:center;z-index:10;box-shadow:10px 10px 20px rgba(0,0,0,.3);padding:10px !important}\n`, \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://app/./src/Styles/settings.css?./node_modules/css-loader/dist/cjs.js");539 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"./node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n___CSS_LOADER_EXPORT___.push([module.id, \"@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);\"]);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `#alert{display:inline;position:fixed;right:40px;top:50px;opacity:0;transition:opacity .2s,width .2s;border-top:none;border-bottom:none;border-left:none;border-right:1px solid #0074e2;border-right-width:5px;border-radius:5px;z-index:9;min-height:18.2px;width:0px;background-color:#fff;box-shadow:0px 0px 7px rgba(0,0,0,.37);padding:10px;text-align:center}#alert div{height:18px;opacity:0;transition:opacity .1s}#alert.error{border-color:#fa5329}#alert.success{border-color:#aad20e}#alert.success strong{display:none}#alert.warning{border-color:#f2bb3e}#alert.warning strong{display:none}#alert.alert-visible{opacity:1;width:300px;transition:opacity .3s,width .3s}#alert.alert-visible div{opacity:1;transition:opacity .5s;height:fit-content}.fm-settings{display:grid;grid-template-columns:min-content auto;grid-template-rows:60px auto;margin:20px;font-family:\"proxima_novaregular\",sans-serif;font-size:15px}.fm-settings *{font-family:\"Roboto\",sans-serif !important}.fm-settings .fapi-logo{grid-column:1/2;grid-row:1/2;align-self:center;justify-self:center}.fm-settings .navigation{grid-column:1/2;grid-row:2/3;margin:0px}.navigation-item{display:grid;grid-template-columns:auto 72px;grid-template-rows:90px;height:90px;padding-left:20px;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;margin-bottom:0px;cursor:pointer;transition:background-color .2s}.navigation-item span{grid-row:1/2;grid-column:1/2;justify-self:center;align-self:center;transition:color .2s}.navigation-item object{width:24px;grid-row:1/2;grid-column:2/3;justify-self:center;align-self:center;filter:invert(84%) sepia(8%) saturate(10%) hue-rotate(196deg) brightness(93%) contrast(81%);transition:filter .3s}.navigation-item.selected{background-color:#fff}.navigation-item.selected span{color:#0074e2}.navigation-item.selected object{filter:invert(33%) sepia(79%) saturate(4286%) hue-rotate(196deg) brightness(95%) contrast(101%)}.navigation-item:hover:not(.selected){background-color:#e7e7e7}.sub-navigation{grid-row:1/2;grid-column:2/3;margin:0px;display:flex}.sub-navigation .sub-navigation-item{padding:8px 24px;line-height:20px;display:flex;align-items:center;justify-content:center;border-top-left-radius:.25rem;border-top-right-radius:.25rem;margin:0px;transition:background-color .2s,color .2s;cursor:pointer}.sub-navigation .sub-navigation-item.selected{color:#0074e2;background-color:#fff}.sub-navigation .sub-navigation-item:hover:not(.selected){background-color:#e7e7e7}.content{background-color:#fff;padding:20px;grid-column:2/3;grid-row:2/3;min-width:750px}.content-help{width:200px;padding-left:30px;border-left:1px solid #e7e7e7;margin-left:30px}.content-help .inner{display:grid;grid-template-columns:auto;grid-template-rows:auto auto auto;align-items:center}.content-help .inner .vertical-divider{margin:20px 0px}.fm-no-licence{margin:20px;background-size:contain;background-position:center;background-repeat:no-repeat}.fm-no-licence .blur-filter{backdrop-filter:blur(7px);height:530px;display:flex;justify-content:center;align-items:center}.fm-no-licence .blur-filter a{text-align:center;z-index:10;box-shadow:10px 10px 20px rgba(0,0,0,.3);padding:10px !important}\n`, \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://app/./src/Styles/settings.css?./node_modules/css-loader/dist/cjs.js"); 540 540 541 541 /***/ }), -
fapi-member/trunk/app/dist/src_Components_Content_Members_Members_js.bundle.js
r3200871 r3225104 36 36 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 37 37 38 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var Components_Elements_ReturnLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! Components/Elements/ReturnLink */ \"./src/Components/Elements/ReturnLink.js\");\n/* harmony import */ var Components_Elements_UserMembershipsForm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! Components/Elements/UserMembershipsForm */ \"./src/Components/Elements/UserMembershipsForm.js\");\n/* harmony import */ var Clients_StatisticsClient__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! Clients/StatisticsClient */ \"./src/Clients/StatisticsClient.js\");\n/* harmony import */ var Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! Components/Elements/Loading */ \"./src/Components/Elements/Loading.js\");\n/* harmony import */ var Components_Content_Members_MembershipChange__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! Components/Content/Members/MembershipChange */ \"./src/Components/Content/Members/MembershipChange.js\");\n/* harmony import */ var Helpers_LicenceHelper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! Helpers/LicenceHelper */ \"./src/Helpers/LicenceHelper.js\");\n\n\n\n\n\n\n\nfunction Member(_ref) {\n let {\n member,\n removeActiveMember\n } = _ref;\n const [memberChanges, setMemberChanges] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]);\n const [lastActivityDate, setLastActivityDate] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n const statisticsClient = new Clients_StatisticsClient__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n const [load, setLoad] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n const reload = async () => {\n await statisticsClient.getMembershipChangesForUser(member.id).then(data => {\n setMemberChanges(data);\n });\n await statisticsClient.getLastActivityForUser(member.id).then(data => {\n setLastActivityDate(data);\n });\n setLoad(false);\n };\n if (load === true) {\n reload();\n }\n }, [load]);\n if (load === true) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_4__[\"default\"], null);\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"member-content\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_ReturnLink__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n action: removeActiveMember\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h1\", {\n style: {\n marginBottom: '20px'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"strong\", null, \"\\u010Clen:\"), ' ' + member.loginName, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n style: {\n float: 'right',\n display: 'flex',\n alignItems: 'center',\n justifyItems: 'center',\n gap: '10px'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n style: {\n color: '$grey',\n fontSize: '13px',\n height: 'max-content'\n }\n }, member.email), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: member.picture\n },\n style: {\n height: '25px'\n }\n }))), Helpers_LicenceHelper__WEBPACK_IMPORTED_MODULE_6__.LicenceHelper.hasFmLicence() ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n fontSize: '13px',\n marginTop: '-20px'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"strong\", null, \"Posledn\\xED p\\u0159ihl\\xE1\\u0161en\\xED: \"), lastActivityDate !== null ? lastActivityDate.getDateCzech() + ' v ' + lastActivityDate.getHoursAndMinutes() : 'Nebyla zaznamenána žádná aktivita', /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"a\", {\n href: 'user-edit.php?user_id=' + member.id\n }, \"Nastaven\\xED u\\u017Eivatele\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h1\", null, \"\\u010Clensk\\xE9 sekce\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_UserMembershipsForm__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n userId: member.id,\n onSave: () => {\n setLoad(true);\n }\n }), Helpers_LicenceHelper__WEBPACK_IMPORTED_MODULE_6__.LicenceHelper.hasFmLicence() ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h1\", null, \"Historie Zm\\u011Bn\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), memberChanges.map( change => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Content_Members_MembershipChange__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n change: change\n }))) : null);\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Member);\n\n//# sourceURL=webpack://app/./src/Components/Content/Members/Member.js?");38 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var Components_Elements_ReturnLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! Components/Elements/ReturnLink */ \"./src/Components/Elements/ReturnLink.js\");\n/* harmony import */ var Components_Elements_UserMembershipsForm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! Components/Elements/UserMembershipsForm */ \"./src/Components/Elements/UserMembershipsForm.js\");\n/* harmony import */ var Clients_StatisticsClient__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! Clients/StatisticsClient */ \"./src/Clients/StatisticsClient.js\");\n/* harmony import */ var Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! Components/Elements/Loading */ \"./src/Components/Elements/Loading.js\");\n/* harmony import */ var Components_Content_Members_MembershipChange__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! Components/Content/Members/MembershipChange */ \"./src/Components/Content/Members/MembershipChange.js\");\n/* harmony import */ var Helpers_LicenceHelper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! Helpers/LicenceHelper */ \"./src/Helpers/LicenceHelper.js\");\n\n\n\n\n\n\n\nfunction Member(_ref) {\n let {\n member,\n removeActiveMember\n } = _ref;\n const [memberChanges, setMemberChanges] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]);\n const [lastActivityDate, setLastActivityDate] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n const statisticsClient = new Clients_StatisticsClient__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n const [load, setLoad] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true);\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n const reload = async () => {\n await statisticsClient.getMembershipChangesForUser(member.id).then(data => {\n setMemberChanges(data);\n });\n await statisticsClient.getLastActivityForUser(member.id).then(data => {\n setLastActivityDate(data);\n });\n setLoad(false);\n };\n if (load === true) {\n reload();\n }\n }, [load]);\n if (load === true) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_4__[\"default\"], null);\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"member-content\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_ReturnLink__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n action: removeActiveMember\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h1\", {\n style: {\n marginBottom: '20px'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"strong\", null, \"\\u010Clen:\"), ' ' + member.loginName, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n style: {\n float: 'right',\n display: 'flex',\n alignItems: 'center',\n justifyItems: 'center',\n gap: '10px'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n style: {\n color: '$grey',\n fontSize: '13px',\n height: 'max-content'\n }\n }, member.email), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: member.picture\n },\n style: {\n height: '25px'\n }\n }))), Helpers_LicenceHelper__WEBPACK_IMPORTED_MODULE_6__.LicenceHelper.hasFmLicence() ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n fontSize: '13px',\n marginTop: '-20px'\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"strong\", null, \"Posledn\\xED p\\u0159ihl\\xE1\\u0161en\\xED: \"), lastActivityDate !== null ? lastActivityDate.getDateCzech() + ' v ' + lastActivityDate.getHoursAndMinutes() : 'Nebyla zaznamenána žádná aktivita', /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"a\", {\n href: 'user-edit.php?user_id=' + member.id\n }, \"Nastaven\\xED u\\u017Eivatele\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h1\", null, \"\\u010Clensk\\xE9 sekce\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_UserMembershipsForm__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n userId: member.id,\n onSave: () => {\n setLoad(true);\n }\n }), Helpers_LicenceHelper__WEBPACK_IMPORTED_MODULE_6__.LicenceHelper.hasFmLicence() ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h1\", null, \"Historie Zm\\u011Bn\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), memberChanges.map((change, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Content_Members_MembershipChange__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n key: index,\n change: change\n }))) : null);\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Member);\n\n//# sourceURL=webpack://app/./src/Components/Content/Members/Member.js?"); 39 39 40 40 /***/ }), -
fapi-member/trunk/app/dist/src_Components_Content_NoFmLicence_js.bundle.js
r3187776 r3225104 16 16 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 17 17 18 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var Images_stats_example_png__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! Images/stats-example.png */ \"./src/Media/Images/stats-example.png\");\n/* harmony import */ var Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! Components/Elements/Loading */ \"./src/Components/Elements/Loading.js\");\n/* harmony import */ var Clients_ApiConnectionClient__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! Clients/ApiConnectionClient */ \"./src/Clients/ApiConnectionClient.js\");\n\n\n\n\nconst NoFmLicence = () => {\n const [loading, setLoading] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true);\n const [urlObject, setUrlObject] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n const connectionClient = new Clients_ApiConnectionClient__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n const fetchInitialData = async () => {\n var _connection$billing, _connection$billing2, _connection$billing3, _connection$billing4, _connection$billing5, _connection$billing6, _connection$billing7, _connection$billing8, _connection$billing9, _connection$billing10;\n const connections = await connectionClient.list();\n const connection = connections[0] || {};\n const urlObject = new URL('https://page.fapi.cz/10559/fapi-member-pro');\n const data = {\n \"fapi-form-email\": (_connection$billing = connection.billing) === null || _connection$billing === void 0 ? void 0 : _connection$billing.email,\n \"fapi-form-mobil\": (_connection$billing2 = connection.billing) === null || _connection$billing2 === void 0 ? void 0 : _connection$billing2.phone,\n \"fapi-form-company\": (_connection$billing3 = connection.billing) === null || _connection$billing3 === void 0 ? void 0 : _connection$billing3.name,\n \"fapi-form-ic\": (_connection$billing4 = connection.billing) === null || _connection$billing4 === void 0 ? void 0 : _connection$billing4.ic,\n \"fapi-form-dic\": (_connection$billing5 = connection.billing) === null || _connection$billing5 === void 0 ? void 0 : _connection$billing5.dic,\n \"fapi-form-ic-dph\": (_connection$billing6 = connection.billing) === null || _connection$billing6 === void 0 ? void 0 : _connection$billing6['ic_dph'],\n \"fapi-form-street\": (_connection$billing7 = connection.billing) === null || _connection$billing7 === void 0 || (_connection$billing7 = _connection$billing7.address) === null || _connection$billing7 === void 0 ? void 0 : _connection$billing7.street,\n \"fapi-form-city\": (_connection$billing8 = connection.billing) === null || _connection$billing8 === void 0 || (_connection$billing8 = _connection$billing8.address) === null || _connection$billing8 === void 0 ? void 0 : _connection$billing8.city,\n \"fapi-form-postcode\": (_connection$billing9 = connection.billing) === null || _connection$billing9 === void 0 || (_connection$billing9 = _connection$billing9.address) === null || _connection$billing9 === void 0 ? void 0 : _connection$billing9.zip,\n \"fapi-form-state\": (_connection$billing10 = connection.billing) === null || _connection$billing10 === void 0 || (_connection$billing10 = _connection$billing10.address) === null || _connection$billing10 === void 0 ? void 0 : _connection$billing10.country\n };\n const jsonData = JSON.stringify(data);\n const base64EncodedData = btoa(encodeURIComponent(jsonData));\n urlObject.search += \"fapi-form-data=\".concat(base64EncodedData);\n setUrlObject(urlObject);\n setLoading(false);\n };\n if (loading) {\n fetchInitialData();\n }\n }, [loading]);\n if (loading === null) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null);\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"fm-no-licence\" \n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"a\", {\n className: \"fm-link-button\",\n target: \"_blank\",\n href: urlObject\n }, \"Z\\xEDskat FAPI Member Pro\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"image\",\n style: {\n backgroundImage: \"url(\".concat(Images_stats_example_png__WEBPACK_IMPORTED_MODULE_1__[\"default\"], \")\")\n }\n }));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NoFmLicence);\n\n//# sourceURL=webpack://app/./src/Components/Content/NoFmLicence.js?");18 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var Images_stats_example_png__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! Images/stats-example.png */ \"./src/Media/Images/stats-example.png\");\n/* harmony import */ var Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! Components/Elements/Loading */ \"./src/Components/Elements/Loading.js\");\n/* harmony import */ var Clients_ApiConnectionClient__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! Clients/ApiConnectionClient */ \"./src/Clients/ApiConnectionClient.js\");\n\n\n\n\nconst NoFmLicence = () => {\n const [loading, setLoading] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true);\n const [urlObject, setUrlObject] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n const connectionClient = new Clients_ApiConnectionClient__WEBPACK_IMPORTED_MODULE_3__[\"default\"]();\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n const fetchInitialData = async () => {\n var _connection$billing, _connection$billing2, _connection$billing3, _connection$billing4, _connection$billing5, _connection$billing6, _connection$billing7, _connection$billing8, _connection$billing9, _connection$billing10;\n const connections = await connectionClient.list();\n const connection = connections[0] || {};\n const urlObject = new URL('https://page.fapi.cz/10559/fapi-member-pro');\n const data = {\n \"fapi-form-email\": (_connection$billing = connection.billing) === null || _connection$billing === void 0 ? void 0 : _connection$billing.email,\n \"fapi-form-mobil\": (_connection$billing2 = connection.billing) === null || _connection$billing2 === void 0 ? void 0 : _connection$billing2.phone,\n \"fapi-form-company\": (_connection$billing3 = connection.billing) === null || _connection$billing3 === void 0 ? void 0 : _connection$billing3.name,\n \"fapi-form-ic\": (_connection$billing4 = connection.billing) === null || _connection$billing4 === void 0 ? void 0 : _connection$billing4.ic,\n \"fapi-form-dic\": (_connection$billing5 = connection.billing) === null || _connection$billing5 === void 0 ? void 0 : _connection$billing5.dic,\n \"fapi-form-ic-dph\": (_connection$billing6 = connection.billing) === null || _connection$billing6 === void 0 ? void 0 : _connection$billing6['ic_dph'],\n \"fapi-form-street\": (_connection$billing7 = connection.billing) === null || _connection$billing7 === void 0 || (_connection$billing7 = _connection$billing7.address) === null || _connection$billing7 === void 0 ? void 0 : _connection$billing7.street,\n \"fapi-form-city\": (_connection$billing8 = connection.billing) === null || _connection$billing8 === void 0 || (_connection$billing8 = _connection$billing8.address) === null || _connection$billing8 === void 0 ? void 0 : _connection$billing8.city,\n \"fapi-form-postcode\": (_connection$billing9 = connection.billing) === null || _connection$billing9 === void 0 || (_connection$billing9 = _connection$billing9.address) === null || _connection$billing9 === void 0 ? void 0 : _connection$billing9.zip,\n \"fapi-form-state\": (_connection$billing10 = connection.billing) === null || _connection$billing10 === void 0 || (_connection$billing10 = _connection$billing10.address) === null || _connection$billing10 === void 0 ? void 0 : _connection$billing10.country\n };\n const jsonData = JSON.stringify(data);\n const base64EncodedData = btoa(encodeURIComponent(jsonData));\n urlObject.search += \"fapi-form-data=\".concat(base64EncodedData);\n setUrlObject(urlObject);\n setLoading(false);\n };\n if (loading) {\n fetchInitialData();\n }\n }, [loading]);\n if (loading === null) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null);\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"fm-no-licence\",\n style: {\n backgroundImage: \"url(\".concat(Images_stats_example_png__WEBPACK_IMPORTED_MODULE_1__[\"default\"], \")\")\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"blur-filter\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"a\", {\n className: \"fm-link-button\",\n target: \"_blank\",\n href: urlObject\n }, \"Z\\xEDskat FAPI Member Pro\")));\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NoFmLicence);\n\n//# sourceURL=webpack://app/./src/Components/Content/NoFmLicence.js?"); 19 19 20 20 /***/ }), -
fapi-member/trunk/fapi-member.php
r3205399 r3225104 15 15 * Plugin URI: https://fapi.cz/ 16 16 * Description: Plugin FAPI pro jednoduchou správu členských sekcí na webu. 17 * Version: 2.2.1 117 * Version: 2.2.12 18 18 * Requires at least: 5.9 19 19 * Requires PHP: 8.1 … … 30 30 require __DIR__ . '/src/Utils/functions.php'; 31 31 32 define('FAPI_MEMBER_PLUGIN_VERSION', '2.2.1 1');32 define('FAPI_MEMBER_PLUGIN_VERSION', '2.2.12'); 33 33 34 34 $FapiPlugin = new FapiMemberPlugin(); -
fapi-member/trunk/readme.txt
r3205399 r3225104 3 3 Tags: membership, fapi, member 4 4 Requires at least: 5.9 5 Tested up to: 6. 45 Tested up to: 6.7 6 6 Requires PHP: 8.1 7 7 License: GPLv2 or later 8 Stable tag: 2.2.1 18 Stable tag: 2.2.12 9 9 10 10 Plugin FAPI pro jednoduchou správu členských sekcí na webu. … … 26 26 27 27 == Changelog == 28 29 = 2.2.12 = 30 * Fixed session error 28 31 29 32 = 2.2.11 = -
fapi-member/trunk/src/Bootstrap.php
r3202134 r3225104 74 74 public function initialize(): void 75 75 { 76 session_start();77 78 76 $this->addHooks(); 79 77 $this->generateTokenIfNeeded(); -
fapi-member/trunk/src/Service/MembershipService.php
r3161406 r3225104 11 11 use FapiMember\Model\Membership; 12 12 use FapiMember\Repository\LevelRepository; 13 use FapiMember\Repository\MembershipChangeRepository;14 13 use FapiMember\Repository\MembershipRepository; 15 14 use FapiMember\Repository\UserRepository; … … 38 37 39 38 return $memberships; 40 }41 42 /**43 * @return array<Membership>44 */45 public function getActiveByUserId(int $userId): array46 {47 return $this->membershipRepository->getActiveByUserId($userId);48 39 } 49 40 -
fapi-member/trunk/src/Service/RedirectService.php
r3202134 r3225104 115 115 global $wp_query; 116 116 117 session_start(); 118 117 119 $_SESSION[SessionKey::LAST_PAGE_ID] = $wp_query->post->ID; 120 121 session_write_close(); 118 122 119 123 $level = $this->levelRepository->getLevelById($levelId); … … 159 163 160 164 $allowedPages = array_unique(array_filter($allowedPages)); 165 $lastPageId = null; 166 session_start(); 161 167 162 168 if ( … … 165 171 in_array($_SESSION[SessionKey::LAST_PAGE_ID], $allowedPages) 166 172 ) { 167 $this->redirectToPage($_SESSION[SessionKey::LAST_PAGE_ID]); 168 $_SESSION[SessionKey::LAST_PAGE_ID] = null; 173 $lastPageId = $_SESSION[SessionKey::LAST_PAGE_ID]; 169 174 } 170 175 171 176 $_SESSION[SessionKey::LAST_PAGE_ID] = null; 177 session_write_close(); 178 179 if ($lastPageId !== null) { 180 $this->redirectToPage($lastPageId); 181 } 172 182 173 183 $pages = array_map( -
fapi-member/trunk/vendor/composer/installed.php
r3187776 r3225104 2 2 'root' => array( 3 3 'name' => 'fapi-cz/fapi-member', 4 'pretty_version' => ' 1.0.0+no-version-set',5 'version' => ' 1.0.0.0',6 'reference' => null,4 'pretty_version' => 'dev-master', 5 'version' => 'dev-master', 6 'reference' => '70d9af1c52d5217f23413ca258af407a70a8e859', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'fapi-cz/fapi-member' => array( 14 'pretty_version' => ' 1.0.0+no-version-set',15 'version' => ' 1.0.0.0',16 'reference' => null,14 'pretty_version' => 'dev-master', 15 'version' => 'dev-master', 16 'reference' => '70d9af1c52d5217f23413ca258af407a70a8e859', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.