-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
180 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<div class="full-size scroll-y-only"> | ||
|
||
<dsp-progress-indicator *ngIf="isLoading" [color]="'#D88958'"></dsp-progress-indicator> | ||
|
||
<div *ngIf="!isLoading"> | ||
|
||
<div class="sidebar"> | ||
<button mat-stroked-button class="previousBtn" (click)="location.back()"> | ||
<mat-icon>arrow_back</mat-icon> | ||
Previous | ||
</button> | ||
</div> | ||
|
||
<div class="main-content" [ngSwitch]="project"> | ||
|
||
<ng-container *ngSwitchCase="'lece'"> | ||
<h1>[Title]</h1> | ||
<div> | ||
<div fxFlex fxLayout="row wrap" fxLayout.sm="column" fxlayout.xs="column" fxFlexFill> | ||
<div fxFlex routerLink="introduction/leoo/goldbach_preface"> | ||
<mat-card class="intro-card" appearance="outlined"> | ||
<mat-card-content>Preface</mat-card-content> | ||
</mat-card> | ||
</div> | ||
<div fxFlex routerLink="introduction/leoo/goldbach_abbreviations"> | ||
<mat-card class="intro-card" appearance="outlined"> | ||
<mat-card-content>List of Abbreviations</mat-card-content> | ||
</mat-card> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<div fxFlex fxLayout="row wrap" fxLayout.sm="column" fxlayout.xs="column" fxFlexFill> | ||
<div fxFlex routerLink="introduction/leoo/goldbach_introduction_1"> | ||
<mat-card class="intro-card" appearance="outlined"> | ||
<mat-card-content>Historical and biographical setting</mat-card-content> | ||
</mat-card> | ||
</div> | ||
<div fxFlex routerLink="introduction/leoo/goldbach_introduction_2"> | ||
<mat-card class="intro-card" appearance="outlined"> | ||
<mat-card-content>Main subjects of the correspondence</mat-card-content> | ||
</mat-card> | ||
</div> | ||
<div fxFlex routerLink="introduction/leoo/goldbach_introduction_3.1"> | ||
<mat-card class="intro-card" appearance="outlined"> | ||
<mat-card-content>Editing the Euler-Goldbach correspondence</mat-card-content> | ||
</mat-card> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-container> | ||
|
||
<ng-container *ngSwitchCase="'leoo'"> | ||
<h1>[Title]</h1> | ||
<div class="container"> | ||
<div fxFlex fxLayout="row wrap" fxLayout.sm="column" fxlayout.xs="column" fxFlexFill> | ||
<div fxFlex routerLink="introduction/lece/CondorcetTurgot_preface"> | ||
<mat-card class="intro-card" appearance="outlined"> | ||
<mat-card-content>Préface</mat-card-content> | ||
</mat-card> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="container"> | ||
<div fxFlex fxLayout="row wrap" fxLayout.sm="column" fxlayout.xs="column" fxFlexFill> | ||
<div fxFlex routerLink="introduction/lece/CondorcetMJA_Introduction"> | ||
<mat-card class="intro-card" appearance="outlined"> | ||
<mat-card-content>Correspondance d'Euler avec Condorcet</mat-card-content> | ||
</mat-card> | ||
</div> | ||
<div fxFlex routerLink="introduction/lece/Turgot_Introduction"> | ||
<mat-card class="intro-card" appearance="outlined"> | ||
<mat-card-content>Correspondance d'Euler avec Turgot</mat-card-content> | ||
</mat-card> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-container> | ||
|
||
</div> | ||
</div> | ||
</div> |
Empty file.
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,40 @@ | ||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; | ||
import { LeceLeooComponent } from './lece-leoo.component'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { BeolService } from '../services/beol.service'; | ||
import { AppInitService } from '../dsp-ui-lib/core'; | ||
|
||
describe('LeceLeooComponent', () => { | ||
let component: LeceLeooComponent; | ||
let fixture: ComponentFixture<LeceLeooComponent>; | ||
|
||
beforeEach(waitForAsync(() => { | ||
const appInitServiceMock = { | ||
config: { | ||
ontologyIRI: 'http://0.0.0.0:3333' | ||
} | ||
}; | ||
|
||
const beolServiceSpy = jasmine.createSpyObj('BeolService', ['getEntriesForManuscript']); // see https://angular.io/guide/testing#angular-testbed | ||
|
||
TestBed.configureTestingModule({ | ||
imports: [ | ||
RouterTestingModule, | ||
], | ||
declarations: [LeceLeooComponent], | ||
providers: [ | ||
{ provide: BeolService, useValue: beolServiceSpy }, | ||
{ provide: AppInitService, useValue: appInitServiceMock } | ||
] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(LeceLeooComponent); | ||
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,31 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Location } from '@angular/common'; | ||
import { ActivatedRoute, ParamMap } from '@angular/router'; | ||
import { Subscription } from 'rxjs'; | ||
|
||
@Component({ | ||
selector: 'app-lece-leoo', | ||
templateUrl: './lece-leoo.component.html', | ||
styleUrls: ['./lece-leoo.component.scss'] | ||
}) | ||
export class LeceLeooComponent implements OnInit { | ||
isLoading = true; | ||
project: string; | ||
navigationSubscription: Subscription; | ||
|
||
constructor(public location: Location, private _route: ActivatedRoute) { | ||
this.isLoading = false; | ||
} | ||
|
||
ngOnInit() { | ||
this.navigationSubscription = this._route.paramMap.subscribe((params: ParamMap) => { | ||
this.project = params.get('project'); | ||
}); | ||
} | ||
|
||
ngOnDestroy() { | ||
if (this.navigationSubscription !== undefined) { | ||
this.navigationSubscription.unsubscribe(); | ||
} | ||
} | ||
} |