Plugin Directory

Changeset 1948520


Ignore:
Timestamp:
09/28/2018 10:41:44 AM (8 years ago)
Author:
sund
Message:

update 1.0.5

Location:
wave-for-wp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wave-for-wp/tags/1.0.5/wave-wp.php

    r1948495 r1948520  
    1010
    1111function log_me($message) {
    12 
    13   //removeIf(production)
    14   if (WP_DEBUG === true) {
    15     if (is_array($message) || is_object($message)) {
    16       error_log(print_r($message, true));
    17     } else {
    18       error_log($message); 
    19     }
    20   }
    21   //endRemoveIf(production)
    2212}
    2313
     
    2616}
    2717
    28 //removeIf(production)
    29 // DS testing
    30 if (process.env.BUILD_ENV === "david") {
    31   //BASE_URL = 'https://127.0.0.1:9000/';
    32   //note: this must be consistent with const domain defined in /smd/config/environment/development.js
    33   define('WAVE_SERVER_URL', 'https://127.0.0.1:9000');
    34   define('CDN1_URL', 'https://127.0.0.1:9000');
    35   define('CDN2_URL', 'https://127.0.0.1:9000');
    36 }
    3718
    38 // SCZ testing
    39 if (process.env.BUILD_ENV === "scz") {
    40   define('WAVE_SERVER_URL', 'https://155.69.141.250:9000');
    41   define('CDN1_URL', 'https://155.69.141.250:9000');
    42   define('CDN2_URL', 'https://155.69.141.250:9000');
    43 }
    44 
    45 // Agustina testing
    46 if (process.env.BUILD_ENV === "agustina") {
    47   define('WAVE_SERVER_URL', 'https://cdx.homeip.net:9000');
    48   define('CDN1_URL', 'https://cdx.homeip.net:9000');
    49   define('CDN2_URL', 'https://cdx.homeip.net:9000');
    50 }
    51 
    52 // Staging server
    53 if (process.env.BUILD_ENV === "staging-standalone") {
    54   define('WAVE_SERVER_URL', 'https://smd.stage.codox.io');
    55   // define('CDN1_URL', 'https://d2238tohze1a9h.cloudfront.net');
    56   define('CDN1_URL', 'https://cdn1.stage.codox.io');
    57   // define('CDN2_URL', 'https://d2b8ko6kausgbo.cloudfront.net');
    58   define('CDN2_URL', 'https://cdn2.stage.codox.io');
    59 }
    60 
    61 // Staging server with elb
    62 if (process.env.BUILD_ENV === "staging-elb") {
    63   define('WAVE_SERVER_URL', 'https://elb-smd-stage.codox.io/');
    64   define('CDN1_URL', 'https://elb-smd-stage.codox.io');
    65   define('CDN2_URL', 'https://elb-smd-stage.codox.io');
    66 }
    67 
    68 // production server
    69 if (process.env.BUILD_ENV === 'production') {
    70 //endRemoveIf(production)
    7119define('WAVE_SERVER_URL', 'https://app.codox.io');
    7220define('CDN1_URL', 'https://cdn1.codox.io');
    7321define('CDN2_URL', 'https://cdn2.codox.io');
    74 //removeIf(production)
    75 }
    76 //endRemoveIf(production)
    7722 
    7823const WAVE_CLIENT_JS_URL = WAVE_SERVER_URL . '/plugins/wave.client.js';
  • wave-for-wp/trunk/js/codox-bootstrap.js

    r1854656 r1948520  
    2424
    2525    if(isPost)
    26       void 0;
     26      console.log('wp plugin - is a post');
    2727    else
    28       void 0;
     28      console.log('wp plugin - not a post');
    2929
    3030    return isPost;
     
    5151    var app = e.detail;
    5252
    53     void 0;
    54     void 0;
    55     void 0;
     53    console.log('wp plugin - initCodox for app: ', app);
     54    console.log('wp plugin - variables: ', wp_vars);
     55    console.log('wp plugin - Tinymce', tinymce);
    5656
    5757    if(!isPostEditing(wp_vars.base))
     
    6868        username: wp_vars.username,
    6969        domain: wp_vars.domain,
     70        editorInstance: tinymce.activeEditor,
    7071      };
    7172
  • wave-for-wp/trunk/js/codox-ckeditor.js

    r1854656 r1948520  
    3939    window.clearInterval(intervalTimer);
    4040
    41     void 0;
    42     void 0;
    43     void 0;
     41    console.log('wp plugin - ckeditor: ', CKEDITOR);
     42    console.log('wp plugin - ckeditor instance: ', CKEDITOR.instances);
     43    console.log('wp plugin - ckeditor content: ', CKEDITOR.instances.content);
    4444
    4545
     
    4949    //and everytime user sw
    5050    CKEDITOR.on('instanceReady', function(evt) {
    51       void 0;
     51      console.log('wp plugin - ckeditor event: ', evt);
    5252
    5353      var ckeditor = evt.editor;
  • wave-for-wp/trunk/js/codox-tinymce.js

    r1854656 r1948520  
    2626        editor.settings.menubar = false;
    2727
    28         void 0;
     28        console.log('codox-tinymce plugin');
    2929      });
    3030  }
  • wave-for-wp/trunk/wave-wp.php

    r1948495 r1948520  
    1010
    1111function log_me($message) {
    12 
    13   //removeIf(production)
    14   if (WP_DEBUG === true) {
    15     if (is_array($message) || is_object($message)) {
    16       error_log(print_r($message, true));
    17     } else {
    18       error_log($message); 
    19     }
    20   }
    21   //endRemoveIf(production)
    2212}
    2313
     
    2616}
    2717
    28 //removeIf(production)
    29 // DS testing
    30 if (process.env.BUILD_ENV === "david") {
    31   //BASE_URL = 'https://127.0.0.1:9000/';
    32   //note: this must be consistent with const domain defined in /smd/config/environment/development.js
    33   define('WAVE_SERVER_URL', 'https://127.0.0.1:9000');
    34   define('CDN1_URL', 'https://127.0.0.1:9000');
    35   define('CDN2_URL', 'https://127.0.0.1:9000');
    36 }
    3718
    38 // SCZ testing
    39 if (process.env.BUILD_ENV === "scz") {
    40   define('WAVE_SERVER_URL', 'https://155.69.141.250:9000');
    41   define('CDN1_URL', 'https://155.69.141.250:9000');
    42   define('CDN2_URL', 'https://155.69.141.250:9000');
    43 }
    44 
    45 // Agustina testing
    46 if (process.env.BUILD_ENV === "agustina") {
    47   define('WAVE_SERVER_URL', 'https://cdx.homeip.net:9000');
    48   define('CDN1_URL', 'https://cdx.homeip.net:9000');
    49   define('CDN2_URL', 'https://cdx.homeip.net:9000');
    50 }
    51 
    52 // Staging server
    53 if (process.env.BUILD_ENV === "staging-standalone") {
    54   define('WAVE_SERVER_URL', 'https://smd.stage.codox.io');
    55   // define('CDN1_URL', 'https://d2238tohze1a9h.cloudfront.net');
    56   define('CDN1_URL', 'https://cdn1.stage.codox.io');
    57   // define('CDN2_URL', 'https://d2b8ko6kausgbo.cloudfront.net');
    58   define('CDN2_URL', 'https://cdn2.stage.codox.io');
    59 }
    60 
    61 // Staging server with elb
    62 if (process.env.BUILD_ENV === "staging-elb") {
    63   define('WAVE_SERVER_URL', 'https://elb-smd-stage.codox.io/');
    64   define('CDN1_URL', 'https://elb-smd-stage.codox.io');
    65   define('CDN2_URL', 'https://elb-smd-stage.codox.io');
    66 }
    67 
    68 // production server
    69 if (process.env.BUILD_ENV === 'production') {
    70 //endRemoveIf(production)
    7119define('WAVE_SERVER_URL', 'https://app.codox.io');
    7220define('CDN1_URL', 'https://cdn1.codox.io');
    7321define('CDN2_URL', 'https://cdn2.codox.io');
    74 //removeIf(production)
    75 }
    76 //endRemoveIf(production)
    7722 
    7823const WAVE_CLIENT_JS_URL = WAVE_SERVER_URL . '/plugins/wave.client.js';
Note: See TracChangeset for help on using the changeset viewer.