2014-03-14 13:38:27 -07:00
|
|
|
'use strict';
|
|
|
|
|
2014-05-16 08:40:26 -07:00
|
|
|
var config = defaultConfig;
|
|
|
|
var localConfig = JSON.parse(localStorage.getItem('config'));
|
|
|
|
|
|
|
|
if (localConfig) {
|
|
|
|
var count = 0;
|
|
|
|
for (name in localConfig) {
|
|
|
|
if (localConfig.hasOwnProperty(name)) {
|
|
|
|
config[name] = localConfig[name];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var log = function() {
|
|
|
|
if (config.verbose) console.log(arguments);
|
|
|
|
}
|
2014-04-30 08:25:33 -07:00
|
|
|
|
2014-06-03 12:39:06 -07:00
|
|
|
// From the bundle
|
2014-04-30 08:25:33 -07:00
|
|
|
var copay = require('copay');
|
|
|
|
|
2014-06-03 12:39:06 -07:00
|
|
|
var copayApp = window.copayApp = angular.module('copayApp',[
|
2014-03-19 09:17:18 -07:00
|
|
|
'ngRoute',
|
2014-05-16 13:18:25 -07:00
|
|
|
'angularMoment',
|
2014-03-27 08:07:10 -07:00
|
|
|
'mm.foundation',
|
2014-03-27 12:43:51 -07:00
|
|
|
'monospaced.qrcode',
|
2014-05-14 22:13:25 -07:00
|
|
|
'notifications',
|
2014-06-03 12:39:06 -07:00
|
|
|
'copayApp.filters',
|
|
|
|
'copayApp.header',
|
|
|
|
'copayApp.footer',
|
|
|
|
'copayApp.addresses',
|
|
|
|
'copayApp.transactions',
|
|
|
|
'copayApp.send',
|
|
|
|
'copayApp.backup',
|
|
|
|
'copayApp.walletFactory',
|
|
|
|
'copayApp.signin',
|
|
|
|
'copayApp.socket',
|
|
|
|
'copayApp.controllerUtils',
|
|
|
|
'copayApp.setup',
|
|
|
|
'copayApp.directives',
|
|
|
|
'copayApp.video',
|
|
|
|
'copayApp.import',
|
|
|
|
'copayApp.passphrase',
|
|
|
|
'copayApp.settings'
|
2014-03-14 13:38:27 -07:00
|
|
|
]);
|
2014-03-25 07:35:04 -07:00
|
|
|
|
2014-06-03 12:39:06 -07:00
|
|
|
angular.module('copayApp.header', []);
|
|
|
|
angular.module('copayApp.footer', []);
|
|
|
|
angular.module('copayApp.addresses', []);
|
|
|
|
angular.module('copayApp.transactions', []);
|
|
|
|
angular.module('copayApp.send', []);
|
|
|
|
angular.module('copayApp.backup', []);
|
|
|
|
angular.module('copayApp.walletFactory', []);
|
|
|
|
angular.module('copayApp.controllerUtils', []);
|
|
|
|
angular.module('copayApp.signin', []);
|
|
|
|
angular.module('copayApp.setup', []);
|
|
|
|
angular.module('copayApp.socket', []);
|
|
|
|
angular.module('copayApp.directives', []);
|
|
|
|
angular.module('copayApp.video', []);
|
|
|
|
angular.module('copayApp.import', []);
|
|
|
|
angular.module('copayApp.passphrase', []);
|
|
|
|
angular.module('copayApp.settings', []);
|