Lidarr/src/UI/app.js

160 lines
5.7 KiB
JavaScript
Raw Normal View History

2015-01-30 02:10:16 +00:00
'use strict';
require.config({
2013-11-21 06:04:15 +00:00
2015-02-03 01:18:45 +00:00
paths : {
'backbone' : 'JsLibraries/backbone',
'moment' : 'JsLibraries/moment',
'filesize' : 'JsLibraries/filesize',
2014-08-28 21:40:18 +00:00
'handlebars' : 'Shared/Shims/handlebars',
'handlebars.helpers' : 'JsLibraries/handlebars.helpers',
'bootstrap' : 'JsLibraries/bootstrap',
'bootstrap.tagsinput' : 'JsLibraries/bootstrap.tagsinput',
'backbone.deepmodel' : 'JsLibraries/backbone.deep.model',
'backbone.pageable' : 'JsLibraries/backbone.pageable',
'backbone.validation' : 'JsLibraries/backbone.validation',
'backbone.modelbinder' : 'JsLibraries/backbone.modelbinder',
'backbone.collectionview' : 'JsLibraries/backbone.collectionview',
'backgrid' : 'JsLibraries/backbone.backgrid',
'backgrid.paginator' : 'JsLibraries/backbone.backgrid.paginator',
'backgrid.selectall' : 'JsLibraries/backbone.backgrid.selectall',
'fullcalendar' : 'JsLibraries/fullcalendar',
'backstrech' : 'JsLibraries/jquery.backstretch',
'underscore' : 'JsLibraries/lodash.underscore',
'marionette' : 'JsLibraries/backbone.marionette',
'signalR' : 'JsLibraries/jquery.signalR',
'jquery-ui' : 'JsLibraries/jquery-ui',
'jquery.knob' : 'JsLibraries/jquery.knob',
'jquery.easypiechart' : 'JsLibraries/jquery.easypiechart',
'jquery.dotdotdot' : 'JsLibraries/jquery.dotdotdot',
'messenger' : 'JsLibraries/messenger',
'jquery' : 'JsLibraries/jquery',
2014-04-01 20:10:36 +00:00
'typeahead' : 'JsLibraries/typeahead',
'zero.clipboard' : 'JsLibraries/zero.clipboard',
'jdu' : 'JsLibraries/jdu',
2015-02-03 01:18:45 +00:00
'libs' : 'JsLibraries/'
2013-01-26 20:05:08 +00:00
},
2015-02-03 01:18:45 +00:00
shim : {
2015-02-13 21:06:34 +00:00
api : {
2015-02-03 01:18:45 +00:00
deps : ['jquery']
2013-11-21 06:04:15 +00:00
},
2015-02-03 01:18:45 +00:00
jquery : {
exports : '$'
2013-11-10 21:33:44 +00:00
},
2015-02-03 01:18:45 +00:00
messenger : {
deps : ['jquery'],
exports : 'Messenger',
2015-02-13 21:06:34 +00:00
init : function() {
window.Messenger.options = {
2015-02-03 01:18:45 +00:00
theme : 'flat'
};
}
2013-11-21 06:04:15 +00:00
},
2015-02-03 01:18:45 +00:00
signalR : {
deps : ['jquery']
2013-06-25 04:43:16 +00:00
},
2015-02-03 01:18:45 +00:00
bootstrap : {
deps : ['jquery']
},
2015-02-03 01:18:45 +00:00
'bootstrap.tagsinput' : {
2015-02-13 21:06:34 +00:00
deps : [
'bootstrap',
'typeahead'
]
},
2015-02-03 01:18:45 +00:00
backstrech : {
deps : ['jquery']
},
2015-02-03 01:18:45 +00:00
underscore : {
deps : ['jquery'],
exports : '_'
},
2015-02-03 01:18:45 +00:00
backbone : {
2015-02-13 21:06:34 +00:00
deps : [
'jquery',
'Instrumentation/ErrorHandler',
'underscore',
'Mixins/jquery.ajax',
'jQuery/ToTheTop'
],
2015-02-03 01:18:45 +00:00
exports : 'Backbone'
2013-06-15 05:28:35 +00:00
},
2015-02-03 01:18:45 +00:00
marionette : {
2015-02-13 21:06:34 +00:00
deps : [
'backbone',
'Handlebars/backbone.marionette.templates',
'Mixins/AsNamedView'
],
2015-02-03 01:18:45 +00:00
exports : 'Marionette',
2015-02-13 21:06:34 +00:00
init : function(Backbone, TemplateMixin, AsNamedView) {
2013-11-11 04:09:11 +00:00
TemplateMixin.call(window.Marionette.TemplateCache);
AsNamedView.call(window.Marionette.ItemView.prototype);
}
},
2015-02-03 01:18:45 +00:00
'typeahead' : {
deps : ['jquery']
2014-04-01 20:10:36 +00:00
},
2015-02-03 01:18:45 +00:00
'jquery-ui' : {
deps : ['jquery']
},
2015-02-03 01:18:45 +00:00
'jquery.knob' : {
deps : ['jquery']
},
2015-02-03 01:18:45 +00:00
'jquery.easypiechart' : {
deps : ['jquery']
},
2015-02-03 01:18:45 +00:00
'jquery.dotdotdot' : {
deps : ['jquery']
},
2015-02-03 01:18:45 +00:00
'backbone.pageable' : {
deps : ['backbone']
},
2015-02-03 01:18:45 +00:00
'backbone.deepmodel' : {
2015-02-13 21:06:34 +00:00
deps : [
'backbone',
'underscore'
]
},
2015-02-03 01:18:45 +00:00
'backbone.validation' : {
deps : ['backbone'],
exports : 'Backbone.Validation'
},
2015-02-03 01:18:45 +00:00
'backbone.modelbinder' : {
deps : ['backbone']
},
2015-02-03 01:18:45 +00:00
'backbone.collectionview' : {
2015-02-13 21:06:34 +00:00
deps : [
'backbone',
'jquery-ui'
],
2015-02-03 01:18:45 +00:00
exports : 'Backbone.CollectionView'
},
2015-02-03 01:18:45 +00:00
backgrid : {
2015-02-13 21:06:34 +00:00
deps : ['backbone'],
2015-02-03 01:18:45 +00:00
exports : 'Backgrid',
2015-02-13 21:06:34 +00:00
init : function() {
require(['Shared/Grid/HeaderCell'], function() {
2015-02-03 01:18:45 +00:00
window.Backgrid.Column.prototype.defaults = {
name : undefined,
label : undefined,
sortable : true,
editable : false,
renderable : true,
formatter : undefined,
cell : undefined,
headerCell : 'NzbDrone',
sortType : 'toggle'
};
});
}
},
2015-02-03 01:18:45 +00:00
'backgrid.paginator' : {
2015-02-13 21:06:34 +00:00
deps : ['backgrid'],
exports : 'Backgrid.Extension.Paginator'
},
2015-02-03 01:18:45 +00:00
'backgrid.selectall' : {
2015-02-13 21:06:34 +00:00
deps : ['backgrid'],
exports : 'Backgrid.Extension.SelectRowCell'
}
2013-01-28 18:06:54 +00:00
}
2015-02-03 01:18:45 +00:00
});