Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Angular 17 #214

Merged
merged 41 commits into from
Feb 11, 2025
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
04de5f3
Update ts-version
Nov 8, 2024
1878309
Update angular to v17
Nov 8, 2024
5741b66
Update clarity ui to v17
Nov 19, 2024
701b542
Refactor markdown component
Nov 19, 2024
b902db3
Add missing svg pipe for mermaid
Nov 19, 2024
990fd09
Fix path to NoteType
Nov 19, 2024
7721b42
Add style sheets
Nov 19, 2024
7296449
Fix tooltip... add missing styles
Nov 19, 2024
5a4a418
Add theme service, improve user service
Nov 19, 2024
34b3a4a
Set background color via variable to consider theme changes
Nov 20, 2024
6487faa
Merge branch 'master' into ng-17
Nov 20, 2024
ea60d5d
Update prettier
Nov 20, 2024
2fd3048
Add lint-staged as dev dependency
Nov 20, 2024
f7e9699
Migrate code to new @if/@for/@switch syntax
Nov 20, 2024
0734f40
Remove optional chain operator
Nov 20, 2024
e5f52e6
Improve if-/else-usage
Dec 3, 2024
3de081f
Clarity css vars changed ... add login padding
Dec 3, 2024
6a0f75f
Fix: Define login styles in sass
Dec 3, 2024
c3537b9
Improve markdown rendering
Dec 3, 2024
0679b42
Update angular-split version
Dec 3, 2024
d933bc5
Migrate ngx-dynamic-hooks to v3
Dec 3, 2024
a56d7df
Replace deprecated xterm packages
Dec 3, 2024
ccdd76b
remove unused Web Components polyfills and scripts
Dec 3, 2024
529bca4
update xterm imports
Dec 3, 2024
9e044c4
Update @auth0/angular-jwt
Dec 4, 2024
12db4f3
Update guacamole client
Dec 4, 2024
f2e05de
Update tslib
Dec 4, 2024
92d8c97
Update node to current lts version
Dec 6, 2024
3f8c0b8
run npm audit fix
Dec 6, 2024
9cbc95d
Load guacamole-common-js from self-maintained (and mirrored) npm esm …
Jan 21, 2025
9651cfd
fix handling mouse state
Jan 27, 2025
1f58f12
fix display of login logo image in firefox
Jan 27, 2025
69ae142
Merge branch 'master' into ng-17
Jan 27, 2025
4b7f63a
Add function to retrieve user email
Jan 27, 2025
27f384f
fix: display email correctly
Jan 27, 2025
f4e3757
fix: correctly display status during vm provisioning
Jan 27, 2025
1c4c932
remove/comment out unused vars
Jan 27, 2025
657b134
fix linting errors
Feb 6, 2025
3bd154d
fix: move member definitions to the top
Feb 6, 2025
05d44ff
run prettier
Feb 6, 2025
2eb21ee
import missing icon
Feb 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Migrate code to new @if/@for/@switch syntax
  • Loading branch information
PhilipAB committed Nov 20, 2024
commit f7e96992bde7ddc90bd8011830f947dd75d69c8b
510 changes: 251 additions & 259 deletions src/app/app.component.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<span class="copy-code" (click)="clicked()" title="Copy to Clipboard"
><cds-icon shape="copy" inverse *ngIf="!wasClicked"></cds-icon
><cds-icon shape="check" inverse *ngIf="wasClicked"></cds-icon
></span>
<span class="copy-code" (click)="clicked()" title="Copy to Clipboard">
@if (!wasClicked) {
<cds-icon shape="copy" inverse></cds-icon>
} @else {
<cds-icon shape="check" inverse></cds-icon>
}
</span>
Original file line number Diff line number Diff line change
@@ -24,107 +24,120 @@
inverse
></cds-icon>
</button>
<div *ngIf="task?.success" class="label label-status label-success">
<cds-icon shape="check" inverse></cds-icon>
</div>
<div *ngIf="!task?.success" class="label label-status label-danger">
<cds-icon shape="times" inverse></cds-icon>
</div>
@if (task?.success) {
<div class="label label-status label-success">
<cds-icon shape="check" inverse></cds-icon>
</div>
} @else {
<div class="label label-status label-danger">
<cds-icon shape="times" inverse></cds-icon>
</div>
}
</div>
</summary>

