Skip to content

Commit 514fe02

Browse files
author
djmaze
committed
v2.3.4
1 parent 8e6f4d2 commit 514fe02

File tree

5 files changed

+173
-149
lines changed

5 files changed

+173
-149
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,23 @@ RainLoop 1.15 vs SnappyMail
115115

116116
|js/* |RainLoop |Snappy |
117117
|--------------- |--------: |--------: |
118-
|admin.js |2.158.025 | 110.619 |
119-
|app.js |4.215.733 | 518.526 |
118+
|admin.js |2.158.025 | 110.283 |
119+
|app.js |4.215.733 | 518.179 |
120120
|boot.js | 672.433 | 4.726 |
121-
|libs.js | 647.679 | 227.892 |
121+
|libs.js | 647.679 | 227.780 |
122122
|polyfills.js | 325.908 | 0 |
123123
|serviceworker.js | 0 | 285 |
124-
|TOTAL |8.019.778 | 862.048 |
124+
|TOTAL |8.019.778 | 861.253 |
125125

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

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

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

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

175175

176176
### Squire vs CKEditor

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "SnappyMail",
44
"description": "Simple, modern & fast web-based email client",
55
"private": true,
6-
"version": "2.3.3",
6+
"version": "2.3.4",
77
"homepage": "https://snappymail.eu",
88
"author": {
99
"name": "DJ Maze",

plugins/change-password/index.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
66
{
77
const
88
NAME = 'Change Password',
9+
VERSION = '2.0',
10+
RELEASE = '2021-03-03',
11+
REQUIRED = '2.3.4',
912
CATEGORY = 'Security',
10-
DESCRIPTION = '';
13+
DESCRIPTION = 'This plugin allows you to change passwords of email accounts';
1114

1215
// \RainLoop\Notifications\
1316
const CouldNotSaveNewPassword = 130;

release.php

Lines changed: 45 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,52 @@
99
is_dir($destPath) || mkdir($destPath, 0777, true);
1010
$manifest = [];
1111
require 'snappymail/v/0.0.0/app/libraries/RainLoop/Plugins/AbstractPlugin.php';
12+
$keys = [
13+
'author',
14+
'category',
15+
'description',
16+
'file',
17+
'id',
18+
'license',
19+
'name',
20+
'release',
21+
'required',
22+
'type',
23+
'url',
24+
'version'
25+
];
1226
foreach (glob('plugins/*', GLOB_NOSORT | GLOB_ONLYDIR) as $dir) {
13-
require "{$dir}/index.php";
14-
$name = basename($dir);
15-
$class = new ReflectionClass(str_replace('-', '', $name) . 'Plugin');
16-
$manifest_item = [];
17-
foreach ($class->getConstants() as $key => $value) {
18-
$manifest_item[\strtolower($key)] = $value;
19-
}
20-
$version = $manifest_item['version'];
21-
if (0 < floatval($version)) {
22-
echo "+ {$name} {$version}\n";
23-
$manifest_item['type'] = 'plugin';
24-
$manifest_item['id'] = $name;
25-
$manifest_item['file'] = "{$dir}-{$version}.tgz";
26-
ksort($manifest_item);
27-
$manifest[$name] = $manifest_item;
28-
$tar_destination = "{$destPath}{$name}-{$version}.tar";
29-
$tgz_destination = "{$destPath}{$name}-{$version}.tgz";
30-
@unlink($tgz_destination);
31-
@unlink("{$tar_destination}.gz");
32-
$tar = new PharData($tar_destination);
33-
$tar->buildFromDirectory('./plugins/', "@{$name}@");
34-
$tar->compress(Phar::GZ);
35-
unlink($tar_destination);
36-
rename("{$tar_destination}.gz", $tgz_destination);
37-
} else {
38-
echo "- {$name} {$version}\n";
27+
if (is_file("{$dir}/index.php")) {
28+
require "{$dir}/index.php";
29+
$name = basename($dir);
30+
$class = new ReflectionClass(str_replace('-', '', $name) . 'Plugin');
31+
$manifest_item = [];
32+
foreach ($class->getConstants() as $key => $value) {
33+
$key = \strtolower($key);
34+
if (in_array($key, $keys)) {
35+
$manifest_item[$key] = $value;
36+
}
37+
}
38+
$version = $manifest_item['version'];
39+
if (0 < floatval($version)) {
40+
echo "+ {$name} {$version}\n";
41+
$manifest_item['type'] = 'plugin';
42+
$manifest_item['id'] = $name;
43+
$manifest_item['file'] = "{$dir}-{$version}.tgz";
44+
ksort($manifest_item);
45+
$manifest[$name] = $manifest_item;
46+
$tar_destination = "{$destPath}{$name}-{$version}.tar";
47+
$tgz_destination = "{$destPath}{$name}-{$version}.tgz";
48+
@unlink($tgz_destination);
49+
@unlink("{$tar_destination}.gz");
50+
$tar = new PharData($tar_destination);
51+
$tar->buildFromDirectory('./plugins/', "@{$name}@");
52+
$tar->compress(Phar::GZ);
53+
unlink($tar_destination);
54+
rename("{$tar_destination}.gz", $tgz_destination);
55+
} else {
56+
echo "- {$name} {$version}\n";
57+
}
3958
}
4059
}
4160

0 commit comments

Comments
 (0)