From 12705b6a5a0030cc46575fcf5b98f8af924dc025 Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Sat, 12 May 2018 16:34:28 +0100 Subject: [PATCH] Re-scaffold db --- client/package.json | 31 +- client/src/app/app.module.ts | 4 + .../components/podcast/podcast.component.css | 4 + .../components/podcast/podcast.component.html | 48 +- .../components/podcast/podcast.component.ts | 8 +- client/src/app/effects/podcast.effects.ts | 67 ++- client/src/styles.css | 7 + server/Controllers/PlaylistController.cs | 5 +- .../20180512101017_Initial.Designer.cs | 509 ------------------ server/Migrations/20180512101017_Initial.cs | 451 ---------------- .../PodNomsDbContextModelSnapshot.cs | 507 ----------------- server/Models/Playlist.cs | 2 + server/Models/Podcast.cs | 1 + server/Models/PodcastEntry.cs | 2 + server/Persistence/PodNomsDbContext.cs | 1 + server/Providers/MappingProvider.cs | 6 - .../Services/Jobs/ProcessPlaylistItemJob.cs | 2 +- server/Services/Jobs/ProcessPlaylistsJob.cs | 52 +- 18 files changed, 151 insertions(+), 1556 deletions(-) delete mode 100644 server/Migrations/20180512101017_Initial.Designer.cs delete mode 100644 server/Migrations/20180512101017_Initial.cs delete mode 100644 server/Migrations/PodNomsDbContextModelSnapshot.cs diff --git a/client/package.json b/client/package.json index be120df..2d60c39 100644 --- a/client/package.json +++ b/client/package.json @@ -49,6 +49,7 @@ "ngx-cookieconsent": "^1.0.1", "ngx-moment": "^2.0.0-rc.0", "ngx-quill": "^3.0.0", + "ngx-smart-modal": "^6.0.0", "popper.js": "^1.13.0", "rxjs": "^6.1.0", "rxjs-compat": "^6.1.0", @@ -58,25 +59,25 @@ "zone.js": "^0.8.26" }, "devDependencies": { - "@angular/cli": "6.0.0", - "@angular/compiler-cli": "6.0.0", - "@angular/language-service": "6.0.0", - "@types/applicationinsights-js": "^1.0.5", - "@types/jasmine": "^2.8.6", - "@types/node": "~9.4.6", - "codelyzer": "^4.2.1", + "@angular/compiler-cli": "^6.0.0", + "@angular-devkit/build-angular": "~0.6.0", + "typescript": "~2.7.2", + "@angular/cli": "~6.0.0", + "@angular/language-service": "^6.0.0", + "@types/jasmine": "~2.8.6", + "@types/jasminewd2": "~2.0.3", + "@types/node": "~8.9.4", + "codelyzer": "~4.2.1", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", - "karma": "~2.0.0", + "karma": "~1.7.1", "karma-chrome-launcher": "~2.2.0", - "karma-cli": "~1.0.1", - "karma-coverage-istanbul-reporter": "^1.4.1", - "karma-jasmine": "^1.1.1", + "karma-coverage-istanbul-reporter": "~1.4.2", + "karma-jasmine": "~1.1.1", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.3.0", - "ts-node": "^5.0.1", + "ts-node": "~5.0.1", "tslint": "~5.9.1", - "typescript": "2.7.2", - "@angular-devkit/build-angular": "~0.6.0" + "@types/applicationinsights-js": "^1.0.5" } -} +} \ No newline at end of file diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 819c25c..54852c6 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -36,6 +36,7 @@ import { StoreModule } from '@ngrx/store'; import { EffectsModule } from '@ngrx/effects'; import { StoreDevtoolsModule } from '@ngrx/store-devtools'; import { ClipboardModule } from 'ngx-clipboard'; +import { NgxSmartModalModule } from 'ngx-smart-modal'; import { AppComponent } from './app.component'; import { HomeComponent } from './components/home/home.component'; @@ -159,6 +160,8 @@ export function provideConfig() { storageBucket: 'podnoms-api.appspot.com', messagingSenderId: '357461672895' }), + NgxSmartModalModule.forRoot(), + AngularFireDatabaseModule, AngularFireAuthModule, AngularFirestoreModule, @@ -202,6 +205,7 @@ export function provideConfig() { provide: AuthServiceConfig, useFactory: provideConfig }, + SignalRService, ProfileService, PodcastService, diff --git a/client/src/app/components/podcast/podcast.component.css b/client/src/app/components/podcast/podcast.component.css index 483e16a..66faf24 100644 --- a/client/src/app/components/podcast/podcast.component.css +++ b/client/src/app/components/podcast/podcast.component.css @@ -10,3 +10,7 @@ ol { .border { background: red; } +.modal-podcast-image { + width: 64px; + height: 64px; +} diff --git a/client/src/app/components/podcast/podcast.component.html b/client/src/app/components/podcast/podcast.component.html index 7c41994..879e2a3 100644 --- a/client/src/app/components/podcast/podcast.component.html +++ b/client/src/app/components/podcast/podcast.component.html @@ -7,7 +7,7 @@ Edit - + Delete @@ -39,24 +39,44 @@ -