diff --git a/src/app/app.html b/src/app/app.html index d3417da..f9e7a0f 100644 --- a/src/app/app.html +++ b/src/app/app.html @@ -2,7 +2,15 @@
@if (eventsService.status() === 'open') { -
+
} @else if (eventsService.status() === 'closed') {
} @else if (eventsService.status() === 'error') { diff --git a/src/app/components/processor/processor.html b/src/app/components/processor/processor.html index a76c390..d1f2b72 100644 --- a/src/app/components/processor/processor.html +++ b/src/app/components/processor/processor.html @@ -60,7 +60,7 @@
-
Processors
@if (processors() !== undefined && processors()!.length > 0) { -
@for (processor of processors(); track $index; let i = $index) {
diff --git a/src/app/components/route/route.ts b/src/app/components/route/route.ts index 70db1c8..d5517a9 100644 --- a/src/app/components/route/route.ts +++ b/src/app/components/route/route.ts @@ -1,9 +1,4 @@ -import { - CdkDrag, - CdkDragDrop, - CdkDropList, - moveItemInArray -} from '@angular/cdk/drag-drop'; +import { CdkDrag, CdkDragDrop, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop'; import { JsonPipe } from '@angular/common'; import { Component, computed, inject, input, model, output, signal } from '@angular/core'; import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; diff --git a/src/app/models/events.ts b/src/app/models/events.ts index 59245d1..8c798d4 100644 --- a/src/app/models/events.ts +++ b/src/app/models/events.ts @@ -1,4 +1,3 @@ - export type RouterEvent = { type: T; data?: D; diff --git a/src/app/services/config.ts b/src/app/services/config.ts index 45c4230..986ad60 100644 --- a/src/app/services/config.ts +++ b/src/app/services/config.ts @@ -1,7 +1,14 @@ import { HttpClient } from '@angular/common/http'; import { computed, effect, inject, Injectable, signal } from '@angular/core'; import { cloneDeep, isEqual } from 'lodash-es'; -import { Config, ConfigError, ModuleConfig, ModuleError, RouteConfig, RouteError } from '../models/config'; +import { + Config, + ConfigError, + ModuleConfig, + ModuleError, + RouteConfig, + RouteError, +} from '../models/config'; import { EventsService } from './events'; import { SchemaService } from './schema'; import { SettingsService } from './settings'; @@ -75,7 +82,7 @@ export class ConfigService { } uploadConfig(config: Config) { - if (this.schemaService.validate(this.schemaService.configSchemaId,config)) { + if (this.schemaService.validate(this.schemaService.configSchemaId, config)) { this.updateCurrentlyShownConfig(config); const configUrl = this.settingsService.configUrl(); if (!configUrl) { diff --git a/src/app/services/events.ts b/src/app/services/events.ts index 1658580..41be14e 100644 --- a/src/app/services/events.ts +++ b/src/app/services/events.ts @@ -38,7 +38,9 @@ export class EventsService { this.pingInterval = setInterval(() => { if (this.socket && this.socket.readyState === WebSocket.OPEN) { this.lastPingTimestamp = Date.now(); - this.socket.send(JSON.stringify({ type: 'ping', data: {timestamp: this.lastPingTimestamp} })); + this.socket.send( + JSON.stringify({ type: 'ping', data: { timestamp: this.lastPingTimestamp } }), + ); } }, 5000); }; diff --git a/src/app/services/schema.ts b/src/app/services/schema.ts index 6da3110..2527677 100644 --- a/src/app/services/schema.ts +++ b/src/app/services/schema.ts @@ -1,9 +1,6 @@ import { HttpClient } from '@angular/common/http'; import { computed, effect, inject, Injectable, signal } from '@angular/core'; -import { - AbstractControl, - ValidationErrors -} from '@angular/forms'; +import { AbstractControl, ValidationErrors } from '@angular/forms'; import { Ajv2020, JSONSchemaType } from 'ajv/dist/2020'; import { SomeJSONSchema } from 'ajv/dist/types/json-schema'; import { sortBy } from 'lodash-es';