-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
2ca2280
commit 2fc839e
Showing
5 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
23 changes: 21 additions & 2 deletions
23
.../app/minimalist-parser/minimalist-parser-browser/minimalist-parser-browser.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 |
---|---|---|
@@ -1,3 +1,22 @@ | ||
<h1 class="title" i18n>Minimalist Parser</h1> | ||
<div class="content"> | ||
<div class="columns is-centered"> | ||
<div class="column is-two-thirds"> | ||
<h1 i18n>Minimalist Parser</h1> | ||
|
||
<i i18n>Coming soon: browse a pre-parsed corpus. </i> | ||
<p i18n> | ||
Click the button below to browse through a pre-parsed corpus | ||
consisting of 100 sentences taken from the Wall Street Journal. | ||
</p> | ||
|
||
@if (statusOk$ | async) { | ||
<button type="button" class="button is-primary" (click)="navigateToVulcan()" i18n> | ||
Start browsing | ||
</button> | ||
} @else { | ||
<p class="notification mt-6" i18n> | ||
The Vulcan visualization tool is temporarily unavailable. | ||
</p> | ||
} | ||
</div> | ||
</div> | ||
</div> |
16 changes: 15 additions & 1 deletion
16
...rc/app/minimalist-parser/minimalist-parser-browser/minimalist-parser-browser.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 |
---|---|---|
@@ -1,8 +1,22 @@ | ||
import { Component } from "@angular/core"; | ||
import { map } from "rxjs"; | ||
import { StatusService } from "src/app/shared/services/status.service"; | ||
import { environment } from "src/environments/environment"; | ||
|
||
@Component({ | ||
selector: "pp-minimalist-parser-browser", | ||
templateUrl: "./minimalist-parser-browser.component.html", | ||
styleUrl: "./minimalist-parser-browser.component.scss", | ||
}) | ||
export class MinimalistParserBrowserComponent {} | ||
export class MinimalistParserBrowserComponent { | ||
public statusOk$ = this.statusService | ||
.getStatus$() | ||
.pipe(map((status) => status.vulcan)); | ||
|
||
constructor(private statusService: StatusService) {} | ||
|
||
public navigateToVulcan(): void { | ||
const origin = window.location.origin; | ||
window.location.href = `${origin}${environment.vulcanUrl}`; | ||
} | ||
} |
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