-
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.
refactor(Web): ⚡ using signals instead of observables
- Loading branch information
1 parent
4c1610f
commit 9ca795f
Showing
17 changed files
with
333 additions
and
312 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...fice/home/components/certificates-in-time-chart/certificates-in-time-chart.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 +1 @@ | ||
<p-chart type="bar" height="100%" [data]="chartData$ | async" [options]="chartOptions$ | async"></p-chart> | ||
<p-chart type="bar" height="100%" [data]="chartData$$()" [options]="chartOptions$$()"></p-chart> |
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
2 changes: 1 addition & 1 deletion
2
...backoffice/home/components/positions-in-time-chart/positions-in-time-chart.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 +1 @@ | ||
<p-chart type="bar" height="100%" [data]="chartData$ | async" [options]="chartOptions$ | async"></p-chart> | ||
<p-chart type="bar" height="100%" [data]="chartData$$()" [options]="chartOptions$$()"></p-chart> |
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
2 changes: 1 addition & 1 deletion
2
src/app/backoffice/home/components/salary-in-time-chart/salary-in-time-chart.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 +1 @@ | ||
<p-chart type="bar" height="100%" [data]="chartData$ | async" [options]="chartOptions$ | async"> </p-chart> | ||
<p-chart type="bar" height="100%" [data]="chartData$$()" [options]="chartOptions$$()"> </p-chart> |
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
162 changes: 80 additions & 82 deletions
162
src/app/website/components/experience/experience.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,88 +1,86 @@ | ||
<ng-container *appLet="language$ | async as language"> | ||
@switch (positionsActionStatus$ | async) { | ||
@case (ActionStatus.SUCCESS) { | ||
<div class="experience"> | ||
<ul> | ||
@for (positionGrouped of positionsGrouped$ | async; track positionGrouped) { | ||
<li | ||
#position | ||
[id]="positionGrouped.company.id" | ||
[@positionEnterAnimation]="getPositionEnterAnimationState(positionGrouped.company.id)" | ||
> | ||
<div class="header"> | ||
<div class="icon"> | ||
@switch (positionGrouped.company.type) { | ||
@case (CompanyType.SCHOOL) { | ||
<fa-icon [icon]="faGraduationCap"></fa-icon> | ||
} | ||
@case (CompanyType.COMPANY) { | ||
<fa-icon [icon]="faBriefcase"></fa-icon> | ||
} | ||
@switch (positionsActionStatus$$()) { | ||
@case (ActionStatus.SUCCESS) { | ||
<div class="experience"> | ||
<ul> | ||
@for (positionGrouped of positionsGrouped$$(); track positionGrouped) { | ||
<li | ||
#position | ||
[id]="positionGrouped.company.id" | ||
[@positionEnterAnimation]="getPositionEnterAnimationState(positionGrouped.company.id)" | ||
> | ||
<div class="header"> | ||
<div class="icon"> | ||
@switch (positionGrouped.company.type) { | ||
@case (CompanyType.SCHOOL) { | ||
<fa-icon [icon]="faGraduationCap"></fa-icon> | ||
} | ||
</div> | ||
<div class="organization"> | ||
<h3> | ||
@if (positionGrouped.company.url) { | ||
<a [href]="positionGrouped.company.url" target="_blank">{{ positionGrouped.company.name }}</a> | ||
} @else { | ||
{{ positionGrouped.company.name }} | ||
} | ||
</h3> | ||
<span>({{ positionGrouped.time }})</span> | ||
</div> | ||
</div> | ||
<div class="items"> | ||
<ul> | ||
@for (position of positionGrouped.positions; track position) { | ||
<li class="item"> | ||
<div class="position"> | ||
<span>{{ getTranslation(language?.acronym, position?.nameTranslations) }}</span> | ||
</div> | ||
<div class="date"> | ||
<span>{{ | ||
(position.dateFrom | date: 'MM-yyyy') + | ||
' - ' + | ||
(position.dateTo ? (position.dateTo | date: 'MM-yyyy') : ('general.present' | translate)) | ||
}}</span> | ||
</div> | ||
</li> | ||
@case (CompanyType.COMPANY) { | ||
<fa-icon [icon]="faBriefcase"></fa-icon> | ||
} | ||
</ul> | ||
</div> | ||
</li> | ||
} | ||
</ul> | ||
</div> | ||
} | ||
@case (ActionStatus.PENDING) { | ||
<div class="experience"> | ||
<ul> | ||
@for (skeleton of [0, 1, 2, 3]; track skeleton) { | ||
<li> | ||
<div class="header"> | ||
<p-skeleton width="100%" height="10px"></p-skeleton> | ||
} | ||
</div> | ||
<div class="items"> | ||
<ul> | ||
@for (position of [0, 1]; track position) { | ||
<li class="item"> | ||
<div class="position pb-1"> | ||
<p-skeleton width="80%"></p-skeleton> | ||
</div> | ||
<div class="date"> | ||
<p-skeleton width="60%"></p-skeleton> | ||
</div> | ||
</li> | ||
<div class="organization"> | ||
<h3> | ||
@if (positionGrouped.company.url) { | ||
<a [href]="positionGrouped.company.url" target="_blank">{{ positionGrouped.company.name }}</a> | ||
} @else { | ||
{{ positionGrouped.company.name }} | ||
} | ||
</ul> | ||
</h3> | ||
<span>({{ positionGrouped.time }})</span> | ||
</div> | ||
</li> | ||
} | ||
</ul> | ||
</div> | ||
} | ||
@case (ActionStatus.ERROR) { | ||
<app-generic-error></app-generic-error> | ||
} | ||
</div> | ||
<div class="items"> | ||
<ul> | ||
@for (position of positionGrouped.positions; track position) { | ||
<li class="item"> | ||
<div class="position"> | ||
<span>{{ getTranslation(language$$()?.acronym, position?.nameTranslations) }}</span> | ||
</div> | ||
<div class="date"> | ||
<span>{{ | ||
(position.dateFrom | date: 'MM-yyyy') + | ||
' - ' + | ||
(position.dateTo ? (position.dateTo | date: 'MM-yyyy') : ('general.present' | translate)) | ||
}}</span> | ||
</div> | ||
</li> | ||
} | ||
</ul> | ||
</div> | ||
</li> | ||
} | ||
</ul> | ||
</div> | ||
} | ||
@case (ActionStatus.PENDING) { | ||
<div class="experience"> | ||
<ul> | ||
@for (skeleton of [0, 1, 2, 3]; track skeleton) { | ||
<li> | ||
<div class="header"> | ||
<p-skeleton width="100%" height="10px"></p-skeleton> | ||
</div> | ||
<div class="items"> | ||
<ul> | ||
@for (position of [0, 1]; track position) { | ||
<li class="item"> | ||
<div class="position pb-1"> | ||
<p-skeleton width="80%"></p-skeleton> | ||
</div> | ||
<div class="date"> | ||
<p-skeleton width="60%"></p-skeleton> | ||
</div> | ||
</li> | ||
} | ||
</ul> | ||
</div> | ||
</li> | ||
} | ||
</ul> | ||
</div> | ||
} | ||
@case (ActionStatus.ERROR) { | ||
<app-generic-error></app-generic-error> | ||
} | ||
</ng-container> | ||
} |
Oops, something went wrong.