Skip to content

Commit

Permalink
docs: update the authentication chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 29, 2023
1 parent 86b5608 commit 8ac6e86
Show file tree
Hide file tree
Showing 7 changed files with 1,159 additions and 595 deletions.
980 changes: 980 additions & 0 deletions content/recipes/passport.md

Large diffs are not rendered by default.

753 changes: 160 additions & 593 deletions content/security/authentication.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/app/homepage/menu/menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ export class MenuComponent implements OnInit {
{ title: 'REPL', path: '/recipes/repl' },
{ title: 'CRUD generator', path: '/recipes/crud-generator' },
{ title: 'SWC (fast compiler)', path: '/recipes/swc' },
{ title: 'Passport (auth)', path: '/recipes/passport' },
{ title: 'Hot reload', path: '/recipes/hot-reload' },
{ title: 'MikroORM', path: '/recipes/mikroorm' },
{ title: 'TypeORM', path: '/recipes/sql-typeorm' },
Expand Down
9 changes: 9 additions & 0 deletions src/app/homepage/pages/recipes/passport/passport.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { BasePageComponent } from '../../page/page.component';

@Component({
selector: 'app-passport',
templateUrl: './passport.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PassportComponent extends BasePageComponent {}
7 changes: 7 additions & 0 deletions src/app/homepage/pages/recipes/recipes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { NestCommanderComponent } from './nest-commander/nest-commander.componen
import { AsyncLocalStorageComponent } from './async-local-storage/async-local-storage.component';
import { AutomockComponent } from './automock/automock.component';
import { SwcComponent } from './swc/swc.component';
import { PassportComponent } from './passport/passport.component';

const routes: Routes = [
{
Expand Down Expand Up @@ -118,6 +119,11 @@ const routes: Routes = [
component: AutomockComponent,
data: { title: 'Automock' },
},
{
path: 'passport',
component: PassportComponent,
data: { title: 'passport' },
},
];

@NgModule({
Expand All @@ -140,6 +146,7 @@ const routes: Routes = [
AutomockComponent,
ReplComponent,
SwcComponent,
PassportComponent,
],
})
export class RecipesModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ <h2>Learn the <span>right</span> way!</h2>
target="_blank"
title="Courses | NestJS - A node.js framework built on top of TypeScript"
class="btn-more"
>Pre-order Authentication course extension</a
>Purchase the Authentication course</a
>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class CleanGeneratedFiles implements Processor {
$runAfter = ['writing-files'];
$runBefore = ['writeFilesProcessor'];
$process() {
rimraf.sync(`${OUTPUT_PATH}/{docs,*.json}`, { glob: true });
rimraf.sync(`${OUTPUT_PATH}/{docs,*.json}`, { glob: { dot: true } });
}
}

Expand Down

0 comments on commit 8ac6e86

Please sign in to comment.