12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- // lazyload config
- angular.module('app')
- /**
- * jQuery plugin config use ui-jq directive , config the js and css files that required
- * key: function name of the jQuery plugin
- * value: array of the css js file located
- */
- .constant('JQ_CONFIG', {
- }
- )
- // oclazyload config
- .config(['$ocLazyLoadProvider', function ($ocLazyLoadProvider) {
- // We configure ocLazyLoad to use the lib script.js as the async loader
- $ocLazyLoadProvider.config({
- debug: false,
- events: true,
- modules: [
- {
- name: 'ui.bootstrap.datetimepicker',
- files: [
- //npm上面没有min版本,1.1.4也是angular1.X的最后一个适配版本; js内部引用了相对路径的templates/datetimepicker.html,所以必须复制到本工程;todo 垃圾控件,不能用在administrator和admaster ,因为本路径下没有datetimepicker.html 可能报404
- 'https://cdn.washpayer.com/npm/angular-bootstrap-datetimepicker@1.1.4/src/css/datetimepicker.css',
- 'https://cdn.washpayer.com/npm/angular-bootstrap-datetimepicker@1.1.4/src/js/datetimepicker.js',
- 'https://cdn.washpayer.com/npm/angular-bootstrap-datetimepicker@1.1.4/src/js/datetimepicker.templates.js'
- ]
- },
- {
- name: 'textAngular',// todo 暂时不兼容,似乎不能通过懒加载(本地vendor版本似乎也有问题 因为我们升级了angular),如果使用script加载,又不兼容angular1.7的toLowerCase函数
- files: [
- 'https://cdn.washpayer.com/npm/textangular@1.5.16/dist/textAngular-rangy.min.js',
- 'https://cdn.washpayer.com/npm/textangular@1.5.16/dist/textAngular-sanitize.min.js',
- 'https://cdn.washpayer.com/npm/textangular@1.5.16/dist/textAngular.min.js',
- ]
- },
- {
- name: 'ui.select',
- files: [
- // 0.20.0版本适应了angular1.3x,1.5x 等,低版本的select 只能用于低版本的angular;版本似乎已经停止维护(angular-ui-select不再使用);
- 'https://cdn.washpayer.com/npm/ui-select@0.20.0/dist/select.min.js',
- 'https://cdn.washpayer.com/npm/ui-select@0.20.0/dist/select.min.css',
- ]
- },
- {
- name: 'angularFileUpload',
- files: [
- 'https://cdn.washpayer.com/npm/angular-file-upload@2.5.0/dist/angular-file-upload.min.js'
- ]
- },
- ]
- });
- }])
- ;
|