From 441489623c860ab565ec341e9bb795f186213316 Mon Sep 17 00:00:00 2001 From: Nikolaos Laskaris Date: Thu, 16 Nov 2017 16:27:40 +0200 Subject: [PATCH] changed empty component to homecomponent --- dmp-frontend/src/app/app-routing.module.ts | 4 ++-- dmp-frontend/src/app/app.module.ts | 4 ++-- dmp-frontend/src/app/empty.component.ts | 6 ------ dmp-frontend/src/app/homepage/homepage.component.css | 0 dmp-frontend/src/app/homepage/homepage.component.html | 3 +++ dmp-frontend/src/app/homepage/homepage.component.ts | 9 +++++++++ 6 files changed, 16 insertions(+), 10 deletions(-) delete mode 100644 dmp-frontend/src/app/empty.component.ts create mode 100644 dmp-frontend/src/app/homepage/homepage.component.css create mode 100644 dmp-frontend/src/app/homepage/homepage.component.html create mode 100644 dmp-frontend/src/app/homepage/homepage.component.ts diff --git a/dmp-frontend/src/app/app-routing.module.ts b/dmp-frontend/src/app/app-routing.module.ts index b111ec368..ff0a98692 100644 --- a/dmp-frontend/src/app/app-routing.module.ts +++ b/dmp-frontend/src/app/app-routing.module.ts @@ -1,7 +1,7 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { PageNotFoundComponent } from './not-found.component'; -import { EmptyComponent } from './empty.component'; +import { HomepageComponent } from './homepage/homepage.component'; import { DynamicFormComponent } from './form/dynamic-form.component'; import { AuthGuard } from './guards/auth.guard'; import { ProjectsComponent } from './projects/projects.component'; @@ -22,7 +22,7 @@ const appRoutes: Routes = [ { path: 'dmps', component: DmpComponent}, { path: 'dmp', component: DmpDetailedComponent }, { path: 'workspace', component: UserWorkspaceComponent}, - { path: 'welcome', component: EmptyComponent}, + { path: 'welcome', component: HomepageComponent}, { path: '', redirectTo: '/login', pathMatch: 'full' }, { path: '**', component: PageNotFoundComponent }, /* diff --git a/dmp-frontend/src/app/app.module.ts b/dmp-frontend/src/app/app.module.ts index db039f912..5305ecb6f 100644 --- a/dmp-frontend/src/app/app.module.ts +++ b/dmp-frontend/src/app/app.module.ts @@ -22,7 +22,7 @@ import { DynamicFormGroupComponent } from './form/dynamic-form-group/dynamic-for import { AppRoutingModule } from './app-routing.module'; import { AuthGuard } from './guards/auth.guard'; import { PageNotFoundComponent } from './not-found.component'; -import { EmptyComponent } from './empty.component'; +import { HomepageComponent } from './homepage/homepage.component'; import { TocComponent } from './form/tableOfContents/toc.component'; import { ConfirmationComponent } from './widgets/confirmation/confirmation.component'; @@ -85,7 +85,7 @@ import { DmpDetailedComponent } from './viewers/dmp-detailed/dmp-detailed.compon GooggleSignInComponent, MainSignInComponent, PageNotFoundComponent, - EmptyComponent, + HomepageComponent, ModalComponent, ProjectDetailComponent, ProjectsComponent, diff --git a/dmp-frontend/src/app/empty.component.ts b/dmp-frontend/src/app/empty.component.ts deleted file mode 100644 index 71d44023b..000000000 --- a/dmp-frontend/src/app/empty.component.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - template: '' -}) -export class EmptyComponent {} \ No newline at end of file diff --git a/dmp-frontend/src/app/homepage/homepage.component.css b/dmp-frontend/src/app/homepage/homepage.component.css new file mode 100644 index 000000000..e69de29bb diff --git a/dmp-frontend/src/app/homepage/homepage.component.html b/dmp-frontend/src/app/homepage/homepage.component.html new file mode 100644 index 000000000..30d22cf68 --- /dev/null +++ b/dmp-frontend/src/app/homepage/homepage.component.html @@ -0,0 +1,3 @@ +

+ Works +

\ No newline at end of file diff --git a/dmp-frontend/src/app/homepage/homepage.component.ts b/dmp-frontend/src/app/homepage/homepage.component.ts new file mode 100644 index 000000000..894f16749 --- /dev/null +++ b/dmp-frontend/src/app/homepage/homepage.component.ts @@ -0,0 +1,9 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'homepage', + templateUrl: './homepage.component.html', + styleUrls: ['./homepage.component.css'], + providers: [] +}) +export class HomepageComponent {} \ No newline at end of file