Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/6588fa8ca3dca87a5c237175642acaa4d06f108a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
11 changed files with
55 additions and
12 deletions
@ -24,4 +24,8 @@ export class JobService extends ServiceAuthHelpers {
public runPlexImporter ( ) : Observable < boolean > {
return this . http . post ( ` ${ this . url } plexUserImporter/ ` , { headers : this.headers } ) . map ( this . extractData ) ;
}
public runEmbyImporter ( ) : Observable < boolean > {
return this . http . post ( ` ${ this . url } embyUserImporter/ ` , { headers : this.headers } ) . map ( this . extractData ) ;
}
}
@ -1,40 +1,47 @@
< settings-menu > < / settings-menu >
< fieldset * ngIf = "settings" >
< legend > Customization< / legend >
< wiki [ url ] = " ' https: / / github . com / tidusjar / Ombi / wiki / Customization-Settings ' " > < / wiki >
< fieldset * ngIf = "settings" >
< legend > Customization< / legend >
< div class = "col-md-6" >
< div class = "form-group" >
< label for = "applicationName" class = "control-label" > Application Name< / label >
< div >
< input type = "text" [ ( ngModel ) ] = " settings . applicationName " class = "form-control form-control-custom " id = "applicationName" name = "applicationName" placeholder = "Ombi" value = "{{settings.applicationName}}" >
< / div >
< / div >
< div class = "form-group" >
< label for = "applicationurl" class = "control-label" > Application URL< / label >
< div >
< input type = "text" [ ( ngModel ) ] = " settings . applicationurl " class = "form-control form-control-custom " id = "applicationurl" name = "applicationurl" placeholder = "http://ombi.io/" value = "{{settings.applicationurl}}" >
< / div >
< / div >
< div class = "form-group" >
< label for = "logo" class = "control-label" > Custom Logo< / label >
< div >
< input type = "text" [ ( ngModel ) ] = " settings . logo " class = "form-control form-control-custom " id = "logo" name = "logo" value = "{{settings.logo}}" tooltipPosition = "top" pTooltip = "Use a URL e.g. www.google.com/logo.png" >
< / div >
< / div >
< div class = "form-group" >
< label for = "logo" class = "control-label" > Logo Preview:< / label >
< div >
< img * ngIf = "settings.logo" [ src ] = " settings . logo " style = "width: 300px" / >
< button ( click ) = " save ( ) " type = "submit" id = "save" class = "btn btn-primary-outline" > Submit< / button >
< / div >
< / div >
< / div >
< div class = "col-md-6" >
< div class = "form-group" >
< div * ngIf = "settings.logo" class = "form-group" >
< label for = "logo" class = "control-label" > Logo Preview:< / label >
< div >
< button ( click ) = " save ( ) " type = "submit" id = "save" class = "btn btn-primary-outline" > Submit< / button >
< img [ src ] = " settings . logo " style = "width: 300px" / >
< / div >
< / div >
< / fieldset >
< / div >
< / fieldset >
@ -1,5 +1,7 @@
< settings-menu > < / settings-menu >
< wiki [ url ] = " ' https: / / github . com / tidusjar / Ombi / wiki / Landing-Page-Settings ' " > < / wiki >
< div * ngIf = "settings" >
< fieldset >
< legend > Landing Page Configuration< / legend >
@ -1,5 +1,6 @@
< settings-menu > < / settings-menu >
< wiki [ url ] = " ' https: / / github . com / tidusjar / Ombi / wiki / Ombi-Settings ' " > < / wiki >
< fieldset * ngIf = "form" >
< legend > Ombi Configuration< / legend >
< form novalidate [ formGroup ] = " form " ( ngSubmit ) = " onSubmit ( form ) " >
@ -28,6 +28,7 @@ import { RadarrComponent } from "./radarr/radarr.component";
import { SonarrComponent } from "./sonarr/sonarr.component" ;
import { UpdateComponent } from "./update/update.component" ;
import { UserManagementComponent } from "./usermanagement/usermanagement.component" ;
import { WikiComponent } from "./wiki.component" ;
import { SettingsMenuComponent } from "./settingsmenu.component" ;
@ -89,6 +90,7 @@ const routes: Routes = [
UserManagementComponent ,
UpdateComponent ,
AboutComponent ,
WikiComponent ,
] ,
exports : [
RouterModule ,
@ -1,4 +1,6 @@
< settings-menu > < / settings-menu >
< wiki [ url ] = " ' https: / / github . com / tidusjar / Ombi / wiki / User-Management-Settings ' " > < / wiki >
< fieldset >
< legend > User Management Settings< / legend >
@ -102,6 +102,7 @@ export class UserManagementComponent implements OnInit {
public runImporter ( ) : void {
this . jobService . runPlexImporter ( ) . subscribe ( ) ;
this . jobService . runPlexImporter ( ) . subscribe ( ) ;
}
private filter ( query : string , users : IUsersModel [ ] ) : IUsersModel [ ] {
@ -0,0 +1,5 @@
< div class = "col-md-12" >
< div class = "col-md-1 col-md-push-11" >
< a href = "{{url}}" target = "_blank" class = "btn btn-sm btn-info-outline" > Wiki< / a >
< / div >
< / div >
@ -0,0 +1,9 @@
import { Component , Input } from "@angular/core" ;
@Component ( {
selector : "wiki" ,
templateUrl : "./wiki.component.html" ,
} )
export class WikiComponent {
@Input ( ) public url : string ;
}
@ -27,7 +27,7 @@
< div class = "form-group" >
< label for = "alias" class = "control-label" > Email Address< / label >
< div >
< input type = "text" [ ( ngModel ) ] = " user . emailAddress " class = "form-control form-control-custom " id = "emailAddress" name = "emailAddress" value = "{{user?.emailAddress}}" [ disabled ] = " user ? . userType ! = 1 " >
< input type = "text" [ ( ngModel ) ] = " user . emailAddress " class = "form-control form-control-custom " id = "emailAddress" name = "emailAddress" value = "{{user?.emailAddress}}" [ disabled ] = " user ? . userType = = 2 " >
< / div >
< / div >
< / div >
@ -6,6 +6,7 @@ using Microsoft.Extensions.Caching.Memory;
using Ombi.Api.Service ;
using Ombi.Attributes ;
using Ombi.Helpers ;
using Ombi.Schedule.Jobs.Emby ;
using Ombi.Schedule.Jobs.Plex ;
using Ombi.Schedule.Ombi ;
@ -17,15 +18,17 @@ namespace Ombi.Controllers
public class JobController : Controller
{
public JobController ( IOmbiAutomaticUpdater updater , IPlexUserImporter userImporter ,
IMemoryCache mem )
IMemoryCache mem , IEmbyUserImporter embyImporter )
{
_updater = updater ;
_plexUserImporter = userImporter ;
_embyUserImporter = embyImporter ;
_memCache = mem ;
}
private readonly IOmbiAutomaticUpdater _updater ;
private readonly IPlexUserImporter _plexUserImporter ;
private readonly IEmbyUserImporter _embyUserImporter ;
private readonly IMemoryCache _memCache ;
[HttpPost("update")]
@ -68,5 +71,12 @@ namespace Ombi.Controllers
BackgroundJob . Enqueue ( ( ) = > _plexUserImporter . Start ( ) ) ;
return true ;
}
[HttpPost("embyuserimporter")]
public bool EmbyUserImporter ( )
{
BackgroundJob . Enqueue ( ( ) = > _embyUserImporter . Start ( ) ) ;
return true ;
}
}
}