Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/951e0837566060a54e3aed4aa10049571096982a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
6 changed files with
32 additions and
20 deletions
@ -130,3 +130,4 @@ UpdateLogs/
NzbDrone.Web/cassette-cache/*
*.eq
NzbDrone.Web/_backboneApp/.idea/workspace.xml
*/.idea/workspace.xml
@ -12,7 +12,7 @@ namespace NzbDrone.Api.Extentions
{
DateTimeZoneHandling = DateTimeZoneHandling . Utc ,
NullValueHandling = NullValueHandling . Ignore ,
Formatting = Formatting . None ,
Formatting = Formatting . Indented ,
DefaultValueHandling = DefaultValueHandling . IgnoreAndPopulate
} ;
@ -20,7 +20,7 @@ namespace NzbDrone.Api.Extentions
{
DateTimeZoneHandling = Settings . DateTimeZoneHandling ,
NullValueHandling = NullValueHandling . Ignore ,
Formatting = Formatting . None ,
Formatting = Formatting . Indented ,
DefaultValueHandling = DefaultValueHandling . IgnoreAndPopulate ,
ContractResolver = new CamelCasePropertyNamesContractResolver ( )
} ;
@ -1,14 +1,7 @@
'use strict' ;
define ( [
'app' ,
'AddSeries/RootFolders/RootFolderCollection' ,
'Quality/QualityProfileCollection' ,
'Shared/NotificationCollection' ,
'AddSeries/Existing/UnmappedFolderModel' ,
'AddSeries/SearchResultCollection' ,
'Series/SeriesModel' ] ,
function ( app , rootFolders , qualityProfileCollection , notificationCollection ) {
'app' , 'AddSeries/RootFolders/RootFolderCollection' , 'Quality/QualityProfileCollection' , 'Shared/NotificationCollection' , 'AddSeries/Existing/UnmappedFolderModel' , 'AddSeries/SearchResultCollection' , 'Series/SeriesModel' ] , function ( app , rootFolders , qualityProfileCollection , notificationCollection ) {
NzbDrone . AddSeries . Existing . FolderMatchResultView = Backbone . Marionette . ItemView . extend ( {
@ -34,6 +27,21 @@ define([
var self = this ;
var seriesCollection = new NzbDrone . Series . SeriesCollection ( ) ;
seriesCollection . add ( model , { success : function ( ) {
var notificationModel = new NzbDrone . Shared . NotificationModel ( {
title : 'Added' ,
message : title ,
level : 'success'
} ) ;
notificationCollection . push ( notificationModel ) ;
self . close ( ) ;
}
} ) ;
return ;
model . save ( undefined , {
success : function ( ) {
var notificationModel = new NzbDrone . Shared . NotificationModel ( {
@ -73,6 +73,10 @@ body {
padding-right : 10px ;
}
# notification-region pre {
font-size : 12px ;
}
. line {
height : 4em ;
@ -2,16 +2,15 @@
NzbDrone . Shared . NotificationModel = Backbone . Model . extend ( {
mutators : {
pre : function ( ) {
try {
if ( this . get ( 'message' ) ) {
return this . get ( 'message' ) . lines ( ) . lenght > 1 ;
}
} catch ( error ) {
return false ;
}
preFormattedMessage : function ( ) {
return this . get ( 'message' ) . replace ( /\\r\\n/g , '<br>' ) ;
} ,
isPreFormatted : function ( ) {
return this . get ( 'message' ) . indexOf ( '\\r\\n' ) !== - 1 ;
} ,
iconClass : function ( ) {
if ( this . has ( 'icon' ) ) {
@ -1,8 +1,8 @@
< div class = "alert alert-{{level}}" >
< button type = "button" class = "close x-close" > × < / button >
< i class = "{{iconClass}}" / > < strong > {{title}}< / strong >
{{#if p reFormatted}}
< pre > {{message }}< / pre >
{{#if isP reFormatted}}
< pre > {{{preFormattedMessage} }}< / pre >
{{else}}
{{message}}
{{/if}}