add angular-load
This commit is contained in:
parent
38756063ad
commit
1ce3f82d0a
3 changed files with 22 additions and 1 deletions
|
|
@ -115,6 +115,7 @@ module.exports = function(grunt) {
|
||||||
'lib/angular-foundation/mm-foundation.min.js',
|
'lib/angular-foundation/mm-foundation.min.js',
|
||||||
'lib/angular-foundation/mm-foundation-tpls.min.js',
|
'lib/angular-foundation/mm-foundation-tpls.min.js',
|
||||||
'lib/angular-gettext/dist/angular-gettext.min.js'
|
'lib/angular-gettext/dist/angular-gettext.min.js'
|
||||||
|
'lib/angular-load/angular-load.min.js',
|
||||||
],
|
],
|
||||||
dest: 'lib/angularjs-all.js'
|
dest: 'lib/angularjs-all.js'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,15 @@ var defaultConfig = {
|
||||||
updateFrequencySeconds: 60 * 60
|
updateFrequencySeconds: 60 * 60
|
||||||
},
|
},
|
||||||
|
|
||||||
|
verbose: 1,
|
||||||
|
|
||||||
|
plugins: {
|
||||||
|
googleDrive: true,
|
||||||
|
},
|
||||||
|
|
||||||
|
googleDrive: {
|
||||||
|
clientId: '1',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
module.exports = defaultConfig;
|
module.exports = defaultConfig;
|
||||||
|
|
|
||||||
13
js/app.js
13
js/app.js
|
|
@ -18,7 +18,13 @@ if (localConfig) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var log = function() {
|
||||||
|
if (config.verbose) console.log(arguments);
|
||||||
|
}
|
||||||
var copayApp = window.copayApp = angular.module('copayApp', [
|
var copayApp = window.copayApp = angular.module('copayApp', [
|
||||||
|
|
||||||
|
|
||||||
|
var modules = [
|
||||||
'ngRoute',
|
'ngRoute',
|
||||||
'angularMoment',
|
'angularMoment',
|
||||||
'mm.foundation',
|
'mm.foundation',
|
||||||
|
|
@ -29,7 +35,12 @@ var copayApp = window.copayApp = angular.module('copayApp', [
|
||||||
'copayApp.services',
|
'copayApp.services',
|
||||||
'copayApp.controllers',
|
'copayApp.controllers',
|
||||||
'copayApp.directives',
|
'copayApp.directives',
|
||||||
]);
|
];
|
||||||
|
|
||||||
|
if (config.plugins.googleDrive)
|
||||||
|
modules.push('angularLoad');
|
||||||
|
|
||||||
|
var copayApp = window.copayApp = angular.module('copayApp', modules);
|
||||||
|
|
||||||
copayApp.config(function($sceDelegateProvider) {
|
copayApp.config(function($sceDelegateProvider) {
|
||||||
$sceDelegateProvider.resourceUrlWhitelist([
|
$sceDelegateProvider.resourceUrlWhitelist([
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue