Skip to content

Commit

Permalink
v2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaze committed Mar 3, 2021
1 parent 8e6f4d2 commit 514fe02
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 149 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,23 @@ RainLoop 1.15 vs SnappyMail

|js/* |RainLoop |Snappy |
|--------------- |--------: |--------: |
|admin.js |2.158.025 | 110.619 |
|app.js |4.215.733 | 518.526 |
|admin.js |2.158.025 | 110.283 |
|app.js |4.215.733 | 518.179 |
|boot.js | 672.433 | 4.726 |
|libs.js | 647.679 | 227.892 |
|libs.js | 647.679 | 227.780 |
|polyfills.js | 325.908 | 0 |
|serviceworker.js | 0 | 285 |
|TOTAL |8.019.778 | 862.048 |
|TOTAL |8.019.778 | 861.253 |

|js/min/* |RainLoop |Snappy |RL gzip |SM gzip |RL brotli |SM brotli |
|--------------- |--------: |--------: |------: |------: |--------: |--------: |
|admin.min.js | 255.514 | 55.984 | 73.899 | 16.023 | 60.674 | 14.249 |
|app.min.js | 516.000 | 252.837 |140.430 | 73.022 |110.657 | 61.387 |
|admin.min.js | 255.514 | 55.895 | 73.899 | 15.992 | 60.674 | 14.239 |
|app.min.js | 516.000 | 252.825 |140.430 | 73.089 |110.657 | 61.565 |
|boot.min.js | 66.456 | 2.525 | 22.553 | 1.391 | 20.043 | 1.201 |
|libs.min.js | 574.626 | 115.808 |177.280 | 42.810 |151.855 | 38.115 |
|libs.min.js | 574.626 | 115.768 |177.280 | 42.792 |151.855 | 38.097 |
|polyfills.min.js | 32.608 | 0 | 11.315 | 0 | 10.072 | 0 |
|TOTAL |1.445.204 | 427.154 |425.477 |133.246 |353.301 |114.952 |
|TOTAL (no admin) |1.189.690 | 371.170 |351.061 |117.223 |292.627 |100.703 |
|TOTAL |1.445.204 | 427.013 |425.477 |133.264 |353.301 |115.102 |
|TOTAL (no admin) |1.189.690 | 371.118 |351.061 |117.272 |292.627 |100.863 |

For a user its around 66% smaller and faster than traditional RainLoop.

Expand Down Expand Up @@ -165,12 +165,12 @@ For a user its around 66% smaller and faster than traditional RainLoop.

|css/* |RainLoop |Snappy |RL gzip |SM gzip |SM brotli |
|------------ |-------: |-------: |------: |------: |--------: |
|app.css | 340.334 | 114.202 | 46,959 | 19.376 | 16.602 |
|app.min.css | 274.791 | 94.773 | 39.618 | 17.443 | 15.286 |
|app.css | 340.334 | 113.842 | 46,959 | 19.342 | 16.575 |
|app.min.css | 274.791 | 94.441 | 39.618 | 17.414 | 15.264 |
|boot.css | | 2.066 | | 913 | 742 |
|boot.min.css | | 1.696 | | 818 | 664 |
|admin.css | | 52.698 | | 10.249 | 8.960 |
|admin.min.css | | 42.264 | | 9.089 | 8.075 |
|admin.css | | 52.753 | | 10.259 | 8.964 |
|admin.min.css | | 42.311 | | 9.098 | 8.088 |


### Squire vs CKEditor
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "SnappyMail",
"description": "Simple, modern & fast web-based email client",
"private": true,
"version": "2.3.3",
"version": "2.3.4",
"homepage": "https://snappymail.eu",
"author": {
"name": "DJ Maze",
Expand Down
5 changes: 4 additions & 1 deletion plugins/change-password/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Change Password',
VERSION = '2.0',
RELEASE = '2021-03-03',
REQUIRED = '2.3.4',
CATEGORY = 'Security',
DESCRIPTION = '';
DESCRIPTION = 'This plugin allows you to change passwords of email accounts';

// \RainLoop\Notifications\
const CouldNotSaveNewPassword = 130;
Expand Down
71 changes: 45 additions & 26 deletions release.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,52 @@
is_dir($destPath) || mkdir($destPath, 0777, true);
$manifest = [];
require 'snappymail/v/0.0.0/app/libraries/RainLoop/Plugins/AbstractPlugin.php';
$keys = [
'author',
'category',
'description',
'file',
'id',
'license',
'name',
'release',
'required',
'type',
'url',
'version'
];
foreach (glob('plugins/*', GLOB_NOSORT | GLOB_ONLYDIR) as $dir) {
require "{$dir}/index.php";
$name = basename($dir);
$class = new ReflectionClass(str_replace('-', '', $name) . 'Plugin');
$manifest_item = [];
foreach ($class->getConstants() as $key => $value) {
$manifest_item[\strtolower($key)] = $value;
}
$version = $manifest_item['version'];
if (0 < floatval($version)) {
echo "+ {$name} {$version}\n";
$manifest_item['type'] = 'plugin';
$manifest_item['id'] = $name;
$manifest_item['file'] = "{$dir}-{$version}.tgz";
ksort($manifest_item);
$manifest[$name] = $manifest_item;
$tar_destination = "{$destPath}{$name}-{$version}.tar";
$tgz_destination = "{$destPath}{$name}-{$version}.tgz";
@unlink($tgz_destination);
@unlink("{$tar_destination}.gz");
$tar = new PharData($tar_destination);
$tar->buildFromDirectory('./plugins/', "@{$name}@");
$tar->compress(Phar::GZ);
unlink($tar_destination);
rename("{$tar_destination}.gz", $tgz_destination);
} else {
echo "- {$name} {$version}\n";
if (is_file("{$dir}/index.php")) {
require "{$dir}/index.php";
$name = basename($dir);
$class = new ReflectionClass(str_replace('-', '', $name) . 'Plugin');
$manifest_item = [];
foreach ($class->getConstants() as $key => $value) {
$key = \strtolower($key);
if (in_array($key, $keys)) {
$manifest_item[$key] = $value;
}
}
$version = $manifest_item['version'];
if (0 < floatval($version)) {
echo "+ {$name} {$version}\n";
$manifest_item['type'] = 'plugin';
$manifest_item['id'] = $name;
$manifest_item['file'] = "{$dir}-{$version}.tgz";
ksort($manifest_item);
$manifest[$name] = $manifest_item;
$tar_destination = "{$destPath}{$name}-{$version}.tar";
$tgz_destination = "{$destPath}{$name}-{$version}.tgz";
@unlink($tgz_destination);
@unlink("{$tar_destination}.gz");
$tar = new PharData($tar_destination);
$tar->buildFromDirectory('./plugins/', "@{$name}@");
$tar->compress(Phar::GZ);
unlink($tar_destination);
rename("{$tar_destination}.gz", $tgz_destination);
} else {
echo "- {$name} {$version}\n";
}
}
}

Expand Down
Loading

0 comments on commit 514fe02

Please sign in to comment.