diff --git a/Ombi/Ombi/wwwroot/app/settings/ombi/ombi.component.ts b/Ombi/Ombi/wwwroot/app/settings/ombi/ombi.component.ts
index d1aba3a99..20d9cd5d6 100644
--- a/Ombi/Ombi/wwwroot/app/settings/ombi/ombi.component.ts
+++ b/Ombi/Ombi/wwwroot/app/settings/ombi/ombi.component.ts
@@ -2,6 +2,7 @@
import { IOmbiSettings } from '../interfaces/ISettings'
import { SettingsService } from '../../services/settings.service';
+import { NotificationService } from "../../services/notification.service";
@Component({
selector: 'ombi',
@@ -10,11 +11,18 @@ import { SettingsService } from '../../services/settings.service';
})
export class OmbiComponent implements OnInit {
- constructor(private settingsService: SettingsService) { }
+ constructor(private settingsService: SettingsService, private notificationService: NotificationService) { }
settings: IOmbiSettings;
ngOnInit(): void {
+ this.settings = {
+ apiKey: "",
+ port: 3579,
+ wizard: true,
+ collectAnalyticData: true,
+ id:0
+ }
this.settingsService.getOmbi().subscribe(x => this.settings = x);
}
@@ -22,4 +30,14 @@ export class OmbiComponent implements OnInit {
refreshApiKey() {
}
+
+ save() {
+ this.settingsService.saveOmbi(this.settings).subscribe(x => {
+ if (x) {
+ this.notificationService.success("Settings Saved", "Successfully saved Ombi settings");
+ } else {
+ this.notificationService.success("Settings Saved", "There was an error when saving the Ombi settings");
+ }
+ });
+ }
}
\ No newline at end of file
diff --git a/Ombi/Ombi/wwwroot/app/settings/plex/plex.component.html b/Ombi/Ombi/wwwroot/app/settings/plex/plex.component.html
new file mode 100644
index 000000000..b48ff1fc0
--- /dev/null
+++ b/Ombi/Ombi/wwwroot/app/settings/plex/plex.component.html
@@ -0,0 +1,85 @@
+
+
+
\ No newline at end of file
diff --git a/Ombi/Ombi/wwwroot/app/settings/plex/plex.component.ts b/Ombi/Ombi/wwwroot/app/settings/plex/plex.component.ts
new file mode 100644
index 000000000..21ff8bec7
--- /dev/null
+++ b/Ombi/Ombi/wwwroot/app/settings/plex/plex.component.ts
@@ -0,0 +1,41 @@
+import { Component, OnInit } from '@angular/core';
+
+import { IPlexSettings } from '../interfaces/ISettings'
+import { SettingsService } from '../../services/settings.service';
+import { NotificationService } from "../../services/notification.service";
+
+@Component({
+ selector: 'ombi',
+ moduleId: module.id,
+ templateUrl: './plex.component.html',
+})
+export class PlexComponent implements OnInit {
+
+ constructor(private settingsService: SettingsService, private notificationService: NotificationService) { }
+
+ settings: IPlexSettings;
+ username: string;
+ password:string;
+
+ ngOnInit(): void {
+ this.settingsService.getPlex().subscribe(x => this.settings = x);
+ }
+
+ requestToken() {
+ // TODO Plex Service
+ }
+
+ testPlex() {
+ // TODO Plex Service
+ }
+
+ save() {
+ this.settingsService.savePlex(this.settings).subscribe(x => {
+ if (x) {
+ this.notificationService.success("Settings Saved", "Successfully saved Plex settings");
+ } else {
+ this.notificationService.success("Settings Saved", "There was an error when saving the Plex settings");
+ }
+ });
+ }
+}
\ No newline at end of file
diff --git a/Ombi/Ombi/wwwroot/app/settings/settings.module.ts b/Ombi/Ombi/wwwroot/app/settings/settings.module.ts
index 255b0cb89..29665748b 100644
--- a/Ombi/Ombi/wwwroot/app/settings/settings.module.ts
+++ b/Ombi/Ombi/wwwroot/app/settings/settings.module.ts
@@ -8,13 +8,17 @@ import { AuthGuard } from '../auth/auth.guard';
import { AuthModule } from '../auth/auth.module';
import { OmbiComponent } from './ombi/ombi.component'
+import { PlexComponent } from './plex/plex.component'
+import { EmbyComponent } from './emby/emby.component'
import { SettingsMenuComponent } from './settingsmenu.component';
import { MenuModule, InputSwitchModule, InputTextModule } from 'primeng/primeng';
const routes: Routes = [
- { path: 'Settings/Ombi', component: OmbiComponent, canActivate: [AuthGuard] }
+ { path: 'Settings/Ombi', component: OmbiComponent, canActivate: [AuthGuard] },
+ { path: 'Settings/Plex', component: PlexComponent, canActivate: [AuthGuard] },
+ { path: 'Settings/Emby', component: EmbyComponent, canActivate: [AuthGuard] },
];
@NgModule({
@@ -29,7 +33,9 @@ const routes: Routes = [
],
declarations: [
SettingsMenuComponent,
- OmbiComponent
+ OmbiComponent,
+ PlexComponent,
+ EmbyComponent,
],
exports: [
RouterModule
diff --git a/Ombi/Ombi/wwwroot/app/wizard/mediaserver/mediaserver.component.html b/Ombi/Ombi/wwwroot/app/wizard/mediaserver/mediaserver.component.html
new file mode 100644
index 000000000..7537c8513
--- /dev/null
+++ b/Ombi/Ombi/wwwroot/app/wizard/mediaserver/mediaserver.component.html
@@ -0,0 +1,17 @@
+
\ No newline at end of file
diff --git a/Ombi/Ombi/wwwroot/app/wizard/mediaserver/mediaserver.component.ts b/Ombi/Ombi/wwwroot/app/wizard/mediaserver/mediaserver.component.ts
new file mode 100644
index 000000000..bd8451705
--- /dev/null
+++ b/Ombi/Ombi/wwwroot/app/wizard/mediaserver/mediaserver.component.ts
@@ -0,0 +1,22 @@
+import { Component } from '@angular/core';
+import { Router } from '@angular/router';
+
+
+@Component({
+ selector: 'ombi',
+ moduleId: module.id,
+ templateUrl: './mediaserver.component.html',
+})
+export class MediaServerComponent {
+ constructor(private router: Router) {
+
+ }
+
+ plex() {
+ this.router.navigate(['Wizard/Plex']);
+ }
+
+ emby() {
+ this.router.navigate(['Wizard/Emby']);
+ }
+}
\ No newline at end of file
diff --git a/Ombi/Ombi/wwwroot/app/wizard/welcome/welcome.component.html b/Ombi/Ombi/wwwroot/app/wizard/welcome/welcome.component.html
new file mode 100644
index 000000000..98cca17ef
--- /dev/null
+++ b/Ombi/Ombi/wwwroot/app/wizard/welcome/welcome.component.html
@@ -0,0 +1,17 @@
+
+
+
diff --git a/Ombi/Ombi/wwwroot/app/wizard/welcome/welcome.component.ts b/Ombi/Ombi/wwwroot/app/wizard/welcome/welcome.component.ts
new file mode 100644
index 000000000..f96fd46b1
--- /dev/null
+++ b/Ombi/Ombi/wwwroot/app/wizard/welcome/welcome.component.ts
@@ -0,0 +1,18 @@
+import { Component } from '@angular/core';
+import { Router } from '@angular/router';
+
+
+@Component({
+ selector: 'ombi',
+ moduleId: module.id,
+ templateUrl: './welcome.component.html',
+})
+export class WelcomeComponent {
+ constructor(private router: Router) {
+
+ }
+
+ next() {
+ this.router.navigate(['Wizard/MediaServer']);
+ }
+}
\ No newline at end of file
diff --git a/Ombi/Ombi/wwwroot/app/wizard/wizard.module.ts b/Ombi/Ombi/wwwroot/app/wizard/wizard.module.ts
new file mode 100644
index 000000000..3d06151e3
--- /dev/null
+++ b/Ombi/Ombi/wwwroot/app/wizard/wizard.module.ts
@@ -0,0 +1,31 @@
+import { NgModule, } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { FormsModule } from '@angular/forms';
+import { RouterModule, Routes } from '@angular/router';
+
+import { WelcomeComponent } from './welcome/welcome.component';
+import { MediaServerComponent } from './mediaserver/mediaserver.component';
+
+const routes: Routes = [
+ { path: 'Wizard', component: WelcomeComponent},
+ { path: 'Wizard/MediaServer', component: MediaServerComponent},
+];
+
+@NgModule({
+ imports: [
+ CommonModule,
+ FormsModule,
+ RouterModule.forChild(routes)
+ ],
+ declarations: [
+ WelcomeComponent,
+ MediaServerComponent
+ ],
+ exports: [
+ RouterModule
+ ],
+ providers: [
+ ],
+
+})
+export class WizardModule { }
\ No newline at end of file
diff --git a/Ombi/Ombi/wwwroot/images/emby-logo-dark.jpg b/Ombi/Ombi/wwwroot/images/emby-logo-dark.jpg
new file mode 100644
index 000000000..838667b78
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/emby-logo-dark.jpg differ
diff --git a/Ombi/Ombi/wwwroot/images/emby-logo.png b/Ombi/Ombi/wwwroot/images/emby-logo.png
new file mode 100644
index 000000000..a6c51ff23
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/emby-logo.png differ
diff --git a/Ombi/Ombi/wwwroot/images/icons_16.png b/Ombi/Ombi/wwwroot/images/icons_16.png
new file mode 100644
index 000000000..09d6ec7f8
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/icons_16.png differ
diff --git a/Ombi/Ombi/wwwroot/images/logo original.png b/Ombi/Ombi/wwwroot/images/logo original.png
new file mode 100644
index 000000000..c3071e331
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/logo original.png differ
diff --git a/Ombi/Ombi/wwwroot/images/logo.png b/Ombi/Ombi/wwwroot/images/logo.png
new file mode 100644
index 000000000..560a817e6
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/logo.png differ
diff --git a/Ombi/Ombi/wwwroot/images/plex-logo-reversed.png b/Ombi/Ombi/wwwroot/images/plex-logo-reversed.png
new file mode 100644
index 000000000..1e754b342
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/plex-logo-reversed.png differ
diff --git a/Ombi/Ombi/wwwroot/images/plex-logo.png b/Ombi/Ombi/wwwroot/images/plex-logo.png
new file mode 100644
index 000000000..33355e291
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/plex-logo.png differ
diff --git a/Ombi/Ombi/wwwroot/images/slider_handles.png b/Ombi/Ombi/wwwroot/images/slider_handles.png
new file mode 100644
index 000000000..0fddde5fe
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/slider_handles.png differ
diff --git a/Ombi/Ombi/wwwroot/images/slider_handles@2x.png b/Ombi/Ombi/wwwroot/images/slider_handles@2x.png
new file mode 100644
index 000000000..d8c901ec8
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/slider_handles@2x.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-bg_flat_0_aaaaaa_40x100.png b/Ombi/Ombi/wwwroot/images/ui-bg_flat_0_aaaaaa_40x100.png
new file mode 100644
index 000000000..5b5dab2ab
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-bg_flat_0_aaaaaa_40x100.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-bg_flat_75_ffffff_40x100.png b/Ombi/Ombi/wwwroot/images/ui-bg_flat_75_ffffff_40x100.png
new file mode 100644
index 000000000..ac8b229af
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-bg_flat_75_ffffff_40x100.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-bg_glass_55_fbf9ee_1x400.png b/Ombi/Ombi/wwwroot/images/ui-bg_glass_55_fbf9ee_1x400.png
new file mode 100644
index 000000000..ad3d6346e
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-bg_glass_55_fbf9ee_1x400.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-bg_glass_65_ffffff_1x400.png b/Ombi/Ombi/wwwroot/images/ui-bg_glass_65_ffffff_1x400.png
new file mode 100644
index 000000000..42ccba269
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-bg_glass_65_ffffff_1x400.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-bg_glass_75_dadada_1x400.png b/Ombi/Ombi/wwwroot/images/ui-bg_glass_75_dadada_1x400.png
new file mode 100644
index 000000000..5a46b47cb
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-bg_glass_75_dadada_1x400.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-bg_glass_75_e6e6e6_1x400.png b/Ombi/Ombi/wwwroot/images/ui-bg_glass_75_e6e6e6_1x400.png
new file mode 100644
index 000000000..86c2baa65
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-bg_glass_75_e6e6e6_1x400.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-bg_glass_95_fef1ec_1x400.png b/Ombi/Ombi/wwwroot/images/ui-bg_glass_95_fef1ec_1x400.png
new file mode 100644
index 000000000..4443fdc1a
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-bg_glass_95_fef1ec_1x400.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/Ombi/Ombi/wwwroot/images/ui-bg_highlight-soft_75_cccccc_1x100.png
new file mode 100644
index 000000000..7c9fa6c6e
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-bg_highlight-soft_75_cccccc_1x100.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-icons_222222_256x240.png b/Ombi/Ombi/wwwroot/images/ui-icons_222222_256x240.png
new file mode 100644
index 000000000..b273ff111
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-icons_222222_256x240.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-icons_2e83ff_256x240.png b/Ombi/Ombi/wwwroot/images/ui-icons_2e83ff_256x240.png
new file mode 100644
index 000000000..84defe6e8
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-icons_2e83ff_256x240.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-icons_454545_256x240.png b/Ombi/Ombi/wwwroot/images/ui-icons_454545_256x240.png
new file mode 100644
index 000000000..59bd45b90
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-icons_454545_256x240.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-icons_cd0a0a_256x240.png b/Ombi/Ombi/wwwroot/images/ui-icons_cd0a0a_256x240.png
new file mode 100644
index 000000000..2ab019b73
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-icons_cd0a0a_256x240.png differ
diff --git a/Ombi/Ombi/wwwroot/images/ui-icons_ffffff_256x240.png b/Ombi/Ombi/wwwroot/images/ui-icons_ffffff_256x240.png
new file mode 100644
index 000000000..42f8f992c
Binary files /dev/null and b/Ombi/Ombi/wwwroot/images/ui-icons_ffffff_256x240.png differ