Plugin Directory

Changeset 3197213


Ignore:
Timestamp:
11/26/2024 09:10:13 AM (17 months ago)
Author:
fapi
Message:

Increased maximum of automatic unlocking by days to 730

Location:
fapi-member
Files:
413 added
3 edited

Legend:

Unmodified
Added
Removed
  • fapi-member/trunk/app/dist/src_Components_Content_Levels_Levels_LevelsContent_Unlocking_js.bundle.js

    r3148644 r3197213  
    1616/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
    1717
    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 Components_Elements_Checkbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! Components/Elements/Checkbox */ \"./src/Components/Elements/Checkbox.js\");\n/* harmony import */ var Components_Elements_SubmitButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! Components/Elements/SubmitButton */ \"./src/Components/Elements/SubmitButton.js\");\n/* harmony import */ var Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! Components/Elements/Loading */ \"./src/Components/Elements/Loading.js\");\n/* harmony import */ var Clients_MemberSectionClient__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! Clients/MemberSectionClient */ \"./src/Clients/MemberSectionClient.js\");\n/* harmony import */ var Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! Enums/UnlockingType */ \"./src/Enums/UnlockingType.js\");\n/* harmony import */ var Components_Elements_HourPicker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! Components/Elements/HourPicker */ \"./src/Components/Elements/HourPicker.js\");\n/* harmony import */ var Helpers_DateTimeHelper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! Helpers/DateTimeHelper */ \"./src/Helpers/DateTimeHelper.js\");\n\n\n\n\n\n\n\n\nfunction Unlocking(_ref) {\n  let {\n    level\n  } = _ref;\n  if (level.parentId === null) {\n    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", {\n      className: \"levels-content level-not-selected\"\n    }, \"Zvolili jste \\u010Dlenskou sekci, pros\\xEDm zvolte \\xFArove\\u0148.\");\n  }\n  const [buttonUnlock, setButtonUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [timeUnlockType, setTimeUnlockType] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [daysUnlock, setDaysUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0);\n  const [dateUnlock, setDateUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [afterDateUnlock, setAfterDateUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [hourUnlock, setHourUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [load, setLoad] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true);\n  const sectionClient = new Clients_MemberSectionClient__WEBPACK_IMPORTED_MODULE_4__[\"default\"]();\n  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n    setTimeUnlockType(null);\n    setLoad(true);\n  }, [level.id]);\n  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n    const reloadUnlocking = async () => {\n      await sectionClient.getUnlocking(level.id).then(data => {\n        var _data$UnlockingType$A;\n        setButtonUnlock(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.BUTTON_UNLOCK]);\n        setTimeUnlockType(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.TIME_UNLOCK]);\n        setDateUnlock(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.DATE_UNLOCK]);\n        setDaysUnlock(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.DAYS_UNLOCK]);\n        setHourUnlock(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.HOUR_UNLOCK]);\n        setAfterDateUnlock((_data$UnlockingType$A = data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.AFTER_DATE_UNLOCK]) !== null && _data$UnlockingType$A !== void 0 ? _data$UnlockingType$A : false);\n      });\n      setLoad(false);\n    };\n    if (load === true) {\n      reloadUnlocking();\n    }\n  }, [load]);\n  const handleChangeButtonUnlock = event => {\n    setButtonUnlock(event.target.checked);\n  };\n  const handleChangeAfterDateUnlock = event => {\n    setAfterDateUnlock(event.target.checked);\n  };\n  const handleChangeTimeUnlock = event => {\n    setTimeUnlockType(event.target.value);\n  };\n  const handleChangeDaysUnlock = event => {\n    setDaysUnlock(parseInt(event.target.value));\n  };\n  const handleChangeDateUnlock = event => {\n    setDateUnlock(event.target.value);\n  };\n  const handleChangeHourUnlock = event => {\n    setHourUnlock(parseInt(event.target.value));\n  };\n  const handleUpdateUnlocking = async event => {\n    event.preventDefault();\n    await sectionClient.updateUnlocking(level.id, buttonUnlock, timeUnlockType, daysUnlock, dateUnlock, afterDateUnlock, hourUnlock);\n    setLoad(true);\n  };\n  if (timeUnlockType === null || buttonUnlock === null || afterDateUnlock === null) {\n    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null);\n  }\n  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"form\", {\n    className: \"levels-content levels-unlocking\",\n    onSubmit: handleUpdateUnlocking\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h4\", null, \"Odemknut\\xED tla\\u010D\\xEDtkem\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: \"fm-checkbox-container\"\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n    htmlFor: \"is-button-unlock\"\n  }, \"Povolit:\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Checkbox__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    checked: buttonUnlock,\n    id: \"is-button-unlock\",\n    onClick: handleChangeButtonUnlock\n  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    id: \"button_unlock_settings\",\n    hidden: !buttonUnlock\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", null, \"K odem\\u010Den\\xED \\xFArovn\\u011B mus\\xED u\\u017Eivatel ji\\u017E m\\xEDt p\\u0159\\xEDstup do dan\\xE9 sekce.\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", null, \"Shortcode tla\\u010D\\xEDtka pro uvoln\\u011Bn\\xED obsahu: \"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"code\", null, '[fapi-member-unlock-level level=' + level.id + ']')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: \"vertical-divider\"\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h4\", null, \"\\u010Casov\\u011B omezen\\xE9 odemyk\\xE1n\\xED \\xFArovn\\u011B\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"radio\",\n    name: \"time_unlock\",\n    value: \"disallow\",\n    id: \"disallow\",\n    onClick: handleChangeTimeUnlock,\n    defaultChecked: timeUnlockType === 'disallow'\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n    htmlFor: \"disallow\"\n  }, \"Nepovolovat\")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"radio\",\n    name: \"time_unlock\",\n    value: \"date\",\n    id: \"date\",\n    onClick: handleChangeTimeUnlock,\n    defaultChecked: timeUnlockType === 'date'\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n    htmlFor: \"date\"\n  }, \"Od pevn\\xE9ho data\")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"radio\",\n    name: \"time_unlock\",\n    value: \"days\",\n    id: \"days\",\n    onClick: handleChangeTimeUnlock,\n    defaultChecked: timeUnlockType === 'days'\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n    htmlFor: \"days\"\n  }, \"Po\\u010Det dn\\xED od registrace\")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    id: \"date-settings-content\",\n    hidden: timeUnlockType !== 'date'\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", null, \"Datum kdy bude sekce/\\xFArove\\u0148 odem\\u010Dena pro v\\u0161echny \\u010Dleny sekce.\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"date\",\n    name: \"unlock-date\",\n    defaultValue: dateUnlock,\n    onInput: handleChangeDateUnlock\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    style: {\n      margin: '0px 5px'\n    }\n  }, \"v\"), timeUnlockType === 'date' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_HourPicker__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n    id: 'unlock-hour',\n    onChange: handleChangeHourUnlock,\n    defaultValue: hourUnlock\n  }) : null, /*#__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(\"div\", {\n    className: \"fm-checkbox-container\"\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Checkbox__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    id: \"after-date-unlocking\",\n    checked: afterDateUnlock,\n    small: true,\n    onClick: handleChangeAfterDateUnlock\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", {\n    style: {\n      margin: '0px'\n    }\n  }, \"Neodemykat pro u\\u017Eivatele registrovan\\xE9 po uplynut\\xED data\"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    id: \"days-settings-content\",\n    hidden: timeUnlockType !== 'days'\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", null, \"Po\\u010Det dn\\xED od registrace u\\u017Eivatele do \\u010Dlensk\\xE9 sekce, po kter\\xFDch m\\xE1 b\\xFDt vybran\\xE1 sekce/\\xFArove\\u0148 zp\\u0159\\xEDstupn\\u011Bna.\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"number\",\n    min: \"0\",\n    max: \"100\",\n    name: \"days-to-unlock\",\n    defaultValue: daysUnlock,\n    onInput: e => {\n      e.target.value = Math.abs(e.target.value);\n      handleChangeDaysUnlock(e);\n    }\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    style: {\n      margin: '0px 5px'\n    }\n  }, \"dn\\xED po registraci v\"), timeUnlockType === 'days' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_HourPicker__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n    id: 'unlock-hour',\n    onChange: handleChangeHourUnlock,\n    defaultValue: hourUnlock\n  }) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", null, \"Pokud bude u\\u017Eivatel do sekce registrov\\xE1n \", Helpers_DateTimeHelper__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCurrentDateTime().getDateCzech(), \", \\xFArove\\u0148 bude odem\\u010Dena \", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    style: {\n      color: 'black'\n    }\n  }, Helpers_DateTimeHelper__WEBPACK_IMPORTED_MODULE_7__[\"default\"].addDaysToDateTime(Helpers_DateTimeHelper__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCurrentDateTime(), daysUnlock).getDateCzech(), \" v \", hourUnlock, \":00 \"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: \"vertical-divider\"\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_SubmitButton__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n    text: 'Uložit',\n    show: !load,\n    centered: true,\n    big: true\n  }));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Unlocking);\n\n//# sourceURL=webpack://app/./src/Components/Content/Levels/Levels/LevelsContent/Unlocking.js?");
     18eval("__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_Checkbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! Components/Elements/Checkbox */ \"./src/Components/Elements/Checkbox.js\");\n/* harmony import */ var Components_Elements_SubmitButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! Components/Elements/SubmitButton */ \"./src/Components/Elements/SubmitButton.js\");\n/* harmony import */ var Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! Components/Elements/Loading */ \"./src/Components/Elements/Loading.js\");\n/* harmony import */ var Clients_MemberSectionClient__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! Clients/MemberSectionClient */ \"./src/Clients/MemberSectionClient.js\");\n/* harmony import */ var Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! Enums/UnlockingType */ \"./src/Enums/UnlockingType.js\");\n/* harmony import */ var Components_Elements_HourPicker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! Components/Elements/HourPicker */ \"./src/Components/Elements/HourPicker.js\");\n/* harmony import */ var Helpers_DateTimeHelper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! Helpers/DateTimeHelper */ \"./src/Helpers/DateTimeHelper.js\");\n\n\n\n\n\n\n\n\nfunction Unlocking(_ref) {\n  let {\n    level\n  } = _ref;\n  if (level.parentId === null) {\n    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", {\n      className: \"levels-content level-not-selected\"\n    }, \"Zvolili jste \\u010Dlenskou sekci, pros\\xEDm zvolte \\xFArove\\u0148.\");\n  }\n  const [buttonUnlock, setButtonUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [timeUnlockType, setTimeUnlockType] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [daysUnlock, setDaysUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0);\n  const [dateUnlock, setDateUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [afterDateUnlock, setAfterDateUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [hourUnlock, setHourUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);\n  const [load, setLoad] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true);\n  const sectionClient = new Clients_MemberSectionClient__WEBPACK_IMPORTED_MODULE_4__[\"default\"]();\n  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n    setTimeUnlockType(null);\n    setLoad(true);\n  }, [level.id]);\n  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n    const reloadUnlocking = async () => {\n      await sectionClient.getUnlocking(level.id).then(data => {\n        var _data$UnlockingType$A;\n        setButtonUnlock(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.BUTTON_UNLOCK]);\n        setTimeUnlockType(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.TIME_UNLOCK]);\n        setDateUnlock(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.DATE_UNLOCK]);\n        setDaysUnlock(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.DAYS_UNLOCK]);\n        setHourUnlock(data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.HOUR_UNLOCK]);\n        setAfterDateUnlock((_data$UnlockingType$A = data[Enums_UnlockingType__WEBPACK_IMPORTED_MODULE_5__.UnlockingType.AFTER_DATE_UNLOCK]) !== null && _data$UnlockingType$A !== void 0 ? _data$UnlockingType$A : false);\n      });\n      setLoad(false);\n    };\n    if (load === true) {\n      reloadUnlocking();\n    }\n  }, [load]);\n  const handleChangeButtonUnlock = event => {\n    setButtonUnlock(event.target.checked);\n  };\n  const handleChangeAfterDateUnlock = event => {\n    setAfterDateUnlock(event.target.checked);\n  };\n  const handleChangeTimeUnlock = event => {\n    setTimeUnlockType(event.target.value);\n  };\n  const handleChangeDaysUnlock = event => {\n    setDaysUnlock(parseInt(event.target.value));\n  };\n  const handleChangeDateUnlock = event => {\n    setDateUnlock(event.target.value);\n  };\n  const handleChangeHourUnlock = event => {\n    setHourUnlock(parseInt(event.target.value));\n  };\n  const handleUpdateUnlocking = async event => {\n    event.preventDefault();\n    await sectionClient.updateUnlocking(level.id, buttonUnlock, timeUnlockType, daysUnlock, dateUnlock, afterDateUnlock, hourUnlock);\n    setLoad(true);\n  };\n  if (timeUnlockType === null || buttonUnlock === null || afterDateUnlock === null) {\n    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Loading__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null);\n  }\n  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"form\", {\n    className: \"levels-content levels-unlocking\",\n    onSubmit: handleUpdateUnlocking\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h4\", null, \"Odemknut\\xED tla\\u010D\\xEDtkem\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: \"fm-checkbox-container\"\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n    htmlFor: \"is-button-unlock\"\n  }, \"Povolit:\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Checkbox__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    checked: buttonUnlock,\n    id: \"is-button-unlock\",\n    onClick: handleChangeButtonUnlock\n  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    id: \"button_unlock_settings\",\n    hidden: !buttonUnlock\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", null, \"K odem\\u010Den\\xED \\xFArovn\\u011B mus\\xED u\\u017Eivatel ji\\u017E m\\xEDt p\\u0159\\xEDstup do dan\\xE9 sekce.\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", null, \"Shortcode tla\\u010D\\xEDtka pro uvoln\\u011Bn\\xED obsahu: \"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"code\", null, '[fapi-member-unlock-level level=' + level.id + ']')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: \"vertical-divider\"\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"br\", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h4\", null, \"\\u010Casov\\u011B omezen\\xE9 odemyk\\xE1n\\xED \\xFArovn\\u011B\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"radio\",\n    name: \"time_unlock\",\n    value: \"disallow\",\n    id: \"disallow\",\n    onClick: handleChangeTimeUnlock,\n    defaultChecked: timeUnlockType === 'disallow'\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n    htmlFor: \"disallow\"\n  }, \"Nepovolovat\")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"radio\",\n    name: \"time_unlock\",\n    value: \"date\",\n    id: \"date\",\n    onClick: handleChangeTimeUnlock,\n    defaultChecked: timeUnlockType === 'date'\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n    htmlFor: \"date\"\n  }, \"Od pevn\\xE9ho data\")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"radio\",\n    name: \"time_unlock\",\n    value: \"days\",\n    id: \"days\",\n    onClick: handleChangeTimeUnlock,\n    defaultChecked: timeUnlockType === 'days'\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n    htmlFor: \"days\"\n  }, \"Po\\u010Det dn\\xED od registrace\")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    id: \"date-settings-content\",\n    hidden: timeUnlockType !== 'date'\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", null, \"Datum kdy bude sekce/\\xFArove\\u0148 odem\\u010Dena pro v\\u0161echny \\u010Dleny sekce.\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"date\",\n    name: \"unlock-date\",\n    defaultValue: dateUnlock,\n    onInput: handleChangeDateUnlock\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    style: {\n      margin: '0px 5px'\n    }\n  }, \"v\"), timeUnlockType === 'date' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_HourPicker__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n    id: 'unlock-hour',\n    onChange: handleChangeHourUnlock,\n    defaultValue: hourUnlock\n  }) : null, /*#__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(\"div\", {\n    className: \"fm-checkbox-container\"\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_Checkbox__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    id: \"after-date-unlocking\",\n    checked: afterDateUnlock,\n    small: true,\n    onClick: handleChangeAfterDateUnlock\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", {\n    style: {\n      margin: '0px'\n    }\n  }, \"Neodemykat pro u\\u017Eivatele registrovan\\xE9 po uplynut\\xED data\"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    id: \"days-settings-content\",\n    hidden: timeUnlockType !== 'days'\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", null, \"Po\\u010Det dn\\xED od registrace u\\u017Eivatele do \\u010Dlensk\\xE9 sekce, po kter\\xFDch m\\xE1 b\\xFDt vybran\\xE1 sekce/\\xFArove\\u0148 zp\\u0159\\xEDstupn\\u011Bna.\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: \"fm-input\",\n    type: \"number\",\n    min: \"0\",\n    max: \"730\",\n    name: \"days-to-unlock\",\n    defaultValue: daysUnlock,\n    onInput: e => {\n      e.target.value = Math.abs(e.target.value);\n      handleChangeDaysUnlock(e);\n    }\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    style: {\n      margin: '0px 5px'\n    }\n  }, \"dn\\xED po registraci v\"), timeUnlockType === 'days' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_HourPicker__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n    id: 'unlock-hour',\n    onChange: handleChangeHourUnlock,\n    defaultValue: hourUnlock\n  }) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", null, \"Pokud bude u\\u017Eivatel do sekce registrov\\xE1n \", Helpers_DateTimeHelper__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCurrentDateTime().getDateCzech(), \", \\xFArove\\u0148 bude odem\\u010Dena \", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    style: {\n      color: 'black'\n    }\n  }, Helpers_DateTimeHelper__WEBPACK_IMPORTED_MODULE_7__[\"default\"].addDaysToDateTime(Helpers_DateTimeHelper__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCurrentDateTime(), daysUnlock).getDateCzech(), \" v \", hourUnlock, \":00 \"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: \"vertical-divider\"\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Components_Elements_SubmitButton__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n    text: 'Uložit',\n    show: !load,\n    centered: true,\n    big: true\n  }));\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Unlocking);\n\n//# sourceURL=webpack://app/./src/Components/Content/Levels/Levels/LevelsContent/Unlocking.js?");
    1919
    2020/***/ }),
  • fapi-member/trunk/fapi-member.php

    r3189252 r3197213  
    1515 * Plugin URI:        https://fapi.cz/
    1616 * Description:       Plugin FAPI pro jednoduchou správu členských sekcí na webu.
    17  * Version:           2.2.6
     17 * Version:           2.2.7
    1818 * Requires at least: 5.9
    1919 * Requires PHP:      8.1
     
    3030require __DIR__ . '/src/Utils/functions.php';
    3131
    32 define('FAPI_MEMBER_PLUGIN_VERSION', '2.2.6');
     32define('FAPI_MEMBER_PLUGIN_VERSION', '2.2.7');
    3333
    3434$FapiPlugin = new FapiMemberPlugin();
  • fapi-member/trunk/readme.txt

    r3189252 r3197213  
    66Requires PHP: 8.1
    77License: GPLv2 or later
    8 Stable tag: 2.2.6
     8Stable tag: 2.2.7
    99
    1010Plugin FAPI pro jednoduchou správu členských sekcí na webu.
     
    2626
    2727== Changelog ==
     28
     29= 2.2.7 =
     30* Increased maximum of automatic unlocking by days to 730
    2831
    2932= 2.2.6 =
Note: See TracChangeset for help on using the changeset viewer.