mail/src/js/app-config.js

35 lines
532 B
JavaScript
Raw Normal View History

2013-06-10 21:14:57 -04:00
define([], function() {
2013-04-01 17:23:25 -04:00
'use strict';
2013-03-13 11:58:46 -04:00
2013-04-01 17:23:25 -04:00
/**
* Create the application namespace
*/
2013-06-10 11:57:33 -04:00
var app = {
2013-04-01 17:23:25 -04:00
model: {},
util: {}
};
/**
* Global app configurations
*/
app.config = {
2013-06-13 07:46:28 -04:00
cloudUrl: 'https://storage.whiteout.io',
2013-04-01 17:23:25 -04:00
symKeySize: 128,
2013-05-31 19:45:38 -04:00
symIvSize: 128,
asymKeySize: 1024,
2013-04-01 17:23:25 -04:00
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];
}
};
2013-06-10 21:14:57 -04:00
return app;
});