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
|
|
|
|
|
|
|
var copay = require('copay');
|
|
|
|
|
2014-04-23 14:03:22 -07:00
|
|
|
var copayApp = window.copayApp = angular.module('copay',[
|
2014-03-19 09:17:18 -07:00
|
|
|
'ngRoute',
|
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-03-28 11:08:14 -07:00
|
|
|
'copay.header',
|
2014-04-25 13:22:51 -07:00
|
|
|
'copay.footer',
|
2014-04-20 16:21:54 -07:00
|
|
|
'copay.addresses',
|
2014-03-28 11:08:14 -07:00
|
|
|
'copay.transactions',
|
|
|
|
'copay.send',
|
|
|
|
'copay.backup',
|
2014-04-16 13:50:10 -07:00
|
|
|
'copay.walletFactory',
|
2014-03-28 11:08:14 -07:00
|
|
|
'copay.signin',
|
2014-04-16 20:43:50 -07:00
|
|
|
'copay.socket',
|
2014-04-17 07:46:49 -07:00
|
|
|
'copay.controllerUtils',
|
2014-04-24 08:01:06 -07:00
|
|
|
'copay.setup',
|
2014-04-24 14:59:24 -07:00
|
|
|
'copay.directives',
|
2014-04-25 13:34:24 -07:00
|
|
|
'copay.video',
|
2014-04-28 12:22:59 -07:00
|
|
|
'copay.import',
|
2014-05-13 10:19:37 -07:00
|
|
|
'copay.passphrase',
|
|
|
|
'copay.settings'
|
2014-03-14 13:38:27 -07:00
|
|
|
]);
|
2014-03-25 07:35:04 -07:00
|
|
|
|
2014-03-28 11:08:14 -07:00
|
|
|
angular.module('copay.header', []);
|
2014-04-25 13:22:51 -07:00
|
|
|
angular.module('copay.footer', []);
|
2014-04-20 16:21:54 -07:00
|
|
|
angular.module('copay.addresses', []);
|
2014-03-28 11:08:14 -07:00
|
|
|
angular.module('copay.transactions', []);
|
|
|
|
angular.module('copay.send', []);
|
|
|
|
angular.module('copay.backup', []);
|
2014-04-16 13:50:10 -07:00
|
|
|
angular.module('copay.walletFactory', []);
|
2014-04-17 07:46:49 -07:00
|
|
|
angular.module('copay.controllerUtils', []);
|
2014-03-28 11:08:14 -07:00
|
|
|
angular.module('copay.signin', []);
|
2014-04-16 13:07:14 -07:00
|
|
|
angular.module('copay.setup', []);
|
2014-04-16 20:36:08 -07:00
|
|
|
angular.module('copay.socket', []);
|
2014-04-24 08:01:06 -07:00
|
|
|
angular.module('copay.directives', []);
|
2014-04-23 17:20:44 -07:00
|
|
|
angular.module('copay.video', []);
|
2014-04-25 13:34:24 -07:00
|
|
|
angular.module('copay.import', []);
|
2014-04-30 06:52:39 -07:00
|
|
|
angular.module('copay.passphrase', []);
|
2014-05-13 10:19:37 -07:00
|
|
|
angular.module('copay.settings', []);
|
2014-03-25 07:35:04 -07:00
|
|
|
|