From 8597d0a0b08f5b4ded2026a1320fbb5dc1803fe5 Mon Sep 17 00:00:00 2001 From: Tiago Kayaya Date: Thu, 10 Dec 2020 11:22:06 +0100 Subject: [PATCH] Add integration of publication --- src/app/app-routing.module.ts | 4 ++ src/app/models/image.ts | 7 +++ src/app/models/publication.ts | 7 ++- .../new-publication/new-publication.page.html | 6 +-- .../new-publication/new-publication.page.ts | 49 ++++++++++++++++--- .../pages/publications/publications.page.html | 6 +++ .../pages/publications/publications.page.ts | 26 +++++++++- .../publication-detail.page.ts | 15 +++++- .../view-publications.page.html | 4 +- .../view-publications.page.ts | 13 ++++- src/app/services/publications.service.ts | 25 ++++++++++ .../shared/header/header-routing.module.ts | 17 +++++++ src/app/shared/header/header.module.ts | 20 ++++++++ src/app/shared/header/header.page.html | 14 ++++++ src/app/shared/header/header.page.scss | 41 ++++++++++++++++ src/app/shared/header/header.page.spec.ts | 24 +++++++++ src/app/shared/header/header.page.ts | 15 ++++++ 17 files changed, 274 insertions(+), 19 deletions(-) create mode 100644 src/app/models/image.ts create mode 100644 src/app/shared/header/header-routing.module.ts create mode 100644 src/app/shared/header/header.module.ts create mode 100644 src/app/shared/header/header.page.html create mode 100644 src/app/shared/header/header.page.scss create mode 100644 src/app/shared/header/header.page.spec.ts create mode 100644 src/app/shared/header/header.page.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index adcc0da53..441a1156c 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -17,6 +17,10 @@ const routes: Routes = [ path: 'publications', loadChildren: () => import('./pages/publications/publications.module').then( m => m.PublicationsPageModule) }, + { + path: 'header', + loadChildren: () => import('./shared/header/header.module').then( m => m.HeaderPageModule) + }, /* { diff --git a/src/app/models/image.ts b/src/app/models/image.ts new file mode 100644 index 000000000..8b35bebf2 --- /dev/null +++ b/src/app/models/image.ts @@ -0,0 +1,7 @@ +import { title } from "process" + +export class Image { + title: string; + url: string; + format: string; +} \ No newline at end of file diff --git a/src/app/models/publication.ts b/src/app/models/publication.ts index 16fc15da9..bd06f9808 100644 --- a/src/app/models/publication.ts +++ b/src/app/models/publication.ts @@ -1,8 +1,13 @@ +/* import { Image } from './image'; */ + export class Publication{ publicationId:string; processId:string; title: string; description: string; - imageUrl:string; date: Date; + /* image: Image; */ + imageTitle: string; + imageUrl:string; + imageFormat: string; } \ No newline at end of file diff --git a/src/app/pages/publications/new-publication/new-publication.page.html b/src/app/pages/publications/new-publication/new-publication.page.html index 01423e53f..18daf780c 100644 --- a/src/app/pages/publications/new-publication/new-publication.page.html +++ b/src/app/pages/publications/new-publication/new-publication.page.html @@ -23,7 +23,7 @@
- +
@@ -32,7 +32,7 @@
- +
@@ -40,7 +40,7 @@ Fotografia Anexada - +