/
home
/
techb158
/
balacoffee.com
/
wp-content
/
plugins
/
woocommerce
/
assets
/
js
/
admin
/
/home/techb158/balacoffee.com/wp-content/plugins/woocommerce/assets/js/admin
mkdir
upload
Name
Size
Mode
Actions
api-keys.js
3986
0644
edit
dl
rm
api-keys.min.js
2280
0644
edit
dl
rm
backbone-modal.js
4459
0644
edit
dl
rm
backbone-modal.min.js
2837
0644
edit
dl
rm
marketplace-suggestions.js
17243
0644
edit
dl
rm
marketplace-suggestions.min.js
6819
0644
edit
dl
rm
meta-boxes-coupon.js
3057
0644
edit
dl
rm
meta-boxes-coupon.min.js
1650
0644
edit
dl
rm
meta-boxes-order.js
55819
0644
edit
dl
rm
meta-boxes-order.min.js
33916
0644
edit
dl
rm
meta-boxes-product-variation.js
43279
0644
edit
dl
rm
meta-boxes-product-variation.min.js
23090
0644
edit
dl
rm
meta-boxes-product.js
35519
0644
edit
dl
rm
meta-boxes-product.min.js
18679
0644
edit
dl
rm
meta-boxes.js
5069
0644
edit
dl
rm
meta-boxes.min.js
3092
0644
edit
dl
rm
network-orders.js
2394
0644
edit
dl
rm
network-orders.min.js
1281
0644
edit
dl
rm
order-attribution-admin.js
1185
0644
edit
dl
rm
order-attribution-admin.min.js
730
0644
edit
dl
rm
product-editor.js
696
0644
edit
dl
rm
product-editor.min.js
298
0644
edit
dl
rm
product-ordering.js
2667
0644
edit
dl
rm
product-ordering.min.js
1704
0644
edit
dl
rm
quick-edit.js
7231
0644
edit
dl
rm
quick-edit.min.js
4691
0644
edit
dl
rm
reports.js
5518
0644
edit
dl
rm
reports.min.js
2765
0644
edit
dl
rm
settings-views-html-settings-tax.js
12324
0644
edit
dl
rm
settings-views-html-settings-tax.min.js
6231
0644
edit
dl
rm
settings.js
12233
0644
edit
dl
rm
settings.min.js
6402
0644
edit
dl
rm
system-status.js
5511
0644
edit
dl
rm
system-status.min.js
3151
0644
edit
dl
rm
term-ordering.js
4730
0644
edit
dl
rm
term-ordering.min.js
2580
0644
edit
dl
rm
users.js
3875
0644
edit
dl
rm
users.min.js
1915
0644
edit
dl
rm
wc-brands-enhanced-select.js
4160
0644
edit
dl
rm
wc-brands-enhanced-select.min.js
1630
0644
edit
dl
rm
wc-clipboard.js
869
0644
edit
dl
rm
wc-clipboard.min.js
336
0644
edit
dl
rm
wc-customer-stock-notifications.js
1651
0644
edit
dl
rm
wc-customer-stock-notifications.min.js
1154
0644
edit
dl
rm
wc-enhanced-select.js
13906
0644
edit
dl
rm
wc-enhanced-select.min.js
7892
0644
edit
dl
rm
wc-orders.js
2024
0644
edit
dl
rm
wc-orders.min.js
1195
0644
edit
dl
rm
wc-product-export.js
3880
0644
edit
dl
rm
wc-product-export.min.js
2141
0644
edit
dl
rm
wc-product-import.js
2995
0644
edit
dl
rm
wc-product-import.min.js
1742
0644
edit
dl
rm
wc-recent-reviews-widget-async.js
1469
0644
edit
dl
rm
wc-recent-reviews-widget-async.min.js
638
0644
edit
dl
rm
wc-setup.js
10290
0644
edit
dl
rm
wc-setup.min.js
6502
0644
edit
dl
rm
wc-shipping-classes.js
6725
0644
edit
dl
rm
wc-shipping-classes.min.js
3651
0644
edit
dl
rm
wc-shipping-providers.js
7211
0644
edit
dl
rm
wc-shipping-providers.min.js
3996
0644
edit
dl
rm
wc-shipping-zone-methods.js
36277
0644
edit
dl
rm
wc-shipping-zone-methods.min.js
17508
0644
edit
dl
rm
wc-shipping-zones.js
9452
0644
edit
dl
rm
wc-shipping-zones.min.js
4970
0644
edit
dl
rm
wc-status-widget-async.js
1364
0644
edit
dl
rm
wc-status-widget-async.min.js
574
0644
edit
dl
rm
wc-status-widget.js
1824
0644
edit
dl
rm
wc-status-widget.min.js
1074
0644
edit
dl
rm
woocommerce_admin.js
22857
0644
edit
dl
rm
woocommerce_admin.min.js
12214
0644
edit
dl
rm
Edit:
/home/techb158/balacoffee.com/wp-content/plugins/woocommerce/assets/js/admin/system-status.js
(5511B)
/* global jQuery, woocommerce_admin_system_status, wcSetClipboard, wcClearClipboard */ jQuery( function ( $ ) { /** * Users country and state fields */ var wcSystemStatus = { init: function () { $( 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 ); }, /** * Prevent anchor behavior when click on TipTip. * * @return {Bool} */ preventTipTipClick: function() { return false; }, /** * Generate system status report. * * @return {Bool} */ generateReport: function() { var report = ''; $( '.wc_status_table thead, .wc_status_table tbody' ).each( function() { if ( $( this ).is( 'thead' ) ) { var label = $( this ).find( 'th:eq(0)' ).data( 'exportLabel' ) || $( this ).text(); report = report + '\n### ' + label.trim() + ' ###\n\n'; } else { $( 'tr', $( this ) ).each( function() { var label = $( this ).find( 'td:eq(0)' ).data( 'exportLabel' ) || $( this ).find( 'td:eq(0)' ).text(); var the_name = label.trim().replace( /(<([^>]+)>)/ig, '' ); // Remove HTML. // Find value var $value_html = $( this ).find( 'td:eq(2)' ).clone(); $value_html.find( '.private' ).remove(); $value_html.find( '.dashicons-yes' ).replaceWith( '✔' ); $value_html.find( '.dashicons-no-alt, .dashicons-warning' ).replaceWith( '❌' ); // Format value var the_value = $value_html.text().trim(); var value_array = the_value.split( ', ' ); if ( value_array.length > 1 ) { // If value have a list of plugins ','. // Split to add new line. var temp_line =''; $.each( value_array, function( key, line ) { temp_line = temp_line + line + '\n'; }); the_value = temp_line; } if ( the_name || the_value ) { report = report + '' + the_name + ': ' + the_value + '\n'; } else { report = report + '\n'; } }); } }); try { $( '#debug-report' ).slideDown(); $( '#debug-report' ).find( 'textarea' ).val( '`' + report + '`' ).trigger( 'focus' ).trigger( 'select' ); $( this ).fadeOut(); return false; } catch ( e ) { /* jshint devel: true */ console.log( e ); } return false; }, /** * Copy for report. * * @param {Object} evt Copy event. */ copyReport: function( evt ) { wcClearClipboard(); wcSetClipboard( $( '#debug-report' ).find( 'textarea' ).val(), $( this ) ); evt.preventDefault(); }, /** * Apply redactions */ applyRedactions( report ) { var redactions = [ { 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" } ]; redactions.forEach( function( redaction ) { report = report.replace( redaction.regex, redaction.replacement ); }); return report; }, /** * Copy for GitHub report. * * @param {Object} event Copy event. */ copyGithubReport: function( event ) { wcClearClipboard(); var reportValue = $( '#debug-report' ).find( 'textarea' ).val(); var redactedReport = wcSystemStatus.applyRedactions( reportValue ); var reportForGithub = '<details><summary>System Status Report</summary>\n\n``' + redactedReport + '``\n</details>'; wcSetClipboard( reportForGithub, $( this ) ); event.preventDefault(); }, /** * Display a "Copied!" tip when success copying */ copySuccess: function( event ) { $( event.target ).tipTip({ 'attribute': 'data-tip', 'activation': 'focus', 'fadeIn': 50, 'fadeOut': 50, 'delay': 0 }).trigger( 'focus' ); }, /** * Displays the copy error message when failure copying. */ copyFail: function() { $( '.copy-error' ).removeClass( 'hidden' ); $( '#debug-report' ).find( 'textarea' ).trigger( 'focus' ).trigger( 'select' ); }, downloadReport: function() { var ssr_text = new Blob( [ $( '#debug-report' ).find( 'textarea' ).val() ], { type: 'text/plain' } ); var domain = window.location.hostname; var datetime = new Date().toISOString().slice( 0, 19 ).replace( /:/g, '-' ); var a = document.createElement( 'a' ); a.download = 'SystemStatusReport_' + domain + '_' + datetime + '.txt'; a.href = window.URL.createObjectURL( ssr_text ); a.textContent = 'Download ready'; a.style='display:none'; a.click(); a.remove(); } }; wcSystemStatus.init(); $( '.wc_status_table' ).on( 'click', '.run-tool .button', function( evt ) { evt.stopImmediatePropagation(); return window.confirm( woocommerce_admin_system_status.run_tool_confirmation ); }); $( '#log-viewer-select' ).on( 'click', 'h2 a.page-title-action', function( evt ) { evt.stopImmediatePropagation(); return window.confirm( woocommerce_admin_system_status.delete_log_confirmation ); }); });
Save
cmd:
run