diff --git a/README.md b/README.md index 1833e7996..1af4e035f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The drastically upgraded & secured fork of RainLoop Webmail Community edition.
- We thank RainLoop team for making a great PHP 5 product that was good in the past. + We thank the RainLoop Team for making a great PHP 5 product that was good in the past.
Up to date system requirements, snappy performance, simple installation and upgrade, no database required @@ -106,7 +106,7 @@ Things might work in Edge 18, Firefox 50-62 and Chrome 54-68 due to one polyfill |admin.js |2.130.942 | 844.753 | |app.js |4.184.455 |2.487.401 | |boot.js | 671.522 | 5.285 | -|libs.js | 647.614 | 246.085 | +|libs.js | 647.614 | 246.183 | |polyfills.js | 325.834 | 0 | |TOTAL |7.960.367 |3.583.524 | @@ -115,10 +115,10 @@ Things might work in Edge 18, Firefox 50-62 and Chrome 54-68 due to one polyfill |admin.min.js | 252.147 | 116.068 | 73.657 | 33.279 | 28.711 | |app.min.js | 511.202 | 339.263 |140.462 | 89.051 | 72.194 | |boot.min.js | 66.007 | 2.935 | 22.567 | 1.510 | 1.285 | -|libs.min.js | 572.545 | 147.019 |176.720 | 51.583 | 45.825 | +|libs.min.js | 572.545 | 147.113 |176.720 | 51.608 | 45.901 | |polyfills.min.js | 32.452 | 0 | 11.312 | 0 | 0 | -|TOTAL |1.434.353 | 605.285 |424.718 |175.423 |148.015 | -|TOTAL (no admin) |1.182.206 | 489.217 |351.061 |142.144 |119.304 | +|TOTAL |1.434.353 | 605.379 |424.718 |175.448 |148.091 | +|TOTAL (no admin) |1.182.206 | 489.311 |351.061 |142.169 |119.380 | For a user its around 58% smaller and faster than traditional RainLoop. diff --git a/data/.htaccess b/data/.htaccess new file mode 100644 index 000000000..b66e80882 --- /dev/null +++ b/data/.htaccess @@ -0,0 +1 @@ +Require all denied diff --git a/dev/External/SquireUI.js b/dev/External/SquireUI.js index 69e9bf8f5..2cdb35e2b 100644 --- a/dev/External/SquireUI.js +++ b/dev/External/SquireUI.js @@ -431,16 +431,21 @@ class SquireUI changes.redo.input.disabled = !state.canRedo; }); + squire.addEventListener('focus', () => shortcuts.off()); + squire.addEventListener('blur', () => shortcuts.on()); + container.append(toolbar, wysiwyg, plain); /* -squire-raw.js:2161: this.fireEvent( 'dragover', { -squire-raw.js:2168: this.fireEvent( 'drop', { -squire-raw.js:2583: this.fireEvent( event.type, event ); -squire-raw.js:2864: this.fireEvent( 'pathChange', { path: newPath } ); -squire-raw.js:2867: this.fireEvent( range.collapsed ? 'cursor' : 'select', { -squire-raw.js:3004: this.fireEvent( 'input' ); -squire-raw.js:4089: this.fireEvent( 'willPaste', event ); + squire.addEventListener('dragover', ); + squire.addEventListener('drop', ); + squire.addEventListener('pathChange', ); + squire.addEventListener('cursor', ); + squire.addEventListener('select', ); + squire.addEventListener('input', ); + squire.addEventListener('willPaste', ); + squire.addEventListener( 'keydown keyup', monitorShiftKey ) + squire.addEventListener( 'keydown', onKey ) */ // CKEditor gimmicks used by HtmlEditor diff --git a/package.json b/package.json index 79e277948..829557671 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "title": "SnappyMail", "description": "Simple, modern & fast web-based email client", "private": true, - "version": "1.14.0-djmaze8", + "version": "2.0.0-rc1", "homepage": "https://snappymail.eu", "author": { "name": "DJ Maze", diff --git a/release.php b/release.php index 83af7fb39..50b123762 100755 --- a/release.php +++ b/release.php @@ -27,12 +27,16 @@ if ($gzip = trim(`which gzip`)) { passthru("{$gzip} -k --best {$cmddir}/js/*.js"); passthru("{$gzip} -k --best {$cmddir}/js/min/*.js"); passthru("{$gzip} -k --best {$cmddir}/css/app*.css"); + unlink(__DIR__ . '/rainloop/v/0.0.0/static/js/boot.js.gz'); + unlink(__DIR__ . '/rainloop/v/0.0.0/static/js/min/boot.min.js.gz'); } if ($brotli = trim(`which brotli`)) { passthru("{$brotli} -k --best {$cmddir}/js/*.js"); passthru("{$brotli} -k --best {$cmddir}/js/min/*.js"); passthru("{$brotli} -k --best {$cmddir}/css/app*.css"); + unlink(__DIR__ . '/rainloop/v/0.0.0/static/js/boot.js.br'); + unlink(__DIR__ . '/rainloop/v/0.0.0/static/js/min/boot.min.js.br'); } // Temporary rename folder to speed up PharData @@ -67,6 +71,9 @@ foreach ($files as $file) { $tar->buildFromDirectory('./', "@rainloop/v/{$package->version}@"); +$zip->addFromString('data/.htaccess', $package->version); +$tar->addFromString('data/.htaccess', $package->version); + $zip->addFromString('data/VERSION', $package->version); $tar->addFromString('data/VERSION', $package->version);