Changeset 3330246
- Timestamp:
- 07/18/2025 01:36:12 PM (5 months ago)
- Location:
- aiko-developer-lite
- Files:
-
- 32 added
- 10 edited
-
tags/2.0.3 (added)
-
tags/2.0.3/aiko-developer-lite-init.php (added)
-
tags/2.0.3/assets (added)
-
tags/2.0.3/assets/js (added)
-
tags/2.0.3/assets/js/script.js (added)
-
tags/2.0.3/assets/views (added)
-
tags/2.0.3/assets/views/welcome.php (added)
-
tags/2.0.3/framework (added)
-
tags/2.0.3/framework/css (added)
-
tags/2.0.3/framework/css/style.css (added)
-
tags/2.0.3/framework/css/style.css.map (added)
-
tags/2.0.3/framework/css/style.scss (added)
-
tags/2.0.3/framework/img (added)
-
tags/2.0.3/framework/img/welcome_background.jpg (added)
-
tags/2.0.3/framework/img/welcome_logo_white.png (added)
-
tags/2.0.3/framework/img/welcome_logo_white_lite.png (added)
-
tags/2.0.3/framework/includes (added)
-
tags/2.0.3/framework/includes/class-aiko-developer-ajax-framework.php (added)
-
tags/2.0.3/framework/includes/class-aiko-developer-core-framework.php (added)
-
tags/2.0.3/framework/includes/class-aiko-developer-post-type-framework.php (added)
-
tags/2.0.3/framework/includes/class-aiko-developer-render-framework.php (added)
-
tags/2.0.3/framework/json (added)
-
tags/2.0.3/framework/json/prompts.json (added)
-
tags/2.0.3/includes (added)
-
tags/2.0.3/includes/class-aiko-developer-ajax.php (added)
-
tags/2.0.3/includes/class-aiko-developer-core.php (added)
-
tags/2.0.3/includes/class-aiko-developer-post-type.php (added)
-
tags/2.0.3/includes/class-aiko-developer-render.php (added)
-
tags/2.0.3/includes/class-aiko-developer.php (added)
-
tags/2.0.3/languages (added)
-
tags/2.0.3/languages/aiko-developer-lite.pot (added)
-
tags/2.0.3/readme.txt (added)
-
trunk/aiko-developer-lite-init.php (modified) (1 diff)
-
trunk/assets/js/script.js (modified) (1 diff)
-
trunk/framework/css/style.css (modified) (2 diffs)
-
trunk/framework/css/style.css.map (modified) (1 diff)
-
trunk/framework/css/style.scss (modified) (2 diffs)
-
trunk/framework/includes/class-aiko-developer-ajax-framework.php (modified) (1 diff)
-
trunk/framework/includes/class-aiko-developer-core-framework.php (modified) (1 diff)
-
trunk/includes/class-aiko-developer-render.php (modified) (1 diff)
-
trunk/includes/class-aiko-developer.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aiko-developer-lite/trunk/aiko-developer-lite-init.php
r3291914 r3330246 3 3 * Plugin Name: AIKO - AI Developer Lite 4 4 * Description: AI powered plugin that creates plugins for users without experience (Lite version) 5 * Version: 2.0. 25 * Version: 2.0.3 6 6 * Author: BoldThemes 7 7 * Author URI: https://www.bold-themes.com -
aiko-developer-lite/trunk/assets/js/script.js
r3269504 r3330246 8 8 const messages = aiko_developer_object.plugin_messages; 9 9 const selectedModel = aiko_developer_object.selected_model; 10 11 // Corner box 12 $( '.aiko-developer-corner-box-close' ).on( 'click', function() { 13 $( '.aiko-developer-corner-box' ).fadeOut(); 14 document.cookie = "aiko_developer_corner_box_dont_show=true; max-age=" + (10 * 24 * 60 * 60) + "; path=/"; 15 }); 16 17 var corner_box_dont_show_cookie = document.cookie 18 .split('; ') 19 .find(row => row.startsWith('aiko_developer_corner_box_dont_show=')) 20 ?.split('=')[1] || ''; 21 22 if ( $( '#aiko-developer-first' ).val() !== '1' ) { 23 if ( corner_box_dont_show_cookie === 'true' ) { 24 $( '.aiko-developer-corner-box' ).css( 'display', 'none' ); 25 } else { 26 $( '.aiko-developer-corner-box' ).css( 'display', 'block' ); 27 } 28 } 29 30 const cornerBoxObserver = new MutationObserver(() => { 31 if ( $( '#aiko-developer-first' ).val() !== '1' && $( '#aiko-developer-submitted' ).val() !== '1' ) { 32 if ( corner_box_dont_show_cookie === 'true' ) { 33 $( '.aiko-developer-corner-box' ).css( 'display', 'none' ); 34 } else { 35 if ($('body').hasClass('aiko-developer-disabled')) { 36 $('.aiko-developer-corner-box').fadeOut(); 37 } else { 38 $('.aiko-developer-corner-box').fadeIn(); 39 } 40 } 41 } 42 }); 43 cornerBoxObserver.observe(document.body, { attributes: true, attributeFilter: ['class'] }); 44 45 const loaderObserver = new MutationObserver(() => { 46 if ( $( '.aiko-developer-popup' ).is( ':visible' ) ) { 47 $( 'body' ).addClass( 'aiko-developer-disabled' ); 48 } else { 49 $( 'body' ).removeClass( 'aiko-developer-disabled' ); 50 } 51 }); 52 53 const observeConfig = { attributes: true, attributeFilter: ['style', 'class'], subtree: false }; 54 55 $( '.aiko-developer-popup' ).each( function () { 56 const popup = $( this )[0]; 57 loaderObserver.observe( popup, observeConfig ); 58 }); 59 60 $( '.aiko-developer-corner-box-button, #aiko-developer-submit-a-prompt-meta-box' ).on( 'click', function() { 61 event.preventDefault(); 62 $( '#aiko-developer-submit-prompt-popup-overlay' ).fadeIn(); 63 }); 64 65 $( '#aiko-developer-submit-prompt-popup-submit' ).on( 'click', function() { 66 event.preventDefault(); 67 68 $( '#aiko-developer-submit-prompt-popup-overlay' ).fadeOut(); 69 $( '#aiko-developer-loader-overlay' ).fadeIn(); 70 71 var fr = $( '#aiko-developer-submit-prompt-fr-val' ).text().trim(); 72 var ai = $( '#aiko-developer-submit-prompt-ai-val' ).text().trim(); 73 var model = $( '#aiko-developer-submit-prompt-model-val' ).text().trim(); 74 var temp = $( '#aiko-developer-submit-prompt-temp-val' ).text().trim(); 75 var comment = $( '#aiko-developer-submit-prompt-comment-val' ).val().trim(); 76 var anonymous = $( '#aiko-developer-submit-prompt-accept-val' ).is( ':checked' ) ? '1' : '0'; 77 78 $.ajax({ 79 url: ajaxUrl, 80 type: 'POST', 81 data: { 82 action: 'submit_prompt_send', 83 nonce: $( '#aiko_developer_nonce_field' ).val(), 84 functional_requirements: revert_text( fr ), 85 ai: ai, 86 model: model, 87 temperature: temp, 88 comment: comment, 89 post_id: postID, 90 anonymous: anonymous 91 }, 92 success: function( response ) { 93 $( '#aiko-developer-loader-overlay' ).fadeOut(); 94 $( '#aiko-developer-alert-popup-overlay' ).fadeIn(); 95 $( '#aiko-developer-alert-text' ).text( aiko_developer_get_message( response.data ) ); 96 $( '#aiko-developer-alert-ok' ).attr( 'data-action', response.data ); 97 $( '#aiko-developer-submit-prompt-comment-val' ).val( '' ); 98 $( '#aiko-developer-submit-prompt-accept-val' ).prop('checked', false); 99 $( '#aiko-developer-submitted' ).val( '1' ); 100 } 101 }); 102 }); 103 104 $( '#aiko-developer-submit-prompt-popup-close' ).on( 'click', function() { 105 event.preventDefault(); 106 $( '#aiko-developer-submit-prompt-popup-overlay' ).fadeOut(); 107 $( '#aiko-developer-submit-prompt-comment-val' ).val( '' ); 108 $( '#aiko-developer-submit-prompt-accept-val' ).prop('checked', false); 109 }); 10 110 11 111 function aiko_developer_code_not_generated() { -
aiko-developer-lite/trunk/framework/css/style.css
r3291914 r3330246 52 52 } 53 53 50% { 54 opacity: 0. 5;55 transform: scale(1. 1);54 opacity: 0.8; 55 transform: scale(1.02); 56 56 } 57 57 100% { … … 1030 1030 } 1031 1031 1032 /* Share prompt popup */ 1033 .aiko-developer-corner-box { 1034 position: fixed; 1035 bottom: 10px; 1036 right: 30px; 1037 z-index: 9999; 1038 background: #fff; 1039 border: 1px solid #e5e5e5; 1040 border-radius: 8px; 1041 box-shadow: -2px -2px 8px rgba(0, 0, 0, 0.3); 1042 padding: 1em; 1043 display: none; 1044 width: 250px; 1045 } 1046 .aiko-developer-corner-box .aiko-developer-corner-box-content .aiko-developer-corner-box-top { 1047 display: flex; 1048 flex-direction: column; 1049 gap: 10px; 1050 } 1051 .aiko-developer-corner-box .aiko-developer-corner-box-content .aiko-developer-corner-box-top .aiko-developer-corner-box-headline { 1052 font-size: 1.2em; 1053 font-weight: 600; 1054 margin: 0; 1055 } 1056 .aiko-developer-corner-box .aiko-developer-corner-box-content .aiko-developer-corner-box-top .aiko-developer-corner-box-text { 1057 font-size: 1em; 1058 color: #23282d; 1059 margin: 0; 1060 } 1061 .aiko-developer-corner-box .aiko-developer-corner-box-content .aiko-developer-corner-box-top .aiko-developer-corner-box-button { 1062 background-color: #853aff; 1063 } 1064 .aiko-developer-corner-box .aiko-developer-corner-box-content .aiko-developer-corner-box-close { 1065 margin: 0; 1066 position: absolute; 1067 top: 12px; 1068 right: 10px; 1069 } 1070 .aiko-developer-corner-box .aiko-developer-corner-box-content .aiko-developer-corner-box-close:before { 1071 cursor: pointer; 1072 font: normal 20px/1 dashicons; 1073 content: ""; 1074 text-align: center; 1075 color: #444; 1076 opacity: 0.5; 1077 } 1078 .aiko-developer-corner-box .aiko-developer-corner-box-content .aiko-developer-corner-box-close:hover:before { 1079 opacity: 1; 1080 } 1081 1082 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-popup-content { 1083 height: auto; 1084 max-height: 85%; 1085 overflow-x: auto; 1086 } 1087 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-popup-content-info { 1088 background: #f3f3f3; 1089 border: 1px solid #c3c4c7; 1090 border-left-width: 4px; 1091 border-left-color: #853aff; 1092 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); 1093 padding: 12px 12px; 1094 } 1095 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-popup-content-text { 1096 border-top: none; 1097 margin-top: 0; 1098 padding-top: 0; 1099 } 1100 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-popup-content-text h4 { 1101 margin-bottom: 1em !important; 1102 } 1103 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-submit-prompt-popup-content-data-basic { 1104 display: flex; 1105 gap: 1em; 1106 } 1107 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-submit-prompt-popup-content-data-basic p { 1108 margin: 0; 1109 } 1110 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-submit-prompt-popup-content-data { 1111 display: flex; 1112 gap: 1em; 1113 } 1114 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-submit-prompt-popup-content-data p { 1115 margin: 0; 1116 } 1117 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-submit-prompt-popup-content-prompt { 1118 margin-top: 1em; 1119 border-top: 1px solid rgba(0, 0, 0, 0.3); 1120 margin-bottom: 1em; 1121 border-bottom: 1px solid rgba(0, 0, 0, 0.3); 1122 max-height: 19em; 1123 overflow-y: scroll; 1124 } 1125 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-submit-prompt-popup-content-prompt #aiko-developer-submit-prompt-fr { 1126 margin: 1em 0; 1127 } 1128 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-submit-prompt-popup-content-prompt #aiko-developer-submit-prompt-fr-val { 1129 margin: 1em 0; 1130 } 1131 #aiko-developer-submit-prompt-popup-overlay .aiko-developer-submit-prompt-popup-content-comment p { 1132 margin: 0; 1133 } 1134 1032 1135 /* Lite special */ 1033 1136 #aiko-developer-buy-full-wrapper { -
aiko-developer-lite/trunk/framework/css/style.css.map
r3291914 r3330246 1 {"version":3,"sourceRoot":"","sources":["style.scss"],"names":[],"mappings":"AAAA;AAEA;AACC;EACA;EACG;;AACH;EACC;EACA;EACA;;;AAKD;EACC;;AAGD;EACC;EACA;;;AAKD;AACC;EACA;EACA;EACA;;AACA;EACC;;AAGF;EACC;EACA;;;AAIF;AACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACG;IAAO;IAAY;;EACnB;IAAQ;IAAc;;EACtB;IAAQ;IAAY;;;AAGvB;EACC;;;AAGD;EACE;;;AAEF;EACE;;;AAEF;AAEA;EACC;EACA;AACG;;;AAGJ;AAEA;EACC;EACG;;AACH;EACC;EACA;EACA;;AACA;EACC;;AACA;EACC;EACA;EACA;EACA;;AAIH;EACC;;AAEC;EACC;;AAED;EACC;EACA;;AAED;EACC;;AACA;EACC;;AAGF;EACC;;AACA;EACC;EACA;;AAID;EACC;;AAGF;EACC;;;AAMJ;AAEA;EACC;EACA;;AACA;EACC;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;;;AAIF;EACC;EACA;EACA;EACA;;;AAGD;AAEA;EACC;EACA;;AACA;EACC;EACA;EACA;;AAED;EACC;EACA;;;AAIF;EACC;;;AAGD;AAGC;EACC;;AAED;EACC;EACA;EACA;EACA;;AAED;EACC;;;AAIF;AAEA;EACC;EACA;AACA;AACA;AACA;AAOA;AAAA;AAAA;;AANA;EACC;;AAED;EACC;;AAKD;EACC;;AACA;EACC;;;AAKH;EACC;IACC;;EACA;IACC;;EAED;IACC;IACA;IACA;;;AAKH;AAGC;EACC;EACA;;AACA;EACC;EACA;EACA;EACA;;AAED;EACC;;;AAMH;AAGC;EACC;EACA;EACA;EACA;EACA;;;AAKF;EACC;;;AAED;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWC;;;AAGD;AAAA;AAAA;EAGC;;;AAGD;EACC;;AACA;EACC;EACA;;;AAIF;AAKC;AAAA;AAAA;EACC;;;AAIF;AAEA;EACC;EACA;EACA;EACA;EACA;AACA;EACA;EACA;;AACA;EACC;AACA;;AAED;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;;AAED;EACC;AAKA;AAAA;AAAA;AAAA;;AAJA;EACC;EACA;;AAOF;EACC;EACA;EACA;EACA;;AACA;EACC;;AAED;EACC;;AAIH;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;;AACA;EACC;EACA;;AAGF;EACC;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;;;AAKH;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAIH;EACC;;;AAMF;EACC;IACC;IACA;;;AAIF;EACG;EACA;;;AAGH;AAEA;EACC;AAAe;;;AAGhB;AAAA;EAEI;;;AAGJ;AAEA;AAAA;AAAA;AAAA;AAKA;AAAA;EAEC;AACA;EACA;EACA;;AACA;AAAA;EACC;;AACA;AAAA;AACC;;;AAMF;EACC;EACA;EACA;EACA;EACA;;AAEC;EACC;;AAIH;EACC;;AACA;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAED;EACC;EACA;;AAID;EACC;EACA;EACA;;AACA;EACC;EACA;EACA;;AAEC;EACC;EACA;EACA;EACA;;AACA;EACC;;AAED;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAIH;AACC;EACA;EACA;EACA;;AAEC;EACC;;AAGF;EACC;EACA;;AACA;EAEC;EACA;;AAED;EAGC;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACC;;AAED;EACC;;AAED;AACC;EACA;EACA;;AAKF;EACC;;AAIH;EACC;EACA;EACA;EACA;EACA;;AAGC;AAAA;EACC;EACA;EACA;EACA;EACA;;AAGF;EACC;EACA;EACA;;AACA;EACC;;AAGF;EACC;EACA;EACA;;AACA;EACC;;AAGF;EACC;;AAIH;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;;AAID;EACC;;AACA;EACC;EACA;EACA;;AACA;EACC;;AAGF;EACC;;AAGF;EACC;;AACA;EACC;EACA;;AAED;EACC;EACA;AACA;;AAGD;EACC;;AAED;EACC;EACA;;AACA;EACC;;AAGF;EACC;EACA;;AACA;EACC;;AAgBR;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;;;AAKH;EACC;IAAK;;EACL;IAAO;;;AAGR;AAEA;EACC;EACA;EACG;;AACH;EACC;EACA;EACA;EACA;;AACA;EACC;;AAGF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;;AACA;EACC;EACA;EACA;;AAKF;EACC;;AACA;EACC;;AAGF;EACC;;AAID;EACC;EACA;;AACA;EACC;EACA;;AAKF;EACC;;;AAKH;AAEA;EACC;EACA;EACA;EACA;EACA;EACG;EACA;EACA;;AACH;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;;AAGF;EACC;EACA;EACA;;AAED;EACC;;AAED;EACC;;;AAIF;AAEA;EACC;EACG;EACA;;AACH;EACC;;AAGA;EACC;;AAGF;EACC;EACA;;;AAKD;EACC;EACA;;AAED;EACC;;;AAIF;EACI;;;AAGJ;EACC;;;AAGD;EACI;;;AAGJ;EACC;;;AAGD;EACC;;;AAGD;EACE;EACA;;;AAGF;EACE;;;AAGF;EACC;;;AAGD;AAGA;EACC;;AACA;EACC;EACA;EACA;;AAGA;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;;AAIH;EACC;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;;AACA;EACC;EACA;EACA;EACC;;AACD;EACC;EACA;EACA;EACA;;AACA;EACC;EACA;;AAKH;EACC;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAED;EACC;;AACA;EACC;;AAGF;EACC;;AAED;EACC;EACA;;AACA;EACC;EACA;;AAED;EACC;;AAED;EACC;;AAGF;EACC;EACA;EACA;EACA;;AAED;EACC;;AACA;AACI;;AAGL;EACC;;AAKJ;EACC;;AACA;AACC;AACA;AACA;;AAED;EACC;AACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;;AAED;EACC;;AAED;EACC;;AACA;EACC;EACA;;AAED;EACC;;AAED;AACC;EACA;EACA;EACA;;AAGF;EACC;EACA;AACA;EACA;;AAED;EACC;EACA;AACA;;AAGA;EACC;;AAGF;AACC;;;AA WJ;AAEA;EACC;EACG;EACA;EACA;EACA;AACA;EACA;EACA;EACH;;AACA;EACC;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;;AAED;EACC;;;AAIF;EACI;;;AAIJ;EACC;EACA;;;AAGD;EACC","file":"style.css"}1 {"version":3,"sourceRoot":"","sources":["style.scss"],"names":[],"mappings":"AAAA;AAEA;AACC;EACA;EACG;;AACH;EACC;EACA;EACA;;;AAKD;EACC;;AAGD;EACC;EACA;;;AAKD;AACC;EACA;EACA;EACA;;AACA;EACC;;AAGF;EACC;EACA;;;AAIF;AACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACG;IAAO;IAAY;;EACnB;IAAQ;IAAc;;EACtB;IAAQ;IAAY;;;AAGvB;EACC;;;AAGD;EACE;;;AAEF;EACE;;;AAEF;AAEA;EACC;EACA;AACG;;;AAGJ;AAEA;EACC;EACG;;AACH;EACC;EACA;EACA;;AACA;EACC;;AACA;EACC;EACA;EACA;EACA;;AAIH;EACC;;AAEC;EACC;;AAED;EACC;EACA;;AAED;EACC;;AACA;EACC;;AAGF;EACC;;AACA;EACC;EACA;;AAID;EACC;;AAGF;EACC;;;AAMJ;AAEA;EACC;EACA;;AACA;EACC;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;;;AAIF;EACC;EACA;EACA;EACA;;;AAGD;AAEA;EACC;EACA;;AACA;EACC;EACA;EACA;;AAED;EACC;EACA;;;AAIF;EACC;;;AAGD;AAGC;EACC;;AAED;EACC;EACA;EACA;EACA;;AAED;EACC;;;AAIF;AAEA;EACC;EACA;AACA;AACA;AACA;AAOA;AAAA;AAAA;;AANA;EACC;;AAED;EACC;;AAKD;EACC;;AACA;EACC;;;AAKH;EACC;IACC;;EACA;IACC;;EAED;IACC;IACA;IACA;;;AAKH;AAGC;EACC;EACA;;AACA;EACC;EACA;EACA;EACA;;AAED;EACC;;;AAMH;AAGC;EACC;EACA;EACA;EACA;EACA;;;AAKF;EACC;;;AAED;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAWC;;;AAGD;AAAA;AAAA;EAGC;;;AAGD;EACC;;AACA;EACC;EACA;;;AAIF;AAKC;AAAA;AAAA;EACC;;;AAIF;AAEA;EACC;EACA;EACA;EACA;EACA;AACA;EACA;EACA;;AACA;EACC;AACA;;AAED;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;;AAED;EACC;AAKA;AAAA;AAAA;AAAA;;AAJA;EACC;EACA;;AAOF;EACC;EACA;EACA;EACA;;AACA;EACC;;AAED;EACC;;AAIH;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;;AACA;EACC;EACA;;AAGF;EACC;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;;;AAKH;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAIH;EACC;;;AAMF;EACC;IACC;IACA;;;AAIF;EACG;EACA;;;AAGH;AAEA;EACC;AAAe;;;AAGhB;AAAA;EAEI;;;AAGJ;AAEA;AAAA;AAAA;AAAA;AAKA;AAAA;EAEC;AACA;EACA;EACA;;AACA;AAAA;EACC;;AACA;AAAA;AACC;;;AAMF;EACC;EACA;EACA;EACA;EACA;;AAEC;EACC;;AAIH;EACC;;AACA;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAED;EACC;EACA;;AAID;EACC;EACA;EACA;;AACA;EACC;EACA;EACA;;AAEC;EACC;EACA;EACA;EACA;;AACA;EACC;;AAED;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAIH;AACC;EACA;EACA;EACA;;AAEC;EACC;;AAGF;EACC;EACA;;AACA;EAEC;EACA;;AAED;EAGC;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACC;;AAED;EACC;;AAED;AACC;EACA;EACA;;AAKF;EACC;;AAIH;EACC;EACA;EACA;EACA;EACA;;AAGC;AAAA;EACC;EACA;EACA;EACA;EACA;;AAGF;EACC;EACA;EACA;;AACA;EACC;;AAGF;EACC;EACA;EACA;;AACA;EACC;;AAGF;EACC;;AAIH;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;;AAID;EACC;;AACA;EACC;EACA;EACA;;AACA;EACC;;AAGF;EACC;;AAGF;EACC;;AACA;EACC;EACA;;AAED;EACC;EACA;AACA;;AAGD;EACC;;AAED;EACC;EACA;;AACA;EACC;;AAGF;EACC;EACA;;AACA;EACC;;AAgBR;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;;;AAKH;EACC;IAAK;;EACL;IAAO;;;AAGR;AAEA;EACC;EACA;EACG;;AACH;EACC;EACA;EACA;EACA;;AACA;EACC;;AAGF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;;AACA;EACC;EACA;EACA;;AAKF;EACC;;AACA;EACC;;AAGF;EACC;;AAID;EACC;EACA;;AACA;EACC;EACA;;AAKF;EACC;;;AAKH;AAEA;EACC;EACA;EACA;EACA;EACA;EACG;EACA;EACA;;AACH;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;;AAGF;EACC;EACA;EACA;;AAED;EACC;;AAED;EACC;;;AAIF;AAEA;EACC;EACG;EACA;;AACH;EACC;;AAGA;EACC;;AAGF;EACC;EACA;;;AAKD;EACC;EACA;;AAED;EACC;;;AAIF;EACI;;;AAGJ;EACC;;;AAGD;EACI;;;AAGJ;EACC;;;AAGD;EACC;;;AAGD;EACE;EACA;;;AAGF;EACE;;;AAGF;EACC;;;AAGD;AAGA;EACC;;AACA;EACC;EACA;EACA;;AAGA;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;;AAIH;EACC;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;;AACA;EACC;EACA;EACA;EACC;;AACD;EACC;EACA;EACA;EACA;;AACA;EACC;EACA;;AAKH;EACC;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAED;EACC;;AACA;EACC;;AAGF;EACC;;AAED;EACC;EACA;;AACA;EACC;EACA;;AAED;EACC;;AAED;EACC;;AAGF;EACC;EACA;EACA;EACA;;AAED;EACC;;AACA;AACI;;AAGL;EACC;;AAKJ;EACC;;AACA;AACC;AACA;AACA;;AAED;EACC;AACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;;AAED;EACC;;AAED;EACC;;AACA;EACC;EACA;;AAED;EACC;;AAED;AACC;EACA;EACA;EACA;;AAGF;EACC;EACA;AACA;EACA;;AAED;EACC;EACA;AACA;;AAGA;EACC;;AAGF;AACC;;;AAMJ;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACC;EACA;EACA;;AACA;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;;AAGF;EACC;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;;;AAMH;EACC;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;;AACA;EACC;;AAGF;EACC;EACA;;AACA;EACC;;AAGF;EACC;EACA;;AACA;EACC;;AAIF;EACC;EACA;EACA;EACA;EACC;EACA;;AACD;EACC;;AAED;EACC;;AAKD;EACC;;;AASH;AAEA;EACC;EACG;EACA;EACA;EACA;AACA;EACA;EACA;EACH;;AACA;EACC;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;;AAED;EACC;;;AAIF;EACI;;;AAIJ;EACC;EACA;;;AAGD;EACC","file":"style.css"} -
aiko-developer-lite/trunk/framework/css/style.scss
r3291914 r3330246 54 54 @keyframes aiko-developer-blink { 55 55 0% { opacity: 1; transform: scale(1); } 56 50% { opacity: 0. 5; transform: scale(1.1); }56 50% { opacity: 0.8; transform: scale(1.02); } 57 57 100% { opacity: 1; transform: scale(1); } 58 58 } … … 1099 1099 } 1100 1100 1101 /* Share prompt popup */ 1102 1103 .aiko-developer-corner-box { 1104 position: fixed; 1105 bottom: 10px; 1106 right: 30px; 1107 z-index: 9999; 1108 background: #fff; 1109 border: 1px solid #e5e5e5; 1110 border-radius: 8px; 1111 box-shadow: -2px -2px 8px rgba(0, 0, 0, 0.3); 1112 padding: 1em; 1113 display: none; 1114 width: 250px; 1115 .aiko-developer-corner-box-content { 1116 .aiko-developer-corner-box-top { 1117 display: flex; 1118 flex-direction: column; 1119 gap: 10px; 1120 .aiko-developer-corner-box-headline { 1121 font-size: 1.2em; 1122 font-weight: 600; 1123 margin: 0; 1124 } 1125 1126 .aiko-developer-corner-box-text { 1127 font-size: 1em; 1128 color: #23282d; 1129 margin: 0; 1130 } 1131 1132 .aiko-developer-corner-box-button { 1133 background-color: #853aff; 1134 } 1135 } 1136 .aiko-developer-corner-box-close { 1137 margin: 0; 1138 position: absolute; 1139 top: 12px; 1140 right: 10px; 1141 &:before { 1142 cursor: pointer; 1143 font: normal 20px / 1 dashicons; 1144 content: "\f335"; 1145 text-align: center; 1146 color: #444; 1147 opacity: 0.5; 1148 } 1149 &:hover:before { 1150 opacity: 1; 1151 } 1152 } 1153 } 1154 } 1155 #aiko-developer-submit-prompt-popup-overlay { 1156 .aiko-developer-popup-content { 1157 height: auto; 1158 max-height: 85%; 1159 overflow-x: auto; 1160 } 1161 .aiko-developer-popup-content-info { 1162 background: #f3f3f3; 1163 border: 1px solid #c3c4c7; 1164 border-left-width: 4px; 1165 border-left-color: #853aff; 1166 box-shadow: 0 1px 1px rgba(0, 0, 0, .04); 1167 padding: 12px 12px; 1168 } 1169 .aiko-developer-popup-content-text { 1170 border-top: none; 1171 margin-top: 0; 1172 padding-top: 0; 1173 h4 { 1174 margin-bottom: 1em !important; 1175 } 1176 } 1177 .aiko-developer-submit-prompt-popup-content-data-basic { 1178 display: flex; 1179 gap: 1em; 1180 p { 1181 margin: 0; 1182 } 1183 } 1184 .aiko-developer-submit-prompt-popup-content-data { 1185 display: flex; 1186 gap: 1em; 1187 p { 1188 margin: 0; 1189 } 1190 } 1191 1192 .aiko-developer-submit-prompt-popup-content-prompt { 1193 margin-top: 1em; 1194 border-top: 1px solid rgba(0, 0, 0, 0.3); 1195 margin-bottom: 1em; 1196 border-bottom: 1px solid rgba(0, 0, 0, 0.3); 1197 max-height: 19em; 1198 overflow-y: scroll; 1199 #aiko-developer-submit-prompt-fr { 1200 margin: 1em 0; 1201 } 1202 #aiko-developer-submit-prompt-fr-val { 1203 margin: 1em 0; 1204 } 1205 } 1206 1207 .aiko-developer-submit-prompt-popup-content-comment { 1208 p { 1209 margin: 0; 1210 } 1211 } 1212 } 1101 1213 1102 1214 -
aiko-developer-lite/trunk/framework/includes/class-aiko-developer-ajax-framework.php
r3291914 r3330246 169 169 wp_die(); 170 170 } 171 172 public function aiko_developer_handle_submit_prompt_send() { 173 if ( isset( $_POST['functional_requirements'], $_POST['ai'], $_POST['model'], $_POST['temperature'], $_POST['comment'], $_POST['post_id'] ) ) { 174 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'aiko_developer_nonce' ) 175 || ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) ) { 176 wp_send_json_error( 'error-unauthorized-access' ); 177 wp_die(); 178 } 179 180 if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || ! $this->core->get_aiko_developer_is_user_admin() ) { 181 wp_send_json_error( 'error-unauthorized-access' ); 182 wp_die(); 183 } 184 185 $post_id = intval( sanitize_text_field( wp_unslash( $_POST['post_id'] ) ) ); 186 $title = get_the_title( $post_id ); 187 188 $functional_requirements = sanitize_textarea_field( wp_unslash( $_POST['functional_requirements'] ) ); 189 $ai_selection = sanitize_text_field( wp_unslash( $_POST['ai'] ) ); 190 $model = sanitize_text_field( wp_unslash( $_POST['model'] ) ); 191 $temperature = floatval( sanitize_text_field( wp_unslash( $_POST['temperature'] ) ) ); 192 $comment = sanitize_textarea_field( wp_unslash( $_POST['comment'] ) ); 193 194 195 $anonymous = intval( $_POST['anonymous'] ?? 0 ); 196 if ( 1 === $anonymous ) { 197 $user_email = ''; 198 $display_name = ''; 199 } else { 200 $current_user = wp_get_current_user(); 201 if ( ! $current_user || 0 === $current_user->ID ) { 202 $user_email = ''; 203 $display_name = ''; 204 } else { 205 $user_email = $current_user->user_email; 206 $display_name = $current_user->display_name; 207 } 208 } 209 210 $response = wp_remote_post( 'https://aiko-developer.bold-themes.com/wp-json/aiko-developer-api/v1/save-string/', array( 211 'headers' => [ 212 'Content-Type' => 'text/plain', 213 ], 214 'body' => array( 215 'user_display_name' => $display_name, 216 'user_email' => $user_email, 217 'title' => $title, 218 'ai_selection' => $ai_selection, 219 'model' => $model, 220 'temperature' => $temperature, 221 'functional_requirements' => $functional_requirements, 222 'comment' => $comment, 223 ), 224 'timeout' => 120, 225 ) ); 226 227 if ( is_wp_error( $response ) ) { 228 wp_send_json_error( 'submit-prompt-error' ); 229 } else { 230 if ( wp_remote_retrieve_response_code( $response ) === 200 ) { 231 wp_send_json_success( 'submit-prompt-success' ); 232 } else { 233 wp_send_json_error( 'submit-prompt-error' ); 234 } 235 } 236 } else { 237 wp_send_json_error( 'error-isset-post' ); 238 } 239 wp_die(); 240 } 171 241 } -
aiko-developer-lite/trunk/framework/includes/class-aiko-developer-core-framework.php
r3291914 r3330246 103 103 $messages = array(); 104 104 105 $messages['error-general'] = esc_html__( 'Error: There was an error.', 'aiko-developer-lite' ); 106 $messages['error-unauthorized-access'] = esc_html__( 'Error: Unauthorized access.', 'aiko-developer-lite' ); 107 $messages['error-isset-post'] = esc_html__( 'Error: Invalid data.', 'aiko-developer-lite' ); 108 $messages['error-unable-to-connect'] = esc_html__( 'Error: Unable to connect to API; please try again.', 'aiko-developer-lite' ); 109 $messages['error-api'] = esc_html__( 'Error: ', 'aiko-developer-lite' ); 110 $messages['error-save-loopback'] = esc_html__( 'Error: We were unable to check for errors, your plugin is not activated or saved. You can try again or download the ZIP and try to activate it manually.', 'aiko-developer-lite' ); 111 $messages['error-unable-to-save'] = esc_html__( 'Error: There might be an error in your plugin, it is not activated or saved.', 'aiko-developer-lite' ); 112 $messages['error-save-php'] = esc_html__( 'Error: Plugin could not be activated, there is an error in PHP file.', 'aiko-developer-lite' ); 113 $messages['error-zip-fail'] = esc_html__( 'Error: Failed to create zip file', 'aiko-developer-lite' ); 114 $messages['error-restricted-code'] = esc_html__( 'Error: Restricted code detected', 'aiko-developer-lite' ); 115 $messages['error-no-title'] = esc_html__( 'Error: Plugin title is required.', 'aiko-developer-lite' ); 116 $messages['error-no-slug'] = esc_html__( 'Error: Plugin slug is required.', 'aiko-developer-lite' ); 117 $messages['error-no-api-key'] = esc_html__( 'Error: API key is required. Click OK to be redirected.', 'aiko-developer-lite' ); 118 $messages['error-empty-copy'] = esc_html__( 'Error: You cannot copy empty code.', 'aiko-developer-lite' ); 119 $messages['error-empty-edit'] = esc_html__( 'Error: You cannot submit empty Functional Requirements.', 'aiko-developer-lite' ); 120 $messages['error-empty-fr'] = esc_html__( 'Error: Cannot save the plugin without Functional Requirements.', 'aiko-developer-lite' ); 121 $messages['error-empty-fr-rephrase'] = esc_html__( 'Error: The plugin cannot be saved without Functional Requirements', 'aiko-developer-lite' ); 122 $messages['error-empty-comment-rephrase'] = esc_html__( 'Error: There is no text that could be rephrased.', 'aiko-developer-lite' ); 123 $messages['error-no-improvements'] = esc_html__( 'No suggestions have been selected.', 'aiko-developer-lite' ); 124 $messages['success-rephrase'] = esc_html__( 'We have rephrased your text. Press UPDATE to generate new code.', 'aiko-developer-lite' ); 125 $messages['success-rephrase-first'] = esc_html__( 'We have rephrased your text. Press PUBLISH to generate code.', 'aiko-developer-lite' ); 126 $messages['error-rephrase'] = esc_html__( 'Error occured. We could not rephrase your text.', 'aiko-developer-lite' ); 127 $messages['success-add-and-rephrase'] = esc_html__( 'We have rephrased your text. Press UPDATE to generate new code.', 'aiko-developer-lite' ); 128 $messages['success-undo-rephrase'] = esc_html__( 'Undo successful. Rephrased Functional Requirements are not saved.', 'aiko-developer-lite' ); 129 $messages['success-edit-code'] = esc_html__( 'Code has beed saved.', 'aiko-developer-lite' ); 130 $messages['success-edit-fr'] = esc_html__( 'Functional Requirements are saved. Press UPDATE to generate new code.', 'aiko-developer-lite' ); 131 $messages['success-copy'] = esc_html__( 'Code copied successfully.', 'aiko-developer-lite' ); 132 $messages['success-save'] = esc_html__( 'Plugin is saved and activated successfully.', 'aiko-developer-lite' ); 133 $messages['success-refresh'] = esc_html__( 'Page refreshed successfully, now you can ask AI Developer to generate your code', 'aiko-developer-lite' ); 134 $messages['success-generate'] = esc_html__( 'New code is ready. Now you can test it and use it. If you are not satisfied you can revert to the previous version using revisions.', 'aiko-developer-lite' ); 135 $messages['notice-refresh-after-api-key'] = esc_html__( 'Please refresh the page after you have entered the API key.', 'aiko-developer-lite' ); 136 $messages['notice-apply-improvements'] = esc_html__( 'Improvement suggestions are ready. Now you can add them to Functional Requirements.', 'aiko-developer-lite' ); 137 $messages['notice-comment-not-added'] = esc_html__( 'There are some improvements which are not included in Functional Requirements, so we did it for you. If you accept we will generate the code.', 'aiko-developer-lite' ); 138 $messages['confirm-cancel-edit'] = esc_html__( 'Are you sure you want to cancel? Edits will not be saved.', 'aiko-developer-lite' ); 139 $messages['confirm-cancel-rephrase'] = esc_html__( 'Are you sure you want to cancel? Rephrased Functional Requirements will not be saved.', 'aiko-developer-lite' ); 140 $messages['fr'] = esc_html__( 'Functional Requirements', 'aiko-developer-lite' ); 141 $messages['model-not-matching'] = esc_html__( 'Model does not match the active model.', 'aiko-developer-lite' ); 142 $messages['temperature-not-matching'] = esc_html__( 'Temperature does not match the active temperature.', 'aiko-developer-lite' ); 143 $messages['tags'] = esc_html__( 'Tags', 'aiko-developer-lite' ); 144 $messages['screenshots'] = esc_html__( 'Screenshots', 'aiko-developer-lite' ); 145 $messages['open-playground'] = esc_html__( 'Open Playground', 'aiko-developer-lite' ); 146 $messages['buy-full-title'] = esc_html__( 'Additional prompt for import available in PRO!', 'aiko-developer-lite' ); 147 $messages['buy-full-description'] = esc_html__( 'The Pro version of AIKO Developer Lite provides advanced features, such as: temperature settings for all models, easy extension of functional requirements, code review and improvement suggestions, automatic deployment, WordPress Playground testing options (default plugins and themes, import content), more prompts for import and many more.', 'aiko-developer-lite' ); 148 $messages['buy-full-button'] = esc_html__( 'Buy full version', 'aiko-developer-lite' ); 149 $messages['use-this'] = esc_html__( 'Use this', 'aiko-developer-lite' ); 150 105 $messages['error-general'] = esc_html__( 'Error: There was an error.', 'aiko-developer-lite' ); 106 $messages['error-unauthorized-access'] = esc_html__( 'Error: Unauthorized access.', 'aiko-developer-lite' ); 107 $messages['error-isset-post'] = esc_html__( 'Error: Invalid data.', 'aiko-developer-lite' ); 108 $messages['error-unable-to-connect'] = esc_html__( 'Error: Unable to connect to API; please try again.', 'aiko-developer-lite' ); 109 $messages['error-api'] = esc_html__( 'Error: ', 'aiko-developer-lite' ); 110 $messages['error-save-loopback'] = esc_html__( 'Error: We were unable to check for errors, your plugin is not activated or saved. You can try again or download the ZIP and try to activate it manually.', 'aiko-developer-lite' ); 111 $messages['error-unable-to-save'] = esc_html__( 'Error: There might be an error in your plugin, it is not activated or saved.', 'aiko-developer-lite' ); 112 $messages['error-save-php'] = esc_html__( 'Error: Plugin could not be activated, there is an error in PHP file.', 'aiko-developer-lite' ); 113 $messages['error-zip-fail'] = esc_html__( 'Error: Failed to create zip file', 'aiko-developer-lite' ); 114 $messages['error-restricted-code'] = esc_html__( 'Error: Restricted code detected', 'aiko-developer-lite' ); 115 $messages['error-no-title'] = esc_html__( 'Error: Plugin title is required.', 'aiko-developer-lite' ); 116 $messages['error-no-slug'] = esc_html__( 'Error: Plugin slug is required.', 'aiko-developer-lite' ); 117 $messages['error-no-api-key'] = esc_html__( 'Error: API key is required. Click OK to be redirected.', 'aiko-developer-lite' ); 118 $messages['error-empty-copy'] = esc_html__( 'Error: You cannot copy empty code.', 'aiko-developer-lite' ); 119 $messages['error-empty-edit'] = esc_html__( 'Error: You cannot submit empty Functional Requirements.', 'aiko-developer-lite' ); 120 $messages['error-empty-fr'] = esc_html__( 'Error: Cannot save the plugin without Functional Requirements.', 'aiko-developer-lite' ); 121 $messages['error-empty-fr-rephrase'] = esc_html__( 'Error: The plugin cannot be saved without Functional Requirements', 'aiko-developer-lite' ); 122 $messages['error-empty-comment-rephrase'] = esc_html__( 'Error: There is no text that could be rephrased.', 'aiko-developer-lite' ); 123 $messages['error-no-improvements'] = esc_html__( 'No suggestions have been selected.', 'aiko-developer-lite' ); 124 $messages['success-rephrase'] = esc_html__( 'We have rephrased your text. Press UPDATE to generate new code.', 'aiko-developer-lite' ); 125 $messages['success-rephrase-first'] = esc_html__( 'We have rephrased your text. Press PUBLISH to generate code.', 'aiko-developer-lite' ); 126 $messages['error-rephrase'] = esc_html__( 'Error occured. We could not rephrase your text.', 'aiko-developer-lite' ); 127 $messages['success-add-and-rephrase'] = esc_html__( 'We have rephrased your text. Press UPDATE to generate new code.', 'aiko-developer-lite' ); 128 $messages['success-undo-rephrase'] = esc_html__( 'Undo successful. Rephrased Functional Requirements are not saved.', 'aiko-developer-lite' ); 129 $messages['success-edit-code'] = esc_html__( 'Code has beed saved.', 'aiko-developer-lite' ); 130 $messages['success-edit-fr'] = esc_html__( 'Functional Requirements are saved. Press UPDATE to generate new code.', 'aiko-developer-lite' ); 131 $messages['success-copy'] = esc_html__( 'Code copied successfully.', 'aiko-developer-lite' ); 132 $messages['success-save'] = esc_html__( 'Plugin is saved and activated successfully.', 'aiko-developer-lite' ); 133 $messages['success-refresh'] = esc_html__( 'Page refreshed successfully, now you can ask AI Developer to generate your code', 'aiko-developer-lite' ); 134 $messages['success-generate'] = esc_html__( 'New code is ready. Now you can test it and use it. If you are not satisfied you can revert to the previous version using revisions.', 'aiko-developer-lite' ); 135 $messages['notice-refresh-after-api-key'] = esc_html__( 'Please refresh the page after you have entered the API key.', 'aiko-developer-lite' ); 136 $messages['notice-apply-improvements'] = esc_html__( 'Improvement suggestions are ready. Now you can add them to Functional Requirements.', 'aiko-developer-lite' ); 137 $messages['notice-comment-not-added'] = esc_html__( 'There are some improvements which are not included in Functional Requirements, so we did it for you. If you accept we will generate the code.', 'aiko-developer-lite' ); 138 $messages['confirm-cancel-edit'] = esc_html__( 'Are you sure you want to cancel? Edits will not be saved.', 'aiko-developer-lite' ); 139 $messages['confirm-cancel-rephrase'] = esc_html__( 'Are you sure you want to cancel? Rephrased Functional Requirements will not be saved.', 'aiko-developer-lite' ); 140 $messages['fr'] = esc_html__( 'Functional Requirements', 'aiko-developer-lite' ); 141 $messages['model-not-matching'] = esc_html__( 'Model does not match the active model.', 'aiko-developer-lite' ); 142 $messages['temperature-not-matching'] = esc_html__( 'Temperature does not match the active temperature.', 'aiko-developer-lite' ); 143 $messages['tags'] = esc_html__( 'Tags', 'aiko-developer-lite' ); 144 $messages['screenshots'] = esc_html__( 'Screenshots', 'aiko-developer-lite' ); 145 $messages['open-playground'] = esc_html__( 'Open Playground', 'aiko-developer-lite' ); 146 $messages['buy-full-title'] = esc_html__( 'Additional prompt for import available in PRO!', 'aiko-developer-lite' ); 147 $messages['buy-full-description'] = esc_html__( 'The Pro version of AIKO Developer Lite provides advanced features, such as: temperature settings for all models, easy extension of functional requirements, code review and improvement suggestions, automatic deployment, WordPress Playground testing options (default plugins and themes, import content), more prompts for import and many more.', 'aiko-developer-lite' ); 148 $messages['buy-full-button'] = esc_html__( 'Buy full version', 'aiko-developer-lite' ); 149 $messages['use-this'] = esc_html__( 'Use this', 'aiko-developer-lite' ); 150 $messages['confidence-level-tooltip'] = esc_html__( 'We use a special AI prompt to get this value. Values over 90% represent a good result.', 'aiko-developer-lite' ); 151 $messages['confidence-level-tooltip-na'] = esc_html__( 'Confidence Level is currently not available.', 'aiko-developer-lite' ); 152 $messages['confidence-level-na'] = esc_html__( 'N/A', 'aiko-developer-lite' ); 153 $messages['suggestions-tooltip'] = esc_html__( 'You can include these automatically generated suggestions in functional requirements by first copying them to Improvements.', 'aiko-developer-lite' ); 154 $messages['suggestions-copy'] = esc_html__( 'Copy to improvements', 'aiko-developer-lite' ); 155 $messages['suggestions-empty'] = esc_html__( 'Currently there are no suggestions.', 'aiko-developer-lite' ); 156 $messages['reviewer-disabled'] = esc_html__( 'Reviewer is disabled', 'aiko-developer-lite' ); 157 $messages['reviewer-disabled-tooltip'] = esc_html__( 'Reviewer is disabled in settings. You can enable it in Settings.', 'aiko-developer-lite' ); 158 $messages['reviewer-disabled-suggestions'] = esc_html__( 'Reviewer is disabled, so suggestions are not available.', 'aiko-developer-lite' ); 159 $messages['retry'] = esc_html__( 'Retry', 'aiko-developer-lite' ); 160 $messages['generating-confidence'] = esc_html__( 'Generating confidence level, please wait...', 'aiko-developer-lite' ); 161 $messages['generating-suggestions'] = esc_html__( 'Generating suggestions, please wait...', 'aiko-developer-lite' ); 162 $messages['submit-prompt-success'] = esc_html__( 'Thank you for your help! Your prompt has been submitted successfully.', 'aiko-developer-lite' ); 163 $messages['submit-prompt-error'] = esc_html__( 'Error: Unable to submit prompt. Click OK button to be redirected to our form where you can submit it manually.', 'aiko-developer-lite' ); 164 151 165 return $messages; 152 166 } -
aiko-developer-lite/trunk/includes/class-aiko-developer-render.php
r3291914 r3330246 26 26 <div class="aiko-developer-tooltip-text"><?php echo esc_html__( 'Download the zip and manually install the plugin.', 'aiko-developer-lite' ); ?></div> 27 27 </div> 28 </div> 29 <div class="aiko-developer-button-container"> 30 <button class="button button-secondary button-large" id="aiko-developer-submit-a-prompt-meta-box"><?php echo esc_html__( 'Share this plugin', 'aiko-developer-lite' ); ?></button> 31 <span class="aiko-developer-tooltip-container aiko-developer-tooltip-arrow-right"> 32 <i class="dashicons dashicons-info aiko-developer-download-info" aria-hidden="true"></i> 33 <span class="aiko-developer-tooltip-text"><?php echo esc_html__( 'If you want to help us you can send us this prompt.', 'aiko-developer-lite' ); ?></span> 34 </span> 28 35 </div> 29 36 </div> -
aiko-developer-lite/trunk/includes/class-aiko-developer.php
r3291914 r3330246 49 49 50 50 add_action( 'wp_ajax_undo_rephrase', array( $this->ajax, 'aiko_developer_handle_undo_rephrase' ) ); 51 52 add_action( 'wp_ajax_submit_prompt_send', array( $this->ajax, 'aiko_developer_handle_submit_prompt_send' ) ); 51 53 52 54 add_action( 'init', array( $this->core, 'get_aiko_developer_maybe_schedule_prompts_update' ) ); … … 267 269 268 270 <div id="aiko-developer-popups-and-overlays"> 269 <div id="aiko-developer-loader-overlay" >271 <div id="aiko-developer-loader-overlay" class="aiko-developer-popup"> 270 272 <div id="aiko-developer-loader-container"> 271 273 <p id="aiko-developer-loader-text"><?php echo esc_html__( 'Don\'t refresh the page', 'aiko-developer-lite' ); ?></p> … … 502 504 } 503 505 ?> 506 507 <div class="aiko-developer-corner-box"> 508 <div class="aiko-developer-corner-box-content"> 509 <div class="aiko-developer-corner-box-close"></div> 510 <div class="aiko-developer-corner-box-top"> 511 <h4 class="aiko-developer-corner-box-headline"><?php echo esc_html__( 'Want to help other AIKO users?', 'aiko-developer-lite' ); ?></h4> 512 <p class="aiko-developer-corner-box-text"><?php echo esc_html__( 'If you believe your prompt is well-crafted and that AIKO has generated a quality plugin from it, you can submit it to the Bold Themes team. After review, we may include it in the prompt import list for others to use. ', 'aiko-developer-lite' ); ?></p> 513 <button class="button button-primary button-large aiko-developer-corner-box-button"><?php echo esc_html__( 'Share this plugin', 'aiko-developer-lite' ); ?></button> 514 </div> 515 <input type="hidden" id="aiko-developer-submitted" value="0"> 516 </div> 517 </div> 518 519 <div id="aiko-developer-submit-prompt-popup-overlay" class="aiko-developer-popup-overlay aiko-developer-popup-confirm aiko-developer-popup"> 520 <div id="aiko-developer-submit-prompt-popup-content" class="aiko-developer-popup-content"> 521 <h3><?php echo esc_html__( 'Share prompt with other users', 'aiko-developer-lite' ); ?></h3> 522 <p class="aiko-developer-popup-content-info"> 523 <?php echo esc_html__( 'By submitting this form, you will send the prompt displayed on the screen, along with other visible data, to Bold Themes. After review and testing, the prompt may be added to the list of useful prompts available for import by all other AIKO Developer users.', 'aiko-developer-lite' ); ?> 524 </p> 525 <div id="aiko-developer-submit-prompt-popup-content-text" class="aiko-developer-popup-content-text"> 526 <h4><?php echo esc_html__( 'Data which will be sent to us:', 'aiko-developer-lite' ); ?></h4> 527 <div class="aiko-developer-submit-prompt-popup-content-data-basic"> 528 529 <p> 530 <b><?php echo esc_html__( 'Title:', 'aiko-developer-lite' ); ?></b> 531 <span id="aiko-developer-submit-prompt-title-val"><?php echo esc_html( $post->post_title ); ?></span> 532 </p> 533 <p> 534 <b><?php echo esc_html__( 'User details: ', 'aiko-developer-lite' ); ?></b> 535 <span><?php echo esc_html__( 'User display name & email (for communication only)', 'aiko-developer-lite' ); ?><span> 536 </p> 537 </div> 538 <div class="aiko-developer-submit-prompt-popup-content-data"> 539 <p id="aiko-developer-submit-prompt-ai"><b><?php echo esc_html__( 'Platform Selection:', 'aiko-developer-lite' ); ?></b> <span id="aiko-developer-submit-prompt-ai-val"><?php echo esc_html__( 'OpenAI', 'aiko-developer-lite' ); ?></span></p> 540 <p id="aiko-developer-submit-prompt-model"><b><?php echo esc_html__( 'Model:', 'aiko-developer-lite' ); ?></b> <span id="aiko-developer-submit-prompt-model-val"><?php echo esc_html( $model ); ?></span></p> 541 <p id="aiko-developer-submit-prompt-temp"><b><?php echo esc_html__( 'Temperature:', 'aiko-developer-lite' ); ?></b> <span id="aiko-developer-submit-prompt-temp-val"><?php echo esc_html( '0' ); ?></span></p> 542 </div> 543 <div class="aiko-developer-submit-prompt-popup-content-prompt"> 544 545 <p id="aiko-developer-submit-prompt-fr"><b><?php echo esc_html__( 'Functional Requirements:', 'aiko-developer-lite' ); ?></b> </p> 546 <p id="aiko-developer-submit-prompt-fr-val"><?php echo nl2br( esc_html( $functional_requirements ) ); ?></p> 547 </div> 548 <div class="aiko-developer-submit-prompt-popup-content-comment"> 549 <p> 550 <label for="aiko-developer-submit-prompt-comment-val"><?php echo esc_html__( 'Comment:', 'aiko-developer-lite' ); ?></label><br> 551 <textarea id="aiko-developer-submit-prompt-comment-val" name="aiko-developer-submit-prompt-comment-val" rows="3" cols="80" placeholder="<?php echo esc_attr__( 'Add a comment (optional)', 'aiko-developer-lite' ); ?>"></textarea> 552 </p> 553 <p> 554 <label> 555 <input name="aiko-developer-submit-prompt-accept-val" type="checkbox" id="aiko-developer-submit-prompt-accept-val"><?php echo esc_html__( 'Please do not share my username or email address. I prefer to remain anonymous.', 'aiko-developer-lite' ); ?> 556 </label> 557 </p> 558 </div> 559 </div> 560 <div id="aiko-developer-alert-popup-content-buttons" class="aiko-developer-popup-content-buttons"> 561 <button id="aiko-developer-submit-prompt-popup-submit" class="button button-primary button-large"><?php echo esc_html__( 'Submit', 'aiko-developer-lite' ); ?></button> 562 <button id="aiko-developer-submit-prompt-popup-close" class="button button-secondary button-large"><?php echo esc_html__( 'Close', 'aiko-developer-lite' ); ?></button> 563 </div> 564 </div> 565 </div> 504 566 </div> 505 567 </div> -
aiko-developer-lite/trunk/readme.txt
r3291920 r3330246 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.0 8 Stable tag: 2.0. 28 Stable tag: 2.0.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 135 135 == Changelog == 136 136 137 = 2.0.3 = 138 139 * Minor bug fixes 140 * Plugin sharing enabled 141 137 142 = 2.0.2 = 138 143
Note: See TracChangeset
for help on using the changeset viewer.