<ul class="list-group" *ngIf="task">
<li class="list-group-item">
<p>
Description: <b>{{ task.description }}</b>
</p>
<p>
Command: <code>{{ task.command }}</code>
</p>
</li>
<li class="list-group-item" *ngIf="isOfReturnType(task, ['Match_Regex'])">
<p>
Regular Expression: <code>{{ task.expected_output_value }}</code>
</p>
<p>
Actual Output: <code>{{ task.actual_output_value }}</code>
</p>
</li>
<li
class="list-group-item"
*ngIf="isOfReturnType(task, ['Return_Text', 'Return_Code_And_Text'])"
>
<p>
Expected Output: <code>{{ task.expected_output_value }}</code>
</p>
<p>
Actual Output: <code>{{ task.actual_output_value }}</code>
</p>
</li>
<li
class="list-group-item"
*ngIf="isOfReturnType(task, ['Return_Code', 'Return_Code_And_Text'])"
>
<p>
Expected Returncode: <code>{{ task.expected_return_code }}</code>
</p>
<p>
Actual Returncode: <code>{{ task.actual_return_code }}</code>
</p>
</li>
<li class="list-group-item" *ngIf="taskUnset()">
<button
id="refreshButton"
(click)="elementClicked()"
class="label label-info"
label="Revalidate"
>
<cds-icon
[@rotatedState]="rotationState"
shape="sync"
inverse
></cds-icon>
</button>
Run the validation checks once to see the result.
</li>
<li class="list-group-item" *ngIf="!taskUnset()">
<span *ngIf="task.success" class="label label-success">
<cds-icon shape="check" inverse></cds-icon>
</span>
<span *ngIf="!task.success" class="label label-danger">
<cds-icon shape="times" inverse></cds-icon>
</span>
<ng-container *ngIf="isOfReturnType(task, ['Match_Regex'])">
<span *ngIf="task.success">The Regex matches the output string.</span>
<span *ngIf="!task.success"
>The Regex does not match the output string.</span
>
</ng-container>
<ng-container *ngIf="isOfReturnType(task, ['Return_Code'])">
<span *ngIf="task.success"
>Returned Code matches the expected Code</span
>
<span *ngIf="!task.success">
Returned Code does not match the expected Code
</span>
</ng-container>
<ng-container *ngIf="isOfReturnType(task, ['Return_Text'])">
<span *ngIf="task.success"
>Returned Text matches the expected Text</span
>
<span *ngIf="!task.success">
Returned Text does not match the expected Text
</span>
</ng-container>
<ng-container *ngIf="isOfReturnType(task, ['Return_Code_And_Text'])">
<span *ngIf="task.success">
Returned Text and Code match the expected Text and Code
</span>
<span *ngIf="!task.success">
Either returned Text, Returned Code or both do not match the expected
Text and Code
</span>
</ng-container>
</li>
</ul>
@if (task) {
<ul class="list-group">
<li class="list-group-item">
<p>
Description: <b>{{ task.description }}</b>
</p>
<p>
Command: <code>{{ task.command }}</code>
</p>
</li>
@if (isOfReturnType(task, ['Match_Regex'])) {
<li class="list-group-item">
<p>
Regular Expression: <code>{{ task.expected_output_value }}</code>
</p>
<p>
Actual Output: <code>{{ task.actual_output_value }}</code>
</p>
</li>
}
@if (isOfReturnType(task, ['Return_Text', 'Return_Code_And_Text'])) {
<li class="list-group-item">
<p>
Expected Output: <code>{{ task.expected_output_value }}</code>
</p>
<p>
Actual Output: <code>{{ task.actual_output_value }}</code>
</p>
</li>
}
@if (isOfReturnType(task, ['Return_Code', 'Return_Code_And_Text'])) {
<li class="list-group-item">
<p>
Expected Returncode: <code>{{ task.expected_return_code }}</code>
</p>
<p>
Actual Returncode: <code>{{ task.actual_return_code }}</code>
</p>
</li>
}
@if (taskUnset()) {
<li class="list-group-item">
<button
id="refreshButton"
(click)="elementClicked()"
class="label label-info"
label="Revalidate"
>
<cds-icon
[@rotatedState]="rotationState"
shape="sync"
inverse
></cds-icon>
</button>
Run the validation checks once to see the result.
</li>
} @else {
<li class="list-group-item">
@if (task.success) {
<span class="label label-success">
<cds-icon shape="check" inverse></cds-icon>
</span>
} @else {
<span class="label label-danger">
<cds-icon shape="times" inverse></cds-icon>
</span>
}
@if (isOfReturnType(task, ['Match_Regex'])) {
@if (task.success) {
<span>The Regex matches the output string.</span>
} @else {
<span>The Regex does not match the output string.</span>
}
}
@if (isOfReturnType(task, ['Return_Code'])) {
@if (task.success) {
<span>Returned Code matches the expected Code</span>
} @else {
<span> Returned Code does not match the expected Code </span>
}
}
@if (isOfReturnType(task, ['Return_Text'])) {
@if (task.success) {
<span>Returned Text matches the expected Text</span>
} @else {
<span> Returned Text does not match the expected Text </span>
}
}
@if (isOfReturnType(task, ['Return_Code_And_Text'])) {
@if (task.success) {
<span>
Returned Text and Code match the expected Text and Code
</span>
} @else {
<span>
Either returned Text, Returned Code or both do not match the
expected Text and Code
</span>
}
}
</li>
}
</ul>
}
</details>
Loading