Browse Source

Setup angular compiler options (#45)

pull/46/head
Thomas 4 years ago
committed by GitHub
parent
commit
ef317a86ed
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      apps/client/src/app/components/portfolio-performance-summary/portfolio-performance-summary.component.html
  2. 12
      apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html
  3. 6
      apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.html
  4. 6
      apps/client/src/app/components/position/position.component.html
  5. 8
      apps/client/src/app/components/positions-table/positions-table.component.html
  6. 6
      apps/client/src/app/components/transactions-table/transactions-table.component.html
  7. 6
      apps/client/tsconfig.json

8
apps/client/src/app/components/portfolio-performance-summary/portfolio-performance-summary.component.html

@ -34,16 +34,16 @@
<div *ngIf="showDetails" class="row"> <div *ngIf="showDetails" class="row">
<div class="d-flex col justify-content-end"> <div class="d-flex col justify-content-end">
<gf-value <gf-value
colorizeSign="true" [colorizeSign]="true"
isCurrency="true" [isCurrency]="true"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : performance?.currentNetPerformance" [value]="isLoading ? undefined : performance?.currentNetPerformance"
></gf-value> ></gf-value>
</div> </div>
<div class="col"> <div class="col">
<gf-value <gf-value
colorizeSign="true" [colorizeSign]="true"
isPercent="true" [isPercent]="true"
[locale]="locale" [locale]="locale"
[value]=" [value]="
isLoading ? undefined : performance?.currentNetPerformancePercent isLoading ? undefined : performance?.currentNetPerformancePercent

12
apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html

@ -16,17 +16,17 @@
<div class="d-flex flex-column flex-wrap justify-content-end"> <div class="d-flex flex-column flex-wrap justify-content-end">
<gf-value <gf-value
class="justify-content-end mb-2" class="justify-content-end mb-2"
colorizeSign="true"
position="end" position="end"
[colorizeSign]="true"
[currency]="baseCurrency" [currency]="baseCurrency"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : performance?.currentGrossPerformance" [value]="isLoading ? undefined : performance?.currentGrossPerformance"
></gf-value> ></gf-value>
<gf-value <gf-value
class="justify-content-end" class="justify-content-end"
colorizeSign="true"
isPercent="true"
position="end" position="end"
[colorizeSign]="true"
[isPercent]="true"
[locale]="locale" [locale]="locale"
[value]=" [value]="
isLoading ? undefined : performance?.currentGrossPerformancePercent isLoading ? undefined : performance?.currentGrossPerformancePercent
@ -39,17 +39,17 @@
<div class="d-flex flex-column flex-wrap justify-content-end"> <div class="d-flex flex-column flex-wrap justify-content-end">
<gf-value <gf-value
class="justify-content-end mb-2" class="justify-content-end mb-2"
colorizeSign="true"
position="end" position="end"
[colorizeSign]="true"
[currency]="baseCurrency" [currency]="baseCurrency"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : performance?.currentNetPerformance" [value]="isLoading ? undefined : performance?.currentNetPerformance"
></gf-value> ></gf-value>
<gf-value <gf-value
class="justify-content-end" class="justify-content-end"
colorizeSign="true"
isPercent="true"
position="end" position="end"
[colorizeSign]="true"
[isPercent]="true"
[locale]="locale" [locale]="locale"
[value]=" [value]="
isLoading ? undefined : performance?.currentNetPerformancePercent isLoading ? undefined : performance?.currentNetPerformancePercent

6
apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.html

@ -21,10 +21,10 @@
<div class="row"> <div class="row">
<div class="col-6 mb-3"> <div class="col-6 mb-3">
<gf-value <gf-value
colorizeSign="true"
isPercent="true"
label="Performance" label="Performance"
size="medium" size="medium"
[colorizeSign]="true"
[isPercent]="true"
[locale]="data.locale" [locale]="data.locale"
[value]="grossPerformancePercent" [value]="grossPerformancePercent"
></gf-value> ></gf-value>
@ -76,9 +76,9 @@
</div> </div>
<div class="col-6 mb-3"> <div class="col-6 mb-3">
<gf-value <gf-value
isCurrency="true"
label="Quantity" label="Quantity"
size="medium" size="medium"
[isCurrency]="true"
[value]="quantity" [value]="quantity"
></gf-value> ></gf-value>
</div> </div>

6
apps/client/src/app/components/position/position.component.html

@ -42,14 +42,14 @@
<div class="d-flex mt-1"> <div class="d-flex mt-1">
<gf-value <gf-value
class="mr-3" class="mr-3"
colorizeSign="true" [colorizeSign]="true"
[currency]="position?.currency" [currency]="position?.currency"
[locale]="locale" [locale]="locale"
[value]="position?.grossPerformance" [value]="position?.grossPerformance"
></gf-value> ></gf-value>
<gf-value <gf-value
colorizeSign="true" [colorizeSign]="true"
isPercent="true" [isPercent]="true"
[locale]="locale" [locale]="locale"
[value]="position?.grossPerformancePercent" [value]="position?.grossPerformancePercent"
></gf-value> ></gf-value>

8
apps/client/src/app/components/positions-table/positions-table.component.html

@ -28,8 +28,8 @@
<td class="d-none d-lg-table-cell" mat-cell *matCellDef="let element"> <td class="d-none d-lg-table-cell" mat-cell *matCellDef="let element">
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gf-value <gf-value
colorizeSign="true" [colorizeSign]="true"
isPercent="true" [isPercent]="true"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : element.grossPerformancePercent" [value]="isLoading ? undefined : element.grossPerformancePercent"
></gf-value> ></gf-value>
@ -50,7 +50,7 @@
<td mat-cell *matCellDef="let element"> <td mat-cell *matCellDef="let element">
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gf-value <gf-value
isPercent="true" [isPercent]="true"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : element.shareInvestment" [value]="isLoading ? undefined : element.shareInvestment"
></gf-value> ></gf-value>
@ -71,7 +71,7 @@
<td mat-cell *matCellDef="let element"> <td mat-cell *matCellDef="let element">
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gf-value <gf-value
isPercent="true" [isPercent]="true"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : element.shareCurrent" [value]="isLoading ? undefined : element.shareCurrent"
></gf-value> ></gf-value>

6
apps/client/src/app/components/transactions-table/transactions-table.component.html

@ -116,7 +116,7 @@
<td *matCellDef="let element" class="d-none d-lg-table-cell" mat-cell> <td *matCellDef="let element" class="d-none d-lg-table-cell" mat-cell>
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gf-value <gf-value
isCurrency="true" [isCurrency]="true"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : element.quantity" [value]="isLoading ? undefined : element.quantity"
></gf-value> ></gf-value>
@ -137,7 +137,7 @@
<td *matCellDef="let element" class="d-none d-lg-table-cell" mat-cell> <td *matCellDef="let element" class="d-none d-lg-table-cell" mat-cell>
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gf-value <gf-value
isCurrency="true" [isCurrency]="true"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : element.unitPrice" [value]="isLoading ? undefined : element.unitPrice"
></gf-value> ></gf-value>
@ -158,7 +158,7 @@
<td class="d-none d-lg-table-cell" mat-cell *matCellDef="let element"> <td class="d-none d-lg-table-cell" mat-cell *matCellDef="let element">
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gf-value <gf-value
isCurrency="true" [isCurrency]="true"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : element.fee" [value]="isLoading ? undefined : element.fee"
></gf-value> ></gf-value>

6
apps/client/tsconfig.json

@ -12,5 +12,9 @@
{ {
"path": "./tsconfig.editor.json" "path": "./tsconfig.editor.json"
} }
] ],
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictTemplates": false
}
} }

Loading…
Cancel
Save