Skip to content

Commit

Permalink
v2.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
qriouslad committed Apr 13, 2023
1 parent dcb3e14 commit 8bd34d8
Show file tree
Hide file tree
Showing 41 changed files with 45,269 additions and 45,242 deletions.
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://bowo.io/go/sponsor-vi/
Tags: php variables, variable dump, debug, developer
Requires at least: 4.8
Tested up to: 6.2
Stable tag: 2.1.0
Stable tag: 2.2.0
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -36,20 +36,20 @@ This would help you locate and clean up the inspector lines once you're done deb

### Give Back

* [A nice review](https://bowo.io/go/add-review-vi/) would be great!
* [Give feedback](https://bowo.io/go/feedback-vi/) and help improve future versions.
* [Github repo](https://bowo.io/go/github-vi/) to contribute code.
* [Sponsor](https://bowo.io/go/sponsor-vi/) my work.
* [A nice review](https://bowo.io/add-review-vi/) would be great!
* [Give feedback](https://bowo.io/feedback-vi/) and help improve future versions.
* [Github repo](https://bowo.io/github-vi/) to contribute code.
* [Sponsor](https://bowo.io/sponsor-vi/) my work.

### Check These Out Too

* [Admin and Site Enhancements](https://bowo.io/go/asenha-via-vi/) helps you to easily enhance various admin workflows and site aspects while replacing multiple plugins doing it.
* [System Dashboard](https://bowo.io/go/sd-via-vi/): Central dashboard to monitor various WordPress components, processes and data, including the server.
* [Debug Log Manager](https://bowo.io/go/dlm-via-vi/): Log PHP, database and JavaScript errors via WP_DEBUG with one click. Conveniently create, view, filter and clear the debug.log file.
* [Code Explorer](https://bowo.io/go/ce-via-vi/): Fast directory explorer and file/code viewer with syntax highlighting.
* [Database Admin](https://bowo.io/go/da-via-vi/): Securely manage your WordPress website's database with a clean and user-friendly interface based on a custom-themed Adminer app. Only available on Github.
* [Flexible Scroll Top](https://bowo.io/go/fst-via-vi/) and [Floating Share Buttons](https://bowo.io/go/fsb-via-vi/) is a lightweight combo with minimalist UI.
* [WordPress Newsboard](https://bowo.io/go/wpn-vi/): The latest news, articles, podcasts and videos from 100+ WordPress-focused sources.
* [Admin and Site Enhancements](https://bowo.io/asenha-via-vi/) helps you to easily enhance various admin workflows and site aspects while replacing multiple plugins doing it.
* [System Dashboard](https://bowo.io/sd-via-vi/): Central dashboard to monitor various WordPress components, processes and data, including the server.
* [Debug Log Manager](https://bowo.io/dlm-via-vi/): Log PHP, database and JavaScript errors via WP_DEBUG with one click. Conveniently create, view, filter and clear the debug.log file.
* [Code Explorer](https://bowo.io/ce-via-vi/): Fast directory explorer and file/code viewer with syntax highlighting.
* [Database Admin](https://bowo.io/da-via-vi/): Securely manage your WordPress website's database with a clean and user-friendly interface based on a custom-themed Adminer app. Only available on Github.
* [Flexible Scroll Top](https://bowo.io/fst-via-vi/) and [Floating Share Buttons](https://bowo.io/fsb-via-vi/) is a lightweight combo with minimalist UI.
* [WordPress Newsboard](https://bowo.io/wpn-vi/): The latest news, articles, podcasts and videos from 100+ WordPress-focused sources.

## Screenshots

Expand All @@ -64,6 +64,11 @@ Variable Inspector was built with: [WordPress Plugin Boilerplate](https://github

## Changelog

### 2.2.0 (2023.04.13)

* Clean up and polish inspector dashboard UI. Remove separator lines.
* Update shortlinks on the dashboard.

### 2.1.0 (2023.04.11)

* Limit height of each result's content and add scroll bar when content is taller than the limit. This should prevent very long result content from occupying the screen.
Expand Down
37 changes: 22 additions & 15 deletions admin/class-variable-inspector-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,17 @@ public function vi_generate_sample_results()
{
// $backtrace = debug_backtrace();
// do_action( 'inspect', [ 'backtrace', $backtrace, __FILE__, __LINE__ ] );
global $wp_roles ;
global $current_user, $wp_roles, $wp_post_types ;
do_action( 'inspect', [
'wp_roles',
$wp_roles,
'wp_post_types',
$wp_post_types,
__FILE__,
__LINE__
] );
// do_action( 'inspect', [ 'wp_roles', $wp_roles, __FILE__, __LINE__ ] );
do_action( 'inspect', [
'current_user',
$current_user,
__FILE__,
__LINE__
] );
Expand Down Expand Up @@ -381,17 +388,17 @@ public function vi_inspection_results()
$output .= '
<div id="' . esc_html( $identifier ) . '" class="accordion__panel">
<div class="functions">
<a class="item" data-tab="first">var_export</a>' . $separator . '
<a class="item" data-tab="second">var_dump</a>' . $separator . '
<a class="item" data-tab="third">print_r</a>';
<a class="item" data-tab="var_export">var_export</a>' . $separator . '
<a class="item" data-tab="var_dump">var_dump</a>' . $separator . '
<a class="item" data-tab="print_r">print_r</a>';
$output .= '</div>
<div class="ui tab varexport" data-tab="first">
<div class="ui tab varexport" data-tab="var_export">
<pre>' . $variable_content_varexport . '</pre>
</div>
<div class="ui tab vardump" data-tab="second">
<div class="ui tab vardump" data-tab="var_dump">
<pre>' . $variable_content_vardump . '</pre>
</div>
<div class="ui tab printr" data-tab="third">
<div class="ui tab printr" data-tab="print_r">
<pre>' . print_r( $variable_content, true ) . '</pre>
</div>';
$output .= '<script>
Expand Down Expand Up @@ -449,7 +456,7 @@ public function vi_create_main_page()
<?php
esc_html_e( 'by', 'variable-inspector' );
?>
<a href="https://bowo.io/go/bowoio-vi/" target="_blank">Bowo</a>
<a href="https://bowo.io/bowoio-vi" target="_blank">Bowo</a>
</small>
</h1>
</div>
Expand All @@ -459,12 +466,12 @@ public function vi_create_main_page()
// Free version code
?>

<a href="https://bowo.io/go/review-vi/" target="_blank" class="vi-header-action"><span>★</span>
<a href="https://bowo.io/review-vi" target="_blank" class="vi-header-action"><span>★</span>
<?php
esc_html_e( 'Review', 'variable-inspector' );
?>
</a>
<a href="https://bowo.io/go/feedback-vi/" target="_blank" class="vi-header-action">✚
<a href="https://bowo.io/feedback-vi" target="_blank" class="vi-header-action">✚
<?php
esc_html_e( 'Feedback', 'variable-inspector' );
?>
Expand All @@ -473,7 +480,7 @@ public function vi_create_main_page()
<?php
// Free version code
?>
<a href="https://bowo.io/go/sponsor-vi/" target="_blank" class="button button-primary plugin-sponsor">&#10084;
<a href="https://bowo.io/sponsor-vi" target="_blank" class="button button-primary plugin-sponsor">&#10084;
<?php
esc_html_e( 'Sponsor', 'variable-inspector' );
?>
Expand Down Expand Up @@ -527,7 +534,7 @@ public function vi_create_main_page()
public function vi_footer_text()
{
?>
<a href="https://bowo.io/go/dotorg-vi/" target="_blank">Variable Inspector</a> is on <a href="https://bowo.io/go/github-vi/" target="_blank">github</a>
<a href="https://bowo.io/dotorg-vi" target="_blank">Variable Inspector</a> is on <a href="https://bowo.io/github-vi" target="_blank">github</a>
<?php
}

Expand All @@ -538,7 +545,7 @@ public function vi_footer_text()
*/
public function vi_footer_version_text()
{
return 'Also by Bowo &#8594; <a href="https://bowo.io/go/wpn-vi/" target="_blank">WordPress Newsboard</a>: The latest from 100+ sources';
return 'Also by Bowo &#8594; <a href="https://bowo.io/wpn-vi" target="_blank">WordPress Newsboard</a>: The latest from 100+ sources';
}

/**
Expand Down
28 changes: 22 additions & 6 deletions admin/css/variable-inspector-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,15 @@
/* Accordion */

.vi .accordion {
margin-top: 1.25em;
margin-bottom: 1.25em;
margin-top: 1em;
margin-bottom: .5em;
}
.vi .accordion__control {
position: relative;
padding: 1em 1.5em;
background-color: #f7f7f7;
border: 1px solid #e7e7e7;
border-left: none;
transition: 0.25s;
font-weight: 600;
}
Expand Down Expand Up @@ -230,7 +232,8 @@
}
.vi .accordion__panel {
display: none;
border-top: 1px solid #e7e7e7;
border: 1px solid #e7e7e7;
border-top: none;
padding: 0.5em 1.5em 1.5em;
background: #f7f7f7;
}
Expand All @@ -239,12 +242,16 @@
white-space: pre-wrap;
}

.vi .inspection-results {
padding-top: 1em;
}

.vi .inspection-result {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
border-bottom: 1px solid #ddd;
/* border-bottom: 1px solid #ddd; */
}

.vi .inspection-result:last-of-type {
Expand All @@ -255,10 +262,19 @@
margin-bottom: 0;
}

.vi .inspection-time,
.vi .inspection-accordion {
box-sizing: border-box;
}

.vi .inspection-time {
width: 10%;
margin-top: 2.25em;
margin-bottom: 1.25em;
padding: 1em .5em 1em 1em;
margin-top: 1em;
margin-bottom: 1em;
background-color: #f7f7f7;
border: 1px solid #e7e7e7;
font-weight: 600;
}

.vi .inspection-accordion {
Expand Down
9 changes: 4 additions & 5 deletions admin/js/variable-inspector-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@
function setViewer( viewer ) {

if ( viewer == 'var_export' ) {
$('.item[data-tab="first"]').each( function() {
$('.item[data-tab="var_export"]').each( function() {
$( this ).click();
});
}

if ( viewer == 'var_dump' ) {
$('.item[data-tab="second"]').each( function() {
$('.item[data-tab="var_dump"]').each( function() {
$( this ).click();
});
}

if ( viewer == 'print_r' ) {
$('.item[data-tab="third"]').each( function() {
$('.item[data-tab="print_r"]').each( function() {
$( this ).click();
});
}
Expand Down Expand Up @@ -107,10 +107,9 @@
var viewer = viVars.viewer;
// alert( 'Current viewer is ' + viewer );
$('#results_viewer').val(viewer).change();

setViewer( viewer );

// Select the (default) viewer
// Change viewer

$('#results_viewer').change( function() {

Expand Down
Loading

0 comments on commit 8bd34d8

Please sign in to comment.