From fd60162bd978a8982423873c7fa885ec2aae3496 Mon Sep 17 00:00:00 2001 From: Quentin Date: Thu, 9 Jan 2025 22:22:56 +0100 Subject: [PATCH] [Angular] Migrate to signal (jvm-threads component) --- .../jvm-threads.component.html.ejs | 34 +++++++------- .../jvm-threads/jvm-threads.component.ts.ejs | 47 ++++++++----------- 2 files changed, 36 insertions(+), 45 deletions(-) diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-threads/jvm-threads.component.html.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-threads/jvm-threads.component.html.ejs index fe4c95112091..22b95d5d39d4 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-threads/jvm-threads.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-threads/jvm-threads.component.html.ejs @@ -18,55 +18,55 @@ -%>

__jhiTranslateTag__('metrics.jvm.threads.title')

-__jhiTranslateTag__('metrics.jvm.threads.runnable') {{ threadStats.threadDumpRunnable }} +__jhiTranslateTag__('metrics.jvm.threads.runnable') {{ threadStats().threadDumpRunnable }} - {{ (threadStats.threadDumpRunnable * 100) / threadStats.threadDumpAll | number: '1.0-0' }}% + {{ (threadStats().threadDumpRunnable * 100) / threadStats().threadDumpAll | number: '1.0-0' }}% -__jhiTranslateTag__('metrics.jvm.threads.timedwaiting') ({{ threadStats.threadDumpTimedWaiting }}) +__jhiTranslateTag__('metrics.jvm.threads.timedwaiting') ({{ threadStats().threadDumpTimedWaiting }}) - {{ (threadStats.threadDumpTimedWaiting * 100) / threadStats.threadDumpAll | number: '1.0-0' }}% + {{ (threadStats().threadDumpTimedWaiting * 100) / threadStats().threadDumpAll | number: '1.0-0' }}% -__jhiTranslateTag__('metrics.jvm.threads.waiting') ({{ threadStats.threadDumpWaiting }}) +__jhiTranslateTag__('metrics.jvm.threads.waiting') ({{ threadStats().threadDumpWaiting }}) - {{ (threadStats.threadDumpWaiting * 100) / threadStats.threadDumpAll | number: '1.0-0' }}% + {{ (threadStats().threadDumpWaiting * 100) / threadStats().threadDumpAll | number: '1.0-0' }}% -__jhiTranslateTag__('metrics.jvm.threads.blocked') ({{ threadStats.threadDumpBlocked }}) +__jhiTranslateTag__('metrics.jvm.threads.blocked') ({{ threadStats().threadDumpBlocked }}) - {{ (threadStats.threadDumpBlocked * 100) / threadStats.threadDumpAll | number: '1.0-0' }}% + {{ (threadStats().threadDumpBlocked * 100) / threadStats().threadDumpAll | number: '1.0-0' }}% -
Total: {{ threadStats.threadDumpAll }}
+
Total: {{ threadStats().threadDumpAll }}