mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Added csscomb
Small fixes
This commit is contained in:
parent
39255ae061
commit
8013c0dc25
16 changed files with 5232 additions and 4474 deletions
408
.csscomb.json
Normal file
408
.csscomb.json
Normal file
|
|
@ -0,0 +1,408 @@
|
||||||
|
{
|
||||||
|
"exclude": [
|
||||||
|
".git/**",
|
||||||
|
"node_modules/**",
|
||||||
|
"nbproject/**",
|
||||||
|
"bower_components/**"
|
||||||
|
],
|
||||||
|
"remove-empty-rulesets": true,
|
||||||
|
"always-semicolon": true,
|
||||||
|
"color-case": "lower",
|
||||||
|
"block-indent": "\t",
|
||||||
|
"color-shorthand": false,
|
||||||
|
"element-case": "lower",
|
||||||
|
"eof-newline": false,
|
||||||
|
"leading-zero": true,
|
||||||
|
"quotes": "double",
|
||||||
|
"sort-order-fallback": "abc",
|
||||||
|
"space-before-colon": "",
|
||||||
|
"space-after-colon": " ",
|
||||||
|
"space-before-combinator": " ",
|
||||||
|
"space-after-combinator": " ",
|
||||||
|
"space-between-declarations": "\n",
|
||||||
|
"space-before-opening-brace": " ",
|
||||||
|
"space-after-opening-brace": "\n",
|
||||||
|
"space-after-selector-delimiter": "\n",
|
||||||
|
"space-before-selector-delimiter": "",
|
||||||
|
"space-before-closing-brace": "\n",
|
||||||
|
"strip-spaces": true,
|
||||||
|
"unitless-zero": true,
|
||||||
|
"vendor-prefix-align": true,
|
||||||
|
"sort-order": [[
|
||||||
|
"position",
|
||||||
|
"top",
|
||||||
|
"right",
|
||||||
|
"bottom",
|
||||||
|
"left",
|
||||||
|
"z-index",
|
||||||
|
"display",
|
||||||
|
"visibility",
|
||||||
|
"-webkit-flex-direction",
|
||||||
|
"-moz-flex-direction",
|
||||||
|
"-ms-flex-direction",
|
||||||
|
"-o-flex-direction",
|
||||||
|
"flex-direction",
|
||||||
|
"-webkit-flex-order",
|
||||||
|
"-moz-flex-order",
|
||||||
|
"-ms-flex-order",
|
||||||
|
"-o-flex-order",
|
||||||
|
"flex-order",
|
||||||
|
"-webkit-flex-pack",
|
||||||
|
"-moz-flex-pack",
|
||||||
|
"-ms-flex-pack",
|
||||||
|
"-o-flex-pack",
|
||||||
|
"flex-pack",
|
||||||
|
"float",
|
||||||
|
"clear",
|
||||||
|
"-webkit-flex-align",
|
||||||
|
"-moz-flex-align",
|
||||||
|
"-ms-flex-align",
|
||||||
|
"-o-flex-align",
|
||||||
|
"flex-align",
|
||||||
|
"overflow",
|
||||||
|
"-ms-overflow-x",
|
||||||
|
"-ms-overflow-y",
|
||||||
|
"overflow-x",
|
||||||
|
"overflow-y",
|
||||||
|
"-webkit-overflow-scrolling",
|
||||||
|
"clip",
|
||||||
|
"-webkit-box-sizing",
|
||||||
|
"-moz-box-sizing",
|
||||||
|
"box-sizing",
|
||||||
|
"margin",
|
||||||
|
"margin-top",
|
||||||
|
"margin-right",
|
||||||
|
"margin-bottom",
|
||||||
|
"margin-left",
|
||||||
|
"padding",
|
||||||
|
"padding-top",
|
||||||
|
"padding-right",
|
||||||
|
"padding-bottom",
|
||||||
|
"padding-left",
|
||||||
|
"min-width",
|
||||||
|
"min-height",
|
||||||
|
"max-width",
|
||||||
|
"max-height",
|
||||||
|
"width",
|
||||||
|
"height",
|
||||||
|
"outline",
|
||||||
|
"outline-width",
|
||||||
|
"outline-style",
|
||||||
|
"outline-color",
|
||||||
|
"outline-offset",
|
||||||
|
"border",
|
||||||
|
"border-spacing",
|
||||||
|
"border-collapse",
|
||||||
|
"border-width",
|
||||||
|
"border-style",
|
||||||
|
"border-color",
|
||||||
|
"border-top",
|
||||||
|
"border-top-width",
|
||||||
|
"border-top-style",
|
||||||
|
"border-top-color",
|
||||||
|
"border-right",
|
||||||
|
"border-right-width",
|
||||||
|
"border-right-style",
|
||||||
|
"border-right-color",
|
||||||
|
"border-bottom",
|
||||||
|
"border-bottom-width",
|
||||||
|
"border-bottom-style",
|
||||||
|
"border-bottom-color",
|
||||||
|
"border-left",
|
||||||
|
"border-left-width",
|
||||||
|
"border-left-style",
|
||||||
|
"border-left-color",
|
||||||
|
"-webkit-border-radius",
|
||||||
|
"-moz-border-radius",
|
||||||
|
"border-radius",
|
||||||
|
"-webkit-border-top-left-radius",
|
||||||
|
"-moz-border-radius-topleft",
|
||||||
|
"border-top-left-radius",
|
||||||
|
"-webkit-border-top-right-radius",
|
||||||
|
"-moz-border-radius-topright",
|
||||||
|
"border-top-right-radius",
|
||||||
|
"-webkit-border-bottom-right-radius",
|
||||||
|
"-moz-border-radius-bottomright",
|
||||||
|
"border-bottom-right-radius",
|
||||||
|
"-webkit-border-bottom-left-radius",
|
||||||
|
"-moz-border-radius-bottomleft",
|
||||||
|
"border-bottom-left-radius",
|
||||||
|
"-webkit-border-image",
|
||||||
|
"-moz-border-image",
|
||||||
|
"-o-border-image",
|
||||||
|
"border-image",
|
||||||
|
"-webkit-border-image-source",
|
||||||
|
"-moz-border-image-source",
|
||||||
|
"-o-border-image-source",
|
||||||
|
"border-image-source",
|
||||||
|
"-webkit-border-image-slice",
|
||||||
|
"-moz-border-image-slice",
|
||||||
|
"-o-border-image-slice",
|
||||||
|
"border-image-slice",
|
||||||
|
"-webkit-border-image-width",
|
||||||
|
"-moz-border-image-width",
|
||||||
|
"-o-border-image-width",
|
||||||
|
"border-image-width",
|
||||||
|
"-webkit-border-image-outset",
|
||||||
|
"-moz-border-image-outset",
|
||||||
|
"-o-border-image-outset",
|
||||||
|
"border-image-outset",
|
||||||
|
"-webkit-border-image-repeat",
|
||||||
|
"-moz-border-image-repeat",
|
||||||
|
"-o-border-image-repeat",
|
||||||
|
"border-image-repeat",
|
||||||
|
"-webkit-border-top-image",
|
||||||
|
"-moz-border-top-image",
|
||||||
|
"-o-border-top-image",
|
||||||
|
"border-top-image",
|
||||||
|
"-webkit-border-right-image",
|
||||||
|
"-moz-border-right-image",
|
||||||
|
"-o-border-right-image",
|
||||||
|
"border-right-image",
|
||||||
|
"-webkit-border-bottom-image",
|
||||||
|
"-moz-border-bottom-image",
|
||||||
|
"-o-border-bottom-image",
|
||||||
|
"border-bottom-image",
|
||||||
|
"-webkit-border-left-image",
|
||||||
|
"-moz-border-left-image",
|
||||||
|
"-o-border-left-image",
|
||||||
|
"border-left-image",
|
||||||
|
"-webkit-border-corner-image",
|
||||||
|
"-moz-border-corner-image",
|
||||||
|
"-o-border-corner-image",
|
||||||
|
"border-corner-image",
|
||||||
|
"-webkit-border-top-left-image",
|
||||||
|
"-moz-border-top-left-image",
|
||||||
|
"-o-border-top-left-image",
|
||||||
|
"border-top-left-image",
|
||||||
|
"-webkit-border-top-right-image",
|
||||||
|
"-moz-border-top-right-image",
|
||||||
|
"-o-border-top-right-image",
|
||||||
|
"border-top-right-image",
|
||||||
|
"-webkit-border-bottom-right-image",
|
||||||
|
"-moz-border-bottom-right-image",
|
||||||
|
"-o-border-bottom-right-image",
|
||||||
|
"border-bottom-right-image",
|
||||||
|
"-webkit-border-bottom-left-image",
|
||||||
|
"-moz-border-bottom-left-image",
|
||||||
|
"-o-border-bottom-left-image",
|
||||||
|
"border-bottom-left-image",
|
||||||
|
"background",
|
||||||
|
"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
|
||||||
|
"background-color",
|
||||||
|
"background-image",
|
||||||
|
"background-attachment",
|
||||||
|
"background-position",
|
||||||
|
"-ms-background-position-x",
|
||||||
|
"-ms-background-position-y",
|
||||||
|
"background-position-x",
|
||||||
|
"background-position-y",
|
||||||
|
"-webkit-background-clip",
|
||||||
|
"-moz-background-clip",
|
||||||
|
"background-clip",
|
||||||
|
"background-origin",
|
||||||
|
"-webkit-background-size",
|
||||||
|
"-moz-background-size",
|
||||||
|
"-o-background-size",
|
||||||
|
"background-size",
|
||||||
|
"background-repeat",
|
||||||
|
"box-decoration-break",
|
||||||
|
"-webkit-box-shadow",
|
||||||
|
"-moz-box-shadow",
|
||||||
|
"box-shadow",
|
||||||
|
"color",
|
||||||
|
"table-layout",
|
||||||
|
"caption-side",
|
||||||
|
"empty-cells",
|
||||||
|
"list-style",
|
||||||
|
"list-style-position",
|
||||||
|
"list-style-type",
|
||||||
|
"list-style-image",
|
||||||
|
"quotes",
|
||||||
|
"content",
|
||||||
|
"counter-increment",
|
||||||
|
"counter-reset",
|
||||||
|
"-ms-writing-mode",
|
||||||
|
"vertical-align",
|
||||||
|
"text-align",
|
||||||
|
"-webkit-text-align-last",
|
||||||
|
"-moz-text-align-last",
|
||||||
|
"-ms-text-align-last",
|
||||||
|
"text-align-last",
|
||||||
|
"text-decoration",
|
||||||
|
"text-emphasis",
|
||||||
|
"text-emphasis-position",
|
||||||
|
"text-emphasis-style",
|
||||||
|
"text-emphasis-color",
|
||||||
|
"text-indent",
|
||||||
|
"-ms-text-justify",
|
||||||
|
"text-justify",
|
||||||
|
"text-outline",
|
||||||
|
"text-transform",
|
||||||
|
"text-wrap",
|
||||||
|
"-ms-text-overflow",
|
||||||
|
"text-overflow",
|
||||||
|
"text-overflow-ellipsis",
|
||||||
|
"text-overflow-mode",
|
||||||
|
"text-shadow",
|
||||||
|
"white-space",
|
||||||
|
"word-spacing",
|
||||||
|
"-ms-word-wrap",
|
||||||
|
"word-wrap",
|
||||||
|
"-ms-word-break",
|
||||||
|
"word-break",
|
||||||
|
"-moz-tab-size",
|
||||||
|
"-o-tab-size",
|
||||||
|
"tab-size",
|
||||||
|
"-webkit-hyphens",
|
||||||
|
"-moz-hyphens",
|
||||||
|
"hyphens",
|
||||||
|
"letter-spacing",
|
||||||
|
"font",
|
||||||
|
"font-weight",
|
||||||
|
"font-style",
|
||||||
|
"font-variant",
|
||||||
|
"font-size-adjust",
|
||||||
|
"font-stretch",
|
||||||
|
"font-size",
|
||||||
|
"font-family",
|
||||||
|
"src",
|
||||||
|
"line-height",
|
||||||
|
"opacity",
|
||||||
|
"-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
|
||||||
|
"filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
|
||||||
|
"-ms-interpolation-mode",
|
||||||
|
"-webkit-filter",
|
||||||
|
"-ms-filter",
|
||||||
|
"filter",
|
||||||
|
"resize",
|
||||||
|
"cursor",
|
||||||
|
"nav-index",
|
||||||
|
"nav-up",
|
||||||
|
"nav-right",
|
||||||
|
"nav-down",
|
||||||
|
"nav-left",
|
||||||
|
"-webkit-transition",
|
||||||
|
"-moz-transition",
|
||||||
|
"-ms-transition",
|
||||||
|
"-o-transition",
|
||||||
|
"transition",
|
||||||
|
"-webkit-transition-delay",
|
||||||
|
"-moz-transition-delay",
|
||||||
|
"-ms-transition-delay",
|
||||||
|
"-o-transition-delay",
|
||||||
|
"transition-delay",
|
||||||
|
"-webkit-transition-timing-function",
|
||||||
|
"-moz-transition-timing-function",
|
||||||
|
"-ms-transition-timing-function",
|
||||||
|
"-o-transition-timing-function",
|
||||||
|
"transition-timing-function",
|
||||||
|
"-webkit-transition-duration",
|
||||||
|
"-moz-transition-duration",
|
||||||
|
"-ms-transition-duration",
|
||||||
|
"-o-transition-duration",
|
||||||
|
"transition-duration",
|
||||||
|
"-webkit-transition-property",
|
||||||
|
"-moz-transition-property",
|
||||||
|
"-ms-transition-property",
|
||||||
|
"-o-transition-property",
|
||||||
|
"transition-property",
|
||||||
|
"-webkit-transform",
|
||||||
|
"-moz-transform",
|
||||||
|
"-ms-transform",
|
||||||
|
"-o-transform",
|
||||||
|
"transform",
|
||||||
|
"-webkit-transform-origin",
|
||||||
|
"-moz-transform-origin",
|
||||||
|
"-ms-transform-origin",
|
||||||
|
"-o-transform-origin",
|
||||||
|
"transform-origin",
|
||||||
|
"-webkit-animation",
|
||||||
|
"-moz-animation",
|
||||||
|
"-ms-animation",
|
||||||
|
"-o-animation",
|
||||||
|
"animation",
|
||||||
|
"-webkit-animation-name",
|
||||||
|
"-moz-animation-name",
|
||||||
|
"-ms-animation-name",
|
||||||
|
"-o-animation-name",
|
||||||
|
"animation-name",
|
||||||
|
"-webkit-animation-duration",
|
||||||
|
"-moz-animation-duration",
|
||||||
|
"-ms-animation-duration",
|
||||||
|
"-o-animation-duration",
|
||||||
|
"animation-duration",
|
||||||
|
"-webkit-animation-play-state",
|
||||||
|
"-moz-animation-play-state",
|
||||||
|
"-ms-animation-play-state",
|
||||||
|
"-o-animation-play-state",
|
||||||
|
"animation-play-state",
|
||||||
|
"-webkit-animation-timing-function",
|
||||||
|
"-moz-animation-timing-function",
|
||||||
|
"-ms-animation-timing-function",
|
||||||
|
"-o-animation-timing-function",
|
||||||
|
"animation-timing-function",
|
||||||
|
"-webkit-animation-delay",
|
||||||
|
"-moz-animation-delay",
|
||||||
|
"-ms-animation-delay",
|
||||||
|
"-o-animation-delay",
|
||||||
|
"animation-delay",
|
||||||
|
"-webkit-animation-iteration-count",
|
||||||
|
"-moz-animation-iteration-count",
|
||||||
|
"-ms-animation-iteration-count",
|
||||||
|
"-o-animation-iteration-count",
|
||||||
|
"animation-iteration-count",
|
||||||
|
"-webkit-animation-direction",
|
||||||
|
"-moz-animation-direction",
|
||||||
|
"-ms-animation-direction",
|
||||||
|
"-o-animation-direction",
|
||||||
|
"animation-direction",
|
||||||
|
"pointer-events",
|
||||||
|
"unicode-bidi",
|
||||||
|
"direction",
|
||||||
|
"-webkit-columns",
|
||||||
|
"-moz-columns",
|
||||||
|
"columns",
|
||||||
|
"-webkit-column-span",
|
||||||
|
"-moz-column-span",
|
||||||
|
"column-span",
|
||||||
|
"-webkit-column-width",
|
||||||
|
"-moz-column-width",
|
||||||
|
"column-width",
|
||||||
|
"-webkit-column-count",
|
||||||
|
"-moz-column-count",
|
||||||
|
"column-count",
|
||||||
|
"-webkit-column-fill",
|
||||||
|
"-moz-column-fill",
|
||||||
|
"column-fill",
|
||||||
|
"-webkit-column-gap",
|
||||||
|
"-moz-column-gap",
|
||||||
|
"column-gap",
|
||||||
|
"-webkit-column-rule",
|
||||||
|
"-moz-column-rule",
|
||||||
|
"column-rule",
|
||||||
|
"-webkit-column-rule-width",
|
||||||
|
"-moz-column-rule-width",
|
||||||
|
"column-rule-width",
|
||||||
|
"-webkit-column-rule-style",
|
||||||
|
"-moz-column-rule-style",
|
||||||
|
"column-rule-style",
|
||||||
|
"-webkit-column-rule-color",
|
||||||
|
"-moz-column-rule-color",
|
||||||
|
"column-rule-color",
|
||||||
|
"break-before",
|
||||||
|
"break-inside",
|
||||||
|
"break-after",
|
||||||
|
"page-break-before",
|
||||||
|
"page-break-inside",
|
||||||
|
"page-break-after",
|
||||||
|
"orphans",
|
||||||
|
"widows",
|
||||||
|
"-ms-zoom",
|
||||||
|
"zoom",
|
||||||
|
"max-zoom",
|
||||||
|
"min-zoom",
|
||||||
|
"user-zoom",
|
||||||
|
"orientation"
|
||||||
|
]]
|
||||||
|
}
|
||||||
BIN
build/compiler.jar
Normal file
BIN
build/compiler.jar
Normal file
Binary file not shown.
|
|
@ -1196,7 +1196,7 @@
|
||||||
*/
|
*/
|
||||||
RainLoopApp.prototype.isFolderExpanded = function (sFullNameHash)
|
RainLoopApp.prototype.isFolderExpanded = function (sFullNameHash)
|
||||||
{
|
{
|
||||||
var aExpandedList = /** @type {Array|null} */ LocalStorage.get(Enums.ClientSideKeyName.ExpandedFolders);
|
var aExpandedList = LocalStorage.get(Enums.ClientSideKeyName.ExpandedFolders);
|
||||||
return _.isArray(aExpandedList) && -1 !== _.indexOf(aExpandedList, sFullNameHash);
|
return _.isArray(aExpandedList) && -1 !== _.indexOf(aExpandedList, sFullNameHash);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1206,7 +1206,7 @@
|
||||||
*/
|
*/
|
||||||
RainLoopApp.prototype.setExpandedFolder = function (sFullNameHash, bExpanded)
|
RainLoopApp.prototype.setExpandedFolder = function (sFullNameHash, bExpanded)
|
||||||
{
|
{
|
||||||
var aExpandedList = /** @type {Array|null} */ LocalStorage.get(Enums.ClientSideKeyName.ExpandedFolders);
|
var aExpandedList = LocalStorage.get(Enums.ClientSideKeyName.ExpandedFolders);
|
||||||
if (!_.isArray(aExpandedList))
|
if (!_.isArray(aExpandedList))
|
||||||
{
|
{
|
||||||
aExpandedList = [];
|
aExpandedList = [];
|
||||||
|
|
|
||||||
|
|
@ -312,7 +312,7 @@
|
||||||
'None': 'None',
|
'None': 'None',
|
||||||
'Move': 'Move',
|
'Move': 'Move',
|
||||||
'Discard': 'Discard',
|
'Discard': 'Discard',
|
||||||
'Forward': 'Forward',
|
'Forward': 'Forward'
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -5,21 +5,27 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('ko')
|
ko = require('ko'),
|
||||||
|
Utils = require('Utils')
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @constructor
|
||||||
|
*
|
||||||
* @param {string} sEmail
|
* @param {string} sEmail
|
||||||
* @param {boolean=} bCanBeDelete = true
|
* @param {boolean=} bCanBeDelete = true
|
||||||
* @constructor
|
|
||||||
*/
|
*/
|
||||||
function AccountModel(sEmail, bCanBeDelete)
|
function AccountModel(sEmail, bCanBeDelete)
|
||||||
{
|
{
|
||||||
this.email = sEmail;
|
this.email = sEmail;
|
||||||
|
|
||||||
this.deleteAccess = ko.observable(false);
|
this.deleteAccess = ko.observable(false);
|
||||||
this.canBeDalete = ko.observable(bCanBeDelete);
|
this.canBeDalete = ko.observable(Utils.isUnd(bCanBeDelete) ? true : !!bCanBeDelete);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
AccountModel.prototype.email = '';
|
AccountModel.prototype.email = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
function FilterModel()
|
function FilterModel()
|
||||||
{
|
{
|
||||||
this.new = ko.observable(true);
|
this.isNew = ko.observable(true);
|
||||||
this.enabled = ko.observable(true);
|
this.enabled = ko.observable(true);
|
||||||
|
|
||||||
this.name = ko.observable('');
|
this.name = ko.observable('');
|
||||||
|
|
|
||||||
61
gulpfile.js
61
gulpfile.js
|
|
@ -25,10 +25,6 @@ var
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
browserify = require('browserify'),
|
|
||||||
streamify = require('gulp-streamify'),
|
|
||||||
source = require('vinyl-source-stream'),
|
|
||||||
|
|
||||||
fs = require('node-fs'),
|
fs = require('node-fs'),
|
||||||
path = require('path'),
|
path = require('path'),
|
||||||
gulp = require('gulp'),
|
gulp = require('gulp'),
|
||||||
|
|
@ -36,11 +32,6 @@ var
|
||||||
header = require('gulp-header'),
|
header = require('gulp-header'),
|
||||||
footer = require('gulp-footer'),
|
footer = require('gulp-footer'),
|
||||||
rename = require('gulp-rename'),
|
rename = require('gulp-rename'),
|
||||||
minifyCss = require('gulp-minify-css'),
|
|
||||||
csslint = require('gulp-csslint'),
|
|
||||||
less = require('gulp-less'),
|
|
||||||
autoprefixer = require('gulp-autoprefixer'),
|
|
||||||
jshint = require('gulp-jshint'),
|
|
||||||
uglify = require('gulp-uglify'),
|
uglify = require('gulp-uglify'),
|
||||||
gutil = require('gulp-util')
|
gutil = require('gulp-util')
|
||||||
;
|
;
|
||||||
|
|
@ -116,7 +107,7 @@ cfg.paths.js = {
|
||||||
'vendors/json2.min.js',
|
'vendors/json2.min.js',
|
||||||
'vendors/labjs/LAB.min.js',
|
'vendors/labjs/LAB.min.js',
|
||||||
'vendors/simple-pace/simple-pace-1.0.min.js',
|
'vendors/simple-pace/simple-pace-1.0.min.js',
|
||||||
'vendors/rl/rl-1.1.min.js'
|
'vendors/rl/rl-1.2.min.js'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
openpgp: {
|
openpgp: {
|
||||||
|
|
@ -179,6 +170,7 @@ cfg.paths.js = {
|
||||||
|
|
||||||
// CSS
|
// CSS
|
||||||
gulp.task('less:main', function() {
|
gulp.task('less:main', function() {
|
||||||
|
var less = require('gulp-less');
|
||||||
return gulp.src(cfg.paths.less.main.src)
|
return gulp.src(cfg.paths.less.main.src)
|
||||||
.pipe(less({
|
.pipe(less({
|
||||||
'paths': cfg.paths.less.main.options.paths
|
'paths': cfg.paths.less.main.options.paths
|
||||||
|
|
@ -188,9 +180,17 @@ gulp.task('less:main', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('css:main', ['less:main'], function() {
|
gulp.task('css:main', ['less:main'], function() {
|
||||||
|
|
||||||
|
var
|
||||||
|
// csslint = require('gulp-csslint'),
|
||||||
|
csscomb = require('gulp-csscomb'),
|
||||||
|
autoprefixer = require('gulp-autoprefixer')
|
||||||
|
;
|
||||||
|
|
||||||
return gulp.src(cfg.paths.css.main.src)
|
return gulp.src(cfg.paths.css.main.src)
|
||||||
.pipe(concat(cfg.paths.css.main.name))
|
.pipe(concat(cfg.paths.css.main.name))
|
||||||
.pipe(autoprefixer('last 3 versions', '> 1%', 'ie 9', 'Firefox ESR', 'Opera 12.1'))
|
.pipe(autoprefixer('last 3 versions', '> 1%', 'ie 9', 'Firefox ESR', 'Opera 12.1'))
|
||||||
|
.pipe(csscomb())
|
||||||
// .pipe(csslint())
|
// .pipe(csslint())
|
||||||
// .pipe(csslint.reporter())
|
// .pipe(csslint.reporter())
|
||||||
.pipe(gulp.dest(cfg.paths.staticCSS))
|
.pipe(gulp.dest(cfg.paths.staticCSS))
|
||||||
|
|
@ -198,14 +198,16 @@ gulp.task('css:main', ['less:main'], function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('css:main:min', ['css:main'], function() {
|
gulp.task('css:main:min', ['css:main'], function() {
|
||||||
|
var minifyCss = require('gulp-minify-css');
|
||||||
return gulp.src(cfg.paths.staticCSS + cfg.paths.css.main.name)
|
return gulp.src(cfg.paths.staticCSS + cfg.paths.css.main.name)
|
||||||
.pipe(minifyCss())
|
.pipe(minifyCss({
|
||||||
|
'keepSpecialComments': 0
|
||||||
|
}))
|
||||||
.pipe(rename({suffix: '.min'}))
|
.pipe(rename({suffix: '.min'}))
|
||||||
.pipe(gulp.dest(cfg.paths.staticCSS));
|
.pipe(gulp.dest(cfg.paths.staticCSS));
|
||||||
});
|
});
|
||||||
|
|
||||||
// JS
|
// JS
|
||||||
// - concat
|
|
||||||
gulp.task('js:boot', function() {
|
gulp.task('js:boot', function() {
|
||||||
return gulp.src(cfg.paths.js.boot.src)
|
return gulp.src(cfg.paths.js.boot.src)
|
||||||
.pipe(concat(cfg.paths.js.boot.name))
|
.pipe(concat(cfg.paths.js.boot.name))
|
||||||
|
|
@ -235,6 +237,12 @@ gulp.task('js:libs', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('js:app', function() {
|
gulp.task('js:app', function() {
|
||||||
|
|
||||||
|
var
|
||||||
|
browserify = require('browserify'),
|
||||||
|
source = require('vinyl-source-stream')
|
||||||
|
;
|
||||||
|
|
||||||
return browserify({
|
return browserify({
|
||||||
'basedir': './dev/',
|
'basedir': './dev/',
|
||||||
'entries': './RainLoop.js',
|
'entries': './RainLoop.js',
|
||||||
|
|
@ -248,6 +256,12 @@ gulp.task('js:app', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('js:admin', function() {
|
gulp.task('js:admin', function() {
|
||||||
|
|
||||||
|
var
|
||||||
|
browserify = require('browserify'),
|
||||||
|
source = require('vinyl-source-stream')
|
||||||
|
;
|
||||||
|
|
||||||
return browserify({
|
return browserify({
|
||||||
'basedir': './dev/',
|
'basedir': './dev/',
|
||||||
'entries': './Admin.js',
|
'entries': './Admin.js',
|
||||||
|
|
@ -279,10 +293,25 @@ gulp.task('js:admin:min', ['js:admin'], function() {
|
||||||
|
|
||||||
// lint
|
// lint
|
||||||
gulp.task('js:lint', function() {
|
gulp.task('js:lint', function() {
|
||||||
|
|
||||||
|
var
|
||||||
|
closureCompiler = require('gulp-closure-compiler'),
|
||||||
|
jshint = require('gulp-jshint')
|
||||||
|
;
|
||||||
|
|
||||||
return gulp.src(cfg.paths.globjs)
|
return gulp.src(cfg.paths.globjs)
|
||||||
.pipe(jshint('.jshintrc'))
|
.pipe(jshint('.jshintrc'))
|
||||||
.pipe(jshint.reporter('jshint-summary', cfg.summary))
|
.pipe(jshint.reporter('jshint-summary', cfg.summary))
|
||||||
.pipe(jshint.reporter('fail'));
|
.pipe(jshint.reporter('fail'))
|
||||||
|
// google compiler
|
||||||
|
.pipe(closureCompiler({
|
||||||
|
compilerPath: './build/compiler.jar',
|
||||||
|
fileName: 'gc.js',
|
||||||
|
compilerFlags: {
|
||||||
|
output_wrapper: '(function(){%output%}());'
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
;
|
||||||
});
|
});
|
||||||
|
|
||||||
// OTHER
|
// OTHER
|
||||||
|
|
@ -307,8 +336,8 @@ regOtherMinTask('other:inputosaurus', 'vendors/inputosaurus/', 'inputosaurus.js'
|
||||||
regOtherMinTask('other:pace', 'vendors/simple-pace/', 'simple-pace.js', 'simple-pace-1.0.min.js',
|
regOtherMinTask('other:pace', 'vendors/simple-pace/', 'simple-pace.js', 'simple-pace-1.0.min.js',
|
||||||
'/*! RainLoop Simple Pace v1.0 (c) 2014 RainLoop Team; Licensed under MIT */\n');
|
'/*! RainLoop Simple Pace v1.0 (c) 2014 RainLoop Team; Licensed under MIT */\n');
|
||||||
|
|
||||||
regOtherMinTask('other:rl', 'vendors/rl/', 'rl.js', 'rl-1.1.min.js',
|
regOtherMinTask('other:rl', 'vendors/rl/', 'rl.js', 'rl-1.2.min.js',
|
||||||
'/*! RainLoop Index Helper v1.1 (c) 2014 RainLoop Team; Licensed under MIT */\n');
|
'/*! RainLoop Index Helper v1.2 (c) 2014 RainLoop Team; Licensed under MIT */\n');
|
||||||
|
|
||||||
gulp.task('package-inc-release', function() {
|
gulp.task('package-inc-release', function() {
|
||||||
fs.writeFileSync('package.json',
|
fs.writeFileSync('package.json',
|
||||||
|
|
@ -421,7 +450,7 @@ gulp.task('rainloop:owncloud:clean', ['rainloop:owncloud:copy', 'rainloop:ownclo
|
||||||
});
|
});
|
||||||
|
|
||||||
// MAIN
|
// MAIN
|
||||||
gulp.task('default', ['js:boot', 'js:libs', 'js:lint', 'js:app:min', 'js:admin:min', 'css:main:min']);
|
gulp.task('default', [ 'js:libs', 'js:boot', 'js:encrypt', 'js:openpgp', 'js:lint', 'js:app:min', 'js:admin:min', 'css:main:min']);
|
||||||
gulp.task('fast', ['js:app', 'js:admin', 'css:main']);
|
gulp.task('fast', ['js:app', 'js:admin', 'css:main']);
|
||||||
|
|
||||||
gulp.task('rainloop', ['rainloop:copy', 'rainloop:setup', 'rainloop:zip', 'rainloop:md5', 'rainloop:clean']);
|
gulp.task('rainloop', ['rainloop:copy', 'rainloop:setup', 'rainloop:zip', 'rainloop:md5', 'rainloop:clean']);
|
||||||
|
|
|
||||||
|
|
@ -199,9 +199,10 @@
|
||||||
"gulp-rename": "*",
|
"gulp-rename": "*",
|
||||||
"gulp-header": "*",
|
"gulp-header": "*",
|
||||||
"gulp-footer": "*",
|
"gulp-footer": "*",
|
||||||
"gulp-streamify": "*",
|
|
||||||
"gulp-minify-css": "*",
|
"gulp-minify-css": "*",
|
||||||
"gulp-autoprefixer": "*",
|
"gulp-autoprefixer": "*",
|
||||||
|
"gulp-csscomb": "*",
|
||||||
|
"gulp-closure-compiler": "*",
|
||||||
"gulp-csslint": "*",
|
"gulp-csslint": "*",
|
||||||
"gulp-concat-util": "*"
|
"gulp-concat-util": "*"
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
5
rainloop/v/0.0.0/static/css/app.min.css
vendored
5
rainloop/v/0.0.0/static/css/app.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1125,7 +1125,7 @@
|
||||||
'None': 'None',
|
'None': 'None',
|
||||||
'Move': 'Move',
|
'Move': 'Move',
|
||||||
'Discard': 'Discard',
|
'Discard': 'Discard',
|
||||||
'Forward': 'Forward',
|
'Forward': 'Forward'
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1479,7 +1479,7 @@
|
||||||
*/
|
*/
|
||||||
RainLoopApp.prototype.isFolderExpanded = function (sFullNameHash)
|
RainLoopApp.prototype.isFolderExpanded = function (sFullNameHash)
|
||||||
{
|
{
|
||||||
var aExpandedList = /** @type {Array|null} */ LocalStorage.get(Enums.ClientSideKeyName.ExpandedFolders);
|
var aExpandedList = LocalStorage.get(Enums.ClientSideKeyName.ExpandedFolders);
|
||||||
return _.isArray(aExpandedList) && -1 !== _.indexOf(aExpandedList, sFullNameHash);
|
return _.isArray(aExpandedList) && -1 !== _.indexOf(aExpandedList, sFullNameHash);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1489,7 +1489,7 @@
|
||||||
*/
|
*/
|
||||||
RainLoopApp.prototype.setExpandedFolder = function (sFullNameHash, bExpanded)
|
RainLoopApp.prototype.setExpandedFolder = function (sFullNameHash, bExpanded)
|
||||||
{
|
{
|
||||||
var aExpandedList = /** @type {Array|null} */ LocalStorage.get(Enums.ClientSideKeyName.ExpandedFolders);
|
var aExpandedList = LocalStorage.get(Enums.ClientSideKeyName.ExpandedFolders);
|
||||||
if (!_.isArray(aExpandedList))
|
if (!_.isArray(aExpandedList))
|
||||||
{
|
{
|
||||||
aExpandedList = [];
|
aExpandedList = [];
|
||||||
|
|
@ -2547,7 +2547,7 @@
|
||||||
'None': 'None',
|
'None': 'None',
|
||||||
'Move': 'Move',
|
'Move': 'Move',
|
||||||
'Discard': 'Discard',
|
'Discard': 'Discard',
|
||||||
'Forward': 'Forward',
|
'Forward': 'Forward'
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -8188,21 +8188,27 @@ module.exports = window;
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var
|
var
|
||||||
ko = require('ko')
|
ko = require('ko'),
|
||||||
|
Utils = require('Utils')
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @constructor
|
||||||
|
*
|
||||||
* @param {string} sEmail
|
* @param {string} sEmail
|
||||||
* @param {boolean=} bCanBeDelete = true
|
* @param {boolean=} bCanBeDelete = true
|
||||||
* @constructor
|
|
||||||
*/
|
*/
|
||||||
function AccountModel(sEmail, bCanBeDelete)
|
function AccountModel(sEmail, bCanBeDelete)
|
||||||
{
|
{
|
||||||
this.email = sEmail;
|
this.email = sEmail;
|
||||||
|
|
||||||
this.deleteAccess = ko.observable(false);
|
this.deleteAccess = ko.observable(false);
|
||||||
this.canBeDalete = ko.observable(bCanBeDelete);
|
this.canBeDalete = ko.observable(Utils.isUnd(bCanBeDelete) ? true : !!bCanBeDelete);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
AccountModel.prototype.email = '';
|
AccountModel.prototype.email = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -8216,7 +8222,7 @@ module.exports = window;
|
||||||
module.exports = AccountModel;
|
module.exports = AccountModel;
|
||||||
|
|
||||||
}(module, require));
|
}(module, require));
|
||||||
},{"LinkBuilder":11,"ko":28}],38:[function(require,module,exports){
|
},{"LinkBuilder":11,"Utils":14,"ko":28}],38:[function(require,module,exports){
|
||||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||||
|
|
||||||
(function (module, require) {
|
(function (module, require) {
|
||||||
|
|
@ -9252,7 +9258,7 @@ module.exports = window;
|
||||||
*/
|
*/
|
||||||
function FilterModel()
|
function FilterModel()
|
||||||
{
|
{
|
||||||
this.new = ko.observable(true);
|
this.isNew = ko.observable(true);
|
||||||
this.enabled = ko.observable(true);
|
this.enabled = ko.observable(true);
|
||||||
|
|
||||||
this.name = ko.observable('');
|
this.name = ko.observable('');
|
||||||
|
|
|
||||||
6
rainloop/v/0.0.0/static/js/app.min.js
vendored
6
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
rainloop/v/0.0.0/static/js/openpgp.min.js
vendored
Normal file
7
rainloop/v/0.0.0/static/js/openpgp.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
||||||
/*! RainLoop Index Helper v1.1 (c) 2014 RainLoop Team; Licensed under MIT */
|
/*! RainLoop Index Helper v1.2 (c) 2014 RainLoop Team; Licensed under MIT */
|
||||||
!function(t,n,e){function s(){}s.prototype.s=t.sessionStorage,s.prototype.t=t.top||t,s.prototype.getHash=function(){var t=null;if(this.s)t=this.s.getItem("__rlA")||null;else if(this.t){var n=this.t.name&&e&&"{"===this.t.name.toString().substr(0,1)?e.parse(this.t.name.toString()):null;t=n?n.__rlA||null:null}return t},s.prototype.setHash=function(){var n=t.rainloopAppData,s=null;this.s?this.s.setItem("__rlA",n&&n.AuthAccountHash?n.AuthAccountHash:""):this.t&&e&&(s={},s.__rlA=n&&n.AuthAccountHash?n.AuthAccountHash:"",this.t.name=e.stringify(s))},s.prototype.clearHash=function(){this.s?this.s.setItem("__rlA",""):this.t&&(this.t.name="")},t._rlhh=new s,t.__rlah=function(){return t._rlhh?t._rlhh.getHash():null},t.__rlah_set=function(){t._rlhh&&t._rlhh.setHash()},t.__rlah_clear=function(){t._rlhh&&t._rlhh.clearHash()},t.__includeScr=function(t){n.write(unescape('%3Cscript data-cfasync="false" type="text/javascript" src="'+t+'"%3E%3C/script%3E'))},t.__showError=function(){var e=n.getElementById("rl-loading"),s=n.getElementById("rl-loading-error");e&&(e.style.display="none"),s&&(s.style.display="block"),t.SimplePace&&t.SimplePace.set(100)},t.__simplePace=function(n){t.SimplePace&&t.SimplePace.add(n)},t.__runBoot=function(n){t.__APP_BOOT&&!n?t.__APP_BOOT(function(t){t||__showError()}):__showError()}}(window,window.document,window.JSON);
|
!function(t,n,e){function s(){}s.prototype.s=t.sessionStorage,s.prototype.t=t.top||t,s.prototype.getHash=function(){var t=null;if(this.s)t=this.s.getItem("__rlA")||null;else if(this.t){var n=this.t.name&&e&&"{"===this.t.name.toString().substr(0,1)?e.parse(this.t.name.toString()):null;t=n?n.__rlA||null:null}return t},s.prototype.setHash=function(){var n=t.rainloopAppData,s=null;this.s?this.s.setItem("__rlA",n&&n.AuthAccountHash?n.AuthAccountHash:""):this.t&&e&&(s={},s.__rlA=n&&n.AuthAccountHash?n.AuthAccountHash:"",this.t.name=e.stringify(s))},s.prototype.clearHash=function(){this.s?this.s.setItem("__rlA",""):this.t&&(this.t.name="")},t._rlhh=new s,t.__rlah=function(){return t._rlhh?t._rlhh.getHash():null},t.__rlah_set=function(){t._rlhh&&t._rlhh.setHash()},t.__rlah_clear=function(){t._rlhh&&t._rlhh.clearHash()},t.__includeScr=function(t){n.write(unescape('%3Cscript data-cfasync="false" type="text/javascript" src="'+t+'"%3E%3C/script%3E'))},t.__showError=function(){var e=n.getElementById("rl-loading"),s=n.getElementById("rl-loading-error");e&&(e.style.display="none"),s&&(s.style.display="block"),t.SimplePace&&t.SimplePace.set(100)},t.__simplePace=function(n){t.SimplePace&&t.SimplePace.add(n)},t.__runBoot=function(n){t.__APP_BOOT&&!n?t.__APP_BOOT(function(t){t||__showError()}):__showError()}}(window,window.document,window.JSON);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue