mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Moar require
This commit is contained in:
parent
ee28926da0
commit
e856a31a4d
@ -2,7 +2,6 @@
|
|||||||
<FileVersion>1</FileVersion>
|
<FileVersion>1</FileVersion>
|
||||||
<AutoEnableOnStartup>False</AutoEnableOnStartup>
|
<AutoEnableOnStartup>False</AutoEnableOnStartup>
|
||||||
<AllowParallelTestExecution>true</AllowParallelTestExecution>
|
<AllowParallelTestExecution>true</AllowParallelTestExecution>
|
||||||
<AllowTestsToRunInParallelWithThemselves>true</AllowTestsToRunInParallelWithThemselves>
|
|
||||||
<FrameworkUtilisationTypeForNUnit>UseDynamicAnalysis</FrameworkUtilisationTypeForNUnit>
|
<FrameworkUtilisationTypeForNUnit>UseDynamicAnalysis</FrameworkUtilisationTypeForNUnit>
|
||||||
<FrameworkUtilisationTypeForGallio>Disabled</FrameworkUtilisationTypeForGallio>
|
<FrameworkUtilisationTypeForGallio>Disabled</FrameworkUtilisationTypeForGallio>
|
||||||
<FrameworkUtilisationTypeForMSpec>Disabled</FrameworkUtilisationTypeForMSpec>
|
<FrameworkUtilisationTypeForMSpec>Disabled</FrameworkUtilisationTypeForMSpec>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
define(['app', 'Shared/FormatHelpers','backgrid'], function () {
|
define(['app', 'Shared/FormatHelpers', 'Cells/NzbDroneCell'], function () {
|
||||||
NzbDrone.Cells.AirDateCell = Backgrid.Cell.extend({
|
return NzbDrone.Cells.NzbDroneCell.extend({
|
||||||
className: 'air-date-cell',
|
className: 'air-date-cell',
|
||||||
|
|
||||||
render: function () {
|
render: function () {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
define(['app', 'Cells/NzbDroneCell'], function () {
|
define(['app', 'Cells/NzbDroneCell'], function () {
|
||||||
NzbDrone.Cells.EpisodeNumberCell = NzbDrone.Cells.NzbDroneCell.extend({
|
return NzbDrone.Cells.NzbDroneCell.extend({
|
||||||
|
|
||||||
className: 'episode-number-cell',
|
className: 'episode-number-cell',
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
define(['app','backgrid' ], function () {
|
define(['app','cells/nzbdronecell' ], function () {
|
||||||
NzbDrone.Cells.EpisodeStatusCell = Backgrid.Cell.extend({
|
return NzbDrone.Cells.NzbDroneCell.extend({
|
||||||
|
|
||||||
className: 'episode-status-cell',
|
className: 'episode-status-cell',
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
define(['app', 'Cells/NzbDroneCell'], function () {
|
define(['app', 'Cells/NzbDroneCell'], function () {
|
||||||
NzbDrone.Cells.EpisodeTitleCell = NzbDrone.Cells.NzbDroneCell.extend({
|
return NzbDrone.Cells.NzbDroneCell.extend({
|
||||||
|
|
||||||
className: 'episode-title-cell',
|
className: 'episode-title-cell',
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
define(['app', 'Cells/TemplatedCell'], function () {
|
define(['app', 'Cells/TemplatedCell'], function (App, TemplatedCell) {
|
||||||
NzbDrone.Cells.QualityCell = NzbDrone.Cells.TemplatedCell.extend({
|
return TemplatedCell.extend({
|
||||||
|
|
||||||
className: 'quality-cell',
|
className: 'quality-cell',
|
||||||
template : 'Cells/QualityTemplate'
|
template : 'Cells/QualityTemplate'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
define(['app','Cells/NzbDroneCell'], function () {
|
define(['app','Cells/NzbDroneCell'], function () {
|
||||||
NzbDrone.Cells.RelativeDateCell = NzbDrone.Cells.NzbDroneCell.extend({
|
return NzbDrone.Cells.NzbDroneCell.extend({
|
||||||
|
|
||||||
className : 'relative-date-cell',
|
className : 'relative-date-cell',
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
define(['app','backgrid'], function () {
|
define(['app','cells/nzbdronecell'], function () {
|
||||||
Backgrid.SeriesStatusCell = Backgrid.Cell.extend({
|
return NzbDrone.Cells.NzbDroneCell.extend({
|
||||||
className: 'series-status-cell',
|
className: 'series-status-cell',
|
||||||
|
|
||||||
render: function () {
|
render: function () {
|
||||||
@ -22,6 +22,4 @@ define(['app','backgrid'], function () {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return Backgrid.SeriesStatusCell;
|
|
||||||
});
|
});
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
define(['app', 'Cells/TemplatedCell'], function () {
|
define(['app', 'Cells/TemplatedCell'], function (App, TemplatedCell) {
|
||||||
NzbDrone.Cells.SeriesTitleCell = NzbDrone.Cells.TemplatedCell.extend({
|
return TemplatedCell.extend({
|
||||||
|
|
||||||
className: 'series-title',
|
className: 'series-title',
|
||||||
template : 'Cells/SeriesTitleTemplate'
|
template : 'Cells/SeriesTitleTemplate'
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
define(['app','Cells/NzbDroneCell'], function () {
|
define(['app','Cells/NzbDroneCell'], function () {
|
||||||
NzbDrone.Cells.TemplatedCell = NzbDrone.Cells.NzbDroneCell.extend({
|
return NzbDrone.Cells.NzbDroneCell.extend({
|
||||||
|
|
||||||
|
|
||||||
render: function () {
|
render: function () {
|
||||||
|
|
||||||
var templateName = this.column.get('template') || this.template;
|
var templateName = this.column.get('template') || this.template;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
define(['app', 'Episode/Layout'], function () {
|
define(['app', 'Episode/Layout'], function () {
|
||||||
NzbDrone.Cells.ToggleCell = Backgrid.Cell.extend({
|
return Backgrid.Cell.extend({
|
||||||
|
|
||||||
className: 'toggle-cell clickable',
|
className: 'toggle-cell clickable',
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@ define(
|
|||||||
'app',
|
'app',
|
||||||
'Settings/SettingsLayout',
|
'Settings/SettingsLayout',
|
||||||
'AddSeries/AddSeriesLayout',
|
'AddSeries/AddSeriesLayout',
|
||||||
|
'Missing/MissingLayout',
|
||||||
|
'History/HistoryLayout',
|
||||||
'Form/FormBuilder',
|
'Form/FormBuilder',
|
||||||
'Series/Index/SeriesIndexLayout',
|
'Series/Index/SeriesIndexLayout',
|
||||||
'Calendar/CalendarLayout',
|
'Calendar/CalendarLayout',
|
||||||
@ -14,12 +16,10 @@ define(
|
|||||||
'Series/EpisodeCollection',
|
'Series/EpisodeCollection',
|
||||||
'Logs/Layout',
|
'Logs/Layout',
|
||||||
'Release/Layout',
|
'Release/Layout',
|
||||||
'Missing/MissingLayout',
|
|
||||||
'History/HistoryLayout',
|
|
||||||
'Shared/FormatHelpers',
|
'Shared/FormatHelpers',
|
||||||
'Shared/TemplateHelpers',
|
'Shared/TemplateHelpers',
|
||||||
'Shared/Footer/View'
|
'Shared/Footer/View'
|
||||||
], function (App, SettingsLayout, AddSeriesLayout) {
|
], function (App, SettingsLayout, AddSeriesLayout, MissingLayout, HistoryLayout) {
|
||||||
var controller = Backbone.Marionette.Controller.extend({
|
var controller = Backbone.Marionette.Controller.extend({
|
||||||
|
|
||||||
series : function () {
|
series : function () {
|
||||||
@ -58,13 +58,13 @@ define(
|
|||||||
missing: function () {
|
missing: function () {
|
||||||
this._setTitle('Missing');
|
this._setTitle('Missing');
|
||||||
|
|
||||||
App.mainRegion.show(new NzbDrone.Missing.MissingLayout());
|
App.mainRegion.show(new MissingLayout());
|
||||||
},
|
},
|
||||||
|
|
||||||
history: function () {
|
history: function () {
|
||||||
this._setTitle('History');
|
this._setTitle('History');
|
||||||
|
|
||||||
App.mainRegion.show(new NzbDrone.History.HistoryLayout());
|
App.mainRegion.show(new HistoryLayout());
|
||||||
},
|
},
|
||||||
|
|
||||||
rss: function () {
|
rss: function () {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
define(['app', 'History/Model', 'backbone.pageable'], function (App, HistoryModel, PageableCollection) {
|
define(['app', 'History/Model', 'backbone.pageable'], function (App, HistoryModel, PageableCollection) {
|
||||||
NzbDrone.History.Collection = PageableCollection.extend({
|
return PageableCollection.extend({
|
||||||
url : NzbDrone.Constants.ApiRoot + '/history',
|
url : NzbDrone.Constants.ApiRoot + '/history',
|
||||||
model : NzbDrone.History.Model,
|
model : NzbDrone.History.Model,
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
define(['app', 'Cells/NzbDroneCell' ], function () {
|
define(['app', 'Cells/NzbDroneCell' ], function () {
|
||||||
NzbDrone.History.EventTypeCell = NzbDrone.Cells.NzbDroneCell.extend({
|
return NzbDrone.Cells.NzbDroneCell.extend({
|
||||||
|
|
||||||
className: 'history-event-type-cell',
|
className: 'history-event-type-cell',
|
||||||
|
|
||||||
|
@ -14,8 +14,20 @@ define([
|
|||||||
'Shared/Grid/HeaderCell',
|
'Shared/Grid/HeaderCell',
|
||||||
'Shared/LoadingView'
|
'Shared/LoadingView'
|
||||||
],
|
],
|
||||||
function () {
|
function (App,
|
||||||
NzbDrone.History.HistoryLayout = Backbone.Marionette.Layout.extend({
|
HistoryCollection,
|
||||||
|
EventTypeCell,
|
||||||
|
RelativeDateCell,
|
||||||
|
TemplatedCell,
|
||||||
|
SeriesTitleCell,
|
||||||
|
EpisodeNumberCell,
|
||||||
|
EpisodeTitleCell,
|
||||||
|
QualityCell,
|
||||||
|
ToolbarLayout,
|
||||||
|
Pager,
|
||||||
|
HeaderCell,
|
||||||
|
LoadingView) {
|
||||||
|
return Backbone.Marionette.Layout.extend({
|
||||||
template: 'History/HistoryLayoutTemplate',
|
template: 'History/HistoryLayoutTemplate',
|
||||||
|
|
||||||
regions: {
|
regions: {
|
||||||
@ -28,34 +40,34 @@ define([
|
|||||||
{
|
{
|
||||||
name: 'eventType',
|
name: 'eventType',
|
||||||
label:'',
|
label:'',
|
||||||
cell : NzbDrone.History.EventTypeCell
|
cell : EventTypeCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'series',
|
name : 'series',
|
||||||
label : 'Series',
|
label : 'Series',
|
||||||
cell : NzbDrone.Cells.SeriesTitleCell
|
cell : SeriesTitleCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'episode',
|
name : 'episode',
|
||||||
label : 'Episode',
|
label : 'Episode',
|
||||||
sortable: false,
|
sortable: false,
|
||||||
cell : NzbDrone.Cells.EpisodeNumberCell
|
cell : EpisodeNumberCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'episode',
|
name : 'episode',
|
||||||
label : 'Episode Title',
|
label : 'Episode Title',
|
||||||
sortable: false,
|
sortable: false,
|
||||||
cell : NzbDrone.Cells.EpisodeTitleCell
|
cell : EpisodeTitleCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'quality',
|
name : 'quality',
|
||||||
label: 'Quality',
|
label : 'Quality',
|
||||||
cell : NzbDrone.Cells.QualityCell
|
cell : QualityCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'date',
|
name : 'date',
|
||||||
label: 'Date',
|
label: 'Date',
|
||||||
cell : NzbDrone.Cells.RelativeDateCell
|
cell : RelativeDateCell
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -69,7 +81,7 @@ define([
|
|||||||
className : 'table table-hover'
|
className : 'table table-hover'
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this.pager.show(new NzbDrone.Shared.Grid.Pager({
|
this.pager.show(new Pager({
|
||||||
columns : this.columns,
|
columns : this.columns,
|
||||||
collection: this.historyCollection
|
collection: this.historyCollection
|
||||||
}));
|
}));
|
||||||
@ -78,9 +90,9 @@ define([
|
|||||||
onShow: function () {
|
onShow: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
this.history.show(new NzbDrone.Shared.LoadingView());
|
this.history.show(new LoadingView());
|
||||||
|
|
||||||
this.historyCollection = new NzbDrone.History.Collection();
|
this.historyCollection = new HistoryCollection();
|
||||||
this.historyCollection.fetch()
|
this.historyCollection.fetch()
|
||||||
.done(function () {
|
.done(function () {
|
||||||
self._showTable();
|
self._showTable();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
define(['app', 'Series/EpisodeModel', 'backbone.pageable'], function (app, EpisodeModel, PagableCollection) {
|
define(['app', 'Series/EpisodeModel', 'backbone.pageable'], function (app, EpisodeModel, PagableCollection) {
|
||||||
NzbDrone.Missing.Collection = PagableCollection.extend({
|
return PagableCollection.extend({
|
||||||
url : NzbDrone.Constants.ApiRoot + '/missing',
|
url : NzbDrone.Constants.ApiRoot + '/missing',
|
||||||
model: NzbDrone.Series.EpisodeModel,
|
model: NzbDrone.Series.EpisodeModel,
|
||||||
|
|
||||||
|
@ -10,11 +10,20 @@ define(
|
|||||||
'Cells/SeriesTitleCell',
|
'Cells/SeriesTitleCell',
|
||||||
'Cells/EpisodeNumberCell',
|
'Cells/EpisodeNumberCell',
|
||||||
'Cells/EpisodeTitleCell',
|
'Cells/EpisodeTitleCell',
|
||||||
'Cells/AirDateCell',
|
|
||||||
'Shared/Grid/Pager',
|
'Shared/Grid/Pager',
|
||||||
'Shared/LoadingView'
|
'Shared/LoadingView'
|
||||||
], function (App, MissingRow) {
|
], function (App,
|
||||||
NzbDrone.Missing.MissingLayout = Backbone.Marionette.Layout.extend({
|
MissingRow,
|
||||||
|
MissingCollection,
|
||||||
|
AirDateCell,
|
||||||
|
SeriesStatusCell,
|
||||||
|
ToolbarLayout,
|
||||||
|
SeriesTitleCell,
|
||||||
|
EpisodeNumberCell,
|
||||||
|
EpisodeTitleCell,
|
||||||
|
Pager,
|
||||||
|
LoadingView) {
|
||||||
|
return Backbone.Marionette.Layout.extend({
|
||||||
template: 'Missing/MissingLayoutTemplate',
|
template: 'Missing/MissingLayoutTemplate',
|
||||||
|
|
||||||
regions: {
|
regions: {
|
||||||
@ -29,24 +38,24 @@ define(
|
|||||||
name : 'series',
|
name : 'series',
|
||||||
label : 'Series Title',
|
label : 'Series Title',
|
||||||
sortable: false,
|
sortable: false,
|
||||||
cell : NzbDrone.Cells.SeriesTitleCell
|
cell : SeriesTitleCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'this',
|
name : 'this',
|
||||||
label : 'Episode',
|
label : 'Episode',
|
||||||
sortable: false,
|
sortable: false,
|
||||||
cell : NzbDrone.Cells.EpisodeNumberCell
|
cell : EpisodeNumberCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'this',
|
name : 'this',
|
||||||
label : 'Episode Title',
|
label : 'Episode Title',
|
||||||
sortable: false,
|
sortable: false,
|
||||||
cell : NzbDrone.Cells.EpisodeTitleCell
|
cell : EpisodeTitleCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'airDate',
|
name : 'airDate',
|
||||||
label: 'Air Date',
|
label : 'Air Date',
|
||||||
cell : NzbDrone.Cells.AirDateCell
|
cell : AirDateCell
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -67,9 +76,9 @@ define(
|
|||||||
onShow: function () {
|
onShow: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
this.missing.show(new NzbDrone.Shared.LoadingView());
|
this.missing.show(new LoadingView());
|
||||||
|
|
||||||
this.missingCollection = new NzbDrone.Missing.Collection();
|
this.missingCollection = new MissingCollection();
|
||||||
this.missingCollection.fetch().done(function () {
|
this.missingCollection.fetch().done(function () {
|
||||||
self._showTable();
|
self._showTable();
|
||||||
});
|
});
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
define(['app', 'Series/Details/SeasonLayout', 'Series/SeasonCollection', 'Series/EpisodeCollection'], function () {
|
define(['app',
|
||||||
|
'Series/Details/SeasonLayout',
|
||||||
|
'Series/SeasonCollection',
|
||||||
|
'Series/EpisodeCollection'],
|
||||||
|
function (App, SeasonLayout, SeasonCollection, EpisodeCollection) {
|
||||||
NzbDrone.Series.Details.SeasonCollectionView = Backbone.Marionette.CollectionView.extend({
|
NzbDrone.Series.Details.SeasonCollectionView = Backbone.Marionette.CollectionView.extend({
|
||||||
|
|
||||||
itemView : NzbDrone.Series.Details.SeasonLayout,
|
itemView : SeasonLayout,
|
||||||
|
|
||||||
initialize: function (options) {
|
initialize: function (options) {
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ define([
|
|||||||
'Cells/EpisodeTitleCell',
|
'Cells/EpisodeTitleCell',
|
||||||
'Cells/AirDateCell',
|
'Cells/AirDateCell',
|
||||||
'Cells/ToggleCell'],
|
'Cells/ToggleCell'],
|
||||||
function () {
|
function (App, EpisodeStatusCell, EpisodeTitleCell, AirDateCell, ToggleCell) {
|
||||||
NzbDrone.Series.Details.SeasonLayout = Backbone.Marionette.Layout.extend({
|
return Backbone.Marionette.Layout.extend({
|
||||||
template: 'Series/Details/SeasonLayoutTemplate',
|
template: 'Series/Details/SeasonLayoutTemplate',
|
||||||
|
|
||||||
regions: {
|
regions: {
|
||||||
@ -18,7 +18,7 @@ define([
|
|||||||
{
|
{
|
||||||
name : 'ignored',
|
name : 'ignored',
|
||||||
label : '',
|
label : '',
|
||||||
cell : NzbDrone.Cells.ToggleCell,
|
cell : ToggleCell,
|
||||||
trueClass : 'icon-bookmark-empty',
|
trueClass : 'icon-bookmark-empty',
|
||||||
falseClass: 'icon-bookmark'
|
falseClass: 'icon-bookmark'
|
||||||
},
|
},
|
||||||
@ -33,17 +33,17 @@ define([
|
|||||||
{
|
{
|
||||||
name : 'this',
|
name : 'this',
|
||||||
label: 'Title',
|
label: 'Title',
|
||||||
cell : NzbDrone.Cells.EpisodeTitleCell
|
cell : EpisodeTitleCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'airDate',
|
name : 'airDate',
|
||||||
label: 'Air Date',
|
label: 'Air Date',
|
||||||
cell : NzbDrone.Cells.AirDateCell
|
cell : AirDateCell
|
||||||
} ,
|
} ,
|
||||||
{
|
{
|
||||||
name : 'status',
|
name : 'status',
|
||||||
label: 'Status',
|
label: 'Status',
|
||||||
cell : NzbDrone.Cells.EpisodeStatusCell
|
cell : EpisodeStatusCell
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ define([
|
|||||||
'Series/SeriesCollection',
|
'Series/SeriesCollection',
|
||||||
'Cells/AirDateCell',
|
'Cells/AirDateCell',
|
||||||
'Cells/SeriesTitleCell',
|
'Cells/SeriesTitleCell',
|
||||||
|
'Cells/SeriesStatusCell',
|
||||||
'Cells/TemplatedCell',
|
'Cells/TemplatedCell',
|
||||||
'Series/Index/Table/SeriesStatusCell',
|
|
||||||
'Shared/Toolbar/ToolbarLayout',
|
'Shared/Toolbar/ToolbarLayout',
|
||||||
'Config',
|
'Config',
|
||||||
'Shared/LoadingView'
|
'Shared/LoadingView'
|
||||||
@ -21,8 +21,8 @@ define([
|
|||||||
SeriesCollection,
|
SeriesCollection,
|
||||||
AirDateCell,
|
AirDateCell,
|
||||||
SeriesTitleCell,
|
SeriesTitleCell,
|
||||||
TemplatedCell,
|
|
||||||
SeriesStatusCell,
|
SeriesStatusCell,
|
||||||
|
TemplatedCell,
|
||||||
ToolbarLayout,
|
ToolbarLayout,
|
||||||
Config,
|
Config,
|
||||||
LoadingView)
|
LoadingView)
|
||||||
@ -39,7 +39,7 @@ define([
|
|||||||
{
|
{
|
||||||
name : 'status',
|
name : 'status',
|
||||||
label: '',
|
label: '',
|
||||||
cell : 'seriesStatus'
|
cell : SeriesStatusCell
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'this',
|
name : 'this',
|
||||||
|
Loading…
Reference in New Issue
Block a user