mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52:17 -05:00
commit
5f93b8249f
@ -5,11 +5,14 @@
|
||||
<title>Mail</title>
|
||||
|
||||
<!-- Theses CSP rules are used as a fallback in runtimes such as PhoneGap where setting http headers is not possbile. -->
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; object-src 'none'; connect-src 'self' https://keys.whiteout.io; img-src 'self' data:;">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; object-src 'none'; connect-src 'self' https://keys.whiteout.io https://keys-test.whiteout.io; img-src 'self' data:;">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<link rel="stylesheet" media="all" href="css/all.min.css" type="text/css">
|
||||
|
||||
<!-- PhoneGap dependencies -->
|
||||
<script src="phonegap.js"></script>
|
||||
|
||||
<!-- The Scripts -->
|
||||
<script src="lib/require.js"></script>
|
||||
<script src="require-config.js"></script>
|
||||
|
@ -17,7 +17,6 @@ define(function(require) {
|
||||
OutboxBO = require('js/bo/outbox'),
|
||||
PGP = require('js/crypto/pgp'),
|
||||
config = require('js/app-config').config;
|
||||
require('cordova');
|
||||
|
||||
var self = {};
|
||||
|
||||
@ -25,13 +24,15 @@ define(function(require) {
|
||||
* Start the application
|
||||
*/
|
||||
self.start = function(options, callback) {
|
||||
// are we running in native app or in browser?
|
||||
if (document.URL.indexOf("http") === 0 || document.URL.indexOf("app") === 0 || document.URL.indexOf("chrome") === 0) {
|
||||
console.log('Assuming Browser environment...');
|
||||
onDeviceReady();
|
||||
} else {
|
||||
// are we running in a cordova app or in a browser environment?
|
||||
if (window.cordova) {
|
||||
// wait for 'deviceready' event to make sure plugins are loaded
|
||||
console.log('Assuming Cordova environment...');
|
||||
document.addEventListener("deviceready", onDeviceReady, false);
|
||||
} else {
|
||||
// No need to wait on events... just start the app
|
||||
console.log('Assuming Browser environment...');
|
||||
onDeviceReady();
|
||||
}
|
||||
|
||||
function onDeviceReady() {
|
||||
@ -119,14 +120,7 @@ define(function(require) {
|
||||
console.log('IMAP error.', err);
|
||||
console.log('IMAP reconnecting...');
|
||||
// re-init client modules on error
|
||||
self.onConnect(function(err) {
|
||||
if (err) {
|
||||
console.error('IMAP reconnect failed!', err);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('IMAP reconnect successful.');
|
||||
});
|
||||
self.onConnect(callback);
|
||||
};
|
||||
|
||||
// connect to clients
|
||||
|
6083
src/lib/cordova/cordova-2.5.0.js
vendored
6083
src/lib/cordova/cordova-2.5.0.js
vendored
File diff suppressed because it is too large
Load Diff
6
src/lib/moment/moment.min.js
vendored
6
src/lib/moment/moment.min.js
vendored
File diff suppressed because one or more lines are too long
@ -10,7 +10,6 @@
|
||||
cryptoLib: '../js/crypto',
|
||||
'setimmediate': 'setImmediate',
|
||||
underscore: 'underscore/underscore-min',
|
||||
cordova: 'cordova/cordova-2.5.0',
|
||||
lawnchair: 'lawnchair/lawnchair-git',
|
||||
lawnchairSQL: 'lawnchair/lawnchair-adapter-webkit-sqlite-git',
|
||||
lawnchairIDB: 'lawnchair/lawnchair-adapter-indexed-db-git',
|
||||
@ -18,7 +17,6 @@
|
||||
angular: 'angular/angular.min',
|
||||
angularRoute: 'angular/angular-route.min',
|
||||
angularTouch: 'angular/angular-touch.min',
|
||||
moment: 'moment/moment.min',
|
||||
uuid: 'uuid/uuid',
|
||||
openpgp: 'openpgp/openpgp.min',
|
||||
iscroll: 'iscroll/iscroll-min'
|
||||
|
@ -1,13 +1,14 @@
|
||||
.view-mail-list {
|
||||
$padding-horizontal: 15px;
|
||||
$padding-vertical: 10px;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
background: $color-grey-lightest;
|
||||
background-image: linear-gradient(to right ,$color-grey-lightest 98%, darken($color-grey-lightest, 1%) 100%);
|
||||
|
||||
header {
|
||||
|
||||
cursor: pointer;
|
||||
padding: $padding-vertical $padding-horizontal;
|
||||
text-shadow: 0px 1px 1px $color-grey-lighter;
|
||||
@ -41,51 +42,44 @@
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-bottom: 98px;
|
||||
@include respond-to(desktop) {
|
||||
padding-bottom: 126px;
|
||||
}
|
||||
padding-bottom: 126px;
|
||||
}
|
||||
|
||||
footer {
|
||||
height: 0px;
|
||||
@include respond-to(desktop) {
|
||||
height: 28px;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 0px;
|
||||
padding: 0 $nav-padding;
|
||||
background: darken($color-grey-lightest, 1%);
|
||||
width: $content-nav-width;
|
||||
border-right: 1px solid $color-grey-light;
|
||||
font-size: $font-size-smaller;
|
||||
color: $color-grey-dark;
|
||||
line-height: em(28,12);
|
||||
height: 28px;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 0px;
|
||||
padding: 0 $nav-padding;
|
||||
background: darken($color-grey-lightest, 1%);
|
||||
width: 100%;
|
||||
font-size: $font-size-smaller;
|
||||
color: $color-grey-dark;
|
||||
line-height: em(28,12);
|
||||
|
||||
.offline {
|
||||
&[data-icon]:before {
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
.offline {
|
||||
&[data-icon]:before {
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
&.syncing {
|
||||
.spinner {
|
||||
top: 6.5px;
|
||||
left: $padding-horizontal;
|
||||
height: 13px;
|
||||
width: 13px;
|
||||
position: absolute;
|
||||
animation: rotation .6s linear infinite;
|
||||
border-left: 2px solid $color-grey-light;
|
||||
border-right: 2px solid $color-grey-light;
|
||||
border-bottom: 2px solid $color-grey-light;
|
||||
border-top: 2px solid $color-grey;
|
||||
border-radius: 100%;
|
||||
}
|
||||
.text {
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
&.syncing {
|
||||
.spinner {
|
||||
top: 6.5px;
|
||||
left: $padding-horizontal;
|
||||
height: 13px;
|
||||
width: 13px;
|
||||
position: absolute;
|
||||
animation: rotation .6s linear infinite;
|
||||
border-left: 2px solid $color-grey-light;
|
||||
border-right: 2px solid $color-grey-light;
|
||||
border-bottom: 2px solid $color-grey-light;
|
||||
border-top: 2px solid $color-grey;
|
||||
border-radius: 100%;
|
||||
}
|
||||
.text {
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ require(['../../src/require-config'], function() {
|
||||
|
||||
|
||||
// Start the main app logic.
|
||||
require(['js/app-config', 'cordova'], function(app) {
|
||||
require(['js/app-config'], function(app) {
|
||||
window.Worker = undefined; // disable web workers since mocha doesn't support them
|
||||
|
||||
app.config.workerPath = '../../src/js';
|
||||
|
Loading…
Reference in New Issue
Block a user