api-keys.js
5 years ago
api-keys.min.js
3 years ago
backbone-modal.js
2 weeks ago
backbone-modal.min.js
2 weeks ago
marketplace-suggestions.js
1 year ago
marketplace-suggestions.min.js
1 year ago
meta-boxes-coupon.js
1 year ago
meta-boxes-coupon.min.js
1 year ago
meta-boxes-order.js
2 weeks ago
meta-boxes-order.min.js
2 weeks ago
meta-boxes-product-variation.js
2 weeks ago
meta-boxes-product-variation.min.js
2 weeks ago
meta-boxes-product.js
2 weeks ago
meta-boxes-product.min.js
2 weeks ago
meta-boxes.js
6 months ago
meta-boxes.min.js
6 months ago
network-orders.js
8 years ago
network-orders.min.js
3 years ago
order-attribution-admin.js
2 years ago
order-attribution-admin.min.js
2 years ago
product-editor.js
1 year ago
product-editor.min.js
1 year ago
product-ordering.js
5 months ago
product-ordering.min.js
5 months ago
quick-edit.js
2 weeks ago
quick-edit.min.js
2 weeks ago
reports.js
1 year ago
reports.min.js
1 year ago
settings-views-html-settings-tax.js
1 month ago
settings-views-html-settings-tax.min.js
1 month ago
settings.js
1 year ago
settings.min.js
1 year ago
system-status.js
1 month ago
system-status.min.js
1 month ago
term-ordering.js
5 months ago
term-ordering.min.js
5 months ago
users.js
5 years ago
users.min.js
3 years ago
variation-gallery.js
2 months ago
variation-gallery.min.js
2 months ago
wc-admin-notices.js
2 weeks ago
wc-admin-notices.min.js
2 weeks ago
wc-brands-enhanced-select.js
1 year ago
wc-brands-enhanced-select.min.js
1 year ago
wc-clipboard.js
5 years ago
wc-clipboard.min.js
5 years ago
wc-customer-stock-notifications.js
1 year ago
wc-customer-stock-notifications.min.js
1 year ago
wc-enhanced-select.js
2 weeks ago
wc-enhanced-select.min.js
2 weeks ago
wc-orders.js
3 weeks ago
wc-orders.min.js
3 weeks ago
wc-product-export.js
1 year ago
wc-product-export.min.js
1 year ago
wc-product-import.js
3 years ago
wc-product-import.min.js
3 years ago
wc-recent-reviews-widget-async.js
6 months ago
wc-recent-reviews-widget-async.min.js
6 months ago
wc-setup.js
5 years ago
wc-setup.min.js
3 years ago
wc-shipping-classes.js
1 year ago
wc-shipping-classes.min.js
1 year ago
wc-shipping-providers.js
5 months ago
wc-shipping-providers.min.js
5 months ago
wc-shipping-zone-methods.js
2 weeks ago
wc-shipping-zone-methods.min.js
2 weeks ago
wc-shipping-zones.js
1 year ago
wc-shipping-zones.min.js
1 year ago
wc-status-widget-async.js
6 months ago
wc-status-widget-async.min.js
6 months ago
wc-status-widget.js
1 year ago
wc-status-widget.min.js
1 year ago
woocommerce_admin.js
1 month ago
woocommerce_admin.min.js
1 month ago
system-status.min.js
1 lines
| 1 | jQuery(function(t){var o={toolsPollTimer:null,toolsPollInProgress:!1,init:function(){t(document.body).on("click","a.help_tip, a.woocommerce-help-tip, woocommerce-product-type-tip",this.preventTipTipClick).on("click","a.debug-report",this.generateReport).on("click","#copy-for-support",this.copyReport).on("click","#copy-for-github",this.copyGithubReport).on("aftercopy","#copy-for-support, #copy-for-github",this.copySuccess).on("aftercopyfailure","#copy-for-support, #copy-for-github",this.copyFail).on("click","#download-for-support",this.downloadReport),this.maybePollTools()},maybePollTools:function(){!this.toolsPollTimer&&woocommerce_admin_system_status.tools_url&&this.shouldPollTools()&&(this.toolsPollTimer=window.setInterval(t.proxy(this.pollTools,this),parseInt(woocommerce_admin_system_status.tools_poll_interval,10)||1e4))},shouldPollTools:function(){return t(".wc_status_table--tools tr.requires-refresh").is(function(){var o=t(this);return o.find(".run-tool-status").length>0||o.find(".run-tool .button:disabled").length>0})},pollTools:function(){if(!this.toolsPollInProgress){this.toolsPollInProgress=!0;var o=this,e=woocommerce_admin_system_status.tools_url,r=e+(-1===e.indexOf("?")?"?":"&")+"wc_status_tools_poll="+Date.now();t.get(r).done(function(e){var r=t("<div>").append(t.parseHTML(e));t(".wc_status_table--tools tr.requires-refresh").each(function(){var o=t(this),e=o.data("tool-action");if(e){var n=r.find('.wc_status_table--tools tr[data-tool-action="'+e+'"]');n.length&&o.replaceWith(n)}}),o.shouldPollTools()||(window.clearInterval(o.toolsPollTimer),o.toolsPollTimer=null)}).fail(function(){window.clearInterval(o.toolsPollTimer),o.toolsPollTimer=null}).always(function(){o.toolsPollInProgress=!1})}},preventTipTipClick:function(){return!1},generateReport:function(){var o="";t(".wc_status_table thead, .wc_status_table tbody").each(function(){if(t(this).is("thead")){var e=t(this).find("th:eq(0)").data("exportLabel")||t(this).text();o=o+"\n### "+e.trim()+" ###\n\n"}else t("tr",t(this)).each(function(){var e=(t(this).find("td:eq(0)").data("exportLabel")||t(this).find("td:eq(0)").text()).trim().replace(/(<([^>]+)>)/gi,""),r=t(this).find("td:eq(2)").clone();r.find(".private").remove(),r.find(".dashicons-yes").replaceWith("✔"),r.find(".dashicons-no-alt, .dashicons-warning").replaceWith("❌");var n=r.text().trim(),i=n.split(", ");if(i.length>1){var a="";t.each(i,function(t,o){a=a+o+"\n"}),n=a}e||n?o=o+""+e+": "+n+"\n":o+="\n"})});try{return t("#debug-report").slideDown(),t("#debug-report").find("textarea").val("`"+o+"`").trigger("focus").trigger("select"),t(this).fadeOut(),!1}catch(e){window.console.log(e)}return!1},copyReport:function(o){wcClearClipboard(),wcSetClipboard(t("#debug-report").find("textarea").val(),t(this)),o.preventDefault()},applyRedactions:t=>([{regex:/(WordPress address \(URL\):)[^\n]*/,replacement:"$1 [Redacted]"},{regex:/(Site address \(URL\):)[^\n]*/,replacement:"$1 [Redacted]"},{regex:/(### Database ###\n)([\s\S]*?)(\n### Post Type Counts ###)/,replacement:"$1\n[REDACTED]\n$3"}].forEach(function(o){t=t.replace(o.regex,o.replacement)}),t),copyGithubReport:function(e){wcClearClipboard();var r=t("#debug-report").find("textarea").val(),n=o.applyRedactions(r);wcSetClipboard("<details><summary>System Status Report</summary>\n\n``"+n+"``\n</details>",t(this)),e.preventDefault()},copySuccess:function(o){t(o.target).tipTip({attribute:"data-tip",activation:"focus",fadeIn:50,fadeOut:50,delay:0}).trigger("focus")},copyFail:function(){t(".copy-error").removeClass("hidden"),t("#debug-report").find("textarea").trigger("focus").trigger("select")},downloadReport:function(){var o=new Blob([t("#debug-report").find("textarea").val()],{type:"text/plain"}),e=window.location.hostname,r=(new Date).toISOString().slice(0,19).replace(/:/g,"-"),n=document.createElement("a");n.download="SystemStatusReport_"+e+"_"+r+".txt",n.href=window.URL.createObjectURL(o),n.textContent="Download ready",n.style="display:none",n.click(),n.remove()}};o.init(),t(".wc_status_table").on("click",".run-tool input.button",function(t){return t.stopImmediatePropagation(),window.confirm(woocommerce_admin_system_status.run_tool_confirmation)}),t("#log-viewer-select").on("click","h2 a.page-title-action",function(t){return t.stopImmediatePropagation(),window.confirm(woocommerce_admin_system_status.delete_log_confirmation)})}); |