You've already forked Sonarr
							
							
				mirror of
				https://github.com/Sonarr/Sonarr.git
				synced 2025-10-31 00:07:55 +02:00 
			
		
		
		
	added files missed duo to aggresive .gitignore
This commit is contained in:
		
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -14,8 +14,8 @@ TestResults | ||||
| *.sln.docstates | ||||
|  | ||||
| # Build results | ||||
| [Dd]ebug/ | ||||
| [Rr]elease/ | ||||
| bin/**/[Dd]ebug/ | ||||
| bin/**/[Rr]elease/ | ||||
| *_i.c | ||||
| *_p.c | ||||
| *.ilk | ||||
|   | ||||
							
								
								
									
										9
									
								
								UI/Release/Collection.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								UI/Release/Collection.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| "use strict"; | ||||
| define(['app', 'Release/Model'], function () { | ||||
|     NzbDrone.Release.Collection = Backbone.PageableCollection.extend({ | ||||
|         url  : NzbDrone.Constants.ApiRoot + '/release', | ||||
|         model: NzbDrone.Release.Model, | ||||
|  | ||||
|         mode : 'client' | ||||
|     }); | ||||
| }); | ||||
							
								
								
									
										83
									
								
								UI/Release/Layout.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								UI/Release/Layout.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,83 @@ | ||||
| "use strict"; | ||||
| define([ | ||||
|     'app', | ||||
|     'Release/Collection', | ||||
|     'Shared/SpinnerView', | ||||
|     'Shared/Toolbar/ToolbarLayout' | ||||
| ], | ||||
|     function () { | ||||
|         NzbDrone.Release.Layout = Backbone.Marionette.Layout.extend({ | ||||
|             template: 'Release/LayoutTemplate', | ||||
|  | ||||
|             regions: { | ||||
|                 grid   : '#x-grid', | ||||
|                 toolbar: '#x-toolbar' | ||||
|             }, | ||||
|  | ||||
|             columns: [ | ||||
|                 { | ||||
|                     name    : 'age', | ||||
|                     label   : 'Age', | ||||
|                     sortable: true, | ||||
|                     cell    : Backgrid.IntegerCell | ||||
|                 }, | ||||
|                 { | ||||
|                     name    : 'size', | ||||
|                     label   : 'Size', | ||||
|                     sortable: true, | ||||
|                     cell    : Backgrid.IntegerCell | ||||
|                 }, | ||||
|                 { | ||||
|                     name    : 'title', | ||||
|                     label   : 'Title', | ||||
|                     sortable: true, | ||||
|                     cell    : Backgrid.StringCell | ||||
|                 }, | ||||
|                 { | ||||
|                     name : 'seasonNumber', | ||||
|                     label: 'season', | ||||
|                     cell : Backgrid.IntegerCell | ||||
|                 }, | ||||
|                 { | ||||
|                     name : 'episodeNumber', | ||||
|                     label: 'episode', | ||||
|                     cell : Backgrid.StringCell | ||||
|                 }, | ||||
|                 { | ||||
|                     name : 'approved', | ||||
|                     label: 'Approved', | ||||
|                     cell : Backgrid.BooleanCell | ||||
|                 } | ||||
|             ], | ||||
|  | ||||
|             showTable: function () { | ||||
|                     if (!this.isClosed) { | ||||
|                     this.grid.show(new Backgrid.Grid( | ||||
|                         { | ||||
|                             row       : Backgrid.Row, | ||||
|                             columns   : this.columns, | ||||
|                             collection: this.collection, | ||||
|                             className : 'table table-hover' | ||||
|                         })); | ||||
|                 } | ||||
|             }, | ||||
|  | ||||
|             initialize: function () { | ||||
|                 this.collection = new NzbDrone.Release.Collection(); | ||||
|                 this.fetchPromise = this.collection.fetch(); | ||||
|             }, | ||||
|  | ||||
|             onShow: function () { | ||||
|  | ||||
|                 var self = this; | ||||
|  | ||||
|                 this.grid.show(new NzbDrone.Shared.SpinnerView()); | ||||
|  | ||||
|                 this.fetchPromise.done(function () { | ||||
|                     self.showTable(); | ||||
|                 }); | ||||
|                 //this.toolbar.show(new NzbDrone.Shared.Toolbar.ToolbarLayout({right: [ viewButtons], context: this})); | ||||
|             } | ||||
|  | ||||
|         }); | ||||
|     }); | ||||
							
								
								
									
										7
									
								
								UI/Release/LayoutTemplate.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								UI/Release/LayoutTemplate.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| <div id="x-toolbar"></div> | ||||
| <div class="row"> | ||||
|     <div class="span12"> | ||||
|         <div id="x-grid"></div> | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
							
								
								
									
										14
									
								
								UI/Release/Model.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								UI/Release/Model.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| "use strict"; | ||||
| define(['app'], function (app) { | ||||
|     NzbDrone.Release.Model = Backbone.Model.extend({ | ||||
|      /*   mutators: { | ||||
|             seasonNumber: function () { | ||||
|                 return this.get('episode').seasonNumber; | ||||
|             }, | ||||
|  | ||||
|             paddedEpisodeNumber: function () { | ||||
|                 return this.get('episode').episodeNumber.pad(2); | ||||
|             } | ||||
|         }*/ | ||||
|     }); | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user