From c1c9127d06183347dd9f6de29619cf374c6e2d1c Mon Sep 17 00:00:00 2001 From: shameerrehman Date: Tue, 29 Aug 2023 13:59:37 -0400 Subject: [PATCH] fixing prettier --- README.md | 19 +++---------------- projects/ngx-turnstile-demo/src/index.html | 2 +- projects/ngx-turnstile-demo/src/test.ts | 4 ++-- projects/ngx-turnstile/README.md | 7 +------ .../src/lib/ngx-turnstile.component.ts | 8 ++++---- projects/ngx-turnstile/src/test.ts | 4 ++-- 6 files changed, 13 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 3bdd407..063d27f 100644 --- a/README.md +++ b/README.md @@ -39,12 +39,7 @@ import { Component } from "@angular/core"; @Component({ selector: "my-app", - template: ``, + template: ``, }) export class MyApp { sendCaptchaResponse(captchaResponse: string) { @@ -68,21 +63,13 @@ You can then use the ngModel, formControl or formControlName directives on the c ### Reactive Form Example ```html - + ``` ### Template Driven Form Example ```html - + ``` The component is read-only, meaning that you should not update the control with a custom value. Updating the control value will reset the component diff --git a/projects/ngx-turnstile-demo/src/index.html b/projects/ngx-turnstile-demo/src/index.html index f1ec86f..1aef93b 100644 --- a/projects/ngx-turnstile-demo/src/index.html +++ b/projects/ngx-turnstile-demo/src/index.html @@ -1,4 +1,4 @@ - + diff --git a/projects/ngx-turnstile-demo/src/test.ts b/projects/ngx-turnstile-demo/src/test.ts index dcb08e4..6052e24 100644 --- a/projects/ngx-turnstile-demo/src/test.ts +++ b/projects/ngx-turnstile-demo/src/test.ts @@ -11,7 +11,7 @@ declare const require: { context( path: string, deep?: boolean, - filter?: RegExp + filter?: RegExp, ): { (id: string): T; keys(): string[]; @@ -21,7 +21,7 @@ declare const require: { // First, initialize the Angular testing environment. getTestBed().initTestEnvironment( BrowserDynamicTestingModule, - platformBrowserDynamicTesting() + platformBrowserDynamicTesting(), ); // Then we find all the tests. diff --git a/projects/ngx-turnstile/README.md b/projects/ngx-turnstile/README.md index 127d71b..3e44b87 100644 --- a/projects/ngx-turnstile/README.md +++ b/projects/ngx-turnstile/README.md @@ -39,12 +39,7 @@ import { Component } from "@angular/core"; @Component({ selector: "my-app", - template: ``, + template: ``, }) export class MyApp { sendCaptchaResponse(captchaResponse: string) { diff --git a/projects/ngx-turnstile/src/lib/ngx-turnstile.component.ts b/projects/ngx-turnstile/src/lib/ngx-turnstile.component.ts index b795540..d90ce9c 100644 --- a/projects/ngx-turnstile/src/lib/ngx-turnstile.component.ts +++ b/projects/ngx-turnstile/src/lib/ngx-turnstile.component.ts @@ -16,11 +16,11 @@ declare global { turnstile: { render: ( idOrContainer: string | HTMLElement, - options: TurnstileOptions + options: TurnstileOptions, ) => string; reset: (widgetIdOrContainer: string | HTMLElement) => void; getResponse: ( - widgetIdOrContainer: string | HTMLElement + widgetIdOrContainer: string | HTMLElement, ) => string | undefined; remove: (widgetIdOrContainer: string | HTMLElement) => void; }; @@ -50,7 +50,7 @@ export class NgxTurnstileComponent implements AfterViewInit, OnDestroy { constructor( private elementRef: ElementRef, - private zone: NgZone + private zone: NgZone, ) {} private _getCloudflareTurnstileUrl(): string { @@ -86,7 +86,7 @@ export class NgxTurnstileComponent implements AfterViewInit, OnDestroy { this.widgetId = window.turnstile.render( this.elementRef.nativeElement, - turnstileOptions + turnstileOptions, ); }; diff --git a/projects/ngx-turnstile/src/test.ts b/projects/ngx-turnstile/src/test.ts index 192d59a..68fdda6 100644 --- a/projects/ngx-turnstile/src/test.ts +++ b/projects/ngx-turnstile/src/test.ts @@ -12,7 +12,7 @@ declare const require: { context( path: string, deep?: boolean, - filter?: RegExp + filter?: RegExp, ): { (id: string): T; keys(): string[]; @@ -22,7 +22,7 @@ declare const require: { // First, initialize the Angular testing environment. getTestBed().initTestEnvironment( BrowserDynamicTestingModule, - platformBrowserDynamicTesting() + platformBrowserDynamicTesting(), ); // Then we find all the tests.