Plugin Directory

Changeset 3294449


Ignore:
Timestamp:
05/15/2025 11:47:37 PM (11 months ago)
Author:
maxicomdev
Message:

tag 2.0.4

Location:
andy-votre-assistant-intelligent
Files:
1 added
3 edited
6 copied

Legend:

Unmodified
Added
Removed
  • andy-votre-assistant-intelligent/tags/2.0.4/Andy-Wordress-Extension.php

    r3294443 r3294449  
    44 * Plugin Name: Andy, Votre Assistant Intelligent
    55 * Description: Installe Andy sur votre site WordPress.
    6  * Version: 2.0.3
     6 * Version: 2.0.4
    77 * Author: Maxime MORLET (MaxiCom)
    88 * License: GPLv2 or later
     
    8282    if (version_compare($wp_version, '6.3', '>=')) {
    8383        // 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', [
    8585            'strategy' => 'defer',
    8686        ]);
    8787    } else {
    8888        // 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);
    9090
    9191        // Add defer manually
     
    250250        <?php
    251251            // 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);
    253253
    254254            endif;
     
    306306<?php
    307307    // 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);
    309309}
    310310
     
    405405    $custom_css = ":root { --primary-color: " . esc_attr($primary) . " !important; }";
    406406
    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');
    408408    wp_add_inline_style('andy-style', $custom_css);
    409409}
  • andy-votre-assistant-intelligent/tags/2.0.4/Andy/assets/Andy-Widget/scripts/Andy.js

    r3294254 r3294449  
    279279
    280280            // When the WebSocket connection is open
    281             webSocket.onopen = async () => {
     281            webSocket.onopen = () => {
    282282                console.log('WebSocket connection established');
    283283
     
    306306                    }
    307307
    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
    309325                }
    310 
    311                 webSocket.addEventListener('message', webSocketReceiveMessageHandler);
    312 
    313                 resolve(); // Resolve the promise when connection is open
    314326            };
    315327
  • andy-votre-assistant-intelligent/tags/2.0.4/readme.txt

    r3294443 r3294449  
    66Requires PHP: 7.3 
    77Donate link: https://essayez-andy.fr
    8 Stable tag: 2.0.3
     8Stable tag: 2.0.4
    99License: GPLv2 or later 
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html 
  • andy-votre-assistant-intelligent/trunk/Andy-Wordress-Extension.php

    r3294443 r3294449  
    44 * Plugin Name: Andy, Votre Assistant Intelligent
    55 * Description: Installe Andy sur votre site WordPress.
    6  * Version: 2.0.3
     6 * Version: 2.0.4
    77 * Author: Maxime MORLET (MaxiCom)
    88 * License: GPLv2 or later
     
    8282    if (version_compare($wp_version, '6.3', '>=')) {
    8383        // 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', [
    8585            'strategy' => 'defer',
    8686        ]);
    8787    } else {
    8888        // 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);
    9090
    9191        // Add defer manually
     
    250250        <?php
    251251            // 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);
    253253
    254254            endif;
     
    306306<?php
    307307    // 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);
    309309}
    310310
     
    405405    $custom_css = ":root { --primary-color: " . esc_attr($primary) . " !important; }";
    406406
    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');
    408408    wp_add_inline_style('andy-style', $custom_css);
    409409}
  • andy-votre-assistant-intelligent/trunk/Andy/assets/Andy-Widget/scripts/Andy.js

    r3294254 r3294449  
    279279
    280280            // When the WebSocket connection is open
    281             webSocket.onopen = async () => {
     281            webSocket.onopen = () => {
    282282                console.log('WebSocket connection established');
    283283
     
    306306                    }
    307307
    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
    309325                }
    310 
    311                 webSocket.addEventListener('message', webSocketReceiveMessageHandler);
    312 
    313                 resolve(); // Resolve the promise when connection is open
    314326            };
    315327
  • andy-votre-assistant-intelligent/trunk/readme.txt

    r3294443 r3294449  
    66Requires PHP: 7.3 
    77Donate link: https://essayez-andy.fr
    8 Stable tag: 2.0.3
     8Stable tag: 2.0.4
    99License: GPLv2 or later 
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html 
Note: See TracChangeset for help on using the changeset viewer.