mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-26 16:26:44 +03:00
Cleanup CSS and JS
Improve app loading error
This commit is contained in:
parent
2c69da61f0
commit
7e43bfc6b0
3 changed files with 14 additions and 29 deletions
|
|
@ -116,7 +116,7 @@ export class EmailAddressesComponent {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}).throttle(500)
|
}).throttle(500)
|
||||||
: () => {};
|
: () => 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_focusTrigger(bValue) {
|
_focusTrigger(bValue) {
|
||||||
|
|
|
||||||
18
dev/boot.js
18
dev/boot.js
|
|
@ -60,27 +60,21 @@ win.rl = {
|
||||||
},
|
},
|
||||||
setWindowTitle: title => {
|
setWindowTitle: title => {
|
||||||
title = null == title ? '' : '' + title;
|
title = null == title ? '' : '' + title;
|
||||||
if (RL_APP_DATA.Title) {
|
doc.title = RL_APP_DATA.Title ? title + (title ? ' - ' : '') + RL_APP_DATA.Title : title;
|
||||||
title += (title ? ' - ' : '') + RL_APP_DATA.Title;
|
|
||||||
}
|
|
||||||
doc.title = title;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
initData: appData => {
|
initData: appData => {
|
||||||
RL_APP_DATA = appData;
|
RL_APP_DATA = appData;
|
||||||
|
appData
|
||||||
if (appData) {
|
? loadScript(appData.StaticLibJsLink)
|
||||||
loadScript(appData.StaticLibJsLink)
|
|
||||||
.then(() => loadScript(appData.StaticAppJsLink))
|
.then(() => loadScript(appData.StaticAppJsLink))
|
||||||
.then(() => appData.PluginsLink ? loadScript(appData.PluginsLink) : Promise.resolve())
|
.then(() => appData.PluginsLink ? loadScript(appData.PluginsLink) : Promise.resolve())
|
||||||
.then(() => win.__APP_BOOT())
|
.then(() => win.__APP_BOOT())
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
showError(e.message);
|
showError(e.message);
|
||||||
throw e;
|
throw e;
|
||||||
});
|
})
|
||||||
} else {
|
: showError();
|
||||||
showError();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -108,6 +102,6 @@ try {
|
||||||
css.href = css.dataset.href;
|
css.href = css.dataset.href;
|
||||||
|
|
||||||
loadScript(`./?/${admin ? 'Admin' : ''}AppData/0/${Math.random().toString().substr(2)}/`)
|
loadScript(`./?/${admin ? 'Admin' : ''}AppData/0/${Math.random().toString().substr(2)}/`)
|
||||||
.then(() => {});
|
.then(() => 0);
|
||||||
|
|
||||||
})(this);
|
})(this);
|
||||||
|
|
|
||||||
23
vendors/normalize.css/normalize.css
vendored
23
vendors/normalize.css/normalize.css
vendored
|
|
@ -31,10 +31,7 @@ sup {
|
||||||
* Correct the inability to style clickable types in iOS and Safari.
|
* Correct the inability to style clickable types in iOS and Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button {
|
||||||
[type="button"],
|
|
||||||
[type="reset"],
|
|
||||||
[type="submit"] {
|
|
||||||
-webkit-appearance: button;
|
-webkit-appearance: button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -42,10 +39,7 @@ button,
|
||||||
* Remove the inner border and padding in Firefox.
|
* Remove the inner border and padding in Firefox.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button::-moz-focus-inner,
|
button::-moz-focus-inner {
|
||||||
[type="button"]::-moz-focus-inner,
|
|
||||||
[type="reset"]::-moz-focus-inner,
|
|
||||||
[type="submit"]::-moz-focus-inner {
|
|
||||||
border-style: none;
|
border-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
@ -54,10 +48,7 @@ button::-moz-focus-inner,
|
||||||
* Restore the focus styles unset by the previous rule.
|
* Restore the focus styles unset by the previous rule.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button:-moz-focusring,
|
button:-moz-focusring {
|
||||||
[type="button"]:-moz-focusring,
|
|
||||||
[type="reset"]:-moz-focusring,
|
|
||||||
[type="submit"]:-moz-focusring {
|
|
||||||
outline: 1px dotted ButtonText;
|
outline: 1px dotted ButtonText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -65,8 +56,8 @@ button:-moz-focusring,
|
||||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[type="number"]::-webkit-inner-spin-button,
|
input[type="number"]::-webkit-inner-spin-button,
|
||||||
[type="number"]::-webkit-outer-spin-button {
|
input[type="number"]::-webkit-outer-spin-button {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -75,7 +66,7 @@ button:-moz-focusring,
|
||||||
* 2. Correct the outline style in Safari.
|
* 2. Correct the outline style in Safari.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[type="search"] {
|
input[type="search"] {
|
||||||
-webkit-appearance: textfield; /* 1 */
|
-webkit-appearance: textfield; /* 1 */
|
||||||
outline-offset: -2px; /* 2 */
|
outline-offset: -2px; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
@ -84,7 +75,7 @@ button:-moz-focusring,
|
||||||
* Remove the inner padding in Chrome and Safari on macOS.
|
* Remove the inner padding in Chrome and Safari on macOS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[type="search"]::-webkit-search-decoration {
|
input[type="search"]::-webkit-search-decoration {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue