Skip to content

Commit 8ac6e86

Browse files
docs: update the authentication chapter
1 parent 86b5608 commit 8ac6e86

File tree

7 files changed

+1159
-595
lines changed

7 files changed

+1159
-595
lines changed

content/recipes/passport.md

Lines changed: 980 additions & 0 deletions
Large diffs are not rendered by default.

content/security/authentication.md

Lines changed: 160 additions & 593 deletions
Large diffs are not rendered by default.

src/app/homepage/menu/menu.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ export class MenuComponent implements OnInit {
229229
{ title: 'REPL', path: '/recipes/repl' },
230230
{ title: 'CRUD generator', path: '/recipes/crud-generator' },
231231
{ title: 'SWC (fast compiler)', path: '/recipes/swc' },
232+
{ title: 'Passport (auth)', path: '/recipes/passport' },
232233
{ title: 'Hot reload', path: '/recipes/hot-reload' },
233234
{ title: 'MikroORM', path: '/recipes/mikroorm' },
234235
{ title: 'TypeORM', path: '/recipes/sql-typeorm' },
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
2+
import { BasePageComponent } from '../../page/page.component';
3+
4+
@Component({
5+
selector: 'app-passport',
6+
templateUrl: './passport.component.html',
7+
changeDetection: ChangeDetectionStrategy.OnPush,
8+
})
9+
export class PassportComponent extends BasePageComponent {}

src/app/homepage/pages/recipes/recipes.module.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { NestCommanderComponent } from './nest-commander/nest-commander.componen
1919
import { AsyncLocalStorageComponent } from './async-local-storage/async-local-storage.component';
2020
import { AutomockComponent } from './automock/automock.component';
2121
import { SwcComponent } from './swc/swc.component';
22+
import { PassportComponent } from './passport/passport.component';
2223

2324
const routes: Routes = [
2425
{
@@ -118,6 +119,11 @@ const routes: Routes = [
118119
component: AutomockComponent,
119120
data: { title: 'Automock' },
120121
},
122+
{
123+
path: 'passport',
124+
component: PassportComponent,
125+
data: { title: 'passport' },
126+
},
121127
];
122128

123129
@NgModule({
@@ -140,6 +146,7 @@ const routes: Routes = [
140146
AutomockComponent,
141147
ReplComponent,
142148
SwcComponent,
149+
PassportComponent,
143150
],
144151
})
145152
export class RecipesModule {}

src/app/shared/components/banner-courses-auth/banner-courses-auth.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ <h2>Learn the <span>right</span> way!</h2>
1919
target="_blank"
2020
title="Courses | NestJS - A node.js framework built on top of TypeScript"
2121
class="btn-more"
22-
>Pre-order Authentication course extension</a
22+
>Purchase the Authentication course</a
2323
>
2424
</div>

tools/transforms/nestjs-package/processors/cleanGeneratedFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class CleanGeneratedFiles implements Processor {
99
$runAfter = ['writing-files'];
1010
$runBefore = ['writeFilesProcessor'];
1111
$process() {
12-
rimraf.sync(`${OUTPUT_PATH}/{docs,*.json}`, { glob: true });
12+
rimraf.sync(`${OUTPUT_PATH}/{docs,*.json}`, { glob: { dot: true } });
1313
}
1414
}
1515

0 commit comments

Comments
 (0)