From dd9920011739d7cb3caae7baacbb86a52b7e78a8 Mon Sep 17 00:00:00 2001 From: TeoAlex Date: Mon, 2 Sep 2024 14:53:06 +0300 Subject: [PATCH 1/2] redeploy --- .distignore | 5 ++++- .gitignore | 2 +- assets/dist/admin-rtl.css | 1 - assets/dist/admin.asset.php | 1 - assets/dist/admin.css | 1 - assets/dist/admin.js | 1 - assets/dist/blocks-rtl.css | 18 ------------------ assets/dist/blocks.asset.php | 1 - assets/dist/blocks.css | 18 ------------------ assets/dist/blocks.js | 1 - package-lock.json | 4 ++-- readme.txt | 2 +- strong-testimonials.php | 4 ++-- 13 files changed, 10 insertions(+), 49 deletions(-) delete mode 100644 assets/dist/admin-rtl.css delete mode 100644 assets/dist/admin.asset.php delete mode 100644 assets/dist/admin.css delete mode 100644 assets/dist/admin.js delete mode 100644 assets/dist/blocks-rtl.css delete mode 100644 assets/dist/blocks.asset.php delete mode 100644 assets/dist/blocks.css delete mode 100644 assets/dist/blocks.js diff --git a/.distignore b/.distignore index b6729e6d..02900c31 100644 --- a/.distignore +++ b/.distignore @@ -32,4 +32,7 @@ Gruntfile.js client-src /scripts .gitmodules -.gitattributes \ No newline at end of file +.gitattributes +*.zip +.prettierrc.js +templates-scss \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9bdef4a2..5ee56366 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /node_modules/ -/assets/dist/ +assets/dist/ **.zip .standard.json .vscode diff --git a/assets/dist/admin-rtl.css b/assets/dist/admin-rtl.css deleted file mode 100644 index 11f00399..00000000 --- a/assets/dist/admin-rtl.css +++ /dev/null @@ -1 +0,0 @@ -.icon-blue{color:#0073aa}.error{color:red !important}.required-phrase{color:red;font-style:normal;font-weight:400;font-size:.9em}.required-phrase:before,label.required:after{content:"*";display:inline-block;color:red;font-size:27px;line-height:19px;height:19px;font-weight:600;vertical-align:middle;position:relative;top:1px}.has-input{display:inline-block}.error-message{display:inline-block;margin-right:.5em}button.nogo{margin:0 3px}li.warning{background:#ffffe0}.between-inputs{margin-right:.3em;margin-left:.3em}.intro p{font-size:14px}.wrap.wpmtst h2{margin:2em 0 1em}.wrap.wpmtst p{font-size:14px}.wrap.wpmtst .notice p{font-size:13px}.wpmtst .list-wrap{padding:.5em}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary:active{vertical-align:baseline}a.widget-action:focus{outline:none}input#post_name{width:98%}fieldset>div{min-height:30px}div.help{margin-right:0}div.help.minor{font-size:.9em;text-align:right}.wpmtst i.fa.example{color:#0073aa}.stackem ul{margin:14px 0 0 0}.stackem li{margin-top:16px;margin-bottom:16px}.stackem label{display:inline-block;line-height:28px;margin-left:.5em;vertical-align:baseline}.stackem label.inline{display:inline-block}.stackem p.description{margin-top:0;margin-right:22px}.stackem p.description.warning{color:#cd0000}.stackem .notice{background:none;border:none;box-shadow:none;display:inline-block;font-size:.9em;font-style:italic;margin:0 .2em;padding:0;color:#868686}.stackem span.link{display:inline-block;margin:0 .3em;font-size:.9em;line-height:28px}.stackem label.disabled{color:#888}div.radio{line-height:1.5em}div.radio:hover{color:#000}#screenshot-screen-options,#help-section{display:none}.screenshot>div{display:inline-block;box-shadow:inset 0px 0px 40px rgba(0,0,0,.8)}.help-text{padding:.5em 0}.wpmtst .form-table{vertical-align:middle}.wpmtst .form-table td{padding-top:15px}.wpmtst .form-table td:nth-child(1){width:200px}.wpmtst .form-table .parent{border-bottom:0;vertical-align:top}.wpmtst .form-table .child{border-top:0}.wpmtst .form-table td p:last-child{margin-bottom:0}.wpmtst .form-table input[type=button]{line-height:26px;height:28px}.wpmtst select{min-width:120px}.wpmtst option{padding-right:5px}.wpmtst .form-table div.box{border:1px solid #ddd;display:inline-block;padding:10px}.wpmtst .form-table .row{line-height:2.5em}.wpmtst .form-table .alpha{width:120px}.wpmtst .form-table .alpha.alpha-110{width:110px}.wpmtst .form-table .alpha+div{display:inline-block}.wpmtst label.success-action{display:inline-block;width:11em;padding:10px 0}.wpmtst .form-table.compact th{vertical-align:top}.wpmtst .form-table.compact td{vertical-align:middle}.wpmtst .form-table.compact td.actions{width:100px;vertical-align:bottom}.wpmtst .form-table.compact td.actions input.button{margin-left:0;margin-bottom:3px}.wpmtst .form-table.compact input[type=text]{width:100%}.wpmtst .form-table.compact input.error{border-color:red;border-radius:2px;box-shadow:none}.wpmtst .form-table.compact label.error{color:red;display:block}.code{background:#fff}.code.wide{padding:2px 5px;margin:3px;border-radius:2px}.submit-buttons input.button{margin-left:10px}.custom-input{line-height:1.3em}.indent{margin-right:2em}.outdent{margin-right:-2em}.hilite{background:#ffffe0;border-radius:4px;display:inline-block;padding:.25em .75em;box-shadow:-2px 2px 4px rgba(0,0,0,.5)}p.description.hilite{margin-bottom:2em}ul.compact{margin:0}ul.compact li{display:inline-block;margin:6px 0 6px 30px}#licenses-form .form-table{width:auto;max-width:1024px}#licenses-form .form-table label{line-height:27px}#licenses-form .form-table th,#licenses-form .form-table td{vertical-align:top}#licenses-form th.for-license-key,#licenses-form th.for-license-status{width:350px}#licenses-form .form-table th{padding:15px}#licenses-form .form-table td{white-space:nowrap;padding:15px}#licenses-form .form-table th:first-child,#licenses-form .form-table td:first-child{padding-right:0}#licenses-form .form-table input[type=text]{font-family:Consolas,Monaco,monospace;width:100%}#licenses-form .form-table label{padding-right:0;text-indent:0}#licenses-form .doing-ajax:before{display:inline-block;font:normal 22px/29px dashicons;content:"";text-align:center;vertical-align:middle;-webkit-animation-name:rotate;-webkit-animation-duration:1.5s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-moz-animation-name:rotate;-moz-animation-duration:1.5s;-moz-animation-iteration-count:infinite;-moz-animation-timing-function:linear;animation-name:rotate;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}#licenses-form span.license-status{display:inline-block;font-size:.9em;line-height:28px;height:27px;margin:1px 0 1px 10px;padding:0 8px;text-transform:uppercase;border-radius:3px;vertical-align:middle}#licenses-form span.active{background:green;color:#fff}#licenses-form span.inactive{background:#999;color:#fff}#licenses-form span.ib{display:inline-block;vertical-align:middle}.activation-error{color:red}.form-table th .description,.form-table td .description{font-size:14px;font-style:italic}.description.inline{display:inline-block;margin-right:1em}.description a{text-decoration:underline}.description a:hover{text-decoration:none}.radio .description{padding-right:20px}li.checkbox{margin-bottom:10px}.checkbox .description{padding-right:24px}ul.description{font-style:italic;color:#666;margin-top:4px;list-style-type:disc;margin-right:21px;margin-bottom:0}.wpmtst-widget-form{margin-bottom:1em}.widget-inside p{margin:.5em 0}input[disabled],input[readonly]{color:#999;background:rgba(0,0,0,.04)}.widefat th.column-ID{width:2.2em}td.column-shortcode,td.column-id{white-space:nowrap;font-family:Consolas,Monaco,monospace}th.sortable.column-id a span{float:left}td.column-id{text-align:left}.column-rating{width:auto !important}.wp-list-table.fixed.wpm-testimonial_page_testimonial-views{table-layout:auto}.wpmtst2>h1{margin-bottom:15px}@media screen and (max-width: 782px){.wpm-testimonial_page_testimonial-settings .form-table td input[type=text]{display:inline-block;width:auto}}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.form-table.shortcodes tbody tr:hover{background:#fff}.form-table.shortcodes th{padding-right:10px;width:auto}.form-table.shortcodes td{border:1px solid #ddd}.form-table.shortcodes td.shortcode{font-family:Consolas,Monaco,monospace}.form-table.shortcodes td p{margin:1em 0}.form-table.shortcodes td p:first-child{margin-top:0}.form-table.shortcodes td p:last-child{margin-bottom:0}.form-table.shortcodes tr.important{background:#fff}.form-table.shortcodes tr.important td{border:1px solid #ccc}.slug-example{font-weight:bold;color:#0073aa}.form-table.width-auto{width:auto}.form-table td p:first-child{margin-top:6px}.current-dashicon{display:inline-block;background:#0073aa;color:#fff;border-radius:2px;text-align:center;vertical-align:middle;width:28px;height:28px;position:relative;top:-3px}.current-dashicon .dashicons{vertical-align:middle;line-height:1.3}.wp-core-ui input[type=reset],.wp-core-ui input[type=reset]:hover,.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:focus{background:#f7f7f7;border:1px solid #ccc;box-shadow:0 1px 0 #ccc;padding:0 10px 1px;width:auto}.wp-core-ui input[type=reset]:hover,.wp-core-ui input[type=reset]:focus{background:#fafafa;border-color:#999;color:#23282d}.wp-core-ui input[type=reset]:focus{border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-core-ui input[type=reset]:active{background:#eee;border-color:#999;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}input.button.restore-default{font:normal 20px/1 dashicons;padding:1px 3px}.wpmtst .subsubsub{float:none;margin-right:16px}.regular-text.half{width:12.5em}.regular-text.third{width:20em}input.code{font-size:13px;font-family:Consolas,Monaco,monospace}.wrap h2.nav-tab-wrapper{margin-top:6px}.tab-header{padding:1em 0}.striped>tbody>tr.readonly{background:#ffffe0}ul.standard{list-style:disc;padding-right:1.5em}.form-table p.error{margin:.5em 0}.wpmtst.shortcode{vertical-align:middle}.wpmtst.shortcodes.has-stars table{margin-bottom:1em}.wpmtst.shortcodes.has-stars td:nth-child(2){width:70%}.wpmtst.shortcodes td{padding:10px}.wpmtst.shortcodes tr.important td{border:1px solid #ddd}.wpmtst.shortcodes tr:hover{background:#fff}.wpmtst.shortcodes td.has-inner{padding:0}.wpmtst.shortcodes table.inner{margin:0;vertical-align:middle;width:100%}.wpmtst.shortcodes table.inner,.wpmtst.shortcodes table.inner tr,.wpmtst.shortcodes table.inner td{border:0}.wpmtst.shortcodes table.inner tr:first-child td{border-bottom:1px solid #ddd}.wp-list-table .type-wpm-testimonial .row-actions span.id span{color:#777}.wpm-testimonial_page_about-strong-testimonials .wpmst-mascot{width:160px;margin-right:1rem;float:left}.edit-php.post-type-wpm-testimonial .wpmtst-notice{padding:2.5rem 2rem;border:2px solid #7f22de}.edit-php.post-type-wpm-testimonial .wpmtst-notice img{max-width:100%}.edit-php.post-type-wpm-testimonial .wpmst-mascot{width:120px;margin-left:2rem;float:right} diff --git a/assets/dist/admin.asset.php b/assets/dist/admin.asset.php deleted file mode 100644 index 1829156e..00000000 --- a/assets/dist/admin.asset.php +++ /dev/null @@ -1 +0,0 @@ - array(), 'version' => 'd3bf278bd3d6c67a3c10'); diff --git a/assets/dist/admin.css b/assets/dist/admin.css deleted file mode 100644 index 46183208..00000000 --- a/assets/dist/admin.css +++ /dev/null @@ -1 +0,0 @@ -.icon-blue{color:#0073aa}.error{color:red !important}.required-phrase{color:red;font-style:normal;font-weight:400;font-size:.9em}.required-phrase:before,label.required:after{content:"*";display:inline-block;color:red;font-size:27px;line-height:19px;height:19px;font-weight:600;vertical-align:middle;position:relative;top:1px}.has-input{display:inline-block}.error-message{display:inline-block;margin-left:.5em}button.nogo{margin:0 3px}li.warning{background:#ffffe0}.between-inputs{margin-left:.3em;margin-right:.3em}.intro p{font-size:14px}.wrap.wpmtst h2{margin:2em 0 1em}.wrap.wpmtst p{font-size:14px}.wrap.wpmtst .notice p{font-size:13px}.wpmtst .list-wrap{padding:.5em}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary:active{vertical-align:baseline}a.widget-action:focus{outline:none}input#post_name{width:98%}fieldset>div{min-height:30px}div.help{margin-left:0}div.help.minor{font-size:.9em;text-align:left}.wpmtst i.fa.example{color:#0073aa}.stackem ul{margin:14px 0 0 0}.stackem li{margin-top:16px;margin-bottom:16px}.stackem label{display:inline-block;line-height:28px;margin-right:.5em;vertical-align:baseline}.stackem label.inline{display:inline-block}.stackem p.description{margin-top:0;margin-left:22px}.stackem p.description.warning{color:#cd0000}.stackem .notice{background:none;border:none;box-shadow:none;display:inline-block;font-size:.9em;font-style:italic;margin:0 .2em;padding:0;color:#868686}.stackem span.link{display:inline-block;margin:0 .3em;font-size:.9em;line-height:28px}.stackem label.disabled{color:#888}div.radio{line-height:1.5em}div.radio:hover{color:#000}#screenshot-screen-options,#help-section{display:none}.screenshot>div{display:inline-block;box-shadow:inset 0px 0px 40px rgba(0,0,0,.8)}.help-text{padding:.5em 0}.wpmtst .form-table{vertical-align:middle}.wpmtst .form-table td{padding-top:15px}.wpmtst .form-table td:nth-child(1){width:200px}.wpmtst .form-table .parent{border-bottom:0;vertical-align:top}.wpmtst .form-table .child{border-top:0}.wpmtst .form-table td p:last-child{margin-bottom:0}.wpmtst .form-table input[type=button]{line-height:26px;height:28px}.wpmtst select{min-width:120px}.wpmtst option{padding-left:5px}.wpmtst .form-table div.box{border:1px solid #ddd;display:inline-block;padding:10px}.wpmtst .form-table .row{line-height:2.5em}.wpmtst .form-table .alpha{width:120px}.wpmtst .form-table .alpha.alpha-110{width:110px}.wpmtst .form-table .alpha+div{display:inline-block}.wpmtst label.success-action{display:inline-block;width:11em;padding:10px 0}.wpmtst .form-table.compact th{vertical-align:top}.wpmtst .form-table.compact td{vertical-align:middle}.wpmtst .form-table.compact td.actions{width:100px;vertical-align:bottom}.wpmtst .form-table.compact td.actions input.button{margin-right:0;margin-bottom:3px}.wpmtst .form-table.compact input[type=text]{width:100%}.wpmtst .form-table.compact input.error{border-color:red;border-radius:2px;box-shadow:none}.wpmtst .form-table.compact label.error{color:red;display:block}.code{background:#fff}.code.wide{padding:2px 5px;margin:3px;border-radius:2px}.submit-buttons input.button{margin-right:10px}.custom-input{line-height:1.3em}.indent{margin-left:2em}.outdent{margin-left:-2em}.hilite{background:#ffffe0;border-radius:4px;display:inline-block;padding:.25em .75em;box-shadow:2px 2px 4px rgba(0,0,0,.5)}p.description.hilite{margin-bottom:2em}ul.compact{margin:0}ul.compact li{display:inline-block;margin:6px 30px 6px 0}#licenses-form .form-table{width:auto;max-width:1024px}#licenses-form .form-table label{line-height:27px}#licenses-form .form-table th,#licenses-form .form-table td{vertical-align:top}#licenses-form th.for-license-key,#licenses-form th.for-license-status{width:350px}#licenses-form .form-table th{padding:15px}#licenses-form .form-table td{white-space:nowrap;padding:15px}#licenses-form .form-table th:first-child,#licenses-form .form-table td:first-child{padding-left:0}#licenses-form .form-table input[type=text]{font-family:Consolas,Monaco,monospace;width:100%}#licenses-form .form-table label{padding-left:0;text-indent:0}#licenses-form .doing-ajax:before{display:inline-block;font:normal 22px/29px dashicons;content:"";text-align:center;vertical-align:middle;-webkit-animation-name:rotate;-webkit-animation-duration:1.5s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-moz-animation-name:rotate;-moz-animation-duration:1.5s;-moz-animation-iteration-count:infinite;-moz-animation-timing-function:linear;animation-name:rotate;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}#licenses-form span.license-status{display:inline-block;font-size:.9em;line-height:28px;height:27px;margin:1px 10px 1px 0;padding:0 8px;text-transform:uppercase;border-radius:3px;vertical-align:middle}#licenses-form span.active{background:green;color:#fff}#licenses-form span.inactive{background:#999;color:#fff}#licenses-form span.ib{display:inline-block;vertical-align:middle}.activation-error{color:red}.form-table th .description,.form-table td .description{font-size:14px;font-style:italic}.description.inline{display:inline-block;margin-left:1em}.description a{text-decoration:underline}.description a:hover{text-decoration:none}.radio .description{padding-left:20px}li.checkbox{margin-bottom:10px}.checkbox .description{padding-left:24px}ul.description{font-style:italic;color:#666;margin-top:4px;list-style-type:disc;margin-left:21px;margin-bottom:0}.wpmtst-widget-form{margin-bottom:1em}.widget-inside p{margin:.5em 0}input[disabled],input[readonly]{color:#999;background:rgba(0,0,0,.04)}.widefat th.column-ID{width:2.2em}td.column-shortcode,td.column-id{white-space:nowrap;font-family:Consolas,Monaco,monospace}th.sortable.column-id a span{float:right}td.column-id{text-align:right}.column-rating{width:auto !important}.wp-list-table.fixed.wpm-testimonial_page_testimonial-views{table-layout:auto}.wpmtst2>h1{margin-bottom:15px}@media screen and (max-width: 782px){.wpm-testimonial_page_testimonial-settings .form-table td input[type=text]{display:inline-block;width:auto}}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.form-table.shortcodes tbody tr:hover{background:#fff}.form-table.shortcodes th{padding-left:10px;width:auto}.form-table.shortcodes td{border:1px solid #ddd}.form-table.shortcodes td.shortcode{font-family:Consolas,Monaco,monospace}.form-table.shortcodes td p{margin:1em 0}.form-table.shortcodes td p:first-child{margin-top:0}.form-table.shortcodes td p:last-child{margin-bottom:0}.form-table.shortcodes tr.important{background:#fff}.form-table.shortcodes tr.important td{border:1px solid #ccc}.slug-example{font-weight:bold;color:#0073aa}.form-table.width-auto{width:auto}.form-table td p:first-child{margin-top:6px}.current-dashicon{display:inline-block;background:#0073aa;color:#fff;border-radius:2px;text-align:center;vertical-align:middle;width:28px;height:28px;position:relative;top:-3px}.current-dashicon .dashicons{vertical-align:middle;line-height:1.3}.wp-core-ui input[type=reset],.wp-core-ui input[type=reset]:hover,.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:focus{background:#f7f7f7;border:1px solid #ccc;box-shadow:0 1px 0 #ccc;padding:0 10px 1px;width:auto}.wp-core-ui input[type=reset]:hover,.wp-core-ui input[type=reset]:focus{background:#fafafa;border-color:#999;color:#23282d}.wp-core-ui input[type=reset]:focus{border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-core-ui input[type=reset]:active{background:#eee;border-color:#999;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}input.button.restore-default{font:normal 20px/1 dashicons;padding:1px 3px}.wpmtst .subsubsub{float:none;margin-left:16px}.regular-text.half{width:12.5em}.regular-text.third{width:20em}input.code{font-size:13px;font-family:Consolas,Monaco,monospace}.wrap h2.nav-tab-wrapper{margin-top:6px}.tab-header{padding:1em 0}.striped>tbody>tr.readonly{background:#ffffe0}ul.standard{list-style:disc;padding-left:1.5em}.form-table p.error{margin:.5em 0}.wpmtst.shortcode{vertical-align:middle}.wpmtst.shortcodes.has-stars table{margin-bottom:1em}.wpmtst.shortcodes.has-stars td:nth-child(2){width:70%}.wpmtst.shortcodes td{padding:10px}.wpmtst.shortcodes tr.important td{border:1px solid #ddd}.wpmtst.shortcodes tr:hover{background:#fff}.wpmtst.shortcodes td.has-inner{padding:0}.wpmtst.shortcodes table.inner{margin:0;vertical-align:middle;width:100%}.wpmtst.shortcodes table.inner,.wpmtst.shortcodes table.inner tr,.wpmtst.shortcodes table.inner td{border:0}.wpmtst.shortcodes table.inner tr:first-child td{border-bottom:1px solid #ddd}.wp-list-table .type-wpm-testimonial .row-actions span.id span{color:#777}.wpm-testimonial_page_about-strong-testimonials .wpmst-mascot{width:160px;margin-left:1rem;float:right}.edit-php.post-type-wpm-testimonial .wpmtst-notice{padding:2.5rem 2rem;border:2px solid #7f22de}.edit-php.post-type-wpm-testimonial .wpmtst-notice img{max-width:100%}.edit-php.post-type-wpm-testimonial .wpmst-mascot{width:120px;margin-right:2rem;float:left} diff --git a/assets/dist/admin.js b/assets/dist/admin.js deleted file mode 100644 index a993df24..00000000 --- a/assets/dist/admin.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";class t{constructor(t){this.$element=t,this.key=t.data("key"),this.nonce=t.data("nonce"),this.$element.on("click",".notice-dismiss",(()=>this.onDismissClick()))}onDismissClick(){this.$element.remove(),jQuery.ajax({type:"POST",data:{action:"wpmtst_dismiss_notice",nonce:this.nonce,key:this.key},url:ajaxurl})}}class e{constructor(){jQuery("body").hasClass("wpm-testimonial_page_strong-testimonials-addons")&&(this.reloadButton=jQuery("#wpmtst-reload-extensions"),this.reloadButton.on("click",(t=>this.onReloadExtensionsClick(t))))}onReloadExtensionsClick(t){t.preventDefault(),this.reloadButton.addClass("updating-message"),jQuery.ajax({type:"POST",data:{action:"wpmtst_reload_extensions",nonce:this.reloadButton.data("nonce")},url:ajaxurl,success(t){location.reload()}})}}Array.max=function(t){return Math.max.apply(Math,t)},jQuery(document).ready((function(t){t.fn.showInlineBlock=function(){return this.css("display","inline-block")},t("input[type=url]").on("change",(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="http://"+this.value)})),t("ul.ui-tabs-nav li a").on("click",(function(){t(this).trigger("blur")})),t(".focus-next-field").on("change",(function(e){t(e.target).is(":checked")&&t(e.target).parent().next().find("input").focus().trigger("select")})),t("#toggle-screen-options").add("#screenshot-screen-options").on("click",(function(e){t(this).trigger("blur"),t("#screenshot-screen-options").slideToggle()})),t("#toggle-help").on("click",(function(e){t(this).toggleClass("closed open").trigger("blur"),t("#help-section").slideToggle()})),t("table.wpm-testimonial_page_testimonial-views th.manage-column").on("click",(function(e){const s={action:"wpmtst_save_view_list_order",name:t(this).attr("id"),order:t(this).hasClass("asc")?"desc":t(this).hasClass("desc")?"asc":"",nonce:wpmtstAdminScriptNonce};t.post(ajaxurl,s,(function(t){}))})),t("table.wpm-testimonial_page_testimonial-views").on("click",".stickit",(function(e){const s=t(this);s.closest(".wp-list-table-wrap").find(".overlay").fadeIn(200),s.trigger("blur").toggleClass("stuck");const n={action:"wpmtst_save_view_sticky",id:t(this).closest("tr").find("td.id").html(),nonce:wpmtstAdminScriptNonce};t.post(ajaxurl,n,(function(t){t&&window.location.reload()}))}))})),window.wpmtstAdmin=new class{constructor(){this.initNotices(),this.initAddonsPage()}initNotices(e=jQuery("body")){e.find(".wpmtst-notice").each((function(e){new t(jQuery(this))}))}initAddonsPage(){new e(jQuery(this))}}})(); \ No newline at end of file diff --git a/assets/dist/blocks-rtl.css b/assets/dist/blocks-rtl.css deleted file mode 100644 index 757e16c0..00000000 --- a/assets/dist/blocks-rtl.css +++ /dev/null @@ -1,18 +0,0 @@ -div.st-block-preview { - background: white; - padding: 50px 25px; - border: 1px solid black; -} - -div.st-view-select label.components-input-control__label { - margin-bottom: 10px !important; - font-weight: 700; -} - -div.st-view-select - div.components-input-control__container - select.components-select-control__input { - height: -moz-fit-content; - height: fit-content; -} - diff --git a/assets/dist/blocks.asset.php b/assets/dist/blocks.asset.php deleted file mode 100644 index 10125fc0..00000000 --- a/assets/dist/blocks.asset.php +++ /dev/null @@ -1 +0,0 @@ - array('react-jsx-runtime'), 'version' => 'c4b0b9a6e23bb6049c62'); diff --git a/assets/dist/blocks.css b/assets/dist/blocks.css deleted file mode 100644 index 757e16c0..00000000 --- a/assets/dist/blocks.css +++ /dev/null @@ -1,18 +0,0 @@ -div.st-block-preview { - background: white; - padding: 50px 25px; - border: 1px solid black; -} - -div.st-view-select label.components-input-control__label { - margin-bottom: 10px !important; - font-weight: 700; -} - -div.st-view-select - div.components-input-control__container - select.components-select-control__input { - height: -moz-fit-content; - height: fit-content; -} - diff --git a/assets/dist/blocks.js b/assets/dist/blocks.js deleted file mode 100644 index 02294394..00000000 --- a/assets/dist/blocks.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";const e=window.ReactJSXRuntime,{__}=wp.i18n,{Component:t,Fragment:s}=wp.element,{InspectorControls:i}=wp.blockEditor,{SelectControl:n,Button:o,PanelBody:l,PanelRow:a}=wp.components;class r extends t{render(){const{attributes:t,setAttributes:a,onIdChange:r,selectOptions:c}=this.props,{id:d,views:w,testimonials:p}=t;return(0,e.jsx)(s,{children:(0,e.jsx)(i,{children:(0,e.jsxs)(l,{title:__("View Settings"),initialOpen:!0,children:[0===stViews.views.length&&(0,e.jsxs)(s,{children:[(0,e.jsx)("p",{children:__("You don't seem to have any views.")}),(0,e.jsx)(o,{href:stViews.adminURL+"edit.php?post_type=wpm-testimonial&page=testimonial-views&action=add",target:"_blank",isDefault:!0,children:__("Add New View")})]}),stViews.views.length>0&&(0,e.jsxs)(s,{children:[(0,e.jsx)(n,{label:__("Select View"),value:d,options:c,onChange:e=>r(parseInt(e))},d),0!==d&&(0,e.jsx)(o,{target:"_blank",href:stViews.adminURL+"edit.php?post_type=wpm-testimonial&page=testimonial-views&action=edit&id="+d,isSecondary:!0,children:__("Edit View")})]})]})})})}}const{__:c}=wp.i18n,{Component:d,Fragment:w,useEffect:p}=wp.element,{withSelect:h}=wp.data,{SelectControl:m,Spinner:v,Toolbar:u,Button:g}=wp.components,{BlockControls:b}=wp.blockEditor,x=t=>{const{attributes:s,setAttributes:i}=t,{id:n,views:o,status:l,testimonials:a,mode:d}=s;p((()=>{i({status:"ready",views:stViews.views}),0!==n&&h(n)}),[]);const h=e=>{t.setAttributes({status:"ready",id:e})},u=()=>{const e=[{value:0,label:c("None")}];return stViews.views.forEach((function(t){e.push({value:t.id,label:t.name})})),e};return stViews.views.length>0&&c("Edit View"),"loading"===l?[(0,e.jsx)(w,{children:(0,e.jsx)("div",{className:"st-block-preview",children:(0,e.jsxs)("div",{className:"st-block-preview__content",children:[(0,e.jsx)("div",{className:"st-block-preview__logo",children:" "}),(0,e.jsx)(v,{})]})})},"logo")]:[(0,e.jsxs)(w,{children:[(0,e.jsx)(r,{onIdChange:e=>h(e),selectOptions:u(),...t}),(0,e.jsx)("div",{className:"st-block-preview",children:(0,e.jsxs)("div",{className:"st-block-preview__content",children:[(0,e.jsx)("div",{className:"st-block-preview__logo"}),0===stViews.views.length&&(0,e.jsxs)(w,{children:[(0,e.jsx)("h6",{children:c("You don't seem to have any views.")}),(0,e.jsx)(g,{href:stViews.adminURL+"edit.php?post_type=wpm-testimonial&page=testimonial-views&action=add",target:"_blank",isDefault:!0,children:c("Add New View")})]}),stViews.views.length>0&&(0,e.jsxs)(w,{children:[(0,e.jsx)(m,{label:"Select a view:",className:"st-view-select",value:n,options:u(),onChange:e=>h(parseInt(e))},n),0!==n&&(0,e.jsx)(g,{target:"_blank",href:stViews.adminURL+"edit.php?post_type=wpm-testimonial&page=testimonial-views&action=edit&id="+n,isSecondary:!0,children:c("Edit Settings")})]})]})})]},"viewSelect")]},{__:j}=wp.i18n,{registerBlockType:_}=wp.blocks;new class{constructor(){this.registerBlock()}registerBlock(){this.blockName="strongtestimonials/view",this.blockAttributes={id:{type:"number",default:0},mode:{type:"string",default:"display"}},_(this.blockName,{title:"Strong Testimonial View",description:j("Render ST View","strong-testimonials"),icon:"editor-quote",category:"common",supports:{html:!1,customClassName:!1},attributes:this.blockAttributes,edit:x,save:()=>null})}}})(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e8f31337..4da2890a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "strong-testimonials", - "version": "3.1.18", + "version": "3.1.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "strong-testimonials", - "version": "3.1.18", + "version": "3.1.19", "license": "GPL v3", "dependencies": { "@wordpress/icons": "^9.18.0", diff --git a/readme.txt b/readme.txt index 805dd910..53e0c405 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: testimonials, testimonial slider, testimonial form, star ratings Requires at least: 5.2 Requires PHP: 5.6 Tested up to: 6.6 -Stable tag: 3.1.18 +Stable tag: 3.1.19 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html diff --git a/strong-testimonials.php b/strong-testimonials.php index 88e7cc7f..cd3773c4 100644 --- a/strong-testimonials.php +++ b/strong-testimonials.php @@ -5,7 +5,7 @@ * Description: Collect and display your testimonials or reviews. * Author: WPChill * Author URI: https://wpchill.com/ - * Version: 3.1.18 + * Version: 3.1.19 * Text Domain: strong-testimonials * Domain Path: /languages * Requires: 4.6 or higher @@ -45,7 +45,7 @@ exit; } -define( 'WPMTST_VERSION', '3.1.18' ); +define( 'WPMTST_VERSION', '3.1.19' ); define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials From c893451a2bfe0286ee4bf7d179a01de6c42533af Mon Sep 17 00:00:00 2001 From: TeoAlex Date: Mon, 2 Sep 2024 14:56:14 +0300 Subject: [PATCH 2/2] changelog --- changelog.txt | 3 +++ readme.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/changelog.txt b/changelog.txt index 51209b1a..d3a1ad6d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ += 3.1.19 - 02.09.2024 - +- Changed: Removed unnecessary files. + = 3.1.18 - 02.09.2024 - - Changed: Applied WordPress Coding Standards - Fixed: Issue with activating license & Strong Testimonials Imports diff --git a/readme.txt b/readme.txt index 53e0c405..9302519c 100644 --- a/readme.txt +++ b/readme.txt @@ -199,6 +199,9 @@ No. If you already have testimonials in another plugin or theme, you will have t 8. View editor == Changelog == += 3.1.19 - 02.09.2024 - +- Changed: Removed unnecessary files. + = 3.1.18 - 02.09.2024 - - Changed: Applied WordPress Coding Standards - Fixed: Issue with activating license & Strong Testimonials Imports