File tree Expand file tree Collapse file tree
frontend/src/app/annotate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ @let proofs = proofs$ | async;
2+
13< ul ngbNav #nav ="ngbNav " [(activeId)] ="active " class ="nav-tabs flex-nowrap ">
24 < li [ngbNavItem] ="1 ">
35 < button ngbNavLink >
1921 </ button >
2022 < ng-template ngbNavContent >
2123 < section >
22- < la-tableau-svg > </ la-tableau-svg >
24+ @if (proofs) {
25+ < la-tableau-svg [tree] ="proofs.entailment "> </ la-tableau-svg >
26+ }
2327 </ section >
2428 </ ng-template >
2529 </ li >
Original file line number Diff line number Diff line change 1- import { Component } from "@angular/core" ;
1+ import { Component , inject } from "@angular/core" ;
2+ import { CommonModule } from "@angular/common" ;
23import { FontAwesomeModule } from "@fortawesome/angular-fontawesome" ;
34import { NgbNavModule } from "@ng-bootstrap/ng-bootstrap" ;
45import {
56 faSquarePollHorizontal ,
67 faTree ,
78 faPenNib ,
89} from "@fortawesome/free-solid-svg-icons" ;
10+
11+ import { ParseService } from "@/services/parse.service" ;
912import { AnnotationParseResultsComponent } from "../annotation-parse-results/annotation-parse-results.component" ;
1013import { TableauSVG } from '../tableau-svg/tableau-svg.component' ;
1114import { AnnotationCommentsComponent } from "../annotation-comments/annotation-comments.component" ;
@@ -14,6 +17,7 @@ import { AnnotationCommentsComponent } from "../annotation-comments/annotation-c
1417 selector : "la-annotation-menu" ,
1518 standalone : true ,
1619 imports : [
20+ CommonModule ,
1721 NgbNavModule ,
1822 FontAwesomeModule ,
1923 AnnotationParseResultsComponent ,
@@ -24,6 +28,9 @@ import { AnnotationCommentsComponent } from "../annotation-comments/annotation-c
2428 styleUrl : "./annotation-menu.component.scss" ,
2529} )
2630export class AnnotationMenuComponent {
31+ private parseService = inject ( ParseService ) ;
32+ public readonly proofs$ = this . parseService . proofs$ ;
33+
2734 public active = 1 ;
2835
2936 public faSquarePollHorizontal = faSquarePollHorizontal ;
Original file line number Diff line number Diff line change 1- import { Component , ChangeDetectorRef } from '@angular/core' ;
1+ import { Component , ChangeDetectorRef , input } from '@angular/core' ;
22import { CommonModule } from "@angular/common" ;
33import { Subject } from "rxjs" ;
44import { Dimensions } from '@/types' ;
55import { TableauTree } from './tableau-tree.component' ;
6- import mockTableau from '@/shared/mockTableauTree' ;
76
87@Component ( {
98 selector : "la-tableau-svg" ,
@@ -28,5 +27,5 @@ export class TableauSVG {
2827 this . cdref . detectChanges ( ) ;
2928 }
3029
31- tree : any = mockTableau ;
30+ public readonly tree = input . required < any > ( ) ;
3231}
You can’t perform that action at this time.
0 commit comments