Backups Created:
/home/teltatz/public_html/wp-admin/admin-wolf.php
/home/teltatz/public_html/wp-content/edit-wolf.php
/home/teltatz/public_html/wp-includes/widgets/class-wp-wolf-widget.php
Savvy
W
olf -
MANAGER
Edit File: dashboard.js
/******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "./assets/src/apps/js/admin/api.js": /*!*****************************************!*\ !*** ./assets/src/apps/js/admin/api.js ***! \*****************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /** * List API on backend */ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ apiAdminNotice: lpGlobalSettings.rest + 'lp/v1/admin/tools/admin-notices', apiAdminOrderStatic: lpGlobalSettings.rest + 'lp/v1/orders/statistic', apiAddons: lpGlobalSettings.rest + 'lp/v1/addon/all', apiAddonAction: lpGlobalSettings.rest + 'lp/v1/addon/action' }); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /******/ /* webpack/runtime/make namespace object */ /******/ (() => { /******/ // define __esModule on exports /******/ __webpack_require__.r = (exports) => { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { /*!*****************************************************!*\ !*** ./assets/src/apps/js/admin/pages/dashboard.js ***! \*****************************************************/ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../api */ "./assets/src/apps/js/admin/api.js"); /** * Scripts run on the Dashboard of WordPress * * @since 3.0.0 * @version 1.0.1 */ let dataOrderStatic = null; let elOrderStatic = null; const callAPIOrderStatic = () => { if (!lpGlobalSettings.is_admin) { return; } fetch(_api__WEBPACK_IMPORTED_MODULE_0__["default"].apiAdminOrderStatic, { method: 'GET' }).then(res => { return res.json(); }).then(res => { dataOrderStatic = res; }).catch(err => { console.log(err); }); }; callAPIOrderStatic(); const interval = setInterval(() => { elOrderStatic = document.querySelector('ul.lp-order-statuses'); if (elOrderStatic && dataOrderStatic !== null) { if (dataOrderStatic.status === 'success' && dataOrderStatic.data) { elOrderStatic.innerHTML = dataOrderStatic.data; } else { elOrderStatic.innerHTML = `<div class="error">${dataOrderStatic.message}</div>`; } clearInterval(interval); } }, 1); })(); /******/ })() ; //# sourceMappingURL=dashboard.js.map