-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #280 from geonetwork/tabs
Datahub: Add tabs to homepage and routing
- Loading branch information
Showing
50 changed files
with
468 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
apps/datahub/src/app/home/home-page/home-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div id="home-page" class="h-screen overflow-y-scroll"> | ||
<gn-ui-sticky-header [fullHeightPx]="560" [minHeightPx]="90"> | ||
<ng-template let-expandRatio> | ||
<datahub-home-header [expandRatio]="expandRatio"></datahub-home-header> | ||
</ng-template> | ||
</gn-ui-sticky-header> | ||
<main> | ||
<div class="container-lg mx-auto py-4 px-3"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</main> | ||
</div> |
27 changes: 27 additions & 0 deletions
27
apps/datahub/src/app/home/home-page/home-page.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { NO_ERRORS_SCHEMA } from '@angular/core' | ||
import { ComponentFixture, TestBed } from '@angular/core/testing' | ||
import { HomePageComponent } from './home-page.component' | ||
import { UiLayoutModule } from '@geonetwork-ui/ui/layout' | ||
|
||
describe('HomePageComponent', () => { | ||
let component: HomePageComponent | ||
let fixture: ComponentFixture<HomePageComponent> | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [HomePageComponent], | ||
imports: [UiLayoutModule], | ||
schemas: [NO_ERRORS_SCHEMA], | ||
}).compileComponents() | ||
}) | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(HomePageComponent) | ||
component = fixture.componentInstance | ||
fixture.detectChanges() | ||
}) | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'datahub-home-page', | ||
templateUrl: './home-page.component.html', | ||
styleUrls: ['./home-page.component.css'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class HomePageComponent {} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>news-page works!</p> |
22 changes: 22 additions & 0 deletions
22
apps/datahub/src/app/home/news-page/news-page.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing' | ||
|
||
import { NewsPageComponent } from './news-page.component' | ||
|
||
describe('NewsPageComponent', () => { | ||
let component: NewsPageComponent | ||
let fixture: ComponentFixture<NewsPageComponent> | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [NewsPageComponent], | ||
}).compileComponents() | ||
|
||
fixture = TestBed.createComponent(NewsPageComponent) | ||
component = fixture.componentInstance | ||
fixture.detectChanges() | ||
}) | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'datahub-news-page', | ||
templateUrl: './news-page.component.html', | ||
styleUrls: ['./news-page.component.css'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class NewsPageComponent {} |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
apps/datahub/src/app/home/organisations-page/organisations-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>organisations-page works!</p> |
22 changes: 22 additions & 0 deletions
22
apps/datahub/src/app/home/organisations-page/organisations-page.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing' | ||
|
||
import { OrganisationsPageComponent } from './organisations-page.component' | ||
|
||
describe('OrganisationsPageComponent', () => { | ||
let component: OrganisationsPageComponent | ||
let fixture: ComponentFixture<OrganisationsPageComponent> | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [OrganisationsPageComponent], | ||
}).compileComponents() | ||
|
||
fixture = TestBed.createComponent(OrganisationsPageComponent) | ||
component = fixture.componentInstance | ||
fixture.detectChanges() | ||
}) | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
9 changes: 9 additions & 0 deletions
9
apps/datahub/src/app/home/organisations-page/organisations-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'datahub-organisations-page', | ||
templateUrl: './organisations-page.component.html', | ||
styleUrls: ['./organisations-page.component.css'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class OrganisationsPageComponent {} |
Empty file.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.