Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
459 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { defineConfig } from 'cypress'; | ||
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset'; | ||
import { defineConfig } from 'cypress' | ||
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset' | ||
|
||
export default defineConfig({ | ||
e2e: nxE2EPreset(__dirname), | ||
}); | ||
e2e: nxE2EPreset(__dirname) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { getGreeting } from '../support/app.po'; | ||
import { getGreeting } from '../support/app.po' | ||
|
||
describe('playground', () => { | ||
beforeEach(() => cy.visit('/')); | ||
beforeEach(() => cy.visit('/')) | ||
|
||
it('should display welcome message', () => { | ||
// Custom command example, see `../support/commands.ts` file | ||
cy.login('my-email@something.com', 'myPassword'); | ||
cy.login('my-email@something.com', 'myPassword') | ||
|
||
// Function helper example, see `../support/app.po.ts` file | ||
getGreeting().contains('Welcome playground'); | ||
}); | ||
}); | ||
getGreeting().contains('Welcome playground') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const getGreeting = () => cy.get('h1'); | ||
export const getGreeting = () => cy.get('h1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { PassCodeDemoComponent } from './demos/pass-code/pass-code-demo.component'; | ||
import { NgModule } from '@angular/core' | ||
import { RouterModule, Routes } from '@angular/router' | ||
import { PassCodeDemoComponent } from './demos/pass-code/pass-code-demo.component' | ||
|
||
const routes: Routes = [ | ||
{ path: 'ngx-pass-code', component: PassCodeDemoComponent }, | ||
]; | ||
{ path: 'ngx-pass-code', component: PassCodeDemoComponent } | ||
] | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forRoot(routes)], | ||
exports: [RouterModule], | ||
exports: [RouterModule] | ||
}) | ||
export class AppRoutingModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'ngx-libs-workspace-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.scss'], | ||
styleUrls: ['./app.component.scss'] | ||
}) | ||
export class AppComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { ReactiveFormsModule } from '@angular/forms'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { NgxPassCodeModule } from 'ngx-pass-code'; | ||
import { NgModule } from '@angular/core' | ||
import { ReactiveFormsModule } from '@angular/forms' | ||
import { BrowserModule } from '@angular/platform-browser' | ||
import { NgxPassCodeModule } from 'ngx-pass-code' | ||
|
||
import { AppComponent } from './app.component'; | ||
import { AppComponent } from './app.component' | ||
|
||
import { AppRoutingModule } from './app-routing.module'; | ||
import { PassCodeDemoComponent } from './demos/pass-code/pass-code-demo.component'; | ||
import { AppRoutingModule } from './app-routing.module' | ||
import { PassCodeDemoComponent } from './demos/pass-code/pass-code-demo.component' | ||
|
||
@NgModule({ | ||
declarations: [AppComponent, PassCodeDemoComponent], | ||
imports: [ | ||
BrowserModule, | ||
AppRoutingModule, | ||
ReactiveFormsModule, | ||
NgxPassCodeModule, | ||
NgxPassCodeModule | ||
], | ||
bootstrap: [AppComponent], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class AppModule {} |
16 changes: 8 additions & 8 deletions
16
apps/playground/src/app/demos/pass-code/pass-code-demo.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { FormControl, FormGroup, Validators } from '@angular/forms'; | ||
import { ChangeDetectionStrategy, Component } from '@angular/core' | ||
import { FormControl, FormGroup, Validators } from '@angular/forms' | ||
|
||
@Component({ | ||
selector: 'ngx-libs-workspace-pass-code-demo', | ||
templateUrl: './pass-code.component.html', | ||
styleUrls: ['./pass-code.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
changeDetection: ChangeDetectionStrategy.OnPush | ||
}) | ||
export class PassCodeDemoComponent { | ||
form = new FormGroup({ | ||
textCode: new FormControl('76', { validators: [Validators.required] }), | ||
numberCode: new FormControl(''), | ||
passwordCode: new FormControl('mypass1'), | ||
}); | ||
passwordCode: new FormControl('mypass1') | ||
}) | ||
|
||
textCode = this.form.get('textCode') as FormControl; | ||
numberCode = this.form.get('numberCode') as FormControl; | ||
passwordCode = this.form.get('passwordCode') as FormControl; | ||
textCode = this.form.get('textCode') as FormControl | ||
numberCode = this.form.get('numberCode') as FormControl | ||
passwordCode = this.form.get('passwordCode') as FormControl | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const environment = { | ||
production: true, | ||
}; | ||
production: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { enableProdMode } from '@angular/core'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { enableProdMode } from '@angular/core' | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' | ||
|
||
import { AppModule } from './app/app.module'; | ||
import { environment } from './environments/environment'; | ||
import { AppModule } from './app/app.module' | ||
import { environment } from './environments/environment' | ||
|
||
if (environment.production) { | ||
enableProdMode(); | ||
enableProdMode() | ||
} | ||
|
||
platformBrowserDynamic() | ||
.bootstrapModule(AppModule) | ||
.catch((err) => console.error(err)); | ||
.catch(err => console.error(err)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import 'jest-preset-angular/setup-jest'; | ||
import 'jest-preset-angular/setup-jest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { getJestProjects } from '@nrwl/jest'; | ||
import { getJestProjects } from '@nrwl/jest' | ||
|
||
export default { | ||
projects: getJestProjects(), | ||
}; | ||
projects: getJestProjects() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { PassCodeComponent } from './lib/component/pass-code.component'; | ||
export * from './lib/ngx-pass-code.module'; | ||
export { PassCodeComponent } from './lib/component/pass-code.component' | ||
export * from './lib/ngx-pass-code.module' |
Oops, something went wrong.