Skip to content

Commit

Permalink
Added - Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
deepench committed Sep 6, 2024
2 parents dd6e997 + 3c30ab9 commit a6e39ee
Show file tree
Hide file tree
Showing 10 changed files with 496 additions and 47 deletions.
111 changes: 68 additions & 43 deletions assets/css/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
}
}

/**
/**
* Notice info
*/
.everest-forms-notice {
Expand Down Expand Up @@ -9268,12 +9268,6 @@
display: flex;
align-items: center;
margin-bottom: 10px;

@media screen and (max-width: 1260px) {
flex-direction: column;
gap: 8px;
align-items: flex-start;
}

label {
flex: 1;
Expand All @@ -9282,7 +9276,6 @@

&--field {
flex: 2;
width: 100%;
}
.evf-restapi-key {
width: 530px !important;
Expand Down Expand Up @@ -9365,10 +9358,6 @@
max-width: 100%;
transition: all 0.3s;

@media screen and (max-width: 1300px) {
width: 220px;
}

&--top {
text-align: center;
padding-bottom: 30px;
Expand Down Expand Up @@ -9742,14 +9731,9 @@
.everest-forms-recaptcha-type {
margin: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 24px;

@media screen and (max-width: 1260px) {
gap: 16px;
}

li {
margin-bottom: 0;

Expand Down Expand Up @@ -10065,13 +10049,20 @@

&-premium {
&-sidebar {
// width: 300px;
// max-width: 100%;
// padding: 18px 10px 26px 10px;
// transition: all 0.3s;
width: 300px;
max-width: 100%;
padding: 18px 10px 26px 10px;
transition: all 0.3s;

h2 {
color: #222222;
font-size: 18px;
font-weight: 600;
line-height: 140%;
margin: 0;
padding-bottom: 16px;
margin-bottom: 20px;
border-bottom: 1px solid #eee8f7;
}

p {
Expand All @@ -10092,9 +10083,63 @@
margin-bottom: 12px;
}

ul {
margin: 0;
margin-bottom: 16px;
display: flex;
flex-direction: column;
gap: 12px;

li {
color: #383838;
font-size: 15px;
font-weight: 400;
line-height: 23px;
margin-bottom: 0;
padding-left: 26px;
position: relative;

&::before {
content: "";
background-image: url("../images/icons/premium-list-check-icon.svg");
background-repeat: no-repeat;
background-position: center;
background-size: 100%;
width: 18px;
height: 18px;
position: absolute;
left: 0;
top: 2px;
}
}
}

a {
border-radius: 3px;
border: 1px solid #7545bb;
background: #7545bb;
padding: 10px 16px;
display: block;
color: #ffffff;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 24px;
text-decoration: none;
letter-spacing: 0.05px;
width: max-content;
margin: 20px 0;
transition: all 0.3s;

&:hover {
background: #9159e3;
border-color: #9159e3;
}
}

&.everest-forms-hidden {
// margin-right: -325px;
// display: unset;
margin-right: -325px;
display: unset;
}
}
}
Expand Down Expand Up @@ -10178,26 +10223,6 @@
}
}


body {
&.evf-premium-sidebar-hidden {
.everest-forms-settings-premium-sidebar {
margin-right: -885px;
display: unset;
}
}

&.evf-premium-sidebar-show {
.everest-forms-settings-premium-sidebar {
display: block;
width: 300px;
max-width: 100%;
padding: 18px 10px 26px 10px;
transition: all .3s;
}
}
}

#everest-forms-dashboard {
background-color: #FAFAFC;
}
43 changes: 41 additions & 2 deletions assets/js/admin/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,47 @@
}
});
});


//Rest api settings.
if($('#everest_forms_enable_restapi').is(":checked")){
$(document).find('.evf-restapi-key-wrapper').show();
}else {
$(document).find('.evf-restapi-key-wrapper').hide();
}
$('#everest_forms_enable_restapi').on('click', function(e){
const {checked} = e.target;
if(checked) {
$(document).find('.evf-restapi-key-wrapper').show();
}else {
$(document).find('.evf-restapi-key-wrapper').hide();
}
});
$('#everest_forms_restapi_keys').on('click', function(e){
evfClearClipboard();
evfSetClipboard( $( this ).val(), $( this ) );
e.preventDefault();
}).on('aftercopy', function() {
$( this ).tooltipster( 'content', $( this ).attr( 'data-copied' ) ).trigger( 'mouseenter' ).on( 'mouseleave', function() {
var $this = $( this );

setTimeout( function() {
$this.tooltipster( 'content', $this.attr( 'data-tip' ) );
}, 5000 );
} );
});
$('.everest-forms-generate-api-key, .everest-forms-regenerate-api-key').on('click', function(){
let data = {
action: "everest_forms_generate_restapi_key",
security: everest_forms_admin_generate_restapi_key.ajax_restapi_key_nonce,
};
$.ajax({
url: everest_forms_admin_generate_restapi_key.ajax_url,
type: "post",
data:data,
success:(res)=>{
$(document).find('#everest_forms_restapi_keys').val(res.data);
}
})
});



Expand Down
4 changes: 4 additions & 0 deletions includes/RestApi/class-evf-rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ class EVF_REST_API {
* @since 2.0.8.1
*/
public static function init() {
// For Internal.
include __DIR__ . '/controllers/version1/class-evf-modules.php';
include __DIR__ . '/controllers/version1/class-evf-changelog.php';
include __DIR__ . '/controllers/version1/class-evf-gutenberg-blocks.php';
// For external.
include __DIR__ . '/controllers/version1/class-evf-entry-submission.php';

add_action( 'rest_api_init', array( __CLASS__, 'register_rest_routes' ) );
}
Expand Down Expand Up @@ -90,6 +93,7 @@ protected static function get_v1_rest_classes() {
'modules' => 'EVF_Modules',
'changelog' => 'EVF_Changelog',
'gutenberg-blocks' => 'EVF_Gutenberg_Blocks',
'entry-submission' => 'EVF_Entry_Submission',
);
}
}
Expand Down
Loading

0 comments on commit a6e39ee

Please sign in to comment.