From ae463233ba60878d986d37462f8c6903177412cc Mon Sep 17 00:00:00 2001 From: Ben Stein Date: Fri, 12 May 2023 10:28:27 -0400 Subject: [PATCH 01/10] Convert usages of bypassSecurityTrustHtml to sanitize and reworked some template control flows. --- .../challenge-observer.component.html | 61 +++++++++++-------- .../game-mapper/game-mapper.component.html | 4 -- .../user-api-keys.component.html | 10 ++- .../gameboard-ui/src/app/core/core.module.ts | 4 +- .../src/app/core/pipes/linkify-html.pipe.ts | 6 +- .../src/app/core/pipes/safe-html.pipe.ts | 11 ---- .../src/app/core/pipes/sanitize-html.pipe.ts | 11 ++++ .../game/certificate/certificate.component.ts | 6 +- .../certificate-list.component.html | 10 +-- .../certificate-list.component.ts | 21 +++---- .../morphing-text/morphing-text.component.ts | 13 ++-- 11 files changed, 86 insertions(+), 71 deletions(-) delete mode 100644 projects/gameboard-ui/src/app/core/pipes/safe-html.pipe.ts create mode 100644 projects/gameboard-ui/src/app/core/pipes/sanitize-html.pipe.ts diff --git a/projects/gameboard-ui/src/app/admin/challenge-observer/challenge-observer.component.html b/projects/gameboard-ui/src/app/admin/challenge-observer/challenge-observer.component.html index 3fe6bd16..ae190e42 100644 --- a/projects/gameboard-ui/src/app/admin/challenge-observer/challenge-observer.component.html +++ b/projects/gameboard-ui/src/app/admin/challenge-observer/challenge-observer.component.html @@ -25,15 +25,15 @@

Observe Challenges

- - + [(ngModel)]="sort" [ngModelOptions]="{updateOn: 'change'}"> + +
@@ -49,24 +49,31 @@

Challenge Score

Consoles

- -
+ +
- {{row.value.playerName}}
{{row.value.gameScore | number}} {{""}}
-
{{row.value.name}}{{row.value.id | slice:0:8}} {{row.value.tag}}
+
{{row.value.name}}{{row.value.id | slice:0:8}} {{row.value.tag}}
{{row.value.duration | clock }}
{{row.value.challengeScore | number}}
-
@@ -84,22 +91,26 @@

Consoles

- - -
-
- - - {{user.userName}} - +
+ + + {{user.userName}} +