From 315656c8bb7259421f8fdd49ab34442c3ea19c1c Mon Sep 17 00:00:00 2001 From: Jens Meichler Date: Sat, 4 Jun 2022 23:05:10 +0200 Subject: [PATCH] =?UTF-8?q?style:=20refactored=20usings=20=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app.component.ts | 10 ++++++++-- src/app/directives/autofocus.directive.ts | 4 +--- src/app/directives/cursor.directive.ts | 4 +--- src/app/directives/drag-drop.directive.ts | 4 +--- src/app/directives/highlight-color.directive.ts | 4 +--- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index c27c7732..15c36073 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -11,10 +11,16 @@ import { EditTaskListDialogComponent, EditNoteListDialogComponent } from "@clipboardjesus/components"; -import {Note, Tab, TaskList, NoteList} from '@clipboardjesus/models'; +import { + Note, + Tab, + TaskList, + NoteList +} from '@clipboardjesus/models'; import { CacheService, - DataService, FileAccessService, + DataService, + FileAccessService, HashyService, SettingsService, ClipboardService diff --git a/src/app/directives/autofocus.directive.ts b/src/app/directives/autofocus.directive.ts index 73650023..30fda2ea 100644 --- a/src/app/directives/autofocus.directive.ts +++ b/src/app/directives/autofocus.directive.ts @@ -1,8 +1,6 @@ import {Directive, ElementRef, OnInit} from '@angular/core'; -@Directive({ - selector: '[cbAutofocus]' -}) +@Directive({selector: '[cbAutofocus]'}) export class AutofocusDirective implements OnInit { constructor(private elementRef: ElementRef) {} ngOnInit(): void { diff --git a/src/app/directives/cursor.directive.ts b/src/app/directives/cursor.directive.ts index d47a33cb..603faa1c 100644 --- a/src/app/directives/cursor.directive.ts +++ b/src/app/directives/cursor.directive.ts @@ -1,9 +1,7 @@ import {Directive, HostListener} from '@angular/core'; import {SettingsService} from "@clipboardjesus/services"; -@Directive({ - selector: '[cbCursor]' -}) +@Directive({selector: '[cbCursor]'}) export class CursorDirective { cursor: HTMLElement; position?: HTMLElement; diff --git a/src/app/directives/drag-drop.directive.ts b/src/app/directives/drag-drop.directive.ts index 3acbfbe1..6355e66b 100644 --- a/src/app/directives/drag-drop.directive.ts +++ b/src/app/directives/drag-drop.directive.ts @@ -1,8 +1,6 @@ import {Directive, HostBinding, HostListener} from '@angular/core'; -@Directive({ - selector: '[cbDragDrop]' -}) +@Directive({selector: '[cbDragDrop]'}) export class DragDropDirective { private _hoveredSection = 0; diff --git a/src/app/directives/highlight-color.directive.ts b/src/app/directives/highlight-color.directive.ts index 27198234..7b05385e 100644 --- a/src/app/directives/highlight-color.directive.ts +++ b/src/app/directives/highlight-color.directive.ts @@ -3,9 +3,7 @@ import {DraggableNote} from "@clipboardjesus/models"; import {SettingsService} from "@clipboardjesus/services"; import {scrolledPosition} from "@clipboardjesus/const"; -@Directive({ - selector: '[cbHighlightColor]' -}) +@Directive({selector: '[cbHighlightColor]'}) export class HighlightColorDirective { private _cbHighlightColor?: string;