diff --git a/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.html.ejs b/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.html.ejs index 60518cc38e13..a2ede8e54a28 100644 --- a/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.html.ejs @@ -20,15 +20,15 @@

__jhiTranslateTag__('activate.title')

- @if (success()) { -
- __jhiTranslateTag__('activate.messages.success') - __jhiTranslateTag__('global.messages.info.authenticated.link'). -
- } - @if (error()) { -
__jhiTranslateTag__('activate.messages.error')
- } + @if (success()) { +
+ __jhiTranslateTag__('activate.messages.success') + __jhiTranslateTag__('global.messages.info.authenticated.link'). +
+ } + @if (error()) { +
__jhiTranslateTag__('activate.messages.error')
+ }
diff --git a/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.spec.ts.ejs index f2b8116967e4..d9249aea5c6b 100644 --- a/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.spec.ts.ejs @@ -27,22 +27,20 @@ import ActivateComponent from './activate.component'; describe('ActivateComponent', () => { let comp: ActivateComponent; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ActivateComponent], - providers: [ - provideHttpClient(), - { - provide: ActivatedRoute, - useValue: { queryParams: of({ key: 'ABC123' }) }, - }, - ], - }) - .overrideTemplate(ActivateComponent, '') - .compileComponents(); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ActivateComponent], + providers: [ + provideHttpClient(), + { + provide: ActivatedRoute, + useValue: { queryParams: of({ key: 'ABC123' }) }, + }, + ], }) - ); + .overrideTemplate(ActivateComponent, '') + .compileComponents(); + })); beforeEach(() => { const fixture = TestBed.createComponent(ActivateComponent); @@ -58,7 +56,7 @@ describe('ActivateComponent', () => { tick(); expect(service.get).toHaveBeenCalledWith('ABC123'); - }) + }), )); it('should set set success to true upon successful activation', inject( @@ -71,7 +69,7 @@ describe('ActivateComponent', () => { expect(comp.error()).toBe(false); expect(comp.success()).toBe(true); - }) + }), )); it('should set set error to true upon activation failure', inject( @@ -84,6 +82,6 @@ describe('ActivateComponent', () => { expect(comp.error()).toBe(true); expect(comp.success()).toBe(false); - }) + }), )); }); diff --git a/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.ts.ejs index 3e4e04adf161..940a2eb36307 100644 --- a/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.ts.ejs @@ -39,7 +39,7 @@ export default class ActivateComponent implements OnInit { ngOnInit(): void { this.route.queryParams.pipe(mergeMap(params => this.activateService.get(params.key))).subscribe({ next: () => this.success.set(true), - error: () => this.error.set(true) + error: () => this.error.set(true), }); } } diff --git a/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.spec.ts.ejs index 128ef950da54..dc1fa1f6ff5f 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.spec.ts.ejs @@ -93,7 +93,7 @@ describe('PasswordResetFinishComponent', () => { expect(service.save).toHaveBeenCalledWith('XYZPDQ', 'password'); expect(comp.success()).toBe(true); - }) + }), )); it('should notify of generic error', inject( @@ -111,6 +111,6 @@ describe('PasswordResetFinishComponent', () => { expect(service.save).toHaveBeenCalledWith('XYZPDQ', 'password'); expect(comp.success()).toBe(false); expect(comp.error()).toBe(true); - }) + }), )); }); diff --git a/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.ts.ejs index e82d8374c024..43c7976e31dd 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.ts.ejs @@ -76,8 +76,8 @@ export default class PasswordResetFinishComponent implements OnInit, AfterViewIn this.doNotMatch.set(true); } else { this.passwordResetFinishService.save(this.key(), newPassword).subscribe({ - next: () => (this.success.set(true)), - error: () => (this.error.set(true)), + next: () => this.success.set(true), + error: () => this.error.set(true), }); } } diff --git a/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.spec.ts.ejs index 04a2a3c05974..285fdc6296b4 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.spec.ts.ejs @@ -64,9 +64,7 @@ describe('PasswordResetInitComponent', () => { it('no notification of success upon error response', inject([PasswordResetInitService], (service: PasswordResetInitService) => { const err = { status: 503, data: 'something else' }; - jest.spyOn(service, 'save').mockReturnValue( - throwError(() => err) - ); + jest.spyOn(service, 'save').mockReturnValue(throwError(() => err)); comp.resetRequestForm.patchValue({ email: 'user@domain.com', }); diff --git a/generators/angular/templates/src/main/webapp/app/account/password/password-strength-bar/password-strength-bar.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password/password-strength-bar/password-strength-bar.component.spec.ts.ejs index a4ee64b4fc5d..cf2ea11d6efc 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password/password-strength-bar/password-strength-bar.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password/password-strength-bar/password-strength-bar.component.spec.ts.ejs @@ -24,15 +24,13 @@ describe('PasswordStrengthBarComponent', () => { let comp: PasswordStrengthBarComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [PasswordStrengthBarComponent], - }) - .overrideTemplate(PasswordStrengthBarComponent, '') - .compileComponents(); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [PasswordStrengthBarComponent], }) - ); + .overrideTemplate(PasswordStrengthBarComponent, '') + .compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(PasswordStrengthBarComponent); diff --git a/generators/angular/templates/src/main/webapp/app/account/password/password.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password/password.component.spec.ts.ejs index cf90e8ed3f3d..f6b36dbfb34c 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password/password.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password/password.component.spec.ts.ejs @@ -33,16 +33,14 @@ describe('PasswordComponent', () => { let fixture: ComponentFixture; let service: PasswordService; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [PasswordComponent], - providers: [FormBuilder, AccountService, provideHttpClient()], - }) - .overrideTemplate(PasswordComponent, '') - .compileComponents(); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [PasswordComponent], + providers: [FormBuilder, AccountService, provideHttpClient()], }) - ); + .overrideTemplate(PasswordComponent, '') + .compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(PasswordComponent); diff --git a/generators/angular/templates/src/main/webapp/app/account/password/password.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password/password.component.ts.ejs index d2c142a1f321..12a35dc8e1b1 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password/password.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password/password.component.ts.ejs @@ -66,8 +66,8 @@ export default class PasswordComponent implements OnInit { this.doNotMatch.set(true); } else { this.passwordService.save(newPassword, currentPassword).subscribe({ - next: () => (this.success.set(true)), - error: () => (this.error.set(true)), + next: () => this.success.set(true), + error: () => this.error.set(true), }); } } diff --git a/generators/angular/templates/src/main/webapp/app/account/password/password.service.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password/password.service.spec.ts.ejs index c29b67f42b04..58ed05a15d58 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password/password.service.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password/password.service.spec.ts.ejs @@ -33,7 +33,10 @@ describe('Password Service', () => { // WHEN service.save(password2, password1).subscribe(); - const testRequest = httpMock.expectOne({ method: 'POST', url: applicationConfigService.getEndpointFor('api/account/change-password') }); + const testRequest = httpMock.expectOne({ + method: 'POST', + url: applicationConfigService.getEndpointFor('api/account/change-password'), + }); // THEN expect(testRequest.request.body).toEqual({ currentPassword: password1, newPassword: password2 }); diff --git a/generators/angular/templates/src/main/webapp/app/account/register/register.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/register/register.component.spec.ts.ejs index 53b1bc9afb1d..62007a6cbc0c 100644 --- a/generators/angular/templates/src/main/webapp/app/account/register/register.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/register/register.component.spec.ts.ejs @@ -90,16 +90,14 @@ describe('RegisterComponent', () => { expect(comp.errorUserExists()).toBe(false); expect(comp.errorEmailExists()).toBe(false); expect(comp.error()).toBe(false); - }) + }), )); it('should notify of user existence upon 400/login already in use', inject( [RegisterService], fakeAsync((service: RegisterService) => { const err = { status: 400, error: { type: LOGIN_ALREADY_USED_TYPE } }; - jest.spyOn(service, 'save').mockReturnValue( - throwError(() => err) - ); + jest.spyOn(service, 'save').mockReturnValue(throwError(() => err)); comp.registerForm.patchValue({ password: 'password', confirmPassword: 'password', @@ -111,16 +109,14 @@ describe('RegisterComponent', () => { expect(comp.errorUserExists()).toBe(true); expect(comp.errorEmailExists()).toBe(false); expect(comp.error()).toBe(false); - }) + }), )); it('should notify of email existence upon 400/email address already in use', inject( [RegisterService], fakeAsync((service: RegisterService) => { const err = { status: 400, error: { type: EMAIL_ALREADY_USED_TYPE } }; - jest.spyOn(service, 'save').mockReturnValue( - throwError(() => err) - ); + jest.spyOn(service, 'save').mockReturnValue(throwError(() => err)); comp.registerForm.patchValue({ password: 'password', confirmPassword: 'password', @@ -132,16 +128,14 @@ describe('RegisterComponent', () => { expect(comp.errorEmailExists()).toBe(true); expect(comp.errorUserExists()).toBe(false); expect(comp.error()).toBe(false); - }) + }), )); it('should notify of generic error', inject( [RegisterService], fakeAsync((service: RegisterService) => { const err = { status: 503 }; - jest.spyOn(service, 'save').mockReturnValue( - throwError(() => err) - ); + jest.spyOn(service, 'save').mockReturnValue(throwError(() => err)); comp.registerForm.patchValue({ password: 'password', confirmPassword: 'password', @@ -153,6 +147,6 @@ describe('RegisterComponent', () => { expect(comp.errorUserExists()).toBe(false); expect(comp.errorEmailExists()).toBe(false); expect(comp.error()).toBe(true); - }) + }), )); }); diff --git a/generators/angular/templates/src/main/webapp/app/account/register/register.model.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/register/register.model.ts.ejs index e46da7472469..ffe7029aaa67 100644 --- a/generators/angular/templates/src/main/webapp/app/account/register/register.model.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/register/register.model.ts.ejs @@ -17,5 +17,10 @@ limitations under the License. -%> export class Registration { - constructor(public login: string, public email: string, public password: string, public langKey: string) {} + constructor( + public login: string, + public email: string, + public password: string, + public langKey: string, + ) {} } diff --git a/generators/angular/templates/src/main/webapp/app/account/sessions/session.model.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/sessions/session.model.ts.ejs index 1d3535a55380..5f82bd7ebb34 100644 --- a/generators/angular/templates/src/main/webapp/app/account/sessions/session.model.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/sessions/session.model.ts.ejs @@ -21,6 +21,6 @@ export class Session { public series: string, public tokenDate: Date, public ipAddress: string, - public userAgent: string + public userAgent: string, ) {} } diff --git a/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.spec.ts.ejs index a068b51e09c7..d27d3f394711 100644 --- a/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.spec.ts.ejs @@ -69,7 +69,7 @@ describe('SessionsComponent', () => { expect(comp.error).toBe(false); expect(comp.account).toEqual(account); expect(comp.sessions).toEqual(sessions); - }) + }), )); it('should call delete on Sessions to invalidate a session', inject( @@ -84,7 +84,7 @@ describe('SessionsComponent', () => { tick(); expect(service.delete).toHaveBeenCalledWith('xyz'); - }) + }), )); it('should call delete on Sessions and notify of error', inject( @@ -100,7 +100,7 @@ describe('SessionsComponent', () => { expect(comp.success).toBe(false); expect(comp.error).toBe(true); - }) + }), )); it('should call notify of success upon session invalidation', inject( @@ -116,6 +116,6 @@ describe('SessionsComponent', () => { expect(comp.error).toBe(false); expect(comp.success).toBe(true); - }) + }), )); }); diff --git a/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.ts.ejs index 047f3a33fa0a..21cfd6ecd9ad 100644 --- a/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.ts.ejs @@ -40,9 +40,9 @@ export default class SessionsComponent implements OnInit { private accountService = inject(AccountService); ngOnInit(): void { - this.sessionsService.findAll().subscribe(sessions => this.sessions = sessions); + this.sessionsService.findAll().subscribe(sessions => (this.sessions = sessions)); - this.accountService.identity().subscribe(account => this.account = account); + this.accountService.identity().subscribe(account => (this.account = account)); } invalidate(series: string): void { @@ -52,9 +52,9 @@ export default class SessionsComponent implements OnInit { this.sessionsService.delete(encodeURIComponent(series)).subscribe( () => { this.success = true; - this.sessionsService.findAll().subscribe(sessions => this.sessions = sessions); + this.sessionsService.findAll().subscribe(sessions => (this.sessions = sessions)); }, - () => this.error = true + () => (this.error = true), ); } } diff --git a/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.component.spec.ts.ejs index 230e501dc9ec..09e94d351865 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.component.spec.ts.ejs @@ -29,16 +29,14 @@ describe('ConfigurationComponent', () => { let fixture: ComponentFixture; let service: ConfigurationService; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ConfigurationComponent], - providers: [provideHttpClient(), ConfigurationService], - }) - .overrideTemplate(ConfigurationComponent, '') - .compileComponents(); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [ConfigurationComponent], + providers: [provideHttpClient(), ConfigurationService], }) - ); + .overrideTemplate(ConfigurationComponent, '') + .compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(ConfigurationComponent); diff --git a/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.service.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.service.ts.ejs index a77e3b58db8a..f8e4f8bf2c10 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.service.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.service.ts.ejs @@ -35,9 +35,9 @@ export class ConfigurationService { Object.values( Object.values(configProps.contexts) .map(context => context.beans) - .reduce((allBeans: Beans, contextBeans: Beans) => ({ ...allBeans, ...contextBeans }), {}) - ) - ) + .reduce((allBeans: Beans, contextBeans: Beans) => ({ ...allBeans, ...contextBeans }), {}), + ), + ), ); } diff --git a/generators/angular/templates/src/main/webapp/app/admin/docs/docs.component.html.ejs b/generators/angular/templates/src/main/webapp/app/admin/docs/docs.component.html.ejs index 40cde1dc8326..2c19ae081970 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/docs/docs.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/docs/docs.component.html.ejs @@ -16,4 +16,13 @@ See the License for the specific language governing permissions and limitations under the License. -%> - + diff --git a/generators/angular/templates/src/main/webapp/app/admin/health/health.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/health/health.component.spec.ts.ejs index a3a710dbad97..fd59cb7760db 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/health/health.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/health/health.component.spec.ts.ejs @@ -29,16 +29,14 @@ describe('HealthComponent', () => { let fixture: ComponentFixture; let service: HealthService; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [HealthComponent], - providers: [provideHttpClient()], - }) - .overrideTemplate(HealthComponent, '') - .compileComponents(); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [HealthComponent], + providers: [provideHttpClient()], }) - ); + .overrideTemplate(HealthComponent, '') + .compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(HealthComponent); diff --git a/generators/angular/templates/src/main/webapp/app/admin/health/health.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/health/health.component.ts.ejs index edde4a666ace..a7ae65495f83 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/health/health.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/health/health.component.ts.ejs @@ -55,7 +55,7 @@ export default class HealthComponent implements OnInit { if (error.status === 503) { this.health = error.error; } - } + }, }); } diff --git a/generators/angular/templates/src/main/webapp/app/admin/health/health.service.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/health/health.service.spec.ts.ejs index befd97a9940c..04d9885c3fa0 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/health/health.service.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/health/health.service.spec.ts.ejs @@ -47,7 +47,7 @@ describe('HealthService Service', () => { // GIVEN let expectedResult; const checkHealth = { - components: [] + components: [], }; // WHEN diff --git a/generators/angular/templates/src/main/webapp/app/admin/health/modal/health-modal.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/health/modal/health-modal.component.spec.ts.ejs index d32c21b04ddf..017b71ece4a6 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/health/modal/health-modal.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/health/modal/health-modal.component.spec.ts.ejs @@ -9,16 +9,14 @@ describe('HealthModalComponent', () => { let fixture: ComponentFixture; let mockActiveModal: NgbActiveModal; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [HealthModalComponent], - providers: [provideHttpClient(), NgbActiveModal], - }) - .overrideTemplate(HealthModalComponent, '') - .compileComponents(); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [HealthModalComponent], + providers: [provideHttpClient(), NgbActiveModal], }) - ); + .overrideTemplate(HealthModalComponent, '') + .compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(HealthModalComponent); @@ -32,7 +30,7 @@ describe('HealthModalComponent', () => { comp.health = undefined; // WHEN - const result = comp.readableValue({ 'name': 'jhipster' }); + const result = comp.readableValue({ name: 'jhipster' }); // THEN expect(result).toEqual('{"name":"jhipster"}'); @@ -54,8 +52,8 @@ describe('HealthModalComponent', () => { comp.health = { key: 'diskSpace', value: { - status: 'UP' - } + status: 'UP', + }, }; // WHEN @@ -70,8 +68,8 @@ describe('HealthModalComponent', () => { comp.health = { key: 'diskSpace', value: { - status: 'UP' - } + status: 'UP', + }, }; // WHEN @@ -86,8 +84,8 @@ describe('HealthModalComponent', () => { comp.health = { key: 'mail', value: { - status: 'UP' - } + status: 'UP', + }, }; // WHEN diff --git a/generators/angular/templates/src/main/webapp/app/admin/logs/log.model.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/logs/log.model.ts.ejs index af09758886a5..873b5db2982e 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/logs/log.model.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/logs/log.model.ts.ejs @@ -31,6 +31,6 @@ export interface LoggersResponse { export class Log { constructor( public name: string, - public level: Level + public level: Level, ) {} } diff --git a/generators/angular/templates/src/main/webapp/app/admin/logs/logs.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/logs/logs.component.spec.ts.ejs index 8a4e274429a8..535f372c445d 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/logs/logs.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/logs/logs.component.spec.ts.ejs @@ -67,7 +67,7 @@ describe('LogsComponent', () => { effectiveLevel: 'WARN', }, }, - } as unknown as LoggersResponse) + } as unknown as LoggersResponse), ); // WHEN @@ -91,7 +91,7 @@ describe('LogsComponent', () => { effectiveLevel: 'ERROR', }, }, - } as unknown as LoggersResponse) + } as unknown as LoggersResponse), ); // WHEN diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.html.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.html.ejs index e5d34e0eac42..eb32a486445c 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.html.ejs @@ -19,28 +19,25 @@

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

@if (!updating() && jvmMemoryMetrics()) { -
- @for (entry of jvmMemoryMetrics() | keyvalue; track $index) {
- @if (entry.value.max !== -1) { - - {{ entry.key }} - ({{ entry.value.used / 1048576 | number: '1.0-0' }}M / {{ entry.value.max / 1048576 | number: '1.0-0' }}M) - + @for (entry of jvmMemoryMetrics() | keyvalue; track $index) { +
+ @if (entry.value.max !== -1) { + + {{ entry.key }} + ({{ entry.value.used / 1048576 | number: '1.0-0' }}M / {{ entry.value.max / 1048576 | number: '1.0-0' }}M) + -
Committed : {{ entry.value.committed / 1048576 | number: '1.0-0' }}M
- - {{ (entry.value.used * 100) / entry.value.max | number: '1.0-0' }}% - - } @else { - {{ entry.key }} {{ entry.value.used / 1048576 | number: '1.0-0' }}M - } +
Committed : {{ entry.value.committed / 1048576 | number: '1.0-0' }}M
+ + {{ (entry.value.used * 100) / entry.value.max | number: '1.0-0' }}% + + } @else { + {{ entry.key }} {{ entry.value.used / 1048576 | number: '1.0-0' }}M + } +
+ }
- } -
} diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-cache/metrics-cache.component.html.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-cache/metrics-cache.component.html.ejs index 85e97a6048ab..a75fd029eb17 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-cache/metrics-cache.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-cache/metrics-cache.component.html.ejs @@ -19,46 +19,46 @@

__jhiTranslateTag__('metrics.cache.title')

@if (!updating() && cacheMetrics()) { -
- - - - - - - - - - - - - - - - @for (entry of cacheMetrics() | keyvalue; track entry.key) { - - - - - - - - - - - - } - -
__jhiTranslateTag__('metrics.cache.cachename')__jhiTranslateTag__('metrics.cache.hits')__jhiTranslateTag__('metrics.cache.misses')__jhiTranslateTag__('metrics.cache.gets')__jhiTranslateTag__('metrics.cache.puts')__jhiTranslateTag__('metrics.cache.removals')__jhiTranslateTag__('metrics.cache.evictions')__jhiTranslateTag__('metrics.cache.hitPercent')__jhiTranslateTag__('metrics.cache.missPercent')
{{ entry.key }}{{ entry.value['cache.gets.hit'] }}{{ entry.value['cache.gets.miss'] }}{{ entry.value['cache.gets.hit'] + entry.value['cache.gets.miss'] }}{{ entry.value['cache.puts'] }}{{ entry.value['cache.removals'] }}{{ entry.value['cache.evictions'] }} - {{ - filterNaN((100 * entry.value['cache.gets.hit']) / (entry.value['cache.gets.hit'] + entry.value['cache.gets.miss'])) - | number: '1.0-4' - }} - - {{ - filterNaN((100 * entry.value['cache.gets.miss']) / (entry.value['cache.gets.hit'] + entry.value['cache.gets.miss'])) - | number: '1.0-4' - }} -
-
+
+ + + + + + + + + + + + + + + + @for (entry of cacheMetrics() | keyvalue; track entry.key) { + + + + + + + + + + + + } + +
__jhiTranslateTag__('metrics.cache.cachename')__jhiTranslateTag__('metrics.cache.hits')__jhiTranslateTag__('metrics.cache.misses')__jhiTranslateTag__('metrics.cache.gets')__jhiTranslateTag__('metrics.cache.puts')__jhiTranslateTag__('metrics.cache.removals')__jhiTranslateTag__('metrics.cache.evictions')__jhiTranslateTag__('metrics.cache.hitPercent')__jhiTranslateTag__('metrics.cache.missPercent')
{{ entry.key }}{{ entry.value['cache.gets.hit'] }}{{ entry.value['cache.gets.miss'] }}{{ entry.value['cache.gets.hit'] + entry.value['cache.gets.miss'] }}{{ entry.value['cache.puts'] }}{{ entry.value['cache.removals'] }}{{ entry.value['cache.evictions'] }} + {{ + filterNaN((100 * entry.value['cache.gets.hit']) / (entry.value['cache.gets.hit'] + entry.value['cache.gets.miss'])) + | number: '1.0-4' + }} + + {{ + filterNaN((100 * entry.value['cache.gets.miss']) / (entry.value['cache.gets.hit'] + entry.value['cache.gets.miss'])) + | number: '1.0-4' + }} +
+
} diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-datasource/metrics-datasource.component.html.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-datasource/metrics-datasource.component.html.ejs index 908c36430e8c..e19dfc63b60e 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-datasource/metrics-datasource.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-datasource/metrics-datasource.component.html.ejs @@ -19,59 +19,59 @@

__jhiTranslateTag__('metrics.datasource.title')

@if (!updating() && datasourceMetrics()) { -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- __jhiTranslateTag__('metrics.datasource.usage') (active: {{ datasourceMetrics()!.active.value }}, - min: {{ datasourceMetrics()!.min.value }}, max: {{ datasourceMetrics()!.max.value }}, idle: {{ datasourceMetrics()!.idle.value }}) - __jhiTranslateTag__('metrics.datasource.count')__jhiTranslateTag__('metrics.datasource.mean')__jhiTranslateTag__('metrics.servicesstats.table.min')__jhiTranslateTag__('metrics.servicesstats.table.p50')__jhiTranslateTag__('metrics.servicesstats.table.p75')__jhiTranslateTag__('metrics.servicesstats.table.p95')__jhiTranslateTag__('metrics.servicesstats.table.p99')__jhiTranslateTag__('metrics.datasource.max')
Acquire{{ datasourceMetrics()!.acquire.count }}{{ filterNaN(datasourceMetrics()!.acquire.mean) | number: '1.0-2' }}{{ datasourceMetrics()!.acquire['0.0'] | number: '1.0-3' }}{{ datasourceMetrics()!.acquire['0.5'] | number: '1.0-3' }}{{ datasourceMetrics()!.acquire['0.75'] | number: '1.0-3' }}{{ datasourceMetrics()!.acquire['0.95'] | number: '1.0-3' }}{{ datasourceMetrics()!.acquire['0.99'] | number: '1.0-3' }}{{ filterNaN(datasourceMetrics()!.acquire.max) | number: '1.0-2' }}
Creation{{ datasourceMetrics()!.creation.count }}{{ filterNaN(datasourceMetrics()!.creation.mean) | number: '1.0-2' }}{{ datasourceMetrics()!.creation['0.0'] | number: '1.0-3' }}{{ datasourceMetrics()!.creation['0.5'] | number: '1.0-3' }}{{ datasourceMetrics()!.creation['0.75'] | number: '1.0-3' }}{{ datasourceMetrics()!.creation['0.95'] | number: '1.0-3' }}{{ datasourceMetrics()!.creation['0.99'] | number: '1.0-3' }}{{ filterNaN(datasourceMetrics()!.creation.max) | number: '1.0-2' }}
Usage{{ datasourceMetrics()!.usage.count }}{{ filterNaN(datasourceMetrics()!.usage.mean) | number: '1.0-2' }}{{ datasourceMetrics()!.usage['0.0'] | number: '1.0-3' }}{{ datasourceMetrics()!.usage['0.5'] | number: '1.0-3' }}{{ datasourceMetrics()!.usage['0.75'] | number: '1.0-3' }}{{ datasourceMetrics()!.usage['0.95'] | number: '1.0-3' }}{{ datasourceMetrics()!.usage['0.99'] | number: '1.0-3' }}{{ filterNaN(datasourceMetrics()!.usage.max) | number: '1.0-2' }}
-
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ __jhiTranslateTag__('metrics.datasource.usage') (active: {{ datasourceMetrics()!.active.value }}, min: + {{ datasourceMetrics()!.min.value }}, max: {{ datasourceMetrics()!.max.value }}, idle: {{ datasourceMetrics()!.idle.value }}) + __jhiTranslateTag__('metrics.datasource.count')__jhiTranslateTag__('metrics.datasource.mean')__jhiTranslateTag__('metrics.servicesstats.table.min')__jhiTranslateTag__('metrics.servicesstats.table.p50')__jhiTranslateTag__('metrics.servicesstats.table.p75')__jhiTranslateTag__('metrics.servicesstats.table.p95')__jhiTranslateTag__('metrics.servicesstats.table.p99')__jhiTranslateTag__('metrics.datasource.max')
Acquire{{ datasourceMetrics()!.acquire.count }}{{ filterNaN(datasourceMetrics()!.acquire.mean) | number: '1.0-2' }}{{ datasourceMetrics()!.acquire['0.0'] | number: '1.0-3' }}{{ datasourceMetrics()!.acquire['0.5'] | number: '1.0-3' }}{{ datasourceMetrics()!.acquire['0.75'] | number: '1.0-3' }}{{ datasourceMetrics()!.acquire['0.95'] | number: '1.0-3' }}{{ datasourceMetrics()!.acquire['0.99'] | number: '1.0-3' }}{{ filterNaN(datasourceMetrics()!.acquire.max) | number: '1.0-2' }}
Creation{{ datasourceMetrics()!.creation.count }}{{ filterNaN(datasourceMetrics()!.creation.mean) | number: '1.0-2' }}{{ datasourceMetrics()!.creation['0.0'] | number: '1.0-3' }}{{ datasourceMetrics()!.creation['0.5'] | number: '1.0-3' }}{{ datasourceMetrics()!.creation['0.75'] | number: '1.0-3' }}{{ datasourceMetrics()!.creation['0.95'] | number: '1.0-3' }}{{ datasourceMetrics()!.creation['0.99'] | number: '1.0-3' }}{{ filterNaN(datasourceMetrics()!.creation.max) | number: '1.0-2' }}
Usage{{ datasourceMetrics()!.usage.count }}{{ filterNaN(datasourceMetrics()!.usage.mean) | number: '1.0-2' }}{{ datasourceMetrics()!.usage['0.0'] | number: '1.0-3' }}{{ datasourceMetrics()!.usage['0.5'] | number: '1.0-3' }}{{ datasourceMetrics()!.usage['0.75'] | number: '1.0-3' }}{{ datasourceMetrics()!.usage['0.95'] | number: '1.0-3' }}{{ datasourceMetrics()!.usage['0.99'] | number: '1.0-3' }}{{ filterNaN(datasourceMetrics()!.usage.max) | number: '1.0-2' }}
+
} diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-endpoints-requests/metrics-endpoints-requests.component.html.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-endpoints-requests/metrics-endpoints-requests.component.html.ejs index a3c9b2dad137..bb4db77c13d4 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-endpoints-requests/metrics-endpoints-requests.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-endpoints-requests/metrics-endpoints-requests.component.html.ejs @@ -19,28 +19,28 @@

Endpoints requests (time in millisecond)

@if (!updating() && endpointsRequestsMetrics()) { -
- - - - - - - - - - - @for (entry of endpointsRequestsMetrics() | keyvalue; track entry.key) { - @for (method of entry.value | keyvalue; track method.key) { - - - - - - - } - } - -
MethodEndpoint urlCountMean
{{ method.key }}{{ entry.key }}{{ method.value!.count }}{{ method.value!.mean | number: '1.0-3' }}
-
+
+ + + + + + + + + + + @for (entry of endpointsRequestsMetrics() | keyvalue; track entry.key) { + @for (method of entry.value | keyvalue; track method.key) { + + + + + + + } + } + +
MethodEndpoint urlCountMean
{{ method.key }}{{ entry.key }}{{ method.value!.count }}{{ method.value!.mean | number: '1.0-3' }}
+
} diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.html.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.html.ejs index de1d2e6763b1..9113f6c354af 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.html.ejs @@ -20,99 +20,100 @@
- @if (garbageCollectorMetrics()) { -
- - GC Live Data Size/GC Max Data Size ({{ garbageCollectorMetrics()!['jvm.gc.live.data.size'] / 1048576 | number: '1.0-0' }}M / - {{ garbageCollectorMetrics()!['jvm.gc.max.data.size'] / 1048576 | number: '1.0-0' }}M) - - - + @if (garbageCollectorMetrics()) { +
- {{ - (100 * garbageCollectorMetrics()!['jvm.gc.live.data.size']) / garbageCollectorMetrics()!['jvm.gc.max.data.size'] | number: '1.0-2' - }}% + GC Live Data Size/GC Max Data Size ({{ garbageCollectorMetrics()!['jvm.gc.live.data.size'] / 1048576 | number: '1.0-0' }}M / + {{ garbageCollectorMetrics()!['jvm.gc.max.data.size'] / 1048576 | number: '1.0-0' }}M) - -
- } + + + + {{ + (100 * garbageCollectorMetrics()!['jvm.gc.live.data.size']) / garbageCollectorMetrics()!['jvm.gc.max.data.size'] + | number: '1.0-2' + }}% + + +
+ }
- @if (garbageCollectorMetrics()) { -
- - GC Memory Promoted/GC Memory Allocated ({{ garbageCollectorMetrics()!['jvm.gc.memory.promoted'] / 1048576 | number: '1.0-0' }}M / - {{ garbageCollectorMetrics()!['jvm.gc.memory.allocated'] / 1048576 | number: '1.0-0' }}M) - - - + @if (garbageCollectorMetrics()) { +
- {{ - (100 * garbageCollectorMetrics()!['jvm.gc.memory.promoted']) / garbageCollectorMetrics()!['jvm.gc.memory.allocated'] - | number: '1.0-2' - }}% + GC Memory Promoted/GC Memory Allocated ({{ garbageCollectorMetrics()!['jvm.gc.memory.promoted'] / 1048576 | number: '1.0-0' }}M / + {{ garbageCollectorMetrics()!['jvm.gc.memory.allocated'] / 1048576 | number: '1.0-0' }}M) - -
- } + + + + {{ + (100 * garbageCollectorMetrics()!['jvm.gc.memory.promoted']) / garbageCollectorMetrics()!['jvm.gc.memory.allocated'] + | number: '1.0-2' + }}% + + +
+ }
- @if (garbageCollectorMetrics()) { -
-
Classes loaded
-
{{ garbageCollectorMetrics()!.classesLoaded }}
-
-
-
Classes unloaded
-
{{ garbageCollectorMetrics()!.classesUnloaded }}
-
- } + @if (garbageCollectorMetrics()) { +
+
Classes loaded
+
{{ garbageCollectorMetrics()!.classesLoaded }}
+
+
+
Classes unloaded
+
{{ garbageCollectorMetrics()!.classesUnloaded }}
+
+ }
-@if (!updating() && garbageCollectorMetrics()) { -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
__jhiTranslateTag__('metrics.servicesstats.table.count')__jhiTranslateTag__('metrics.servicesstats.table.mean')__jhiTranslateTag__('metrics.servicesstats.table.min')__jhiTranslateTag__('metrics.servicesstats.table.p50')__jhiTranslateTag__('metrics.servicesstats.table.p75')__jhiTranslateTag__('metrics.servicesstats.table.p95')__jhiTranslateTag__('metrics.servicesstats.table.p99')__jhiTranslateTag__('metrics.servicesstats.table.max')
jvm.gc.pause{{ garbageCollectorMetrics()!['jvm.gc.pause'].count }}{{ garbageCollectorMetrics()!['jvm.gc.pause'].mean | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.0'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.5'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.75'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.95'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.99'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause'].max | number: '1.0-3' }}
-
-} + @if (!updating() && garbageCollectorMetrics()) { +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
__jhiTranslateTag__('metrics.servicesstats.table.count')__jhiTranslateTag__('metrics.servicesstats.table.mean')__jhiTranslateTag__('metrics.servicesstats.table.min')__jhiTranslateTag__('metrics.servicesstats.table.p50')__jhiTranslateTag__('metrics.servicesstats.table.p75')__jhiTranslateTag__('metrics.servicesstats.table.p95')__jhiTranslateTag__('metrics.servicesstats.table.p99')__jhiTranslateTag__('metrics.servicesstats.table.max')
jvm.gc.pause{{ garbageCollectorMetrics()!['jvm.gc.pause'].count }}{{ garbageCollectorMetrics()!['jvm.gc.pause'].mean | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.0'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.5'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.75'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.95'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause']['0.99'] | number: '1.0-3' }}{{ garbageCollectorMetrics()!['jvm.gc.pause'].max | number: '1.0-3' }}
+
+ }
diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-modal-threads/metrics-modal-threads.component.html.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-modal-threads/metrics-modal-threads.component.html.ejs index 90b25d02eb99..9b985c93f053 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-modal-threads/metrics-modal-threads.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-modal-threads/metrics-modal-threads.component.html.ejs @@ -25,89 +25,113 @@