Changeset 3294449
- Timestamp:
- 05/15/2025 11:47:37 PM (11 months ago)
- Location:
- andy-votre-assistant-intelligent
- Files:
-
- 1 added
- 3 edited
- 6 copied
-
tags/2.0.4 (added)
-
tags/2.0.4/Andy (copied) (copied from andy-votre-assistant-intelligent/trunk/Andy)
-
tags/2.0.4/Andy-Wordress-Extension.php (copied) (copied from andy-votre-assistant-intelligent/trunk/Andy-Wordress-Extension.php) (5 diffs)
-
tags/2.0.4/Andy/Andy.html (copied) (copied from andy-votre-assistant-intelligent/trunk/Andy/Andy.html)
-
tags/2.0.4/Andy/assets/Andy-Widget/scripts/Andy.js (copied) (copied from andy-votre-assistant-intelligent/trunk/Andy/assets/Andy-Widget/scripts/Andy.js) (2 diffs)
-
tags/2.0.4/Andy/assets/Andy-Widget/styles/Andy.css (copied) (copied from andy-votre-assistant-intelligent/trunk/Andy/assets/Andy-Widget/styles/Andy.css)
-
tags/2.0.4/readme.txt (copied) (copied from andy-votre-assistant-intelligent/trunk/readme.txt) (1 diff)
-
trunk/Andy-Wordress-Extension.php (modified) (5 diffs)
-
trunk/Andy/assets/Andy-Widget/scripts/Andy.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
andy-votre-assistant-intelligent/tags/2.0.4/Andy-Wordress-Extension.php
r3294443 r3294449 4 4 * Plugin Name: Andy, Votre Assistant Intelligent 5 5 * Description: Installe Andy sur votre site WordPress. 6 * Version: 2.0. 36 * Version: 2.0.4 7 7 * Author: Maxime MORLET (MaxiCom) 8 8 * License: GPLv2 or later … … 82 82 if (version_compare($wp_version, '6.3', '>=')) { 83 83 // Modern WordPress 6.3+ way 84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0. 3', [84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0.4', [ 85 85 'strategy' => 'defer', 86 86 ]); 87 87 } else { 88 88 // Old WordPress way 89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0. 3', true);89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0.4', true); 90 90 91 91 // Add defer manually … … 250 250 <?php 251 251 // Enqueue the script to handle the notice dismissal 252 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.0. 3', true);252 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.0.4', true); 253 253 254 254 endif; … … 306 306 <?php 307 307 // Enqueue the script for handling the external settings form submission 308 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.0. 3', true);308 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.0.4', true); 309 309 } 310 310 … … 405 405 $custom_css = ":root { --primary-color: " . esc_attr($primary) . " !important; }"; 406 406 407 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.0. 3');407 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.0.4'); 408 408 wp_add_inline_style('andy-style', $custom_css); 409 409 } -
andy-votre-assistant-intelligent/tags/2.0.4/Andy/assets/Andy-Widget/scripts/Andy.js
r3294254 r3294449 279 279 280 280 // When the WebSocket connection is open 281 webSocket.onopen = async() => {281 webSocket.onopen = () => { 282 282 console.log('WebSocket connection established'); 283 283 … … 306 306 } 307 307 308 await webSocket.send(JSON.stringify(userIdMessage)); 308 const handleUserIdResponse = (event) => { 309 const serverReply = JSON.parse(event.data); 310 311 if (serverReply.action === 'user-id') { 312 webSocket.removeEventListener('message', handleUserIdResponse); 313 314 webSocket.addEventListener('message', webSocketReceiveMessageHandler); 315 316 resolve(); // Resolve the promise when connection is ready 317 } 318 }; 319 320 webSocket.addEventListener('message', handleUserIdResponse); 321 webSocket.send(JSON.stringify(userIdMessage)); 322 } else { 323 webSocket.addEventListener('message', webSocketReceiveMessageHandler); 324 resolve(); // Resolve immediately when no user ID needed 309 325 } 310 311 webSocket.addEventListener('message', webSocketReceiveMessageHandler);312 313 resolve(); // Resolve the promise when connection is open314 326 }; 315 327 -
andy-votre-assistant-intelligent/tags/2.0.4/readme.txt
r3294443 r3294449 6 6 Requires PHP: 7.3 7 7 Donate link: https://essayez-andy.fr 8 Stable tag: 2.0. 38 Stable tag: 2.0.4 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
andy-votre-assistant-intelligent/trunk/Andy-Wordress-Extension.php
r3294443 r3294449 4 4 * Plugin Name: Andy, Votre Assistant Intelligent 5 5 * Description: Installe Andy sur votre site WordPress. 6 * Version: 2.0. 36 * Version: 2.0.4 7 7 * Author: Maxime MORLET (MaxiCom) 8 8 * License: GPLv2 or later … … 82 82 if (version_compare($wp_version, '6.3', '>=')) { 83 83 // Modern WordPress 6.3+ way 84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0. 3', [84 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0.4', [ 85 85 'strategy' => 'defer', 86 86 ]); 87 87 } else { 88 88 // Old WordPress way 89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0. 3', true);89 wp_enqueue_script('andy-script', $plugin_url . 'Andy/assets/Andy-Widget/scripts/Andy.js', [], '2.0.4', true); 90 90 91 91 // Add defer manually … … 250 250 <?php 251 251 // Enqueue the script to handle the notice dismissal 252 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.0. 3', true);252 wp_enqueue_script('andy-dismiss-notice', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-dismiss-notice.js', [], '2.0.4', true); 253 253 254 254 endif; … … 306 306 <?php 307 307 // Enqueue the script for handling the external settings form submission 308 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.0. 3', true);308 wp_enqueue_script('andy-external-settings', $plugin_url . 'Andy/assets/Wordpress/scripts/andy-external-wordpress-settings.js', [], '2.0.4', true); 309 309 } 310 310 … … 405 405 $custom_css = ":root { --primary-color: " . esc_attr($primary) . " !important; }"; 406 406 407 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.0. 3');407 wp_enqueue_style('andy-style', $plugin_url . 'Andy/assets/Andy-Widget/styles/Andy.css', [], '2.0.4'); 408 408 wp_add_inline_style('andy-style', $custom_css); 409 409 } -
andy-votre-assistant-intelligent/trunk/Andy/assets/Andy-Widget/scripts/Andy.js
r3294254 r3294449 279 279 280 280 // When the WebSocket connection is open 281 webSocket.onopen = async() => {281 webSocket.onopen = () => { 282 282 console.log('WebSocket connection established'); 283 283 … … 306 306 } 307 307 308 await webSocket.send(JSON.stringify(userIdMessage)); 308 const handleUserIdResponse = (event) => { 309 const serverReply = JSON.parse(event.data); 310 311 if (serverReply.action === 'user-id') { 312 webSocket.removeEventListener('message', handleUserIdResponse); 313 314 webSocket.addEventListener('message', webSocketReceiveMessageHandler); 315 316 resolve(); // Resolve the promise when connection is ready 317 } 318 }; 319 320 webSocket.addEventListener('message', handleUserIdResponse); 321 webSocket.send(JSON.stringify(userIdMessage)); 322 } else { 323 webSocket.addEventListener('message', webSocketReceiveMessageHandler); 324 resolve(); // Resolve immediately when no user ID needed 309 325 } 310 311 webSocket.addEventListener('message', webSocketReceiveMessageHandler);312 313 resolve(); // Resolve the promise when connection is open314 326 }; 315 327 -
andy-votre-assistant-intelligent/trunk/readme.txt
r3294443 r3294449 6 6 Requires PHP: 7.3 7 7 Donate link: https://essayez-andy.fr 8 Stable tag: 2.0. 38 Stable tag: 2.0.4 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.