mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
38 lines
595 B
JavaScript
38 lines
595 B
JavaScript
var app; // container for the application namespace
|
|
|
|
(function() {
|
|
'use strict';
|
|
|
|
/**
|
|
* Create the application namespace
|
|
*/
|
|
app = {
|
|
model: {},
|
|
view: {},
|
|
dao: {},
|
|
crypto: {},
|
|
util: {}
|
|
};
|
|
|
|
/**
|
|
* Global app configurations
|
|
*/
|
|
app.config = {
|
|
cloudUrl: 'http://storage.whiteout.io',
|
|
symKeySize: 128,
|
|
symIvSize: 128,
|
|
asymKeySize: 1024,
|
|
workerPath: 'js'
|
|
};
|
|
|
|
/**
|
|
* The Template Loader. Used to asynchronously load templates located in separate .html files
|
|
*/
|
|
app.util.tpl = {
|
|
templates: {},
|
|
get: function(name) {
|
|
return this.templates[name];
|
|
}
|
|
};
|
|
|
|
}()); |