Changeset 2923889
- Timestamp:
- 06/09/2023 10:56:48 AM (14 months ago)
- Location:
- cibeles-ai
- Files:
-
- 147 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cibeles-ai/trunk/cibeles-ai.php
r2920103 r2923889 10 10 * Author: Cibeles.net 11 11 * Author URI: https://www.cibeles.net/ 12 * Version: 1.8. 012 * Version: 1.8. 13 13 * License: GPLv2 14 14 * Released under the GNU General Public License (GPL) … … 23 23 $cibelesAiPlugin = [ 24 24 'namespace' => 'cibeles-ai', 25 'version' => '1.8. 0',25 'version' => '1.8.', 26 26 'path' => dirname(__FILE__).DS, 27 27 'url' => plugin_dir_url( __FILE__ ), -
cibeles-ai/trunk/init.php
r2920103 r2923889 76 76 if ( ( 'post.php' == $pagenow || 'post-new.php' == $pagenow ) || ( 'options-general.php' == $pagenow ) ) { 77 77 wp_enqueue_style('fontawesome_css', plugin_dir_url( __FILE__ ) . 'libs/fontawesome/css/main.css', '', '', 'all'); 78 wp_enqueue_style('post_css', plugin_dir_url( __FILE__ ) . 'css/main.css', '', '1. 7.0', 'all');78 wp_enqueue_style('post_css', plugin_dir_url( __FILE__ ) . 'css/main.css', '', '1.', 'all'); 79 79 } 80 80 } … … 90 90 91 91 if ( ( 'post.php' == $pagenow || 'post-new.php' == $pagenow ) && 'post' == $post->post_type ) { 92 wp_enqueue_script( 'language_js', plugin_dir_url( __FILE__ ) . 'js/init_language.js', array( 'jquery' ), '1. 7.0', true );92 wp_enqueue_script( 'language_js', plugin_dir_url( __FILE__ ) . 'js/init_language.js', array( 'jquery' ), '1.', true ); 93 93 wp_set_script_translations( 'language_js', 'cibeles-ai', plugin_basename( __DIR__ ) . '/languages/'); 94 94 95 95 if (caip_is_classic_editor()) { 96 wp_enqueue_script( 'post_js', plugin_dir_url( __FILE__ ) . 'js/init_ai_fields.js', array( 'jquery' ), '1. 7.0', true );96 wp_enqueue_script( 'post_js', plugin_dir_url( __FILE__ ) . 'js/init_ai_fields.js', array( 'jquery' ), '1.', true ); 97 97 wp_set_script_translations( 'post_js', 'cibeles-ai', plugin_basename( __DIR__ ) . '/languages/'); 98 98 wp_localize_script( 'post_js', 'caip_settings', $cibelesAiPlugin['settings'] ); … … 105 105 wp_enqueue_script( 'caip_difftext', plugin_dir_url( __FILE__ ) .'libs/diff/diff.js', array( 'jquery' ), false, true ); 106 106 107 wp_enqueue_script( 'caip_functions', plugin_dir_url( __FILE__ ) .'js/classes/caip_Functions.js', array( 'jquery' ), '1. 7.0', true );108 wp_enqueue_script( 'caip_button', plugin_dir_url( __FILE__ ) .'js/classes/caip_Button.js', array( 'jquery' ), '1. 7.0', true );109 wp_enqueue_script( 'caip_action', plugin_dir_url( __FILE__ ) .'js/classes/caip_Action.js', array( 'jquery' ), '1. 7.0', true );110 wp_enqueue_script( 'caip_titulo', plugin_dir_url( __FILE__ ) .'js/classes/caip_Titulo.js', array( 'jquery' ), '1. 7.0', true );111 wp_enqueue_script( 'caip_tag', plugin_dir_url( __FILE__ ) .'js/classes/caip_Tag.js', array( 'jquery' ), '1. 7.0', true );112 wp_enqueue_script( 'caip_resumenp', plugin_dir_url( __FILE__ ) .'js/classes/caip_ResumenP.js', array( 'jquery' ), '1. 7.0', true );113 wp_enqueue_script( 'caip_multiaction', plugin_dir_url( __FILE__ ) .'js/classes/caip_Multiaction.js', array( 'jquery' ), '1. 7.0', true );114 115 wp_enqueue_script( 'caip_clickbait', plugin_dir_url( __FILE__ ) .'js/classes/clickbait.js', array( 'jquery' ), '1. 7.0', true );116 wp_enqueue_script( 'caip_titularcorto', plugin_dir_url( __FILE__ ) .'js/classes/titularcorto.js', array( 'jquery' ), '1. 7.0', true );117 wp_enqueue_script( 'caip_titular', plugin_dir_url( __FILE__ ) .'js/classes/titular.js', array( 'jquery' ), '1. 7.0', true );118 wp_enqueue_script( 'caip_tags', plugin_dir_url( __FILE__ ) .'js/classes/tags.js', array( 'jquery' ), '1. 7.0', true );119 wp_enqueue_script( 'caip_autotags', plugin_dir_url( __FILE__ ) .'js/classes/autotags.js', array( 'jquery' ), '1. 7.0', true );120 wp_enqueue_script( 'caip_resumen', plugin_dir_url( __FILE__ ) .'js/classes/resumen.js', array( 'jquery' ), '1. 7.0', true );121 wp_enqueue_script( 'caip_autoexcerpt', plugin_dir_url( __FILE__ ) .'js/classes/autoexcerpt.js', array( 'jquery' ), '1. 7.0', true );122 wp_enqueue_script( 'caip_refrito', plugin_dir_url( __FILE__ ) .'js/classes/refrito.js', array( 'jquery' ), '1. 7.0', true );123 wp_enqueue_script( 'caip_corrector', plugin_dir_url( __FILE__ ) .'js/classes/corrector.js', array( 'jquery' ), '1. 7.0', true );124 wp_enqueue_script( 'caip_introduccion', plugin_dir_url( __FILE__ ) .'js/classes/introduccion.js', array( 'jquery' ), '1. 7.0', true );125 wp_enqueue_script( 'caip_conclusion', plugin_dir_url( __FILE__ ) .'js/classes/conclusion.js', array( 'jquery' ), '1. 7.0', true );126 wp_enqueue_script( 'caip_youtube', plugin_dir_url( __FILE__ ) .'js/classes/youtube.js', array( 'jquery' ), '1. 7.0', true );107 wp_enqueue_script( 'caip_functions', plugin_dir_url( __FILE__ ) .'js/classes/caip_Functions.js', array( 'jquery' ), '1.', true ); 108 wp_enqueue_script( 'caip_button', plugin_dir_url( __FILE__ ) .'js/classes/caip_Button.js', array( 'jquery' ), '1.', true ); 109 wp_enqueue_script( 'caip_action', plugin_dir_url( __FILE__ ) .'js/classes/caip_Action.js', array( 'jquery' ), '1.', true ); 110 wp_enqueue_script( 'caip_titulo', plugin_dir_url( __FILE__ ) .'js/classes/caip_Titulo.js', array( 'jquery' ), '1.', true ); 111 wp_enqueue_script( 'caip_tag', plugin_dir_url( __FILE__ ) .'js/classes/caip_Tag.js', array( 'jquery' ), '1.', true ); 112 wp_enqueue_script( 'caip_resumenp', plugin_dir_url( __FILE__ ) .'js/classes/caip_ResumenP.js', array( 'jquery' ), '1.', true ); 113 wp_enqueue_script( 'caip_multiaction', plugin_dir_url( __FILE__ ) .'js/classes/caip_Multiaction.js', array( 'jquery' ), '1.', true ); 114 115 wp_enqueue_script( 'caip_clickbait', plugin_dir_url( __FILE__ ) .'js/classes/clickbait.js', array( 'jquery' ), '1.', true ); 116 wp_enqueue_script( 'caip_titularcorto', plugin_dir_url( __FILE__ ) .'js/classes/titularcorto.js', array( 'jquery' ), '1.', true ); 117 wp_enqueue_script( 'caip_titular', plugin_dir_url( __FILE__ ) .'js/classes/titular.js', array( 'jquery' ), '1.', true ); 118 wp_enqueue_script( 'caip_tags', plugin_dir_url( __FILE__ ) .'js/classes/tags.js', array( 'jquery' ), '1.', true ); 119 wp_enqueue_script( 'caip_autotags', plugin_dir_url( __FILE__ ) .'js/classes/autotags.js', array( 'jquery' ), '1.', true ); 120 wp_enqueue_script( 'caip_resumen', plugin_dir_url( __FILE__ ) .'js/classes/resumen.js', array( 'jquery' ), '1.', true ); 121 wp_enqueue_script( 'caip_autoexcerpt', plugin_dir_url( __FILE__ ) .'js/classes/autoexcerpt.js', array( 'jquery' ), '1.', true ); 122 wp_enqueue_script( 'caip_refrito', plugin_dir_url( __FILE__ ) .'js/classes/refrito.js', array( 'jquery' ), '1.', true ); 123 wp_enqueue_script( 'caip_corrector', plugin_dir_url( __FILE__ ) .'js/classes/corrector.js', array( 'jquery' ), '1.', true ); 124 wp_enqueue_script( 'caip_introduccion', plugin_dir_url( __FILE__ ) .'js/classes/introduccion.js', array( 'jquery' ), '1.', true ); 125 wp_enqueue_script( 'caip_conclusion', plugin_dir_url( __FILE__ ) .'js/classes/conclusion.js', array( 'jquery' ), '1.', true ); 126 wp_enqueue_script( 'caip_youtube', plugin_dir_url( __FILE__ ) .'js/classes/youtube.js', array( 'jquery' ), '1.', true ); 127 127 128 128 … … 154 154 155 155 }else{ 156 wp_enqueue_script( 'gutenberg_js', plugin_dir_url( __FILE__ ) . 'js/gutenberg.js', array( 'jquery' ), '1. 7.0', true );156 wp_enqueue_script( 'gutenberg_js', plugin_dir_url( __FILE__ ) . 'js/gutenberg.js', array( 'jquery' ), '1.', true ); 157 157 wp_set_script_translations( 'gutenberg_js', 'cibeles-ai', plugin_dir_path(__FILE__). '/languages/'); 158 158 } -
cibeles-ai/trunk/js/classes/caip_Multiaction.js
r2900336 r2923889 35 35 } 36 36 37 38 39 40 41 42 43 44 45 46 47 48 49 37 50 launch(){ 38 this.partesRight = []; 39 this.partesLeft = []; 40 let partesContenido = this.setDivsContent(); 41 this.boton.changeIconToPower(); 42 this.launched = true; 43 this.showLoadingDiv(); 44 45 jQuery('#'+this.buttons_id).remove(); 46 let delay = 0; 47 for(var i=0; i<partesContenido.length; i++){ 51 if(this.initFunction()){ 52 this.partesRight = []; 53 this.partesLeft = []; 54 let partesContenido = this.setDivsContent(); 55 this.boton.changeIconToPower(); 56 this.launched = true; 57 this.showLoadingDiv(); 48 58 49 this.input[i] = this.prompt + this.responseStartsWhith + partesContenido[i] + this.responseEndsWhith ; 50 let textoLimpio = this.partesLeft[i].replace(/(<([^>]+)>)/gi, "").replace(' ',' ').trim();; 51 if(this.partesLeft[i].length > 5000 || this.partesLeft[i].trim() == '' || textoLimpio == ''){ 52 this.partesRight[i] = this.partesLeft[i]; 53 this.manageResponse(i,this.partesLeft[i]); 54 }else{ 55 this.partesRight[i] = this.processedFalse; 56 //this.ajaxFunction(this,i); 57 this.delayAjaxCall(i); 59 jQuery('#'+this.buttons_id).remove(); 60 let delay = 0; 61 for(var i=0; i<partesContenido.length; i++){ 62 63 this.input[i] = this.prompt + this.responseStartsWhith + partesContenido[i] + this.responseEndsWhith ; 64 let textoLimpio = this.partesLeft[i].replace(/(<([^>]+)>)/gi, "").replace(' ',' ').trim();; 65 if(this.partesLeft[i].length > 5000 || this.partesLeft[i].trim() == '' || textoLimpio == ''){ 66 this.partesRight[i] = this.partesLeft[i]; 67 this.manageResponse(i,this.partesLeft[i]); 68 }else{ 69 this.partesRight[i] = this.processedFalse; 70 //this.ajaxFunction(this,i); 71 this.delayAjaxCall(i); 72 73 } 58 74 59 75 } 60 76 }else{ 77 this.launched = false; 61 78 } 79 62 80 } 63 81 -
cibeles-ai/trunk/readme.txt
r2920494 r2923889 5 5 Tested up to: 6.2.2 6 6 Requires PHP: 5.6 7 Stable tag: 1.8. 07 Stable tag: 1.8. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 80 80 == Changelog == 81 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 82 115 = 1.0.0 = 83 * Initial commit 84 = 1.0.1 = 85 * Handle WP error. 86 * Update SVG icon.svg 87 = 1.1 = 88 * Rewrite of post content (ideal for press releases, and avoid duplicate content from Google). 89 = 1.1.1 = 90 * Fix some bugs. 91 = 1.1.2 = 92 * Add browsers compatibility- 93 = 1.2.0 = 94 * Language settings. WPML compatibilty. Up to 30 languages auto switch prompt. 95 = 1.2.1 = 96 * Fix some bugs. 97 = 1.3.0 = 98 * Added translations to catalan, french, german, italian, spanish and portuguese- 99 = 1.3.1 = 100 * Fix some bugs. 101 = 1.3.2 = 102 * Translations files. 103 = 1.3.3 = 104 * Fix some bugs. 105 = 1.4 = 106 * Add texts fix/corrector for content of the post- 107 = 1.5 = 108 * When tags are created, those that exist are verified and indicated with a green check, to avoid creating tags that do not exist in the system. 109 = 1.6.0 = 110 * Two new functionalities, for the introduction of a text, and for the conclusion of a text. 111 = 1.7.0 = 112 * Ability to enable/disable plugin features (buttons) 113 = 1.8.0 = 114 * Get articles content from youtube url video. Extract title, descripton and auto captions if avaibale to generate the content. 116 Commit inicial.
Note: See TracChangeset
for help on using the changeset viewer.