Plugin Directory

Changeset 3118321


Ignore:
Timestamp:
07/15/2024 12:38:43 PM (19 months ago)
Author:
peqiapp
Message:

Update to version 2.0.1 from GitHub

Location:
peqiapp
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • peqiapp/tags/2.0.1/assets/css/style.css

    r3116615 r3118321  
    278278  font-style: normal;
    279279  font-weight: 600;
    280   line-height: 2px;
    281280  letter-spacing: -0.96px;
    282281  text-align: center;
  • peqiapp/tags/2.0.1/assets/js/script.js

    r3116615 r3118321  
    88    this.copyToClipboard();
    99    this.checkForm();
    10     this.registerClarity();
    1110    this.openPaymentLink();
    1211    this.checkSubscriptionStatus();
     12    this.debugMode();
     13
     14    if (!PEQIAPP_VAR.SCRIPT_DEBUG) {
     15      this.registerClarity();
     16      this.initGoogleAnalytics();
     17    }
     18  }
     19
     20  /**
     21   * Verificar Debug Mode
     22   */
     23  debugMode() {
     24    if (PEQIAPP_VAR.SCRIPT_DEBUG) {
     25      console.log("Debug Mode ativado!");
     26    }
    1327  }
    1428
     
    1933    document.addEventListener("DOMContentLoaded", function () {
    2034      console.log(`PeqiApp plugin carregado em ${PEQIAPP_VAR.PEQI_WEBSITE}!`);
     35    });
     36  }
     37
     38  /**
     39   * Google Analytics
     40   */
     41  initGoogleAnalytics() {
     42    document.addEventListener("DOMContentLoaded", function () {
     43      const gtagScript = document.createElement("script");
     44      gtagScript.async = true;
     45      gtagScript.src =
     46        "https://www.googletagmanager.com/gtag/js?id=G-SSZMPXFYG9";
     47      document.head.appendChild(gtagScript);
     48
     49      window.dataLayer = window.dataLayer || [];
     50      function gtag() {
     51        dataLayer.push(arguments);
     52      }
     53      gtag("js", new Date());
     54
     55      gtag("config", "G-SSZMPXFYG9");
    2156    });
    2257  }
  • peqiapp/tags/2.0.1/includes/functions.php

    r3116615 r3118321  
    437437        public static function peqi_activate_plan_form()
    438438        {
    439             if (defined('SCRIPT_DEBUG')) {
     439            if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG === true) {
    440440                $plan_trial = "price_1OZdPuJUpNS565Y8EpmNx5fN";
    441441            } else {
  • peqiapp/tags/2.0.1/peqiapp.php

    r3116615 r3118321  
    33/**
    44 * @package Peqi App
    5  * @version 2.0.0
     5 * @version 2.0.1
    66 *
    77 * Plugin Name: Peqi App
    88 * Plugin URI: http://wordpress.org/plugins/peqiapp/
    99 * Description: You can manage your application settings, perform cache cleaning, adjust optimization levels, and view performance metrics.
    10  * Version: 2.0.0
     10 * Version: 2.0.1
    1111 * Requires at least: 4.7
    1212 * Author: Peqi
     
    7373            define('PEQIAPP_PATH', plugin_dir_path(__FILE__));
    7474            define('PEQIAPP_URL', plugin_dir_url(__FILE__));
    75             define('PEQIAPP_VERSION', '2.0.0');
     75            define('PEQIAPP_VERSION', '2.0.1');
    7676
    7777            if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG === true) {
     
    8080                define('PEQI_API_URL', 'https://api.peqi.app');
    8181            }
     82           
    8283            define('PEQI_ENDPOINT_AUTH', '/v0/auth/token/');
    8384            define('PEQI_ENDPOINT_TOKEN', '/v0/tokens/');
     
    176177        public function javascript_variables()
    177178        {
    178             wp_localize_script('peqiapp-script', 'PEQIAPP_VAR', array('PEQI_WEBSITE' => PEQI_WEBSITE));
     179            $array = array(
     180                'PEQI_WEBSITE' => PEQI_WEBSITE,
     181                'SCRIPT_DEBUG' => defined('SCRIPT_DEBUG') && SCRIPT_DEBUG === true ? true : false,
     182            );
     183
     184            wp_localize_script('peqiapp-script', 'PEQIAPP_VAR', $array);
    179185        }
    180186    }
  • peqiapp/tags/2.0.1/readme.txt

    r3116615 r3118321  
    44Requires at least: 4.7
    55Tested up to: 6.5
    6 Stable tag: 2.0.0
     6Stable tag: 2.0.1
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    5050== Changelog ==
    5151
     52= 2.0.1 - 2024-07-15 =
     53* Plan Update
     54
     55= 2.0.0 - 2024-07-11 =
     56* Major Release
     57
     58= 0.3.0 - 2024-07-03 =
     59* Plans View Update
     60
     61= 0.2.0 - 2024-06-24 =
     62* Progress Update
     63
    5264= 0.1.0 - 2024-06-07 =
    5365* Initial Public Beta Release
  • peqiapp/trunk/assets/css/style.css

    r3116615 r3118321  
    278278  font-style: normal;
    279279  font-weight: 600;
    280   line-height: 2px;
    281280  letter-spacing: -0.96px;
    282281  text-align: center;
  • peqiapp/trunk/assets/js/script.js

    r3116615 r3118321  
    88    this.copyToClipboard();
    99    this.checkForm();
    10     this.registerClarity();
    1110    this.openPaymentLink();
    1211    this.checkSubscriptionStatus();
     12    this.debugMode();
     13
     14    if (!PEQIAPP_VAR.SCRIPT_DEBUG) {
     15      this.registerClarity();
     16      this.initGoogleAnalytics();
     17    }
     18  }
     19
     20  /**
     21   * Verificar Debug Mode
     22   */
     23  debugMode() {
     24    if (PEQIAPP_VAR.SCRIPT_DEBUG) {
     25      console.log("Debug Mode ativado!");
     26    }
    1327  }
    1428
     
    1933    document.addEventListener("DOMContentLoaded", function () {
    2034      console.log(`PeqiApp plugin carregado em ${PEQIAPP_VAR.PEQI_WEBSITE}!`);
     35    });
     36  }
     37
     38  /**
     39   * Google Analytics
     40   */
     41  initGoogleAnalytics() {
     42    document.addEventListener("DOMContentLoaded", function () {
     43      const gtagScript = document.createElement("script");
     44      gtagScript.async = true;
     45      gtagScript.src =
     46        "https://www.googletagmanager.com/gtag/js?id=G-SSZMPXFYG9";
     47      document.head.appendChild(gtagScript);
     48
     49      window.dataLayer = window.dataLayer || [];
     50      function gtag() {
     51        dataLayer.push(arguments);
     52      }
     53      gtag("js", new Date());
     54
     55      gtag("config", "G-SSZMPXFYG9");
    2156    });
    2257  }
  • peqiapp/trunk/includes/functions.php

    r3116615 r3118321  
    437437        public static function peqi_activate_plan_form()
    438438        {
    439             if (defined('SCRIPT_DEBUG')) {
     439            if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG === true) {
    440440                $plan_trial = "price_1OZdPuJUpNS565Y8EpmNx5fN";
    441441            } else {
  • peqiapp/trunk/peqiapp.php

    r3116615 r3118321  
    33/**
    44 * @package Peqi App
    5  * @version 2.0.0
     5 * @version 2.0.1
    66 *
    77 * Plugin Name: Peqi App
    88 * Plugin URI: http://wordpress.org/plugins/peqiapp/
    99 * Description: You can manage your application settings, perform cache cleaning, adjust optimization levels, and view performance metrics.
    10  * Version: 2.0.0
     10 * Version: 2.0.1
    1111 * Requires at least: 4.7
    1212 * Author: Peqi
     
    7373            define('PEQIAPP_PATH', plugin_dir_path(__FILE__));
    7474            define('PEQIAPP_URL', plugin_dir_url(__FILE__));
    75             define('PEQIAPP_VERSION', '2.0.0');
     75            define('PEQIAPP_VERSION', '2.0.1');
    7676
    7777            if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG === true) {
     
    8080                define('PEQI_API_URL', 'https://api.peqi.app');
    8181            }
     82           
    8283            define('PEQI_ENDPOINT_AUTH', '/v0/auth/token/');
    8384            define('PEQI_ENDPOINT_TOKEN', '/v0/tokens/');
     
    176177        public function javascript_variables()
    177178        {
    178             wp_localize_script('peqiapp-script', 'PEQIAPP_VAR', array('PEQI_WEBSITE' => PEQI_WEBSITE));
     179            $array = array(
     180                'PEQI_WEBSITE' => PEQI_WEBSITE,
     181                'SCRIPT_DEBUG' => defined('SCRIPT_DEBUG') && SCRIPT_DEBUG === true ? true : false,
     182            );
     183
     184            wp_localize_script('peqiapp-script', 'PEQIAPP_VAR', $array);
    179185        }
    180186    }
  • peqiapp/trunk/readme.txt

    r3116615 r3118321  
    44Requires at least: 4.7
    55Tested up to: 6.5
    6 Stable tag: 2.0.0
     6Stable tag: 2.0.1
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    5050== Changelog ==
    5151
     52= 2.0.1 - 2024-07-15 =
     53* Plan Update
     54
     55= 2.0.0 - 2024-07-11 =
     56* Major Release
     57
     58= 0.3.0 - 2024-07-03 =
     59* Plans View Update
     60
     61= 0.2.0 - 2024-06-24 =
     62* Progress Update
     63
    5264= 0.1.0 - 2024-06-07 =
    5365* Initial Public Beta Release
Note: See TracChangeset for help on using the changeset viewer.