mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
35 lines
532 B
JavaScript
35 lines
532 B
JavaScript
define([], function() {
|
|
'use strict';
|
|
|
|
/**
|
|
* Create the application namespace
|
|
*/
|
|
var app = {
|
|
model: {},
|
|
util: {}
|
|
};
|
|
|
|
/**
|
|
* Global app configurations
|
|
*/
|
|
app.config = {
|
|
cloudUrl: 'https://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];
|
|
}
|
|
};
|
|
|
|
return app;
|
|
}); |