Plugin Directory

Changeset 1800547


Ignore:
Timestamp:
01/10/2018 03:28:29 PM (8 years ago)
Author:
poliuk
Message:

v1.0.10 released: Added break to the injector

Location:
wp-pwa
Files:
16 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-pwa/trunk/injector/injector.js

    r1799765 r1800547  
    11// Uglify using "npx uglify-js injector.js --output injector.min.js --compress --mangle"
    2 
    32(function(document, window, navigator) {
    43  var isIpad = /ipad.*?OS (?![1-8]_|X)/i; // from iOS 9
  • wp-pwa/trunk/injector/wp-pwa-injector.php

    r1799765 r1800547  
    1414$ssr = 'https://ssr.wp-pwa.com';
    1515$static = 'https://static.wp-pwa.com';
     16$inject = false;
    1617$force = false;
    17 $inject = false;
    1818$dev = 'false';
     19$break = false;
    1920
    2021if (is_home()) {
     
    9293  }
    9394
     95if (isset($_GET['break']) && ($_GET['break'] === 'true')) {
     96  $break = true;
     97}
     98
    9499if ($siteId && ($listType || $singleType)) {
    95100  if ($force || $pwa_status === 'mobile') {
     
    102107<?php if ($inject) { ?>
    103108  <script type='text/javascript'>
    104   window['wp-pwa'] = { siteId: '<?php echo $siteId; ?>',<?php if ($listType) echo ' listType: \'' . $listType . '\',' ?><?php if ($listId) echo ' listId: \'' . $listId . '\',' ?><?php if ($singleType) echo ' singleType: \'' . $singleType . '\',' ?><?php if ($singleId) echo ' singleId: \'' . $singleId . '\',' ?><?php if ($page) echo ' page: \'' . $page . '\',' ?> env: '<?php echo $env; ?>', dev: <?php echo $dev; ?>, perPage: '<?php echo $perPage; ?>', ssr: '<?php echo $ssr; ?>', static: '<?php echo $static; ?>' };
    105   <?php require(WP_PLUGIN_DIR . $GLOBALS['wp_pwa_path'] . '/injector/injector.min.js'); ?>
     109  window['wp-pwa'] = { siteId: '<?php echo $siteId; ?>',<?php if ($listType) echo ' listType: \'' . $listType . '\',' ?><?php if ($listId) echo ' listId: \'' . $listId . '\',' ?><?php if ($singleType) echo ' singleType: \'' . $singleType . '\',' ?><?php if ($singleId) echo ' singleId: \'' . $singleId . '\',' ?><?php if ($page) echo ' page: \'' . $page . '\',' ?> env: '<?php echo $env; ?>', dev: <?php echo $dev; ?>, perPage: '<?php echo $perPage; ?>', ssr: '<?php echo $ssr; ?>', static: '<?php echo $static; ?>'<?php if ($break) echo ', break: true'; ?> };
     110  <?php if ($break) {
     111    echo 'debugger;';
     112    require(WP_PLUGIN_DIR . $GLOBALS['wp_pwa_path'] . '/injector/injector.js');
     113  } else {
     114    require(WP_PLUGIN_DIR . $GLOBALS['wp_pwa_path'] . '/injector/injector.min.js');
     115  } ?>
    106116  </script>
    107117<?php } ?>
  • wp-pwa/trunk/readme.txt

    r1799765 r1800547  
    55Requires at least: 4.4
    66Tested up to: 4.8.2
    7 Stable tag: 1.0.9
     7Stable tag: 1.0.10
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    2626
    2727== Changelog ==
     28= 1.0.10 =
     29* Add break option to debug injector code
     30
    2831= 1.0.9 =
    2932* Add dev (development) variable to query
  • wp-pwa/trunk/wp-pwa.php

    r1799765 r1800547  
    44Plugin URI: https://wordpress.org/plugins/wordpress-pwa/
    55Description: WordPress plugin to turn WordPress blogs into Progressive Web Apps.
    6 Version: 1.0.9
     6Version: 1.0.10
    77Author: WordPress PWA
    88Author URI:
     
    1616{
    1717    // vars
    18     public $plugin_version = '1.0.9';
     18    public $plugin_version = '1.0.10';
    1919    public $rest_api_installed  = false;
    2020    public $rest_api_active     = false;
Note: See TracChangeset for help on using the changeset viewer.