diff --git a/dashboard/src/app/app-routing.module.ts b/dashboard/src/app/app-routing.module.ts index ad2ff15..01b0d59 100644 --- a/dashboard/src/app/app-routing.module.ts +++ b/dashboard/src/app/app-routing.module.ts @@ -5,13 +5,15 @@ import { DashboardComponent } from './dashboard.component'; import { AlbumComponent } from './album/album.component'; import { ArtistComponent } from './artist/artist.component'; import { GenreComponent } from './genre/genre.component'; +import { LastAddedComponent } from './last-added/last-added.component'; const routes: Routes = [ { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, { path: 'dashboard', component: DashboardComponent }, { path: 'album/:name', component: AlbumComponent }, { path: 'artist/:name', component: ArtistComponent }, - { path: 'genre/:name', component: GenreComponent } + { path: 'genre/:name', component: GenreComponent }, + { path: 'lastAdded', component: LastAddedComponent } ]; @NgModule({ diff --git a/dashboard/src/app/app.module.ts b/dashboard/src/app/app.module.ts index 6c75147..0afb840 100644 --- a/dashboard/src/app/app.module.ts +++ b/dashboard/src/app/app.module.ts @@ -18,6 +18,8 @@ import { ConvertMoreExactPipe } from './convert-more-exact.pipe'; import { SortByPipe } from './sort-by.pipe'; import { ConvertSizeToStringPipe } from './convert-size-to-string.pipe'; +import { LastAddedComponent } from './last-added/last-added.component'; + @NgModule({ imports: [ BrowserModule, @@ -31,6 +33,7 @@ import { ConvertSizeToStringPipe } from './convert-size-to-string.pipe'; ArtistComponent, GenreComponent, SongTableComponent, + LastAddedComponent, ConvertMsPipe, ConvertMoreExactPipe, SortByPipe, diff --git a/dashboard/src/app/dashboard.component.html b/dashboard/src/app/dashboard.component.html index 0e65b4e..a3e0e34 100644 --- a/dashboard/src/app/dashboard.component.html +++ b/dashboard/src/app/dashboard.component.html @@ -78,7 +78,7 @@
-

Last added albums

+

Last Added

diff --git a/dashboard/src/app/last-added/last-added.component.css b/dashboard/src/app/last-added/last-added.component.css new file mode 100644 index 0000000..e69de29 diff --git a/dashboard/src/app/last-added/last-added.component.html b/dashboard/src/app/last-added/last-added.component.html new file mode 100644 index 0000000..e46540b --- /dev/null +++ b/dashboard/src/app/last-added/last-added.component.html @@ -0,0 +1,2 @@ +
+
diff --git a/dashboard/src/app/last-added/last-added.component.spec.ts b/dashboard/src/app/last-added/last-added.component.spec.ts new file mode 100644 index 0000000..886753d --- /dev/null +++ b/dashboard/src/app/last-added/last-added.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { LastAddedComponent } from './last-added.component'; + +describe('LastAddedComponent', () => { + let component: LastAddedComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ LastAddedComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(LastAddedComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should be created', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/dashboard/src/app/last-added/last-added.component.ts b/dashboard/src/app/last-added/last-added.component.ts new file mode 100644 index 0000000..5c4b33f --- /dev/null +++ b/dashboard/src/app/last-added/last-added.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-last-added', + templateUrl: './last-added.component.html', + styleUrls: ['./last-added.component.css'] +}) +export class LastAddedComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +}