From d237b89d759976e3a957774bb25fcc3dfb8a9289 Mon Sep 17 00:00:00 2001 From: Dmitry Romanov Date: Tue, 17 Sep 2024 16:52:37 -0400 Subject: [PATCH] [ng] Change file names to follow angular convention --- firebird-ng/src/app/main-display/main-display.component.ts | 3 ++- firebird-ng/src/app/painters/PointHitPainter.ts | 4 ---- firebird-ng/src/app/painters/box-hit.painter.ts | 0 .../{IEntryComponentRenderer.ts => component-painter.ts} | 2 +- firebird-ng/src/app/painters/{Painter.ts => event-painter.ts} | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 firebird-ng/src/app/painters/PointHitPainter.ts create mode 100644 firebird-ng/src/app/painters/box-hit.painter.ts rename firebird-ng/src/app/painters/{IEntryComponentRenderer.ts => component-painter.ts} (80%) rename firebird-ng/src/app/painters/{Painter.ts => event-painter.ts} (69%) diff --git a/firebird-ng/src/app/main-display/main-display.component.ts b/firebird-ng/src/app/main-display/main-display.component.ts index 9e6ad12..e64cc7d 100644 --- a/firebird-ng/src/app/main-display/main-display.component.ts +++ b/firebird-ng/src/app/main-display/main-display.component.ts @@ -423,7 +423,8 @@ export class MainDisplayComponent implements OnInit { //this.buildEventDataFromJSON(this.eventsArray[0]); this.eventDisplay.parsePhoenixEvents(data); console.log(this); - console.log(`Loading event: ${data}`); + console.log(`Loading event: `); + console.log(data); }; worker.postMessage(eventConfig.eventFile); } else { diff --git a/firebird-ng/src/app/painters/PointHitPainter.ts b/firebird-ng/src/app/painters/PointHitPainter.ts deleted file mode 100644 index 9acab04..0000000 --- a/firebird-ng/src/app/painters/PointHitPainter.ts +++ /dev/null @@ -1,4 +0,0 @@ - -class PointHitPainter { - -} diff --git a/firebird-ng/src/app/painters/box-hit.painter.ts b/firebird-ng/src/app/painters/box-hit.painter.ts new file mode 100644 index 0000000..e69de29 diff --git a/firebird-ng/src/app/painters/IEntryComponentRenderer.ts b/firebird-ng/src/app/painters/component-painter.ts similarity index 80% rename from firebird-ng/src/app/painters/IEntryComponentRenderer.ts rename to firebird-ng/src/app/painters/component-painter.ts index dcccf8b..6dc01e8 100644 --- a/firebird-ng/src/app/painters/IEntryComponentRenderer.ts +++ b/firebird-ng/src/app/painters/component-painter.ts @@ -1,4 +1,4 @@ -interface IEntryComponentRenderer { +interface ComponentPainter { createFromObject(source: any): any; toModel(source: any): any; renderAtTime(source: any): any; diff --git a/firebird-ng/src/app/painters/Painter.ts b/firebird-ng/src/app/painters/event-painter.ts similarity index 69% rename from firebird-ng/src/app/painters/Painter.ts rename to firebird-ng/src/app/painters/event-painter.ts index a3b2c2c..15acc1e 100644 --- a/firebird-ng/src/app/painters/Painter.ts +++ b/firebird-ng/src/app/painters/event-painter.ts @@ -1,4 +1,4 @@ -interface Painter { +interface EventPainter { sendEmail(address: string, content: string): void; }