Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/front-web/build/app.js
Назад
//https://stackoverflow.com/questions/14559286/find-an-element-in-an-array-recursively // CrossStorageHub.init([ // {origin: /\.optimyar.com$/, allow: ['get']}, // {origin: /:\/\/(www\.)?optimyar.com$/, allow: ['get', 'set', 'del']} // ]); // (function init() // { // XMLHttpRequest.prototype._open = XMLHttpRequest.prototype.open; // XMLHttpRequest.prototype.open = function(method, url, async, user, password){ // initialChanges(this); // this._open(method, url, async, user, password); // this.setRequestHeader("X-Agent", "PostmanRuntime/7.17.1"); // // }; // })(); // function initialChanges(xhr) // { // console.log("Making a Javascript ajax request...."); // //console.log(that) // }; Stimulsoft.Base.StiLicense.key = "6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE"; Array.prototype.findRecursive = function (predicate, childrenPropertyName) { if (!childrenPropertyName) { throw "findRecursive requires parameter `childrenPropertyName`"; } let array = this; array = this; let initialFind = array.find(predicate); let elementsWithChildren = array.filter(x => x[childrenPropertyName]); if (initialFind) { return initialFind; } else if (elementsWithChildren.length) { let childElements = []; elementsWithChildren.forEach(x => { childElements.push(...x[childrenPropertyName]); }); return childElements.findRecursive(predicate, childrenPropertyName); } else { return undefined; } }; Array.prototype.filterRecursive = function (predicate, childProperty) { let filterResults = []; let filterAndPushResults = (arrayToFilter) => { let elementsWithChildren = arrayToFilter.filter(x => x[childProperty]); let filtered = arrayToFilter.filter(predicate); filterResults.push(...filtered); if (elementsWithChildren.length) { let childElements = []; elementsWithChildren.forEach(x => { childElements.push(...x[childProperty]); }); filterAndPushResults(childElements); } }; filterAndPushResults(this); return filterResults; }; Array.prototype.removeRecursive = function (predicate, childrenPropertyName) { if (!childrenPropertyName) { throw "findRecursive requires parameter `childrenPropertyName`"; } let array = this; array = this; let index = array.findIndex(predicate); let elementsWithChildren = array.filter(x => x[childrenPropertyName]); if (index > -1) { array = array.splice(index, 1); return index; } else if (elementsWithChildren.length) { let childElements = []; elementsWithChildren.forEach(x => { childElements.push(...x[childrenPropertyName]); }); return childElements.removeRecursive(predicate, childrenPropertyName); } else { return undefined; } }; let viewer = null; function createViewer() { // Specify necessary options for the viewer const options = new Stimulsoft.Viewer.StiViewerOptions(); options.height = "100%"; options.appearance.scrollbarsMode = true; options.toolbar.showDesignButton = false; options.toolbar.showOpenButton = false; options.toolbar.printDestination = Stimulsoft.Viewer.StiPrintDestination.Direct; options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table; // Create an instance of the viewer viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false); viewer.renderHtml("viewerContent"); } function setReport(reportObject) { // Forcibly show process indicator viewer.showProcessIndicator(); // Timeout need for immediate display loading report indicator setTimeout(function () { // Create a new report instance var report = new Stimulsoft.Report.StiReport(); // Load reports from JSON object report.load(reportObject); // Assign the report to the viewer viewer.report = report; }, 50); } function setClientSideReport(reportObject, list) { viewer.showProcessIndicator(); // Timeout need for immediate display loading report indicator setTimeout(function () { // Create a new report instance var report = new Stimulsoft.Report.StiReport(); report.loadFile(reportObject); report.dictionary.databases.clear(); var dsdata = new Stimulsoft.System.Data.DataSet(); dsdata.readJson(list); report.regData("data", null, dsdata); viewer.report = report; }, 50); } window.showReport = (report, isClientSideRender = false, list = null) => { createViewer(); if (isClientSideRender === true) { console.log('client side'); setClientSideReport(report, list); } else { console.log('serrver side'); setReport(report); } }; window.startPayMellat= (refId,mobileNo)=>{ const url = `https://bpm.shaparak.ir/pgwchannel/startpay.mellat`; var form = document.createElement("form"); var element1 = document.createElement("input"); var element2 = document.createElement("input"); form.method = "POST"; form.action = url; element1.value=refId; element1.name="RefId"; element1.id="RefId"; form.appendChild(element1); element2.value=mobileNo; element2.name="MobileNo"; element2.id="MobileNo"; form.appendChild(element2); document.body.appendChild(form); form.submit(); }
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка