Move "assets" to proper location in snappymail/v/0.0.0/static/

This commit is contained in:
the-djmaze 2023-02-02 17:19:06 +01:00
parent 4521a9917a
commit 489ed81c84
26 changed files with 7 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -57,7 +57,7 @@ export const NotificationUserStore = new class {
if (DesktopNotifications && NotificationsGranted()) {
const options = {
body: text,
icon: imageSrc || Links.staticLink('css/images/icon-message-notification.png'),
icon: imageSrc || Links.staticLink('images/icon-message-notification.png'),
data: messageData
};
if (messageData?.uid) {

View file

@ -4,6 +4,7 @@
display: inline-block;
width: 250px;
height: 200px;
background: url("images/snappymail-logo.png") -30px -30px;
/* Yes this LESS css relative path quirk becomes ../ */
background: url(../../images/snappymail-logo.png) -30px -30px;
}
}

View file

@ -2,7 +2,6 @@
const gulp = require('gulp');
const { cleanStatic } = require('./tasks/common');
const { assets } = require('./tasks/assets');
const { js, jsLint } = require('./tasks/js');
const { css, cssLint } = require('./tasks/css');
const { vendors } = require('./tasks/vendors');
@ -12,7 +11,7 @@ const clean = gulp.series(cleanStatic);
const lint = gulp.parallel(jsLint, cssLint);
const buildState1 = gulp.parallel(js, css, vendors);
const buildState2 = gulp.series(clean, assets, buildState1);
const buildState2 = gulp.series(clean, buildState1);
const build = gulp.parallel(lint, buildState2);

View file

@ -500,11 +500,13 @@ trait Messages
try
{
if ('SPAM' === $sLearning) {
// $this->MailClient()->MessageSetFlag($sFromFolder, $oUids, '\\junk');
$this->MailClient()->MessageSetFlag($sFromFolder, $oUids, MessageFlag::JUNK);
$this->MailClient()->MessageSetFlag($sFromFolder, $oUids, MessageFlag::NOTJUNK, false);
} else if ('HAM' === $sLearning) {
$this->MailClient()->MessageSetFlag($sFromFolder, $oUids, MessageFlag::NOTJUNK);
$this->MailClient()->MessageSetFlag($sFromFolder, $oUids, MessageFlag::JUNK, false);
// $this->MailClient()->MessageSetFlag($sFromFolder, $oUids, '\\junk', false);
}
}
catch (\Throwable $oException)

View file

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

Before

Width:  |  Height:  |  Size: 992 B

After

Width:  |  Height:  |  Size: 992 B

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 866 B

After

Width:  |  Height:  |  Size: 866 B

View file

Before

Width:  |  Height:  |  Size: 335 B

After

Width:  |  Height:  |  Size: 335 B

View file

Before

Width:  |  Height:  |  Size: 992 B

After

Width:  |  Height:  |  Size: 992 B

View file

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

View file

@ -1,7 +0,0 @@
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
const gulp = require('gulp');
const { config } = require('./config');
const assetsCopy = () => gulp.src(config.paths.assets.src).pipe(gulp.dest(config.paths.static));
exports.assets = gulp.series(assetsCopy);

View file

@ -14,4 +14,4 @@ exports.copy = (sFile, sNewFile, done) => {
exports.getHead = () => config.head.agpl;
exports.cleanStatic = () => del(config.paths.static);
exports.cleanStatic = () => del(config.paths.staticJS) && del(config.paths.staticCSS);

View file

@ -14,15 +14,10 @@ const config = {
};
config.paths.globjs = 'dev/**/*.js';
config.paths.static = 'snappymail/v/' + config.devVersion + '/static/';
config.paths.staticJS = 'snappymail/v/' + config.devVersion + '/static/js/';
config.paths.staticMinJS = 'snappymail/v/' + config.devVersion + '/static/js/min/';
config.paths.staticCSS = 'snappymail/v/' + config.devVersion + '/static/css/';
config.paths.assets = {
src: ['assets/**/*.*', 'assets/**/.htaccess']
};
config.paths.less = {
main: {
src: 'dev/Styles/@Main.less',