mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07: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.Collections.Generic;
|
||||||
|
using System.Windows.Forms;
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
namespace NzbDrone.Core.NetImport.CouchPotato
|
namespace NzbDrone.Core.NetImport.CouchPotato
|
||||||
|
@ -48,7 +49,7 @@ namespace NzbDrone.Core.NetImport.CouchPotato
|
||||||
|
|
||||||
public class ReleaseInfo
|
public class ReleaseInfo
|
||||||
{
|
{
|
||||||
public int size { get; set; }
|
public double size { get; set; }
|
||||||
public int seeders { get; set; }
|
public int seeders { get; set; }
|
||||||
public string protocol { get; set; }
|
public string protocol { get; set; }
|
||||||
public string description { get; set; }
|
public string description { get; set; }
|
||||||
|
|
|
@ -18,10 +18,10 @@ namespace NzbDrone.Core.NetImport.CouchPotato
|
||||||
[FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")]
|
[FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")]
|
||||||
public new string Link { get; set; }
|
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; }
|
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; }
|
public string ApiKey { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,17 +26,18 @@ namespace NzbDrone.Core.NetImport.RSSImport
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
var config = (RSSImportSettings)new RSSImportSettings();
|
foreach (var def in base.DefaultDefinitions)
|
||||||
config.Link = "http://rss.imdb.com/list/YOURLISTID";
|
{
|
||||||
|
yield return def;
|
||||||
|
}
|
||||||
yield return new NetImportDefinition
|
yield return new NetImportDefinition
|
||||||
{
|
{
|
||||||
Name = "IMDb Watchlist",
|
Name = "IMDb Watchlist",
|
||||||
Enabled = config.Validate().IsValid && Enabled,
|
Enabled = Enabled,
|
||||||
EnableAuto = true,
|
EnableAuto = true,
|
||||||
ProfileId = 1,
|
ProfileId = 1,
|
||||||
Implementation = GetType().Name,
|
Implementation = GetType().Name,
|
||||||
Settings = config
|
Settings = new RSSImportSettings { Link = "http://rss.imdb.com/list/YOURLISTID" },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace NzbDrone.Core.ThingiProvider
|
||||||
{
|
{
|
||||||
var definition = provider.DefaultDefinitions
|
var definition = provider.DefaultDefinitions
|
||||||
.OfType<TProviderDefinition>()
|
.OfType<TProviderDefinition>()
|
||||||
.FirstOrDefault(v => v.Name == null || v.Name == provider.GetType().Name);
|
.FirstOrDefault(v => v.Name == null || v.Name == provider.Name);
|
||||||
|
|
||||||
if (definition == null)
|
if (definition == null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,13 +23,13 @@
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<label class="checkbox toggle well">
|
<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>
|
<p>
|
||||||
<span>Yes</span>
|
<span>Yes</span>
|
||||||
<span>No</span>
|
<span>No</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="btn btn-primary slide-button"/>
|
<div class="btn btn-primary slide-button"></div>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<span class="help-inline-checkbox">
|
<span class="help-inline-checkbox">
|
||||||
|
|
|
@ -4,5 +4,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="settings">
|
<div class="settings">
|
||||||
|
{{#if enableAuto}}
|
||||||
|
<span class="label label-success">Auto</span>
|
||||||
|
{{else}}
|
||||||
|
<span class="label label-default">Auto</span>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</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 "Metadata/metadata";
|
||||||
@import "DownloadClient/downloadclient";
|
@import "DownloadClient/downloadclient";
|
||||||
@import "thingy";
|
@import "thingy";
|
||||||
|
@import "NetImport/list.less";
|
||||||
|
|
||||||
li.save-and-add {
|
li.save-and-add {
|
||||||
.clickable;
|
.clickable;
|
||||||
|
|
||||||
display: block;
|
display: block;
|
||||||
padding: 3px 20px;
|
padding: 3px 20px;
|
||||||
clear: both;
|
clear: both;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
color: rgb(51, 51, 51);
|
color: rgb(51, 51, 51);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
li.save-and-add:hover {
|
li.save-and-add:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: rgb(255, 255, 255);
|
color: rgb(255, 255, 255);
|
||||||
background-color: rgb(0, 129, 194);
|
background-color: rgb(0, 129, 194);
|
||||||
}
|
}
|
||||||
|
|
||||||
.add-card {
|
.add-card {
|
||||||
.clickable;
|
.clickable;
|
||||||
color: #adadad;
|
color: #adadad;
|
||||||
font-size: 50px;
|
font-size: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 5px 20px 0px;
|
padding: 5px 20px 0px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
i {
|
i {
|
||||||
.clickable;
|
.clickable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.naming-example {
|
.naming-example {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.naming-format {
|
.naming-format {
|
||||||
width: 500px;
|
width: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-controls {
|
.settings-controls {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.advanced-settings-toggle {
|
.advanced-settings-toggle {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
.checkbox {
|
.checkbox {
|
||||||
width : 100px;
|
width : 100px;
|
||||||
margin-left : 0px;
|
margin-left : 0px;
|
||||||
display : inline-block;
|
display : inline-block;
|
||||||
padding-top : 0px;
|
padding-top : 0px;
|
||||||
margin-bottom : -10px;
|
margin-bottom : -10px;
|
||||||
margin-top : -1px;
|
margin-top : -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.help-inline-checkbox {
|
.help-inline-checkbox {
|
||||||
display : inline-block;
|
display : inline-block;
|
||||||
margin-top : -3px;
|
margin-top : -3px;
|
||||||
margin-bottom : 0;
|
margin-bottom : 0;
|
||||||
vertical-align : middle;
|
vertical-align : middle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.advanced-setting {
|
.advanced-setting {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
.control-label {
|
.control-label {
|
||||||
color: @brand-warning;
|
color: @brand-warning;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.basic-setting {
|
.basic-setting {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.show-advanced-settings {
|
.show-advanced-settings {
|
||||||
.advanced-setting {
|
.advanced-setting {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.basic-setting {
|
.basic-setting {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.api-key {
|
.api-key {
|
||||||
|
|
||||||
input {
|
input {
|
||||||
width : 280px;
|
width : 280px;
|
||||||
cursor : text;
|
cursor : text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-tabs {
|
.settings-tabs {
|
||||||
li>a {
|
li>a {
|
||||||
padding : 10px;
|
padding : 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: @screen-sm-min) and (max-width: @screen-md-max) {
|
@media (min-width: @screen-sm-min) and (max-width: @screen-md-max) {
|
||||||
li {
|
li {
|
||||||
a {
|
a {
|
||||||
white-space : nowrap;
|
white-space : nowrap;
|
||||||
padding : 10px;
|
padding : 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.indicator {
|
.indicator {
|
||||||
display : none;
|
display : none;
|
||||||
padding-right : 5px;
|
padding-right : 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.add-rule-setting-mapping {
|
.add-rule-setting-mapping {
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
font-size : 14px;
|
font-size : 14px;
|
||||||
text-align : center;
|
text-align : center;
|
||||||
display : inline-block;
|
display : inline-block;
|
||||||
padding : 2px 6px;
|
padding : 2px 6px;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.rule-setting-list {
|
.rule-setting-list {
|
||||||
|
|
||||||
.rule-setting-header .row {
|
.rule-setting-header .row {
|
||||||
font-weight : bold;
|
font-weight : bold;
|
||||||
line-height : 40px;
|
line-height : 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rows .row {
|
.rows .row {
|
||||||
line-height : 30px;
|
line-height : 30px;
|
||||||
border-top : 1px solid #ddd;
|
border-top : 1px solid #ddd;
|
||||||
vertical-align : middle;
|
vertical-align : middle;
|
||||||
padding : 5px;
|
padding : 5px;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
margin-left : 5px;
|
margin-left : 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue