mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Cleanup CSS and JS code
This commit is contained in:
parent
0eea2cb5ad
commit
6c75dd12f8
19 changed files with 82 additions and 146 deletions
13
dev/External/SquireUI.js
vendored
13
dev/External/SquireUI.js
vendored
|
|
@ -1,18 +1,15 @@
|
|||
/* eslint max-len: 0 */
|
||||
|
||||
(() => {
|
||||
|
||||
'use strict';
|
||||
|
||||
const doc = document,
|
||||
(doc => {
|
||||
|
||||
const
|
||||
removeElements = 'HEAD,LINK,META,NOSCRIPT,SCRIPT,TEMPLATE,TITLE',
|
||||
allowedElements = 'A,B,BLOCKQUOTE,BR,DIV,FONT,H1,H2,H3,H4,H5,H6,HR,IMG,LI,OL,P,SPAN,STRONG,TABLE,TD,TH,TR,U,UL',
|
||||
allowedAttributes = 'abbr,align,background,bgcolor,border,cellpadding,cellspacing,class,color,colspan,dir,face,frame,height,href,hspace,id,lang,rowspan,rules,scope,size,src,style,target,type,usemap,valign,vspace,width'.split(','),
|
||||
|
||||
i18n = (str, def) => rl.i18n(str) || def,
|
||||
|
||||
ctrlKey = /Mac OS X/.test( navigator.userAgent ) ? '⌘ + ' : 'Ctrl + ',
|
||||
ctrlKey = shortcuts.getMetaKey().replace('meta','⌘') + ' + ',
|
||||
|
||||
tpl = doc.createElement('template'),
|
||||
clr = doc.createElement('input'),
|
||||
|
|
@ -568,6 +565,6 @@ class SquireUI
|
|||
}
|
||||
}
|
||||
|
||||
window.SquireUI = SquireUI;
|
||||
this.SquireUI = SquireUI;
|
||||
|
||||
})();
|
||||
})(document);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue