Skip to content

Commit fc3cbba

Browse files
authored
Merge pull request #32 from easycoder/dev
Add server files
2 parents a07ee1e + 9a40ed0 commit fc3cbba

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

dist/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# EasyCoder server files
1+
# EasyCoder server files
22

3-
These are mostly server-side files. The most significant are 2 small REST servers written in PHP and Python, which perform the same functions. The former is for setting up a `localhost` server and the latter is for use on LAMP servers.
3+
Here are 2 small REST servers written in Python and PHP, which both perform the same functions. The former is for setting up a `localhost` server and the latter is for use on LAMP servers.
44

5-
The files `easycoder.php`, `ec-rest.txt` and `readme.txt` are for WordPress installations.
5+
These REST servers give your browser scripts read and write access to files on your own website and to remote servers if CORS has been set up.
6+
7+
The files `easycoder.php`, `ec-rest.txt` and `readme.txt` are for WordPress installations.

dist/easycoder.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: EasyCoder
44
* Plugin URI: https://easycoder.software
55
* Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript.
6-
* Version: 2.6.0
6+
* Version: 2.6.1
77
* Author: EasyCoder Software
88
* Author URI: https://easycoder.software
99
*/
@@ -14,9 +14,11 @@
1414

1515
// The EasyCoder library
1616
add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2);
17-
function easycoder_enqueue_script() {
18-
wp_enqueue_script('easycoder_script', plugin_dir_url( __FILE__ )
19-
. 'easycoder-min.js', array(), '2.5.6');
17+
function easycoder_enqueue_script() {
18+
wp_enqueue_script('easycoder_script',
19+
'https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js', array(), '2.6.1');
20+
// wp_enqueue_script('easycoder_script', 'https://rembrandt.easycoder.software/dist/easycoder.js',
21+
array(), '2.6.1');
2022
}
2123

2224
// Set up default plugin and REST scripts
@@ -25,9 +27,6 @@ function setup_default_files() {
2527
$pluginDir = plugin_dir_path( __FILE__ );
2628

2729
mkdir(ABSPATH . 'easycoder');
28-
if (!file_exists(ABSPATH . 'easycoder/plugins.js')) {
29-
copy($pluginDir . 'plugins-sample.js', ABSPATH . 'easycoder/plugins.js');
30-
}
3130
if (!file_exists(ABSPATH . 'easycoder/rest-local.php')) {
3231
copy($pluginDir . 'rest-local-sample.php', ABSPATH . 'easycoder/rest-local.php');
3332
}

dist/readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ For tutorials and a programmers' reference see our [EasyCoder Software Codex](ht
5454

5555
== Changelog ==
5656

57+
= 2.6.1 16-apr 2020 =
58+
* Use CDN to deliver all files
59+
5760
= 2.6.0 21-feb 2020 =
5861
* Added a VFX plugin; many other updates & bug fixes
5962

0 commit comments

Comments
 (0)