mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-23 22:45:06 -04:00
rjs -> webpack
This commit is contained in:
+50
-76
@@ -1,77 +1,51 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'Shared/NzbDroneController',
|
||||
'AppLayout',
|
||||
'marionette',
|
||||
'Activity/ActivityLayout',
|
||||
'Settings/SettingsLayout',
|
||||
'AddSeries/AddSeriesLayout',
|
||||
'Wanted/WantedLayout',
|
||||
'Calendar/CalendarLayout',
|
||||
'Release/ReleaseLayout',
|
||||
'System/SystemLayout',
|
||||
'SeasonPass/SeasonPassLayout',
|
||||
'Series/Editor/SeriesEditorLayout'
|
||||
], function (NzbDroneController,
|
||||
AppLayout,
|
||||
Marionette,
|
||||
ActivityLayout,
|
||||
SettingsLayout,
|
||||
AddSeriesLayout,
|
||||
WantedLayout,
|
||||
CalendarLayout,
|
||||
ReleaseLayout,
|
||||
SystemLayout,
|
||||
SeasonPassLayout,
|
||||
SeriesEditorLayout) {
|
||||
return NzbDroneController.extend({
|
||||
var NzbDroneController = require('./Shared/NzbDroneController');
|
||||
var AppLayout = require('./AppLayout');
|
||||
var Marionette = require('marionette');
|
||||
var ActivityLayout = require('./Activity/ActivityLayout');
|
||||
var SettingsLayout = require('./Settings/SettingsLayout');
|
||||
var AddSeriesLayout = require('./AddSeries/AddSeriesLayout');
|
||||
var WantedLayout = require('./Wanted/WantedLayout');
|
||||
var CalendarLayout = require('./Calendar/CalendarLayout');
|
||||
var ReleaseLayout = require('./Release/ReleaseLayout');
|
||||
var SystemLayout = require('./System/SystemLayout');
|
||||
var SeasonPassLayout = require('./SeasonPass/SeasonPassLayout');
|
||||
var SeriesEditorLayout = require('./Series/Editor/SeriesEditorLayout');
|
||||
|
||||
addSeries: function (action) {
|
||||
this.setTitle('Add Series');
|
||||
this.showMainRegion(new AddSeriesLayout({action: action}));
|
||||
},
|
||||
|
||||
calendar: function () {
|
||||
this.setTitle('Calendar');
|
||||
this.showMainRegion(new CalendarLayout());
|
||||
},
|
||||
|
||||
settings: function (action) {
|
||||
this.setTitle('Settings');
|
||||
this.showMainRegion(new SettingsLayout({ action: action }));
|
||||
},
|
||||
|
||||
wanted: function (action) {
|
||||
this.setTitle('Wanted');
|
||||
|
||||
this.showMainRegion(new WantedLayout({ action: action }));
|
||||
},
|
||||
|
||||
activity: function (action) {
|
||||
this.setTitle('Activity');
|
||||
|
||||
this.showMainRegion(new ActivityLayout({ action: action }));
|
||||
},
|
||||
|
||||
rss: function () {
|
||||
this.setTitle('RSS');
|
||||
this.showMainRegion(new ReleaseLayout());
|
||||
},
|
||||
|
||||
system: function (action) {
|
||||
this.setTitle('System');
|
||||
this.showMainRegion(new SystemLayout({ action: action }));
|
||||
},
|
||||
|
||||
seasonPass: function () {
|
||||
this.setTitle('Season Pass');
|
||||
this.showMainRegion(new SeasonPassLayout());
|
||||
},
|
||||
|
||||
seriesEditor: function () {
|
||||
this.setTitle('Series Editor');
|
||||
this.showMainRegion(new SeriesEditorLayout());
|
||||
}
|
||||
});
|
||||
});
|
||||
module.exports = NzbDroneController.extend({
|
||||
addSeries : function(action){
|
||||
this.setTitle('Add Series');
|
||||
this.showMainRegion(new AddSeriesLayout({action : action}));
|
||||
},
|
||||
calendar : function(){
|
||||
this.setTitle('Calendar');
|
||||
this.showMainRegion(new CalendarLayout());
|
||||
},
|
||||
settings : function(action){
|
||||
this.setTitle('Settings');
|
||||
this.showMainRegion(new SettingsLayout({action : action}));
|
||||
},
|
||||
wanted : function(action){
|
||||
this.setTitle('Wanted');
|
||||
this.showMainRegion(new WantedLayout({action : action}));
|
||||
},
|
||||
activity : function(action){
|
||||
this.setTitle('Activity');
|
||||
this.showMainRegion(new ActivityLayout({action : action}));
|
||||
},
|
||||
rss : function(){
|
||||
this.setTitle('RSS');
|
||||
this.showMainRegion(new ReleaseLayout());
|
||||
},
|
||||
system : function(action){
|
||||
this.setTitle('System');
|
||||
this.showMainRegion(new SystemLayout({action : action}));
|
||||
},
|
||||
seasonPass : function(){
|
||||
this.setTitle('Season Pass');
|
||||
this.showMainRegion(new SeasonPassLayout());
|
||||
},
|
||||
seriesEditor : function(){
|
||||
this.setTitle('Series Editor');
|
||||
this.showMainRegion(new SeriesEditorLayout());
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user