mirror of
https://github.com/Radarr/Radarr
synced 2025-02-25 15:43:08 +00:00
Fixed styling. Fixed definitions not being returned.
This commit is contained in:
parent
94eccc6c14
commit
1fa736c6d8
9 changed files with 146 additions and 138 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace NzbDrone.Core.NetImport.CouchPotato
|
||||
|
@ -48,7 +49,7 @@ public class Info
|
|||
|
||||
public class ReleaseInfo
|
||||
{
|
||||
public int size { get; set; }
|
||||
public double size { get; set; }
|
||||
public int seeders { get; set; }
|
||||
public string protocol { get; set; }
|
||||
public string description { get; set; }
|
||||
|
|
|
@ -18,10 +18,10 @@ public CouchPotatoSettings()
|
|||
[FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")]
|
||||
public new string Link { get; set; }
|
||||
|
||||
[FieldDefinition(2, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")]
|
||||
[FieldDefinition(1, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")]
|
||||
public string Port { get; set; }
|
||||
|
||||
[FieldDefinition(3, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")]
|
||||
[FieldDefinition(2, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")]
|
||||
public string ApiKey { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,17 +26,18 @@ public override IEnumerable<ProviderDefinition> DefaultDefinitions
|
|||
{
|
||||
get
|
||||
{
|
||||
var config = (RSSImportSettings)new RSSImportSettings();
|
||||
config.Link = "http://rss.imdb.com/list/YOURLISTID";
|
||||
|
||||
foreach (var def in base.DefaultDefinitions)
|
||||
{
|
||||
yield return def;
|
||||
}
|
||||
yield return new NetImportDefinition
|
||||
{
|
||||
Name = "IMDb Watchlist",
|
||||
Enabled = config.Validate().IsValid && Enabled,
|
||||
Enabled = Enabled,
|
||||
EnableAuto = true,
|
||||
ProfileId = 1,
|
||||
Implementation = GetType().Name,
|
||||
Settings = config
|
||||
Settings = new RSSImportSettings { Link = "http://rss.imdb.com/list/YOURLISTID" },
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public IEnumerable<TProviderDefinition> GetDefaultDefinitions()
|
|||
{
|
||||
var definition = provider.DefaultDefinitions
|
||||
.OfType<TProviderDefinition>()
|
||||
.FirstOrDefault(v => v.Name == null || v.Name == provider.GetType().Name);
|
||||
.FirstOrDefault(v => v.Name == null || v.Name == provider.Name);
|
||||
|
||||
if (definition == null)
|
||||
{
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
<div class="col-sm-5">
|
||||
<div class="input-group">
|
||||
<label class="checkbox toggle well">
|
||||
<input type="checkbox" name="enableAutomatic" {{#if enableAuto}} checked="checked" {{/if}} />
|
||||
<input type="checkbox" name="enableAuto" {{#if enableAuto}} checked="checked" {{/if}} />
|
||||
<p>
|
||||
<span>Yes</span>
|
||||
<span>No</span>
|
||||
</p>
|
||||
|
||||
<div class="btn btn-primary slide-button"/>
|
||||
<div class="btn btn-primary slide-button"></div>
|
||||
</label>
|
||||
|
||||
<span class="help-inline-checkbox">
|
||||
|
|
|
@ -4,5 +4,10 @@
|
|||
</div>
|
||||
|
||||
<div class="settings">
|
||||
{{#if enableAuto}}
|
||||
<span class="label label-success">Auto</span>
|
||||
{{else}}
|
||||
<span class="label label-default">Auto</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
@import "../../Shared/Styles/clickable.less";
|
||||
|
||||
.indexer-list {
|
||||
li {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
.indexer-item {
|
||||
|
||||
.clickable;
|
||||
|
||||
width: 290px;
|
||||
height: 90px;
|
||||
padding: 10px 15px;
|
||||
|
||||
&.add-card {
|
||||
.center {
|
||||
margin-top: -3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.modal-overflow {
|
||||
overflow-y: visible;
|
||||
}
|
||||
|
||||
.add-indexer {
|
||||
li.add-thingy-item {
|
||||
width: 33%;
|
||||
}
|
||||
}
|
33
src/UI/Settings/NetImport/list.less
Normal file
33
src/UI/Settings/NetImport/list.less
Normal file
|
@ -0,0 +1,33 @@
|
|||
@import "../../Shared/Styles/clickable.less";
|
||||
|
||||
.lists-list {
|
||||
li {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
.list-item {
|
||||
|
||||
.clickable;
|
||||
|
||||
width: 290px;
|
||||
height: 90px;
|
||||
padding: 10px 15px;
|
||||
|
||||
&.add-card {
|
||||
.center {
|
||||
margin-top: -3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.modal-overflow {
|
||||
overflow-y: visible;
|
||||
}
|
||||
|
||||
.add-list {
|
||||
li.add-thingy-item {
|
||||
width: 33%;
|
||||
}
|
||||
}
|
|
@ -7,155 +7,156 @@
|
|||
@import "Metadata/metadata";
|
||||
@import "DownloadClient/downloadclient";
|
||||
@import "thingy";
|
||||
@import "NetImport/list.less";
|
||||
|
||||
li.save-and-add {
|
||||
.clickable;
|
||||
.clickable;
|
||||
|
||||
display: block;
|
||||
padding: 3px 20px;
|
||||
clear: both;
|
||||
font-weight: normal;
|
||||
line-height: 20px;
|
||||
color: rgb(51, 51, 51);
|
||||
white-space: nowrap;
|
||||
display: block;
|
||||
padding: 3px 20px;
|
||||
clear: both;
|
||||
font-weight: normal;
|
||||
line-height: 20px;
|
||||
color: rgb(51, 51, 51);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
li.save-and-add:hover {
|
||||
text-decoration: none;
|
||||
color: rgb(255, 255, 255);
|
||||
background-color: rgb(0, 129, 194);
|
||||
text-decoration: none;
|
||||
color: rgb(255, 255, 255);
|
||||
background-color: rgb(0, 129, 194);
|
||||
}
|
||||
|
||||
.add-card {
|
||||
.clickable;
|
||||
color: #adadad;
|
||||
font-size: 50px;
|
||||
text-align: center;
|
||||
background-color: #f5f5f5;
|
||||
.clickable;
|
||||
color: #adadad;
|
||||
font-size: 50px;
|
||||
text-align: center;
|
||||
background-color: #f5f5f5;
|
||||
|
||||
.center {
|
||||
display: inline-block;
|
||||
padding: 5px 20px 0px;
|
||||
background-color: white;
|
||||
}
|
||||
.center {
|
||||
display: inline-block;
|
||||
padding: 5px 20px 0px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
i {
|
||||
.clickable;
|
||||
}
|
||||
i {
|
||||
.clickable;
|
||||
}
|
||||
}
|
||||
|
||||
.naming-example {
|
||||
display: inline-block;
|
||||
margin-top: 5px;
|
||||
display: inline-block;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.naming-format {
|
||||
width: 500px;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
.settings-controls {
|
||||
margin-top: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.advanced-settings-toggle {
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
|
||||
.checkbox {
|
||||
width : 100px;
|
||||
margin-left : 0px;
|
||||
display : inline-block;
|
||||
padding-top : 0px;
|
||||
margin-bottom : -10px;
|
||||
margin-top : -1px;
|
||||
}
|
||||
.checkbox {
|
||||
width : 100px;
|
||||
margin-left : 0px;
|
||||
display : inline-block;
|
||||
padding-top : 0px;
|
||||
margin-bottom : -10px;
|
||||
margin-top : -1px;
|
||||
}
|
||||
|
||||
.help-inline-checkbox {
|
||||
display : inline-block;
|
||||
margin-top : -3px;
|
||||
margin-bottom : 0;
|
||||
vertical-align : middle;
|
||||
}
|
||||
.help-inline-checkbox {
|
||||
display : inline-block;
|
||||
margin-top : -3px;
|
||||
margin-bottom : 0;
|
||||
vertical-align : middle;
|
||||
}
|
||||
}
|
||||
|
||||
.advanced-setting {
|
||||
display: none;
|
||||
display: none;
|
||||
|
||||
.control-label {
|
||||
color: @brand-warning;
|
||||
}
|
||||
.control-label {
|
||||
color: @brand-warning;
|
||||
}
|
||||
}
|
||||
|
||||
.basic-setting {
|
||||
display: block;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.show-advanced-settings {
|
||||
.advanced-setting {
|
||||
display: block;
|
||||
}
|
||||
.advanced-setting {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.basic-setting {
|
||||
display: none;
|
||||
}
|
||||
.basic-setting {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.api-key {
|
||||
|
||||
input {
|
||||
width : 280px;
|
||||
cursor : text;
|
||||
}
|
||||
input {
|
||||
width : 280px;
|
||||
cursor : text;
|
||||
}
|
||||
}
|
||||
|
||||
.settings-tabs {
|
||||
li>a {
|
||||
padding : 10px;
|
||||
}
|
||||
li>a {
|
||||
padding : 10px;
|
||||
}
|
||||
|
||||
@media (min-width: @screen-sm-min) and (max-width: @screen-md-max) {
|
||||
li {
|
||||
a {
|
||||
white-space : nowrap;
|
||||
padding : 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (min-width: @screen-sm-min) and (max-width: @screen-md-max) {
|
||||
li {
|
||||
a {
|
||||
white-space : nowrap;
|
||||
padding : 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.indicator {
|
||||
display : none;
|
||||
padding-right : 5px;
|
||||
display : none;
|
||||
padding-right : 5px;
|
||||
}
|
||||
|
||||
.add-rule-setting-mapping {
|
||||
cursor : pointer;
|
||||
font-size : 14px;
|
||||
text-align : center;
|
||||
display : inline-block;
|
||||
padding : 2px 6px;
|
||||
cursor : pointer;
|
||||
font-size : 14px;
|
||||
text-align : center;
|
||||
display : inline-block;
|
||||
padding : 2px 6px;
|
||||
|
||||
i {
|
||||
cursor : pointer;
|
||||
}
|
||||
i {
|
||||
cursor : pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.rule-setting-list {
|
||||
|
||||
.rule-setting-header .row {
|
||||
font-weight : bold;
|
||||
line-height : 40px;
|
||||
}
|
||||
.rule-setting-header .row {
|
||||
font-weight : bold;
|
||||
line-height : 40px;
|
||||
}
|
||||
|
||||
.rows .row {
|
||||
line-height : 30px;
|
||||
border-top : 1px solid #ddd;
|
||||
vertical-align : middle;
|
||||
padding : 5px;
|
||||
.rows .row {
|
||||
line-height : 30px;
|
||||
border-top : 1px solid #ddd;
|
||||
vertical-align : middle;
|
||||
padding : 5px;
|
||||
|
||||
i {
|
||||
cursor : pointer;
|
||||
margin-left : 5px;
|
||||
}
|
||||
}
|
||||
i {
|
||||
cursor : pointer;
|
||||
margin-left : 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue