mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-07 05:34:12 +08:00
Merge Squire into libs.js
This commit is contained in:
parent
662e6b3466
commit
81364c6494
5 changed files with 4 additions and 13 deletions
|
@ -194,7 +194,7 @@ win.__initAppData = appData => {
|
|||
throw e;
|
||||
})
|
||||
.then(() => {
|
||||
if (appData.Auth) {
|
||||
if (appData.Auth && appData.StaticEditorJsLink) {
|
||||
loadScript(appData.StaticEditorJsLink).then(() => {
|
||||
win.__initEditor && win.__initEditor();
|
||||
win.__initEditor = null;
|
||||
|
|
|
@ -1499,7 +1499,7 @@ NewThemeLink IncludeCss TemplatesLink LangLink IncludeBackground PluginsLink Aut
|
|||
($bAdmin ? 'admin' : 'app').($bAppJsDebug ? '' : '.min').'.js');
|
||||
|
||||
if ($this->Config()->Get('labs', 'use_squire_html_editor', false)) {
|
||||
$aResult['StaticEditorJsLink'] = $this->StaticPath('squire/squire'.($bAppJsDebug ? '-raw' : '').'.js');
|
||||
$aResult['StaticEditorJsLink'] = null;
|
||||
} else {
|
||||
$aResult['StaticEditorJsLink'] = $this->StaticPath('ckeditor/ckeditor.js');
|
||||
}
|
||||
|
|
|
@ -24,14 +24,12 @@ if ($return_var) {
|
|||
if ($gzip = trim(`which gzip`)) {
|
||||
// passthru("{$gzip} -k --best -r ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/js/*.js'), $return_var);
|
||||
// passthru("{$gzip} -k --best -r ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/css/app*.css'), $return_var);
|
||||
// passthru("{$gzip} -k --best -r ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/squire/*.js'), $return_var);
|
||||
}
|
||||
|
||||
if ($brotli = trim(`which brotli`)) {
|
||||
// passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/js/*.js'), $return_var);
|
||||
// passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/js/min/*.js'), $return_var);
|
||||
// passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/css/app*.css'), $return_var);
|
||||
// passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/squire/*.js'), $return_var);
|
||||
}
|
||||
|
||||
// Temporary rename folder to speed up PharData
|
||||
|
|
|
@ -84,6 +84,7 @@ config.paths.js = {
|
|||
'vendors/bootstrap/js/bootstrap.native.min.js', // fixed
|
||||
'vendors/knockout/build/output/knockout-latest.js',
|
||||
'dev/External/ifvisible.js',
|
||||
'vendors/squire/build/squire-raw.js',
|
||||
'dev/External/SquireUI.js'
|
||||
]
|
||||
},
|
||||
|
|
|
@ -31,15 +31,7 @@ const fontastic = gulp.series(fontasticFontsClear, fontasticFontsCopy);
|
|||
// squire
|
||||
const squireClear = () => del('rainloop/v/' + config.devVersion + '/static/squire');
|
||||
|
||||
const squireCopy = () =>
|
||||
gulp
|
||||
.src([
|
||||
'vendors/squire/build/squire.js',
|
||||
'vendors/squire/build/squire-raw.js'
|
||||
])
|
||||
.pipe(gulp.dest('rainloop/v/' + config.devVersion + '/static/squire'));
|
||||
|
||||
const squire = gulp.series(squireClear, squireCopy);
|
||||
const squire = gulp.series(squireClear);
|
||||
|
||||
// ckeditor
|
||||
const ckeditorClear = () => del('rainloop/v/' + config.devVersion + '/static/ckeditor');
|
||||
|
|
Loading…
Add table
Reference in a new issue