From eb68dc663c5af0967c77a8f12c4eed72271f77c2 Mon Sep 17 00:00:00 2001 From: SocketSomeone Date: Tue, 14 Mar 2023 20:59:24 +0300 Subject: [PATCH] revert: usage spaces instead of tabs --- src/app/homepage/menu/menu.component.ts | 642 +++++++++--------- .../pages/recipes/necord/necord.component.ts | 6 +- .../homepage/pages/recipes/recipes.module.ts | 246 +++---- 3 files changed, 447 insertions(+), 447 deletions(-) diff --git a/src/app/homepage/menu/menu.component.ts b/src/app/homepage/menu/menu.component.ts index 3d4218fbe6..2ac8e9ab84 100644 --- a/src/app/homepage/menu/menu.component.ts +++ b/src/app/homepage/menu/menu.component.ts @@ -1,334 +1,334 @@ import { - ChangeDetectionStrategy, - Component, - Input, - OnInit, + ChangeDetectionStrategy, + Component, + Input, + OnInit, } from '@angular/core'; import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; import { filter } from 'rxjs/operators'; @Component({ - selector: 'app-menu', - templateUrl: './menu.component.html', - styleUrls: ['./menu.component.scss'], - changeDetection: ChangeDetectionStrategy.OnPush, + selector: 'app-menu', + templateUrl: './menu.component.html', + styleUrls: ['./menu.component.scss'], + changeDetection: ChangeDetectionStrategy.OnPush, }) export class MenuComponent implements OnInit { - @Input() - isSidebarOpened = true; - readonly items = [ - { - title: 'Introduction', - isOpened: false, - path: '/', - }, - { - title: 'Overview', - isOpened: true, - children: [ - { title: 'First steps', path: '/first-steps' }, - { title: 'Controllers', path: '/controllers' }, - { title: 'Providers', path: '/providers' }, - { title: 'Modules', path: '/modules' }, - { title: 'Middleware', path: '/middleware' }, - { title: 'Exception filters', path: '/exception-filters' }, - { title: 'Pipes', path: '/pipes' }, - { title: 'Guards', path: '/guards' }, - { title: 'Interceptors', path: '/interceptors' }, - { title: 'Custom decorators', path: '/custom-decorators' }, - ], - }, - { - title: 'Fundamentals', - isOpened: false, - children: [ - { title: 'Custom providers', path: '/fundamentals/custom-providers' }, - { - title: 'Asynchronous providers', - path: '/fundamentals/async-providers', - }, - { - title: 'Dynamic modules', - path: '/fundamentals/dynamic-modules', - }, - { - title: 'Injection scopes', - path: '/fundamentals/injection-scopes', - }, - { - title: 'Circular dependency', - path: '/fundamentals/circular-dependency', - }, - { - title: 'Module reference', - path: '/fundamentals/module-ref', - }, - { - title: 'Lazy-loading modules', - path: '/fundamentals/lazy-loading-modules', - }, - { - title: 'Execution context', - path: '/fundamentals/execution-context', - }, - { - title: 'Lifecycle events', - path: '/fundamentals/lifecycle-events', - }, - { - title: 'Platform agnosticism', - path: '/fundamentals/platform-agnosticism', - }, - { title: 'Testing', path: '/fundamentals/testing' }, - ], - }, - { - title: 'Techniques', - isOpened: false, - children: [ - { title: 'Configuration', path: '/techniques/configuration' }, - { title: 'Database', path: '/techniques/database' }, - { title: 'Mongo', path: '/techniques/mongodb' }, - { title: 'Validation', path: '/techniques/validation' }, - { title: 'Caching', path: '/techniques/caching' }, - { title: 'Serialization', path: '/techniques/serialization' }, - { title: 'Versioning', path: '/techniques/versioning' }, - { title: 'Task scheduling', path: '/techniques/task-scheduling' }, - { title: 'Queues', path: '/techniques/queues' }, - { title: 'Logging', path: '/techniques/logger' }, - { title: 'Cookies', path: '/techniques/cookies' }, - { title: 'Events', path: '/techniques/events' }, - { title: 'Compression', path: '/techniques/compression' }, - { title: 'File upload', path: '/techniques/file-upload' }, - { title: 'Streaming files', path: '/techniques/streaming-files' }, - { title: 'HTTP module', path: '/techniques/http-module' }, - { title: 'Session', path: '/techniques/session' }, - { title: 'Model-View-Controller', path: '/techniques/mvc' }, - { title: 'Performance (Fastify)', path: '/techniques/performance' }, - { title: 'Server-Sent Events', path: '/techniques/server-sent-events' }, - ], - }, - { - title: 'Security', - isOpened: false, - children: [ - { title: 'Authentication', path: '/security/authentication' }, - { title: 'Authorization', path: '/security/authorization' }, - { - title: 'Encryption and Hashing', - path: '/security/encryption-and-hashing', - }, - { title: 'Helmet', path: '/security/helmet' }, - { title: 'CORS', path: '/security/cors' }, - { title: 'CSRF Protection', path: '/security/csrf' }, - { title: 'Rate limiting', path: '/security/rate-limiting' }, - ], - }, - { - title: 'GraphQL', - isOpened: false, - children: [ - { title: 'Quick start', path: '/graphql/quick-start' }, - { title: 'Resolvers', path: '/graphql/resolvers' }, - { title: 'Mutations', path: '/graphql/mutations' }, - { title: 'Subscriptions', path: '/graphql/subscriptions' }, - { title: 'Scalars', path: '/graphql/scalars' }, - { title: 'Directives', path: '/graphql/directives' }, - { title: 'Interfaces', path: '/graphql/interfaces' }, - { title: 'Unions and Enums', path: '/graphql/unions-and-enums' }, - { title: 'Field middleware', path: '/graphql/field-middleware' }, - { title: 'Mapped types', path: '/graphql/mapped-types' }, - { title: 'Plugins', path: '/graphql/plugins' }, - { title: 'Complexity', path: '/graphql/complexity' }, - { title: 'Extensions', path: '/graphql/extensions' }, - { title: 'CLI Plugin', path: '/graphql/cli-plugin' }, - { title: 'Generating SDL', path: '/graphql/generating-sdl' }, - { title: 'Sharing models', path: '/graphql/sharing-models' }, - { - title: 'Other features', - path: '/graphql/other-features', - }, - { title: 'Federation', path: '/graphql/federation' }, - { title: 'Migration guide', path: '/graphql/migration-guide' }, - ], - }, - { - title: 'WebSockets', - isOpened: false, - children: [ - { title: 'Gateways', path: '/websockets/gateways' }, - { title: 'Exception filters', path: '/websockets/exception-filters' }, - { title: 'Pipes', path: '/websockets/pipes' }, - { title: 'Guards', path: '/websockets/guards' }, - { title: 'Interceptors', path: '/websockets/interceptors' }, - { title: 'Adapters', path: '/websockets/adapter' }, - ], - }, - { - title: 'Microservices', - isOpened: false, - children: [ - { title: 'Overview', path: '/microservices/basics' }, - { title: 'Redis', path: '/microservices/redis' }, - { title: 'MQTT', path: '/microservices/mqtt' }, - { title: 'NATS', path: '/microservices/nats' }, - { title: 'RabbitMQ', path: '/microservices/rabbitmq' }, - { title: 'Kafka', path: '/microservices/kafka' }, - { title: 'gRPC', path: '/microservices/grpc' }, - { - title: 'Custom transporters', - path: '/microservices/custom-transport', - }, - { - title: 'Exception filters', - path: '/microservices/exception-filters', - }, - { title: 'Pipes', path: '/microservices/pipes' }, - { title: 'Guards', path: '/microservices/guards' }, - { title: 'Interceptors', path: '/microservices/interceptors' }, - ], - }, - { - title: 'Standalone apps', - isOpened: false, - path: '/application-context', - }, - { - title: 'CLI', - isOpened: false, - children: [ - { title: 'Overview', path: '/cli/overview' }, - { title: 'Workspaces', path: '/cli/monorepo' }, - { title: 'Libraries', path: '/cli/libraries' }, - { title: 'Usage', path: '/cli/usages' }, - { title: 'Scripts', path: '/cli/scripts' }, - ], - }, - { - title: 'OpenAPI', - isOpened: false, - children: [ - { title: 'Introduction', path: '/openapi/introduction' }, - { - title: 'Types and Parameters', - path: '/openapi/types-and-parameters', - }, - { title: 'Operations', path: '/openapi/operations' }, - { title: 'Security', path: '/openapi/security' }, - { title: 'Mapped Types', path: '/openapi/mapped-types' }, - { title: 'Decorators', path: '/openapi/decorators' }, - { title: 'CLI Plugin', path: '/openapi/cli-plugin' }, - { title: 'Other features', path: '/openapi/other-features' }, - { title: 'Migration guide', path: '/openapi/migration-guide' }, - ], - }, - { - title: 'Recipes', - isOpened: false, - children: [ - { title: 'REPL', path: '/recipes/repl' }, - { title: 'CRUD generator', path: '/recipes/crud-generator' }, - { title: 'SWC (fast compiler)', path: '/recipes/swc' }, - { title: 'Hot reload', path: '/recipes/hot-reload' }, - { title: 'MikroORM', path: '/recipes/mikroorm' }, - { title: 'TypeORM', path: '/recipes/sql-typeorm' }, - { title: 'Mongoose', path: '/recipes/mongodb' }, - { title: 'Sequelize', path: '/recipes/sql-sequelize' }, - { title: 'Router module', path: '/recipes/router-module' }, - { title: 'Swagger', path: '/recipes/swagger' }, - { title: 'Health checks', path: '/recipes/terminus' }, - { title: 'CQRS', path: '/recipes/cqrs' }, - { title: 'Compodoc', path: '/recipes/documentation' }, - { title: 'Prisma', path: '/recipes/prisma' }, - { title: 'Serve static', path: '/recipes/serve-static' }, - { title: 'Commander', path: '/recipes/nest-commander' }, - { title: 'Async local storage', path: '/recipes/async-local-storage' }, - { title: 'Automock', path: '/recipes/automock' }, - { title: 'Necord', path: '/recipes/necord' }, - ], - }, - { - title: 'FAQ', - isOpened: false, - children: [ - { title: 'Serverless', path: '/faq/serverless' }, - { title: 'HTTP adapter', path: '/faq/http-adapter' }, - { title: 'Global path prefix', path: '/faq/global-prefix' }, - { title: 'Raw body', path: '/faq/raw-body' }, - { title: 'Hybrid application', path: '/faq/hybrid-application' }, - { title: 'HTTPS & multiple servers', path: '/faq/multiple-servers' }, - { title: 'Request lifecycle', path: '/faq/request-lifecycle' }, - { title: 'Common errors', path: '/faq/common-errors' }, - { - title: 'Examples', - externalUrl: 'https://github.com/nestjs/nest/tree/master/sample', - }, - ], - }, - { - title: 'Devtools', - isNew: true, - isOpened: false, - children: [ - { title: 'Overview', path: '/devtools/overview' }, - { title: 'CI/CD integration', path: '/devtools/ci-cd-integration' }, - ], - }, - { - title: 'Migration guide', - isOpened: false, - path: '/migration-guide', - }, - { - title: 'Official courses', - externalUrl: 'https://courses.nestjs.com/', - }, - { - title: 'Discover', - isOpened: false, - children: [{ title: 'Who is using Nest?', path: '/discover/companies' }], - }, - { - title: 'T-Shirts and Hoodies', - externalUrl: 'https://nestjs.threadless.com/', - }, - { - title: 'Support us', - isOpened: false, - path: '/support', - }, - ]; + @Input() + isSidebarOpened = true; + readonly items = [ + { + title: 'Introduction', + isOpened: false, + path: '/', + }, + { + title: 'Overview', + isOpened: true, + children: [ + { title: 'First steps', path: '/first-steps' }, + { title: 'Controllers', path: '/controllers' }, + { title: 'Providers', path: '/providers' }, + { title: 'Modules', path: '/modules' }, + { title: 'Middleware', path: '/middleware' }, + { title: 'Exception filters', path: '/exception-filters' }, + { title: 'Pipes', path: '/pipes' }, + { title: 'Guards', path: '/guards' }, + { title: 'Interceptors', path: '/interceptors' }, + { title: 'Custom decorators', path: '/custom-decorators' }, + ], + }, + { + title: 'Fundamentals', + isOpened: false, + children: [ + { title: 'Custom providers', path: '/fundamentals/custom-providers' }, + { + title: 'Asynchronous providers', + path: '/fundamentals/async-providers', + }, + { + title: 'Dynamic modules', + path: '/fundamentals/dynamic-modules', + }, + { + title: 'Injection scopes', + path: '/fundamentals/injection-scopes', + }, + { + title: 'Circular dependency', + path: '/fundamentals/circular-dependency', + }, + { + title: 'Module reference', + path: '/fundamentals/module-ref', + }, + { + title: 'Lazy-loading modules', + path: '/fundamentals/lazy-loading-modules', + }, + { + title: 'Execution context', + path: '/fundamentals/execution-context', + }, + { + title: 'Lifecycle events', + path: '/fundamentals/lifecycle-events', + }, + { + title: 'Platform agnosticism', + path: '/fundamentals/platform-agnosticism', + }, + { title: 'Testing', path: '/fundamentals/testing' }, + ], + }, + { + title: 'Techniques', + isOpened: false, + children: [ + { title: 'Configuration', path: '/techniques/configuration' }, + { title: 'Database', path: '/techniques/database' }, + { title: 'Mongo', path: '/techniques/mongodb' }, + { title: 'Validation', path: '/techniques/validation' }, + { title: 'Caching', path: '/techniques/caching' }, + { title: 'Serialization', path: '/techniques/serialization' }, + { title: 'Versioning', path: '/techniques/versioning' }, + { title: 'Task scheduling', path: '/techniques/task-scheduling' }, + { title: 'Queues', path: '/techniques/queues' }, + { title: 'Logging', path: '/techniques/logger' }, + { title: 'Cookies', path: '/techniques/cookies' }, + { title: 'Events', path: '/techniques/events' }, + { title: 'Compression', path: '/techniques/compression' }, + { title: 'File upload', path: '/techniques/file-upload' }, + { title: 'Streaming files', path: '/techniques/streaming-files' }, + { title: 'HTTP module', path: '/techniques/http-module' }, + { title: 'Session', path: '/techniques/session' }, + { title: 'Model-View-Controller', path: '/techniques/mvc' }, + { title: 'Performance (Fastify)', path: '/techniques/performance' }, + { title: 'Server-Sent Events', path: '/techniques/server-sent-events' }, + ], + }, + { + title: 'Security', + isOpened: false, + children: [ + { title: 'Authentication', path: '/security/authentication' }, + { title: 'Authorization', path: '/security/authorization' }, + { + title: 'Encryption and Hashing', + path: '/security/encryption-and-hashing', + }, + { title: 'Helmet', path: '/security/helmet' }, + { title: 'CORS', path: '/security/cors' }, + { title: 'CSRF Protection', path: '/security/csrf' }, + { title: 'Rate limiting', path: '/security/rate-limiting' }, + ], + }, + { + title: 'GraphQL', + isOpened: false, + children: [ + { title: 'Quick start', path: '/graphql/quick-start' }, + { title: 'Resolvers', path: '/graphql/resolvers' }, + { title: 'Mutations', path: '/graphql/mutations' }, + { title: 'Subscriptions', path: '/graphql/subscriptions' }, + { title: 'Scalars', path: '/graphql/scalars' }, + { title: 'Directives', path: '/graphql/directives' }, + { title: 'Interfaces', path: '/graphql/interfaces' }, + { title: 'Unions and Enums', path: '/graphql/unions-and-enums' }, + { title: 'Field middleware', path: '/graphql/field-middleware' }, + { title: 'Mapped types', path: '/graphql/mapped-types' }, + { title: 'Plugins', path: '/graphql/plugins' }, + { title: 'Complexity', path: '/graphql/complexity' }, + { title: 'Extensions', path: '/graphql/extensions' }, + { title: 'CLI Plugin', path: '/graphql/cli-plugin' }, + { title: 'Generating SDL', path: '/graphql/generating-sdl' }, + { title: 'Sharing models', path: '/graphql/sharing-models' }, + { + title: 'Other features', + path: '/graphql/other-features', + }, + { title: 'Federation', path: '/graphql/federation' }, + { title: 'Migration guide', path: '/graphql/migration-guide' }, + ], + }, + { + title: 'WebSockets', + isOpened: false, + children: [ + { title: 'Gateways', path: '/websockets/gateways' }, + { title: 'Exception filters', path: '/websockets/exception-filters' }, + { title: 'Pipes', path: '/websockets/pipes' }, + { title: 'Guards', path: '/websockets/guards' }, + { title: 'Interceptors', path: '/websockets/interceptors' }, + { title: 'Adapters', path: '/websockets/adapter' }, + ], + }, + { + title: 'Microservices', + isOpened: false, + children: [ + { title: 'Overview', path: '/microservices/basics' }, + { title: 'Redis', path: '/microservices/redis' }, + { title: 'MQTT', path: '/microservices/mqtt' }, + { title: 'NATS', path: '/microservices/nats' }, + { title: 'RabbitMQ', path: '/microservices/rabbitmq' }, + { title: 'Kafka', path: '/microservices/kafka' }, + { title: 'gRPC', path: '/microservices/grpc' }, + { + title: 'Custom transporters', + path: '/microservices/custom-transport', + }, + { + title: 'Exception filters', + path: '/microservices/exception-filters', + }, + { title: 'Pipes', path: '/microservices/pipes' }, + { title: 'Guards', path: '/microservices/guards' }, + { title: 'Interceptors', path: '/microservices/interceptors' }, + ], + }, + { + title: 'Standalone apps', + isOpened: false, + path: '/application-context', + }, + { + title: 'CLI', + isOpened: false, + children: [ + { title: 'Overview', path: '/cli/overview' }, + { title: 'Workspaces', path: '/cli/monorepo' }, + { title: 'Libraries', path: '/cli/libraries' }, + { title: 'Usage', path: '/cli/usages' }, + { title: 'Scripts', path: '/cli/scripts' }, + ], + }, + { + title: 'OpenAPI', + isOpened: false, + children: [ + { title: 'Introduction', path: '/openapi/introduction' }, + { + title: 'Types and Parameters', + path: '/openapi/types-and-parameters', + }, + { title: 'Operations', path: '/openapi/operations' }, + { title: 'Security', path: '/openapi/security' }, + { title: 'Mapped Types', path: '/openapi/mapped-types' }, + { title: 'Decorators', path: '/openapi/decorators' }, + { title: 'CLI Plugin', path: '/openapi/cli-plugin' }, + { title: 'Other features', path: '/openapi/other-features' }, + { title: 'Migration guide', path: '/openapi/migration-guide' }, + ], + }, + { + title: 'Recipes', + isOpened: false, + children: [ + { title: 'REPL', path: '/recipes/repl' }, + { title: 'CRUD generator', path: '/recipes/crud-generator' }, + { title: 'SWC (fast compiler)', path: '/recipes/swc' }, + { title: 'Hot reload', path: '/recipes/hot-reload' }, + { title: 'MikroORM', path: '/recipes/mikroorm' }, + { title: 'TypeORM', path: '/recipes/sql-typeorm' }, + { title: 'Mongoose', path: '/recipes/mongodb' }, + { title: 'Sequelize', path: '/recipes/sql-sequelize' }, + { title: 'Router module', path: '/recipes/router-module' }, + { title: 'Swagger', path: '/recipes/swagger' }, + { title: 'Health checks', path: '/recipes/terminus' }, + { title: 'CQRS', path: '/recipes/cqrs' }, + { title: 'Compodoc', path: '/recipes/documentation' }, + { title: 'Prisma', path: '/recipes/prisma' }, + { title: 'Serve static', path: '/recipes/serve-static' }, + { title: 'Commander', path: '/recipes/nest-commander' }, + { title: 'Async local storage', path: '/recipes/async-local-storage' }, + { title: 'Automock', path: '/recipes/automock' }, + { title: 'Necord', path: '/recipes/necord' }, + ], + }, + { + title: 'FAQ', + isOpened: false, + children: [ + { title: 'Serverless', path: '/faq/serverless' }, + { title: 'HTTP adapter', path: '/faq/http-adapter' }, + { title: 'Global path prefix', path: '/faq/global-prefix' }, + { title: 'Raw body', path: '/faq/raw-body' }, + { title: 'Hybrid application', path: '/faq/hybrid-application' }, + { title: 'HTTPS & multiple servers', path: '/faq/multiple-servers' }, + { title: 'Request lifecycle', path: '/faq/request-lifecycle' }, + { title: 'Common errors', path: '/faq/common-errors' }, + { + title: 'Examples', + externalUrl: 'https://github.com/nestjs/nest/tree/master/sample', + }, + ], + }, + { + title: 'Devtools', + isNew: true, + isOpened: false, + children: [ + { title: 'Overview', path: '/devtools/overview' }, + { title: 'CI/CD integration', path: '/devtools/ci-cd-integration' }, + ], + }, + { + title: 'Migration guide', + isOpened: false, + path: '/migration-guide', + }, + { + title: 'Official courses', + externalUrl: 'https://courses.nestjs.com/', + }, + { + title: 'Discover', + isOpened: false, + children: [{ title: 'Who is using Nest?', path: '/discover/companies' }], + }, + { + title: 'T-Shirts and Hoodies', + externalUrl: 'https://nestjs.threadless.com/', + }, + { + title: 'Support us', + isOpened: false, + path: '/support', + }, + ]; - constructor( - private readonly route: ActivatedRoute, - private readonly router: Router, - ) {} + constructor( + private readonly route: ActivatedRoute, + private readonly router: Router, + ) {} - ngOnInit() { - this.router.events - .pipe(filter((ev) => ev instanceof NavigationEnd)) - .subscribe((event) => this.toggleCategory()); + ngOnInit() { + this.router.events + .pipe(filter((ev) => ev instanceof NavigationEnd)) + .subscribe((event) => this.toggleCategory()); - this.toggleCategory(); - } + this.toggleCategory(); + } - toggleCategory() { - const { firstChild } = this.route.snapshot; - if ( - (firstChild.url && firstChild.url[1]) || - (firstChild.url && - firstChild.routeConfig && - firstChild.routeConfig.loadChildren) - ) { - const { path } = firstChild.url[0]; - const index = this.items.findIndex( - ({ title }) => title.toLowerCase() === path, - ); - if (index < 0) { - return; - } - this.items[index].isOpened = true; - this.items[1].isOpened = false; - } - } + toggleCategory() { + const { firstChild } = this.route.snapshot; + if ( + (firstChild.url && firstChild.url[1]) || + (firstChild.url && + firstChild.routeConfig && + firstChild.routeConfig.loadChildren) + ) { + const { path } = firstChild.url[0]; + const index = this.items.findIndex( + ({ title }) => title.toLowerCase() === path, + ); + if (index < 0) { + return; + } + this.items[index].isOpened = true; + this.items[1].isOpened = false; + } + } } diff --git a/src/app/homepage/pages/recipes/necord/necord.component.ts b/src/app/homepage/pages/recipes/necord/necord.component.ts index 70e323c540..424d33e48e 100644 --- a/src/app/homepage/pages/recipes/necord/necord.component.ts +++ b/src/app/homepage/pages/recipes/necord/necord.component.ts @@ -2,8 +2,8 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; import { BasePageComponent } from '../../page/page.component'; @Component({ - selector: 'app-necord', - templateUrl: './necord.component.html', - changeDetection: ChangeDetectionStrategy.OnPush, + selector: 'app-necord', + templateUrl: './necord.component.html', + changeDetection: ChangeDetectionStrategy.OnPush, }) export class NecordComponent extends BasePageComponent {} diff --git a/src/app/homepage/pages/recipes/recipes.module.ts b/src/app/homepage/pages/recipes/recipes.module.ts index de640c18f4..3aec7e64a1 100644 --- a/src/app/homepage/pages/recipes/recipes.module.ts +++ b/src/app/homepage/pages/recipes/recipes.module.ts @@ -22,131 +22,131 @@ import { SwcComponent } from './swc/swc.component'; import { NecordComponent } from './necord/necord.component'; const routes: Routes = [ - { - path: 'mikroorm', - component: MikroOrmComponent, - data: { title: 'MikroORM' }, - }, - { - path: 'sql-typeorm', - component: SqlTypeormComponent, - data: { title: 'SQL (TypeORM)' }, - }, - { - path: 'mongodb', - component: MongodbComponent, - data: { title: 'MongoDB (Mongoose)' }, - }, - { - path: 'sql-sequelize', - component: SqlSequelizeComponent, - data: { title: 'SQL (Sequelize)' }, - }, - { - path: 'cqrs', - component: CqrsComponent, - data: { title: 'CQRS' }, - }, - { - path: 'swagger', - redirectTo: '/openapi/introduction', - }, - { - path: 'prisma', - component: PrismaComponent, - data: { title: 'Prisma' }, - }, - { - path: 'terminus', - component: TerminusComponent, - data: { title: 'Health checks (Terminus)' }, - }, - { - path: 'documentation', - component: DocumentationComponent, - data: { title: 'Documentation (Compodoc)' }, - }, - { - path: 'crud-utilities', - redirectTo: '/recipes/crud-generator', - }, - { - path: 'crud', - redirectTo: '/recipes/crud-generator', - }, - { - path: 'crud-generator', - component: CrudGeneratorComponent, - data: { title: 'CRUD generator' }, - }, - { - path: 'hot-reload', - component: HotReloadComponent, - data: { title: 'Hot reload' }, - }, - { - path: 'serve-static', - component: ServeStaticComponent, - data: { title: 'Serve static' }, - }, - { - path: 'router-module', - component: RouterModuleComponent, - data: { title: 'Router module' }, - }, - { - path: 'nest-commander', - component: NestCommanderComponent, - data: { title: 'Nest Commander' }, - }, - { - path: 'async-local-storage', - component: AsyncLocalStorageComponent, - data: { title: 'Async Local Storage' }, - }, - { - path: 'repl', - component: ReplComponent, - data: { title: 'REPL' }, - }, - { - path: 'swc', - component: SwcComponent, - data: { title: 'SWC (fast compiler)' }, - }, - { - path: 'automock', - component: AutomockComponent, - data: { title: 'Automock' }, - }, - { - path: 'necord', - component: NecordComponent, - data: { title: 'Necord' } - } + { + path: 'mikroorm', + component: MikroOrmComponent, + data: { title: 'MikroORM' }, + }, + { + path: 'sql-typeorm', + component: SqlTypeormComponent, + data: { title: 'SQL (TypeORM)' }, + }, + { + path: 'mongodb', + component: MongodbComponent, + data: { title: 'MongoDB (Mongoose)' }, + }, + { + path: 'sql-sequelize', + component: SqlSequelizeComponent, + data: { title: 'SQL (Sequelize)' }, + }, + { + path: 'cqrs', + component: CqrsComponent, + data: { title: 'CQRS' }, + }, + { + path: 'swagger', + redirectTo: '/openapi/introduction', + }, + { + path: 'prisma', + component: PrismaComponent, + data: { title: 'Prisma' }, + }, + { + path: 'terminus', + component: TerminusComponent, + data: { title: 'Health checks (Terminus)' }, + }, + { + path: 'documentation', + component: DocumentationComponent, + data: { title: 'Documentation (Compodoc)' }, + }, + { + path: 'crud-utilities', + redirectTo: '/recipes/crud-generator', + }, + { + path: 'crud', + redirectTo: '/recipes/crud-generator', + }, + { + path: 'crud-generator', + component: CrudGeneratorComponent, + data: { title: 'CRUD generator' }, + }, + { + path: 'hot-reload', + component: HotReloadComponent, + data: { title: 'Hot reload' }, + }, + { + path: 'serve-static', + component: ServeStaticComponent, + data: { title: 'Serve static' }, + }, + { + path: 'router-module', + component: RouterModuleComponent, + data: { title: 'Router module' }, + }, + { + path: 'nest-commander', + component: NestCommanderComponent, + data: { title: 'Nest Commander' }, + }, + { + path: 'async-local-storage', + component: AsyncLocalStorageComponent, + data: { title: 'Async Local Storage' }, + }, + { + path: 'repl', + component: ReplComponent, + data: { title: 'REPL' }, + }, + { + path: 'swc', + component: SwcComponent, + data: { title: 'SWC (fast compiler)' }, + }, + { + path: 'automock', + component: AutomockComponent, + data: { title: 'Automock' }, + }, + { + path: 'necord', + component: NecordComponent, + data: { title: 'Necord' } + } ]; @NgModule({ - imports: [CommonModule, SharedModule, RouterModule.forChild(routes)], - declarations: [ - MikroOrmComponent, - SqlTypeormComponent, - SqlSequelizeComponent, - MongodbComponent, - PrismaComponent, - CqrsComponent, - HotReloadComponent, - TerminusComponent, - DocumentationComponent, - CrudGeneratorComponent, - RouterModuleComponent, - ServeStaticComponent, - NestCommanderComponent, - AsyncLocalStorageComponent, - AutomockComponent, - ReplComponent, - SwcComponent, - NecordComponent - ], + imports: [CommonModule, SharedModule, RouterModule.forChild(routes)], + declarations: [ + MikroOrmComponent, + SqlTypeormComponent, + SqlSequelizeComponent, + MongodbComponent, + PrismaComponent, + CqrsComponent, + HotReloadComponent, + TerminusComponent, + DocumentationComponent, + CrudGeneratorComponent, + RouterModuleComponent, + ServeStaticComponent, + NestCommanderComponent, + AsyncLocalStorageComponent, + AutomockComponent, + ReplComponent, + SwcComponent, + NecordComponent + ], }) export class RecipesModule {}