Skip to content

Commit

Permalink
fix(links): fix external link issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkPieszak committed Sep 4, 2019
1 parent fa7880a commit 251468f
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 42 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
<a href="http://nestjs.com/" target="_blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
</p>

[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master
[travis-url]: https://travis-ci.org/nestjs/nest
[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux
[linux-url]: https://travis-ci.org/nestjs/nest

<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p>
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="_blank">Angular</a>.</p>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
Expand Down
2 changes: 1 addition & 1 deletion content/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ This method will return a 200 status code and the associated response, which in
<tr>
<td>Library-specific</td>
<td>
We can use the library-specific (e.g., Express) <a href="http://expressjs.com/en/api.html#res" target="blank">response object</a>, which can be injected using the <code>@Res()</code> decorator in the method handler signature (e.g., <code>findAll(@Res() response)</code>). With this approach, you have the ability (and the responsibility), to use the native response handling methods exposed by that object. For example, with Express, you can construct responses using code like <code>response.status(200).send()</code>
We can use the library-specific (e.g., Express) <a href="http://expressjs.com/en/api.html#res" rel="nofollow" target="_blank">response object</a>, which can be injected using the <code>@Res()</code> decorator in the method handler signature (e.g., <code>findAll(@Res() response)</code>). With this approach, you have the ability (and the responsibility), to use the native response handling methods exposed by that object. For example, with Express, you can construct responses using code like <code>response.status(200).send()</code>
</td>
</tr>
</table>
Expand Down
4 changes: 2 additions & 2 deletions content/microservices/grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ There are a bunch of available options that determine a transporter behavior.
<code>@grpc/proto-loader</code> options. They are well-described
<a
href="https://github.com/grpc/grpc-node/tree/master/packages/grpc-protobufjs#usage"
target="blank"
target="_blank"
>here</a
>.
</td>
Expand All @@ -67,7 +67,7 @@ There are a bunch of available options that determine a transporter behavior.
<td>
Server credentials (<a
href="https://grpc.io/grpc/node/grpc.ServerCredentials.html"
target="blank"
target="_blank"
>read more</a
>)
</td>
Expand Down
6 changes: 2 additions & 4 deletions content/microservices/rabbitmq.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ There are a bunch of available options that determine a transporter behavior.
</tr>
<tr>
<td><code>queueOptions</code></td>
<td>Additional queue options. They are well-described <a href="https://www.squaremobius.net/amqp.node/channel_api.html#assertQueue"
target="blank">here</a></td>
<td>Additional queue options. They are well-described <a href="https://www.squaremobius.net/amqp.node/channel_api.html#assertQueue" rel="nofollow" target="_blank">here</a></td>
</tr>
<tr>
<td><code>socketOptions</code></td>
<td>Additional socket options. They are well-described <a href="https://www.squaremobius.net/amqp.node/channel_api.html#socket-options"
target="blank">here</a></td>
<td>Additional socket options. They are well-described <a href="https://www.squaremobius.net/amqp.node/channel_api.html#socket-options" rel="nofollow" target="_blank">here</a></td>
</tr>
</table>
10 changes: 5 additions & 5 deletions src/app/common/social-wrapper/social-wrapper.component.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<div class="social-wrapper">
<a href="https://twitter.com/nestframework" target="blank">
<a href="https://twitter.com/nestframework" target="_blank">
<i class="fa fa-twitter"></i>
</a>
<a href="https://github.com/nestjs/nest" target="blank">
<a href="https://github.com/nestjs/nest" target="_blank">
<i class="fa fa-github"></i>
</a>
<a href="https://stackoverflow.com/questions/tagged/nestjs" target="blank">
<a href="https://stackoverflow.com/questions/tagged/nestjs" target="_blank">
<i class="fa fa-stack-overflow"></i>
</a>
<a
href="https://nestjs.com"
title="NestJS - A node.js framework built on top of TypeScript"
target="blank"
target="_blank"
>
<i class="fa fa-globe"></i>
</a>
<a href="https://discord.gg/G7Qnnhy" target="blank">
<a href="https://discord.gg/G7Qnnhy" target="_blank" rel="nofollow">
<svg
class="discord-icon"
xmlns="http://www.w3.org/2000/svg"
Expand Down
12 changes: 6 additions & 6 deletions src/app/homepage/footer/footer.component.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<footer>
<div class="social-wrapper">
<a href="https://www.facebook.com/kammysliwiec/" target="blank"
<a href="https://www.facebook.com/kammysliwiec/" target="_blank"
><i class="fa fa-facebook"></i
></a>
<a href="https://twitter.com/kammysliwiec" target="blank"
<a href="https://twitter.com/kammysliwiec" target="_blank"
><i class="fa fa-twitter"></i
></a>
<a href="https://github.com/kamilmysliwiec" target="blank"
<a href="https://github.com/kamilmysliwiec" target="_blank"
><i class="fa fa-github"></i
></a>
<a
href="https://kamilmysliwiec.com"
title="Kamil Mysliwiec Blog | Full-Stack Software Engineer"
target="blank"
target="_blank"
><i class="fa fa-globe"></i
></a>
</div>
Expand All @@ -21,7 +21,7 @@
Copyright © 2017-2019 MIT by
<a
href="https://kamilmysliwiec.com"
target="blank"
target="_blank"
title="Kamil Mysliwiec Blog | Full-Stack Software Engineer"
>
Kamil Mysliwiec</a
Expand All @@ -36,7 +36,7 @@
Official NestJS Consulting
<a
href="https://trilon.io"
target="blank"
target="_blank"
title="Official NestJS Consulting | Angular Consulting"
>
Trilon.io</a
Expand Down
4 changes: 2 additions & 2 deletions src/app/homepage/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<ul>
<li>
<a
href="https://nestjs.com"
href="https://nestjs.com" target="_blank"
title="NestJS - A node.js framework built on top of TypeScript"
>Our website</a
>
Expand All @@ -57,7 +57,7 @@ <h3 class="long-title">
<span>NestJS</span> at 2018 JSCamp Conference, Barcelona</h3>
<h3 class="short-title">
<span>NestJS</span> 2018 JSCamp</h3>
<a href="https://angularcamp.tech/workshops/scalable-nodejs-with-nest/" target="blank">LEARN MORE</a>
<a href="https://angularcamp.tech/workshops/scalable-nodejs-with-nest/" target="_blank">LEARN MORE</a>
</div>
</div>-->
</header>
7 changes: 4 additions & 3 deletions src/app/homepage/homepage.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h3>Support us</h3>
<div class="row clearfix">
<div class="inline-column">
<h4 class="title">Principal Sponsor</h4>
<a href="https://valor-software.com/">
<a href="https://valor-software.com/" rel="nofollow" target="_blank">
<img
src="/assets/sponsors/valor-software.png"
class="logo-sponsor"
Expand All @@ -50,7 +50,8 @@ <h4 class="title">Sponsors / Partners</h4>
<a
href="https://opencollective.com/nest"
class="btn btn-primary"
target="blank"
target="_blank"
rel="nofollow"
>
Become a sponsor
</a>
Expand All @@ -67,7 +68,7 @@ <h4 class="title">Sponsors / Partners</h4>
<p>
Made by
<a
href="https://kamilmysliwiec.com"
href="https://kamilmysliwiec.com" target="_blank"
title="Kamil Mysliwiec Blog | Full-Stack Software Engineer"
>
Kamil Myśliwiec
Expand Down
4 changes: 2 additions & 2 deletions src/app/homepage/menu/menu-item/menu-item.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h3>{{ title }}</h3>
</i>
{{ item.title }}
</a>
<a *ngIf="!!item.externalUrl" href="{{ item.externalUrl }}" target="blank"
<a *ngIf="!!item.externalUrl" href="{{ item.externalUrl }}" target="_blank"
><i class="material-icons" *ngIf="item.icon">
{{ item.icon }}
</i>
Expand All @@ -44,7 +44,7 @@ <h3>{{ title }}</h3>
{{ title }}
</h3></a
>
<a *ngIf="!!externalUrl" href="{{ externalUrl }}" target="blank"
<a *ngIf="!!externalUrl" href="{{ externalUrl }}" target="_blank"
><h3>
<i class="material-icons" *ngIf="icon">
{{ icon }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h3>Mixin Class</h3>
<h5>This chapter applies only to TypeScript</h5>
<p>
TypeScript 2.2 adds support for the ECMAScript 2015 <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html" target="blank">mixin class pattern</a>.
TypeScript 2.2 adds support for the ECMAScript 2015 <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html" rel="nofollow" target="_blank">mixin class pattern</a>.
This pattern's quite useful since it's not easy to pass custom arguments to some Nest application building blocks, such as <a routerLink="/interceptors">interceptors</a> or <a routerLink="/guards">guards</a>.
The <strong>mixin classes</strong> have much more applications, but here we're gonna focus on this single use-case.
</p>
Expand All @@ -28,4 +28,4 @@ <h5>This chapter applies only to TypeScript</h5>
<p>
The <code>mixin()</code> function returns the class, so you can use it in the same manner as a plain, self-created classes.
</p>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<h3>Schema stitching</h3>
<p>
The schema stitching is a feature that allows creating a single GraphQL schema from multiple underlying GraphQL APIs. You
can read more about it <a href="https://www.apollographql.com/docs/graphql-tools/schema-stitching.html" target="blank">here</a>.
can read more about it <a href="https://www.apollographql.com/docs/graphql-tools/schema-stitching.html" target="_blank" rel="nofollow">here</a>.
</p>
<h4>Proxying</h4>
<p>
To add the ability to proxy fields between schemas, you need to create additional resolvers between them. Let's have a look
on the example from the <a href="https://www.apollographql.com/docs/graphql-tools/schema-stitching.html#adding-resolvers"
target="blank">Apollo</a> documentation:
target="_blank" rel="nofollow">Apollo</a> documentation:
</p>
<pre><code class="language-typescript">{{ stitchingExample }}</code></pre>
<p>
Expand All @@ -31,13 +31,13 @@ <h4>Proxying</h4>
<pre><code class="language-typescript">{{ createSchema }}</code></pre>
<p>
In order to merge schemas, we have used <code>mergeSchemas()</code> function (<a href="https://www.apollographql.com/docs/graphql-tools/schema-stitching.html#mergeSchemas"
target="blank">read more</a>). Moreover, you may notice <code>chirpsSchema</code> and <code>linkTypeDefs</code> variables.
target="_blank" rel="nofollow">read more</a>). Moreover, you may notice <code>chirpsSchema</code> and <code>linkTypeDefs</code> variables.
They're copied & pasted directly from the <a href="https://www.apollographql.com/docs/graphql-tools/schema-stitching.html"
target="blank">Apollo</a> documentation.
target="_blank" rel="nofollow">Apollo</a> documentation.
</p>
<span class="filename"><app-tabs></app-tabs></span>
<pre><code class="language-typescript">{{ chirpsSchema }}</code></pre>
<p>
That's all.
</p>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h3>Custom Transport</h3>
<p>
The Nest has a built-in transport via TCP and Redis, but other communication schemes can be implemented with <code>CustomTransportStrategy</code> interface.
For demonstration purposes, we're going to port the <a href="https://www.rabbitmq.com/" target="blank">RabbitMQ</a> transport strategy using <a href="https://github.com/squaremo/amqp.node" target="blank">ampqlib</a> library.
For demonstration purposes, we're going to port the <a href="https://www.rabbitmq.com/" target="_blank" rel="nofollow">RabbitMQ</a> transport strategy using <a href="https://github.com/squaremo/amqp.node" rel="nofollow" target="_blank">ampqlib</a> library.
</p>
<h4>Server</h4>
<p>
Expand All @@ -28,8 +28,8 @@ <h4>Server</h4>
<pre><code class="language-typescript">{{ setupServer }}</code></pre>
<h4>Client</h4>
<p>
The <a href="https://www.rabbitmq.com/" target="blank">RabbitMQ</a> server's listening to messages.
Now it's time to create a client class, which shall extends the abstract <code>ClientProxy</code> class.
The <a href="https://www.rabbitmq.com/" target="_blank" rel="nofollow">RabbitMQ</a> server's listening to messages.
Now it's time to create a client class, which shall extends the abstract <code>ClientProxy</code> class.
To make it work, we only have to override <code>sendSingleMessage()</code> method.
</p>
<span class="filename">
Expand All @@ -46,4 +46,4 @@ <h4>Client</h4>
<blockquote class="warning">
<strong>Hint</strong> To make unit testing easy, you can provide a <a routerLink="/fundamentals/dependency-injection">custom component</a> instead of creating the instance directly in the class body.
</blockquote>
</div>
</div>
8 changes: 4 additions & 4 deletions tools/transforms/templates/who-uses.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@

<div class="companies-wrapper">
{% for company in doc.whoUses.Header %}
<a class="company-logo" href="{$ company.url $}" target="blank"><img src="{$ company.logo $}"
<a class="company-logo" href="{$ company.url $}" target="_blank" rel="nofollow"><img src="{$ company.logo $}"
{% if company.width %} style="width: {$ company.width $}" {% endif %} /></a>
{% endfor %}

</div>
<table class="companies-list">
{% for company in doc.whoUses.Body %}
<tr>
<td><a href="{$ company $}" target="blank">{$ company $}</a></td>
<td><a href="{$ company $}" target="_blank" rel="nofollow">{$ company $}</a></td>
</tr>
{% endfor %}
</table>
<p>
and a lot more but we don't have enough time to update above list. Feel free to create a <a href="https://github.com/nestjs/docs.nestjs.com/pulls"
target="blank">pull
target="_blank">pull
request</a> though!
</p>
{% endblock %}
{% endblock %}

0 comments on commit 251468f

Please sign in to comment.