mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Split admin css from app.css
Cleanup normalize and bootstrap css Removed almost all css float Removed CKEditor from app.css
This commit is contained in:
parent
6dacfb3cf4
commit
b6d8fa5b3f
74 changed files with 455 additions and 1014 deletions
24
vendors/routes/crossroads.js
vendored
24
vendors/routes/crossroads.js
vendored
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
(global => {
|
||||
|
||||
const isFunction = obj => typeof obj === 'function';
|
||||
const isFunction = obj => typeof obj === 'function';
|
||||
|
||||
// Crossroads --------
|
||||
//====================
|
||||
|
|
@ -124,14 +124,10 @@
|
|||
}
|
||||
|
||||
_getParamsArray(request) {
|
||||
var norm = this.rules.normalize_,
|
||||
params;
|
||||
if (isFunction(norm)) {
|
||||
params = norm(request, this._getParamsObject(request));
|
||||
} else {
|
||||
params = patternLexer.getParamValues(request, this._matchRegexp);
|
||||
}
|
||||
return params;
|
||||
var norm = this.rules.normalize_;
|
||||
return isFunction(norm)
|
||||
? norm(request, this._getParamsObject(request))
|
||||
: patternLexer.getParamValues(request, this._matchRegexp);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -162,7 +158,6 @@
|
|||
SAVED_OPTIONAL_SLASHES_REGEXP = new RegExp(SAVE_OPTIONAL_SLASHES, 'g'),
|
||||
SAVED_REQUIRED_SLASHES_REGEXP = new RegExp(SAVE_REQUIRED_SLASHES, 'g'),
|
||||
|
||||
|
||||
captureVals = (regex, pattern) => {
|
||||
var vals = [], match;
|
||||
while (match = regex.exec(pattern)) {
|
||||
|
|
@ -197,12 +192,11 @@
|
|||
return vals;
|
||||
},
|
||||
compilePattern : pattern => {
|
||||
pattern = pattern || '';
|
||||
if (pattern) {
|
||||
pattern = untokenize(
|
||||
pattern = pattern
|
||||
? untokenize(
|
||||
tokenize(pattern.replace(UNNECESSARY_SLASHES_REGEXP, '')).replace(ESCAPE_CHARS_REGEXP, '\\$&')
|
||||
);
|
||||
}
|
||||
)
|
||||
: '';
|
||||
return new RegExp('^'+ pattern + '/?$'); //trailing slash is optional
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue