Skip to content

Commit 4170a08

Browse files
committed
demo(package): integration of the mat-password-strength
1 parent f4ebd69 commit 4170a08

File tree

14 files changed

+71
-68
lines changed

14 files changed

+71
-68
lines changed

demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ngx-material-password-strength-demo
1+
# @angular-material-extensions/password-strength-demo
22

33
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.3.
44

demo/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "ngx-material-password-strength-demo",
2+
"name": "@angular-material-extensions/password-strength-demo",
33
"version": "1.0.5",
44
"license": "MIT",
5-
"description": "Demo app for ngx-material-password-strength",
5+
"description": "Demo app for @angular-material-extensions/password-strength",
66
"scripts": {
77
"ng": "ng",
88
"start": "ng serve",

demo/src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {MatInputModule} from '@angular/material';
2020
// Add .withServerTransition() to support Universal rendering.
2121
// The application ID can be any identifier which is unique on
2222
// the page.
23-
BrowserModule.withServerTransition({appId: 'ngx-material-password-strength-demo-id'}),
23+
BrowserModule.withServerTransition({appId: '@angular-material-extensions/password-strength-demo-id'}),
2424
ServiceWorkerModule.register('/ngsw-worker.js', {enabled: environment.production}),
2525
BrowserAnimationsModule,
2626
FormsModule,

demo/src/app/getting-started/getting-started.component.html

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1>Getting Started</h1>
77
<section class="getting-started">
88
<div class="container">
99

10-
<ngx-material-pages title="ngx-material-password-strength">
10+
<ngx-material-pages title="@angular-material-extensions/password-strength">
1111

1212
<!--1-->
1313
<ngx-material-page-loader>
@@ -143,10 +143,10 @@ <h1>Getting Started</h1>
143143
<ngx-material-page-content>
144144
<mat-card-title>Animations + Material + CDK</mat-card-title>
145145
<div class="comment-container">
146-
<p><a href="https://www.npmjs.com/package/ngx-material-password-strength"
146+
<p><a href="https://www.npmjs.com/package/@angular-material-extensions/password-strength"
147147
mat-button
148148
color="primary">
149-
ngx-material-password-strength
149+
@angular-material-extensions/password-strength
150150
</a>
151151
is built on the top of
152152
<a href="https://www.npmjs.com/package/@angular/material"
@@ -158,7 +158,7 @@ <h1>Getting Started</h1>
158158
mat-button
159159
color="primary">
160160
angular component development kit
161-
</a> ! That's why we need to install them as peer dependencies to the ngx-material-password-strength
161+
</a> ! That's why we need to install them as peer dependencies to the @angular-material-extensions/password-strength
162162
module.
163163
</p>
164164
</div>
@@ -402,18 +402,18 @@ <h1>Getting Started</h1>
402402
</mat-card-title>
403403
<div class="comment-container">
404404
Open a new terminal and run the following command to get
405-
<a href="https://www.npmjs.com/package/ngx-material-password-strength" mat-button
406-
color="primary">ngx-material-password-strength</a>
405+
<a href="https://www.npmjs.com/package/@angular-material-extensions/password-strength" mat-button
406+
color="primary">@angular-material-extensions/password-strength</a>
407407
from npm
408408
</div>
409409
<div fxLayout="row" fxLayoutAlign="space-between">
410410
<pre><code highlight
411-
[code]="'$ npm i -s ngx-material-password-strength'"></code></pre>
411+
[code]="'$ npm i -s @angular-material-extensions/password-strength'"></code></pre>
412412
<button mat-icon-button
413413
ngxClipboard
414-
[cbContent]="'npm i -s ngx-material-password-strength'"
414+
[cbContent]="'npm i -s @angular-material-extensions/password-strength'"
415415
matTooltip="copy"
416-
(click)="showCopyMessage('npm i -s ngx-material-password-strength')">
416+
(click)="showCopyMessage('npm i -s @angular-material-extensions/password-strength')">
417417
<mat-icon aria-label="copy content" class="mat-18">content_copy</mat-icon>
418418
</button>
419419
</div>
@@ -432,7 +432,7 @@ <h1>Getting Started</h1>
432432
<mat-card-subtitle>
433433
Note:If you are using SystemJS, you should adjust your configuration to point to the UMD
434434
bundle. In your systemjs config file, map needs to tell the System loader where to look for
435-
ngx-material-password-strength
435+
@angular-material-extensions/password-strength
436436
</mat-card-subtitle>
437437
<mat-card-content>
438438
<div fxLayout="row" fxLayoutAlign="space-between">
@@ -453,45 +453,45 @@ <h1>Getting Started</h1>
453453
</div>
454454
<div fxLayout="row" fxLayoutAlign="space-between">
455455
<pre><code highlight
456-
[code]="importNgxMaterialPasswordStrengthModule"></code></pre>
456+
[code]="importMatPasswordStrengthModule"></code></pre>
457457
<button mat-icon-button
458458
ngxClipboard
459-
[cbContent]="importNgxMaterialPasswordStrengthModule"
459+
[cbContent]="importMatPasswordStrengthModule"
460460
matTooltip="copy"
461-
(click)="showCopyMessage(importNgxMaterialPasswordStrengthModule)">
461+
(click)="showCopyMessage(importMatPasswordStrengthModule)">
462462
<mat-icon aria-label="copy content" class="mat-18">content_copy</mat-icon>
463463
</button>
464464
</div>
465465
<div class="comment-container">
466466
<p>The only remaining part is to list the imported module in your application module. The exact method
467467
will be slightly different for the root (top-level) module for which you should end up with the code
468-
similar to (notice NgxMaterialPasswordStrengthModule .forRoot()):
468+
similar to (notice MatPasswordStrengthModule .forRoot()):
469469

470470
NB: please do not forget to import the angular animations module in your root component too!
471471
(usally app.component.ts)</p>
472472
</div>
473473
<div fxLayout="row" fxLayoutAlign="space-between">
474474
<pre><code highlight
475-
[code]="importNgxMaterialPasswordStrengthModuleInAppModule"></code></pre>
475+
[code]="importMatPasswordStrengthModuleInAppModule"></code></pre>
476476
<button mat-icon-button
477477
ngxClipboard
478-
[cbContent]="importNgxMaterialPasswordStrengthModuleInAppModule"
478+
[cbContent]="importMatPasswordStrengthModuleInAppModule"
479479
matTooltip="copy"
480-
(click)="showCopyMessage(importNgxMaterialPasswordStrengthModuleInAppModule)">
480+
(click)="showCopyMessage(importMatPasswordStrengthModuleInAppModule)">
481481
<mat-icon aria-label="copy content" class="mat-18">content_copy</mat-icon>
482482
</button>
483483
</div>
484484
<div class="comment-container">
485-
<p>Other modules in your application can simply import NgxMaterialPasswordStrengthModule:</p>
485+
<p>Other modules in your application can simply import MatPasswordStrengthModule:</p>
486486
</div>
487487
<div fxLayout="row" fxLayoutAlign="space-between">
488488
<pre><code highlight
489-
[code]="importNgxMaterialPasswordStrengthModuleInOtherModule"></code></pre>
489+
[code]="importMatPasswordStrengthModuleInOtherModule"></code></pre>
490490
<button mat-icon-button
491491
ngxClipboard
492-
[cbContent]="importNgxMaterialPasswordStrengthModuleInOtherModule"
492+
[cbContent]="importMatPasswordStrengthModuleInOtherModule"
493493
matTooltip="copy"
494-
(click)="showCopyMessage(importNgxMaterialPasswordStrengthModuleInOtherModule)">
494+
(click)="showCopyMessage(importMatPasswordStrengthModuleInOtherModule)">
495495
<mat-icon aria-label="copy content" class="mat-18">content_copy</mat-icon>
496496
</button>
497497
</div>
@@ -540,7 +540,7 @@ <h1>Getting Started</h1>
540540
</div>
541541

542542
<mat-card fxFlex>
543-
<mat-card-title>ngx-material-password-strength
543+
<mat-card-title>@angular-material-extensions/password-strength
544544
</mat-card-title>
545545
<mat-card-subtitle>
546546
<mat-slide-toggle (change)="onSlideToggleChange($event)">Show Password</mat-slide-toggle>
@@ -579,7 +579,7 @@ <h1>Getting Started</h1>
579579
<img style="width: 50px; height: 50px" src="assets/icons/github.svg">
580580
</ngx-material-page-outlook>
581581
<ngx-material-page-content>
582-
<mat-card-title-group><a href="https://github.com/AnthonyNahas/ngx-material-password-strength"
582+
<mat-card-title-group><a href="https://github.com/AnthonyNahas/@angular-material-extensions/password-strength"
583583
target="_blank"
584584
mat-button
585585
color="primary">Clone the repo</a></mat-card-title-group>
@@ -590,12 +590,12 @@ <h1>Getting Started</h1>
590590
</div>
591591
<div fxLayout="row" fxLayoutAlign="space-between">
592592
<pre><code highlight
593-
[code]="'git clone https://github.com/AnthonyNahas/ngx-material-password-strength.git'"></code></pre>
593+
[code]="'git clone https://github.com/AnthonyNahas/@angular-material-extensions/password-strength.git'"></code></pre>
594594
<button mat-icon-button
595595
ngxClipboard
596-
[cbContent]="'git clone https://github.com/AnthonyNahas/ngx-material-password-strength.git'"
596+
[cbContent]="'git clone https://github.com/AnthonyNahas/@angular-material-extensions/password-strength.git'"
597597
matTooltip="copy"
598-
(click)="showCopyMessage('git clone https://github.com/AnthonyNahas/ngx-material-password-strength.git')">
598+
(click)="showCopyMessage('git clone https://github.com/AnthonyNahas/@angular-material-extensions/password-strength.git')">
599599
<mat-icon aria-label="copy content" class="mat-18">content_copy</mat-icon>
600600
</button>
601601
</div>
@@ -614,7 +614,7 @@ <h1>Getting Started</h1>
614614
</button>
615615
</div>
616616
<div class="comment-container">
617-
<p>Link ngx-material-password-strength's package</p>
617+
<p>Link @angular-material-extensions/password-strength's package</p>
618618
</div>
619619
<div fxLayout="row" fxLayoutAlign="space-between">
620620
<pre><code highlight
@@ -687,7 +687,7 @@ <h1>Getting Started</h1>
687687
color="primary">ngx-auth-firebaseui</a>
688688
Since client side password validation is required by many projects, I decided to hold
689689
the code in an angular library! Please support this project by starring it on
690-
<a href="https://github.com/AnthonyNahas/ngx-material-password-strength"
690+
<a href="https://github.com/AnthonyNahas/@angular-material-extensions/password-strength"
691691
target="_blank"
692692
mat-button
693693
color="primary">Github</a>
@@ -706,7 +706,7 @@ <h1>Getting Started</h1>
706706
</mat-card-subtitle>
707707

708708
<img matCardImage height="256px" width="256px"
709-
src="https://cdn.rawgit.com/anthonynahas/ngx-material-password-strength/master/demo/src/assets/logo.svg">
709+
src="https://cdn.rawgit.com/anthonynahas/@angular-material-extensions/password-strength/master/demo/src/assets/logo.svg">
710710
<mat-card-content>
711711
<mat-nav-list>
712712
<a mat-list-item *ngFor="let link of links; last as last" [href]="link.url" target="_blank">

demo/src/app/getting-started/getting-started.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,29 +118,29 @@ export class GettingStartedComponent implements OnInit {
118118
// 6
119119

120120
systemJSModuleImport = `map: {
121-
'ngx-material-password-strength': 'node_modules/ngx-material-password-strength/bundles/ngx-material-password-strength.umd.js',
121+
'@angular-material-extensions/password-strength': 'node_modules/@angular-material-extensions/password-strength/bundles/@angular-material-extensions/password-strength.umd.js',
122122
}`;
123123

124-
importNgxMaterialPasswordStrengthModule = `import { NgxMaterialPasswordStrengthModule } from 'ngx-material-password-strength';`;
124+
importMatPasswordStrengthModule = `import { MatPasswordStrengthModule } from '@angular-material-extensions/password-strength';`;
125125

126-
importNgxMaterialPasswordStrengthModuleInAppModule = `import { NgxMaterialPasswordStrengthModule } from 'ngx-material-password-strength';
126+
importMatPasswordStrengthModuleInAppModule = `import { MatPasswordStrengthModule } from '@angular-material-extensions/password-strength';
127127
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
128128
129129
@NgModule({
130130
declarations: [AppComponent, ...],
131-
imports: [NgxMaterialPasswordStrengthModule.forRoot(),
131+
imports: [MatPasswordStrengthModule.forRoot(),
132132
BrowserAnimationsModule,
133133
...],
134134
bootstrap: [AppComponent]
135135
})
136136
export class AppModule {
137137
}`;
138138

139-
importNgxMaterialPasswordStrengthModuleInOtherModule = `import { NgxMaterialPasswordStrengthModule } from 'ngx-material-password-strength';
139+
importMatPasswordStrengthModuleInOtherModule = `import { MatPasswordStrengthModule } from '@angular-material-extensions/password-strength';
140140
141141
@NgModule({
142142
declarations: [OtherComponent, ...],
143-
imports: [NgxMaterialPasswordStrengthModule, ...],
143+
imports: [MatPasswordStrengthModule, ...],
144144
})
145145
export class OtherModule {
146146
}`;

demo/src/app/home/home.component.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<div class="container">
33
<div class="row">
44
<div class="col-sm-4 d-flex justify-content-center justify-content-md-end">
5-
<img src="assets/logo.svg" alt="ngx-material-password-strength logo" class="logo">
5+
<img src="assets/logo.svg" alt="@angular-material-extensions/password-strength logo" class="logo">
66
</div>
77
<div class="col-sm-8 text-center text-md-left">
8-
<h1>ngx-material-password-strength</h1>
8+
<h1>@angular-material-extensions/password-strength</h1>
99
<p>Material password strength meter to indicate how secure is the provided password</p>
1010
<p>Scroll down to see it in action!</p>
1111
<p class="buttons">
1212
<a class="btn btn-outline-primary btn-lg"
13-
href="https://github.com/anthonynahas/ngx-material-password-strength" target="_blank"><i
13+
href="https://github.com/angular-material-extensions/password-strength" target="_blank"><i
1414
class="fa fa-github fa-lg"></i> Code on Github</a>
1515
<a class="btn btn-outline-primary btn-lg" href="doc/index.html" target="_blank"><i
1616
class="fa fa-book fa-lg"></i> Documentation</a>
@@ -26,7 +26,7 @@ <h1>ngx-material-password-strength</h1>
2626

2727
<div fxLayout="column">
2828
<mat-toolbar>
29-
ngx-material-password-strength
29+
@angular-material-extensions/password-strength
3030
<span style="width: 100%"></span>
3131

3232
<button mat-icon-button
@@ -77,7 +77,7 @@ <h1>ngx-material-password-strength</h1>
7777
</mat-hint>
7878
</mat-form-field>
7979

80-
<!--ngx-material-password-strength's main component-->
80+
<!--@angular-material-extensions/password-strength's main component-->
8181
<mat-password-strength #passwordComponent
8282
(onStrengthChanged)="onStrengthChanged($event)"
8383
[password]="password.value">
@@ -97,7 +97,7 @@ <h1>ngx-material-password-strength</h1>
9797

9898
<div fxLayout="column" style="margin-top: 3rem">
9999
<mat-toolbar>
100-
ngx-material-password-strength
100+
@angular-material-extensions/password-strength
101101
<span style="width: 100%"></span>
102102

103103
<button mat-icon-button
@@ -157,7 +157,7 @@ <h1>ngx-material-password-strength</h1>
157157

158158
</mat-form-field>
159159

160-
<!--ngx-material-password-strength's main component-->
160+
<!--@angular-material-extensions/password-strength's main component-->
161161
<mat-password-strength #passwordComponentWithValidation
162162
(onStrengthChanged)="onStrengthChanged($event)"
163163
[password]="passwordWithValidation.value">

demo/src/app/home/home.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class HomeComponent implements OnInit {
5959
}
6060
6161
ngOnInit() {
62-
this.titleService.setTitle('Home | ngx-material-password-strength');
62+
this.titleService.setTitle('Home | @angular-material-extensions/password-strength');
6363
}
6464
6565
onStrengthChanged(strength: number) {
@@ -74,7 +74,7 @@ export class HomeComponent implements OnInit {
7474

7575
html1 = `<mat-card fxFlex>
7676
<mat-card-title>
77-
ngx-material-password-strength
77+
@angular-material-extensions/password-strength
7878
</mat-card-title>
7979
<mat-card-subtitle>
8080
stand alone password component
@@ -100,7 +100,7 @@ export class HomeComponent implements OnInit {
100100
</mat-hint>
101101
</mat-form-field>
102102
103-
<!--ngx-material-password-strength's main component-->
103+
<!--@angular-material-extensions/password-strength's main component-->
104104
<mat-password-strength #passwordComponent
105105
(onStrengthChanged)="onStrengthChanged($event)"
106106
[password]="password.value">
@@ -142,7 +142,7 @@ export class HomeComponent implements OnInit {
142142
143143
</mat-form-field>
144144
145-
<!--ngx-material-password-strength's main component-->
145+
<!--@angular-material-extensions/password-strength's main component-->
146146
<mat-password-strength #passwordComponentWithValidation
147147
(onStrengthChanged)="onStrengthChanged($event)"
148148
[password]="passwordWithValidation.value">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<footer class="bd-footer text-muted">
22
<div class="container">
33
<p> Coded with <i class="fa fa-heart heart"></i> by <a href="https://github.com/anthonynahas" target="_blank">anthonynahas</a>.</p>
4-
<p> Code licensed under <a href="https://raw.githubusercontent.com/anthonynahas/ngx-material-password-strength/master/LICENSE" target="_blank">MIT license conditions.</a></p>
4+
<p> Code licensed under <a href="https://raw.githubusercontent.com/anthonynahas/@angular-material-extensions/password-strength/master/LICENSE" target="_blank">MIT license conditions.</a></p>
55
</div>
6-
</footer>
6+
</footer>

0 commit comments

Comments
 (0)