Skip to content

Commit

Permalink
Move "assets" to proper location in snappymail/v/0.0.0/static/
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Feb 2, 2023
1 parent 4521a99 commit 489ed81
Show file tree
Hide file tree
Showing 26 changed files with 7 additions and 17 deletions.
Binary file removed assets/css/images/empty-contact.png
Binary file not shown.
2 changes: 1 addition & 1 deletion dev/Stores/User/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion dev/Styles/Admin/About.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
3 changes: 1 addition & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,13 @@ public function DoMessageMove() : array
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)
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions tasks/assets.js

This file was deleted.

2 changes: 1 addition & 1 deletion tasks/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
5 changes: 0 additions & 5 deletions tasks/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 489ed81

Please sign in to comment.