Changeset 1948520
- Timestamp:
- 09/28/2018 10:41:44 AM (8 years ago)
- Location:
- wave-for-wp
- Files:
-
- 5 edited
-
tags/1.0.5/wave-wp.php (modified) (2 diffs)
-
trunk/js/codox-bootstrap.js (modified) (3 diffs)
-
trunk/js/codox-ckeditor.js (modified) (2 diffs)
-
trunk/js/codox-tinymce.js (modified) (1 diff)
-
trunk/wave-wp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wave-for-wp/tags/1.0.5/wave-wp.php
r1948495 r1948520 10 10 11 11 function 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)22 12 } 23 13 … … 26 16 } 27 17 28 //removeIf(production)29 // DS testing30 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.js33 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 }37 18 38 // SCZ testing39 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 testing46 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 server53 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 elb62 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 server69 if (process.env.BUILD_ENV === 'production') {70 //endRemoveIf(production)71 19 define('WAVE_SERVER_URL', 'https://app.codox.io'); 72 20 define('CDN1_URL', 'https://cdn1.codox.io'); 73 21 define('CDN2_URL', 'https://cdn2.codox.io'); 74 //removeIf(production)75 }76 //endRemoveIf(production)77 22 78 23 const WAVE_CLIENT_JS_URL = WAVE_SERVER_URL . '/plugins/wave.client.js'; -
wave-for-wp/trunk/js/codox-bootstrap.js
r1854656 r1948520 24 24 25 25 if(isPost) 26 void 0;26 console.log('wp plugin - is a post'); 27 27 else 28 void 0;28 console.log('wp plugin - not a post'); 29 29 30 30 return isPost; … … 51 51 var app = e.detail; 52 52 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); 56 56 57 57 if(!isPostEditing(wp_vars.base)) … … 68 68 username: wp_vars.username, 69 69 domain: wp_vars.domain, 70 editorInstance: tinymce.activeEditor, 70 71 }; 71 72 -
wave-for-wp/trunk/js/codox-ckeditor.js
r1854656 r1948520 39 39 window.clearInterval(intervalTimer); 40 40 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); 44 44 45 45 … … 49 49 //and everytime user sw 50 50 CKEDITOR.on('instanceReady', function(evt) { 51 void 0;51 console.log('wp plugin - ckeditor event: ', evt); 52 52 53 53 var ckeditor = evt.editor; -
wave-for-wp/trunk/js/codox-tinymce.js
r1854656 r1948520 26 26 editor.settings.menubar = false; 27 27 28 void 0;28 console.log('codox-tinymce plugin'); 29 29 }); 30 30 } -
wave-for-wp/trunk/wave-wp.php
r1948495 r1948520 10 10 11 11 function 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)22 12 } 23 13 … … 26 16 } 27 17 28 //removeIf(production)29 // DS testing30 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.js33 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 }37 18 38 // SCZ testing39 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 testing46 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 server53 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 elb62 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 server69 if (process.env.BUILD_ENV === 'production') {70 //endRemoveIf(production)71 19 define('WAVE_SERVER_URL', 'https://app.codox.io'); 72 20 define('CDN1_URL', 'https://cdn1.codox.io'); 73 21 define('CDN2_URL', 'https://cdn2.codox.io'); 74 //removeIf(production)75 }76 //endRemoveIf(production)77 22 78 23 const WAVE_CLIENT_JS_URL = WAVE_SERVER_URL . '/plugins/wave.client.js';
Note: See TracChangeset
for help on using the changeset viewer.