You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/UI/app.js

115 lines
2.2 KiB

"use strict";
require.config({
paths: {
'backbone' : 'JsLibraries/backbone',
'underscore': 'JsLibraries/underscore',
'marionette': 'JsLibraries/backbone.marionette',
'handlebars': 'JsLibraries/handlebars'
},
shim: {
underscore: {
exports: '_'
},
backbone : {
deps : ['underscore'],
exports: 'Backbone'
},
marionette: {
deps : ['backbone'],
exports: 'Marionette'
},
handlebars: {
exports: 'Handlebars'
}
}
});
define('app', function () {
12 years ago
window.NzbDrone = new Backbone.Marionette.Application();
window.NzbDrone.Config = {};
window.NzbDrone.Series = {
Index : {
Table : {},
List : {},
Posters: {}
},
Edit : {},
Delete : {},
Details: {}
};
window.NzbDrone.AddSeries = {
New : {},
Existing : {},
RootFolders: {}
};
12 years ago
window.NzbDrone.Quality = {};
window.NzbDrone.Commands = {};
window.NzbDrone.Shared = {
Toolbar : {},
Messenger: {}
};
12 years ago
window.NzbDrone.Calendar = {};
window.NzbDrone.Settings = {
Naming : {},
Quality : {
Size : {},
Profile: {}
},
Indexers : {},
DownloadClient: {},
Notifications : {},
System : {},
Misc : {}
};
window.NzbDrone.Missing = {};
12 years ago
window.NzbDrone.History = {};
12 years ago
window.NzbDrone.Events = {
12 years ago
//TODO: Move to commands
OpenModalDialog : 'openModal',
CloseModalDialog: 'closeModal',
SeriesAdded : 'seriesAdded'
};
12 years ago
window.NzbDrone.Commands = {
SaveSettings: 'saveSettings'
12 years ago
};
12 years ago
window.NzbDrone.Constants = {
ApiRoot: '/api'
};
12 years ago
window.NzbDrone.addInitializer(function () {
12 years ago
console.log('starting application');
12 years ago
});
NzbDrone.addRegions({
mainRegion : '#main-region',
notificationRegion: '#notification-region'
});
12 years ago
window.NzbDrone.start();
12 years ago
return NzbDrone;
});