Skip to content

Commit 725283e

Browse files
authored
Merge pull request #82 from GuiDevloper/traducao-review
Translation and docs review
2 parents 2c84be6 + 68365a7 commit 725283e

File tree

5 files changed

+102
-92
lines changed

5 files changed

+102
-92
lines changed

i18n/en-US/articles/context-page.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ title: Context Page
33
description: The page object is a proxy in the framework store part of your context and gives you information about the document head metatags
44
---
55

6-
The page object is a proxy in the framework store part of your context and gives you information about the document head metatags.
6+
The `page` object is a proxy in the framework store part of your context and gives you information about the document head metatags.
77

8-
This key is *readwrite* and available only in the *client* context.
8+
This key is **readwrite** and available only in the **client** context.
99

10-
Page keys will be used to generate metatags during [server-side rendering](/server-side-rendering) and must be assigned before [initiate](/full-stack-lifecycle) while this resolved.
10+
`page` keys will be used to generate metatags during [server-side rendering](/server-side-rendering) and must be assigned before [`initiate`](/full-stack-lifecycle) while this resolved.
1111

1212
The following keys are available in the object:
1313

@@ -22,13 +22,13 @@ The following keys are available in the object:
2222
- **priority**: `number`
2323
- **status**: `number`
2424

25-
When the title key is assigned on the client-side, the document title will be updated.
25+
When the `title` key is assigned on the client-side, the document title will be updated.
2626

27-
Nullstack uses the *changes* and *priority* keys to generate the `sitemap.xml`
27+
Nullstack uses the `changes` and `priority` keys to generate the **sitemap.xml**
2828

2929
The sitemap is generated automatically only when using [static site generation](/static-site-generation) and must be manually generated in [server-side rendered](/server-side-rendering) applications
3030

31-
The *changes* key represents the *changefreq* key in the `sitemap.xml` and if assigned must be one of the following values:
31+
The `changes` key represents the `changefreq` key in the **sitemap.xml** and if assigned must be one of the following values:
3232

3333
- **always**
3434
- **hourly**
@@ -38,11 +38,11 @@ The *changes* key represents the *changefreq* key in the `sitemap.xml` and if as
3838
- **yearly**
3939
- **never**
4040

41-
The *priority* key is a number between `0.0` and `1.0` that represents the *priority* key in the `sitemap.xml`
41+
The `priority` key is a number between `0.0` and `1.0` that represents the `priority` key in the **sitemap.xml**.
4242

4343
Nullstack does not set a default priority, however, sitemaps assume a `0.5` priority when not explicitly set.
4444

45-
Besides *title* and *locale* all other keys have sensible defaults generated based on the application scope.
45+
Besides `title` and `locale` all other keys have sensible defaults generated based on the application scope.
4646

4747
```jsx
4848
import Nullstack from 'nullstack';
@@ -77,7 +77,7 @@ export default Page;
7777

7878
## Custom Events
7979

80-
Updating *page.title* will raise a custom event.
80+
Updating `page.title` will raise a custom event.
8181

8282
```jsx
8383
import Nullstack from 'nullstack';
@@ -97,13 +97,13 @@ export default Analytics;
9797

9898
## Error pages
9999

100-
If during the [server-side render](/server-side-rendering) process the *page.status* has any value besides 200, your application will receive another render pass that gives you the chance to adjust the interface according to the status.
100+
If during the [server-side render](/server-side-rendering) process the `page.status` has any value besides `200`, your application will receive another render pass that gives you the chance to adjust the interface according to the status.
101101

102102
The status key will be raised with the HTTP response.
103103

104-
The page status will be modified to 500 and receive another render pass if the page raise an exception while rendering.
104+
The page status will be modified to `500` and receive another render pass if the page raise an exception while rendering.
105105

106-
The status of [server functions](/server-functions) responses will be set to the *page.status*.
106+
The status of [server functions](/server-functions) responses will be set to the `page.status`.
107107

108108
```jsx
109109
import Nullstack from 'nullstack';
@@ -132,4 +132,4 @@ export default Application;
132132
133133
## Next step
134134

135-
⚔ Learn about the [context project](/context-project).
135+
⚔ Learn about the [context `project`](/context-project).

i18n/en-US/articles/context-project.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,48 @@ title: Context Project
33
description: The project object is a proxy in the framework store part of your context and gives you information about the app manifest and some metatags
44
---
55

6-
The project object is a proxy in the framework store part of your context and gives you information about the app manifest and some metatags.
6+
The `project` object is a proxy in the framework store part of your context and gives you information about the app manifest and some metatags.
77

8-
This key is *readwrite* in the *server* context.
8+
This key is **readwrite* in the **server* context.
99

10-
This key is *readonly* in the *client* context.
10+
This key is **readonly** in the **client** context.
1111

12-
Project keys will be used to generate metatags during server-side rendering and must be assigned before [initiate](/full-stack-lifecycle) is resolved.
12+
`project` keys will be used to generate metatags during server-side rendering and must be assigned before [`initiate`](/full-stack-lifecycle) is resolved.
1313

14-
Project keys will be used to generate the app manifest and should be set during the [application startup](/application-startup).
14+
`project` keys will be used to generate the app **manifest** and should be set during the [application startup](/application-startup).
1515

16-
The disallow key will be used to generate the robots.txt and should be set during the [application startup](/application-startup).
16+
The `disallow` key will be used to generate the **robots.txt** and should be set during the [application startup](/application-startup).
1717

18-
Project keys are frozen after the [application startup](/application-startup).
18+
`project` keys are frozen after the [application startup](/application-startup).
1919

2020
The following keys are available in the object:
2121

22-
- *domain*: string
23-
- *name*: string
24-
- *shortName*: string
25-
- *color*: string
26-
- *backgroundColor*: string
27-
- *type*: string
28-
- *display*: string
29-
- *orientation*: string
30-
- *scope*: string
31-
- *root*: string
32-
- *icons*: object
33-
- *favicon*: string (relative or absolute url)
34-
- *disallow*: string array (relative paths)
35-
- *sitemap*: boolean or string (relative or absolute url)
36-
- *cdn*: string (absolute url)
37-
- *protocol* string (http or https)
22+
- **domain**: `string`
23+
- **name**: `string`
24+
- **shortName**: `string`
25+
- **color**: `string`
26+
- **backgroundColor**: `string`
27+
- **type**: `string`
28+
- **display**: `string`
29+
- **orientation**: `string`
30+
- **scope**: `string`
31+
- **root**: `string`
32+
- **icons**: `object`
33+
- **favicon**: `string` (relative or absolute url)
34+
- **disallow**: `string array` (relative paths)
35+
- **sitemap**: `boolean` or `string` (relative or absolute url)
36+
- **cdn**: `string` (absolute url)
37+
- **protocol**: `string` (http or https)
3838

39-
Besides *domain*, *name* and *color* all other keys have sensible defaults generated based on the application scope.
39+
Besides `domain`, `name` and `color` all other keys have sensible defaults generated based on the application scope.
4040

41-
If you do not declare the *icons* key, Nullstack will scan any icons with the name following the pattern "icon-[WIDTH]x[HEIGHT].png" in your public folder.
41+
If you do not declare the `icons` key, Nullstack will scan any icons with the name following the pattern "icon-[WIDTH]x[HEIGHT].png" in your public folder.
4242

43-
If the *sitemap* key is set to true your robots.txt file will point the sitemap to *https://${project.domain}/sitemap.xml*.
43+
If the `sitemap` key is set to true your **robots.txt** file will point the sitemap to `https://${project.domain}/sitemap.xml`.
4444

45-
The *cdn* key will prefix your asset bundles and will be available in the context so you can manually prefix other assets.
45+
The `cdn` key will prefix your asset bundles and will be available in the context so you can manually prefix other assets.
4646

47-
The *protocol* key is "http" in development mode and "https" in production mode by default
47+
The `protocol` key is "http" in development mode and "https" in production mode by default
4848

4949
```jsx
5050
import Nullstack from 'nullstack';
@@ -83,8 +83,8 @@ class Application extends Nullstack {
8383
export default Application;
8484
```
8585

86-
> 💡 You can override the automatically generated manifest.json and robots.txt by serving your own file from the public folder
86+
> 💡 You can override the automatically generated **manifest.json** and **robots.txt** by serving your own file from the **public** folder
8787
8888
## Next step
8989

90-
⚔ Learn about the [context settings](/context-settings).
90+
⚔ Learn about the [context `settings`](/context-settings).

i18n/pt-BR/articles/contexto-page.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ title: Contexto Page
33
description: O objeto da página é um proxy armazenado da estrutura de seu contexto e fornece informações sobre as metatags do cabeçalho do documento
44
---
55

6-
O objeto *page* é um proxy armazenado na estrutura de seu contexto e fornece informações sobre as metatags do cabeçalho do documento.
6+
O objeto `page` é um proxy de parte do armazenamento do framework no seu contexto e fornece informações sobre as metatags do cabeçalho do documento.
77

8-
Esta chave é de *leitura e escrita* e está disponível apenas no contexto *client-side*.
8+
Esta chave é de **leitura e escrita** e está disponível apenas no contexto **client-side**.
99

10-
Chaves da página serão usadas para gerar as metatags durante a [renderização no lado do servidor](/pt-br/renderizando-no-servidor) e devem ser atribuídas antes do ciclo de [inicialização](/pt-br/ciclo-de-vida-full-stack) ser resolvido.
10+
Chaves de `page` serão usadas para gerar as metatags durante a [renderização no lado do servidor](/pt-br/renderizando-no-servidor) e devem ser atribuídas antes do ciclo [`initiate`](/pt-br/ciclo-de-vida-full-stack) ser resolvido.
1111

1212
As seguintes chaves estão disponíveis no objeto:
1313

@@ -22,13 +22,13 @@ As seguintes chaves estão disponíveis no objeto:
2222
- **priority**: `number`
2323
- **status**: `number`
2424

25-
Quando a chave de título é atribuída no lado client-side, o título do documento será atualizado.
25+
Quando a chave `title` é atribuída no lado do client, o título do documento será atualizado.
2626

27-
Nullstack utiliza as chaves *changes* e *priority* para gerar o `sitemap.xml`
27+
Nullstack utiliza as chaves `changes` e `priority` para gerar o **sitemap.xml**.
2828

29-
O mapa do site é gerado automaticamente apenas ao utilizar a [geração de site estático](/pt-br/geracao-de-sites-estaticos) e deve ser gerado manualmente em aplicativos com a [renderização no lado do servidor](/pt-br/renderizando-no-servidor)
29+
O mapa do site é gerado automaticamente apenas ao utilizar a [geração de site estático](/pt-br/geracao-de-sites-estaticos) e deve ser gerado manualmente em aplicativos com a [renderização no lado do servidor](/pt-br/renderizando-no-servidor).
3030

31-
A chave *changes* representa a chave *changefreq* no `sitemap.xml` e se for atribuída será um dos seguintes valores:
31+
A chave `changes` representa a chave `changefreq` no **sitemap.xml** e se for atribuída deverá ser um dos seguintes valores:
3232

3333
- **always**
3434
- **hourly**
@@ -38,11 +38,11 @@ A chave *changes* representa a chave *changefreq* no `sitemap.xml` e se for atri
3838
- **yearly**
3939
- **never**
4040

41-
A chave *priority* é um número entre `0.0` e `1.0` que representada no `sitemap.xml`
41+
A chave `priority` é um número entre `0.0` e `1.0` que representa a chave `priority` no **sitemap.xml**.
4242

43-
Nullstack não define uma prioridade padrão, no entanto, os sitemap assumem uma prioridade `0.5` quando não são definidos explicitamente.
43+
Nullstack não define uma prioridade padrão, no entanto, sitemaps assumem uma prioridade `0.5` quando não são definidas explicitamente.
4444

45-
Além de *title* e *locale*, todas as outras chaves tem padrões sensíveis e gerados com base no escopo do aplicativo.
45+
Além de `title` e `locale`, todas as outras chaves tem padrões sensíveis e gerados com base no escopo do aplicativo.
4646

4747
```jsx
4848
import Nullstack from 'nullstack';
@@ -77,7 +77,7 @@ export default Page;
7777

7878
## Eventos Personalizados
7979

80-
Atualizando *page.title* gerando um evento personalizado.
80+
Atualizando `page.title` gerará um evento personalizado.
8181

8282
```jsx
8383
import Nullstack from 'nullstack';
@@ -97,13 +97,13 @@ export default Analytics;
9797

9898
## Páginas de erro
9999

100-
Se durante o processo de [renderização no lado do servidor](/pt-br/renderizando-no-servidor) o *page.status* estiver com qualquer valor além de 200, seu aplicativo receberá outra passagem na renderização e lhe possibilitará ajustar a interface de acordo com o status retornado.
100+
Se durante o processo de [renderização no lado do servidor](/pt-br/renderizando-no-servidor) o `page.status` estiver com qualquer valor além de `200`, seu aplicativo receberá outra passagem na renderização e lhe possibilitará ajustar a interface de acordo com o status retornado.
101101

102102
A chave de status será gerada na resposta HTTP.
103103

104-
O status da página será modificado para 500 e receberá outra passagem na renderização se a página gerar uma exceção enquanto renderiza.
104+
O status da página será modificado para `500` e receberá outra passagem na renderização se a página gerar uma exceção enquanto renderiza.
105105

106-
O status das respostas de [funções do servidor](/pt-br/funcoes-de-servidor) será definido no *page.status*.
106+
O status das respostas de [funções do servidor](/pt-br/funcoes-de-servidor) será definido no `page.status`.
107107

108108
```jsx
109109
import Nullstack from 'nullstack';
@@ -130,6 +130,6 @@ export default Application;
130130

131131
> 🔥 A atribuição à chave de status durante o modo [aplicativo de página única](/pt-br/ciclo-de-vida-full-stack) não terá efeito.
132132
133-
## Próxima Etapa
133+
## Próximo Passo
134134

135-
⚔ Aprenda sobre o [contexto do projeto](/pt-br/contexto-project).
135+
⚔ Aprenda sobre o [contexto `project`](/pt-br/contexto-project).
Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,50 @@
11
---
2-
title: Contexto do Projeto
3-
description: O objeto do projeto é um proxy na parte da loja de framework do seu contexto e te dá informações sobre o manifesto do app e alguns metatags
4-
---
2+
title: Contexto Project
3+
description: O objeto project é um proxy de parte do armazenamento do framework no seu contexto e te dá informações sobre o manifest do app e algumas metatags
4+
---
5+
6+
O objeto `project` é um proxy de parte do armazenamento do framework no seu contexto e te dá informações sobre o manifest do app e algumas metatags.
57

6-
Essa chave é *readwrite* no contexto do *server*.
8+
Essa chave é **readwrite** no contexto do **server**.
79

8-
Essa chave é *readonly* no contexto do *client*.
10+
Essa chave é **readonly** no contexto do **client**.
911

10-
As chaves do projeto serão usadas para gerar metatags durante a renderização do lado do servidor e deve ser designado antes que [inicialize](/ciclo de vida full-stack) seja resolvido.
12+
As chaves de `project` serão usadas para gerar metatags durante a renderização do lado do servidor e devem ser definidas antes que [`initiate`](/pt-br/ciclo-de-vida-full-stack) seja resolvido.
1113

12-
As chaves do projeto serão usadas para gerar o manifesto do app e devem ser definidos durante a [inicialização do aplicativo](/inicialização do aplicativo).
14+
As chaves de `project` serão usadas para gerar o **manifest** do app e devem ser definidas durante a [inicialização da aplicação](/pt-br/inicializacao-da-aplicacao).
1315

14-
A chave disallow será usada para gerar o robots.txt e deverá ser definida durante a [inicialização do aplicativo](/inicialização do aplicativo).
16+
A chave `disallow` será usada para gerar o **robots.txt** e deverá ser definida durante a [inicialização da aplicação](/pt-br/inicializacao-da-aplicacao).
1517

16-
As chaves do projeto serão congeladas após a [inicialização do aplicativo](/inicialização do aplicativo).
18+
As chaves de `project` serão congeladas após a [inicialização da aplicação](/pt-br/inicializacao-da-aplicacao).
1719

1820
As chaves a seguir estão disponíveis no objeto:
1921

20-
- *domain*: string
21-
- *name*: string
22-
- *shortName*: string
23-
- *color*: string
24-
- *backgroundColor*: string
25-
- *type*: string
26-
- *display*: string
27-
- *orientation*: string
28-
- *scope*: string
29-
- *root*: string
30-
- *icons*: object
31-
- *favicon*: string (url relativo ou absoluto)
32-
- *disallow*: string array (caminhos relativos)
33-
- *sitemap*: boolean or string (url relativo ou absoluto)
34-
- *cdn*: string (url absoluto)
35-
- *protocol* string (http or https)
22+
- **domain**: `string`
23+
- **name**: `string`
24+
- **shortName**: `string`
25+
- **color**: `string`
26+
- **backgroundColor**: `string`
27+
- **type**: `string`
28+
- **display**: `string`
29+
- **orientation**: `string`
30+
- **scope**: `string`
31+
- **root**: `string`
32+
- **icons**: `object`
33+
- **favicon**: `string` (url relativo ou absoluto)
34+
- **disallow**: `array` de `string` (caminhos relativos)
35+
- **sitemap**: `boolean` ou `string` (url relativo ou absoluto)
36+
- **cdn**: `string` (url absoluto)
37+
- **protocol**: `string` (http or https)
3638

37-
Além de *domain*, *name* and *color* todas as outras chaves tem padrões sensíveis gerados com base no escopo do aplicativo.
39+
Além de `domain`, `name` and `color` todas as outras chaves tem padrões sensíveis gerados com base no escopo do aplicativo.
3840

39-
Se você não declarar a chave *icons*, Nullstack irá escanear quaisquer ícones com o nome seguindo o padrão "icon-[WIDTH]x[HEIGHT].png" na sua pasta pública.
41+
Se você não declarar a chave `icons`, Nullstack irá escanear quaisquer ícones com o nome seguindo o padrão "icon-[LARGURA]x[ALTURA].png" na sua pasta **public**.
4042

41-
Se a chave *sitemap* estiver definada como verdadeira o seu arquivo robots.txt wirá apontar o sitemap para *https://${project.domain}/sitemap.xml*.
43+
Se a chave `sitemap` estiver definida como `true` o seu arquivo **robots.txt** irá apontar o sitemap para `https://${project.domain}/sitemap.xml`.
4244

43-
A chave *cdn* irá prefixar seu pacote de ativos e ficará disponível no contexto para que você possa manualmente prefixar outros ativos.
45+
A chave `cdn` irá prefixar seu pacote de assets e ficará disponível no contexto para que você possa manualmente prefixar outros ativos.
4446

45-
A chave *protocol* é "http" no modo de desenvolvimento e "https" e no modo produção por predefinição
47+
A chave `protocol` é "http" no modo de desenvolvimento e "https" e no modo produção por predefinição.
4648

4749
```jsx
4850
import Nullstack from 'nullstack';
@@ -81,8 +83,8 @@ class Application extends Nullstack {
8183
export default Application;
8284
```
8385

84-
> 💡 Você pode substituir o manifest.json gerado automaticamente e robots.txt inserindo o seu próprio arquivo da pasta pública
86+
> 💡 Você pode substituir o **manifest.json** gerado automaticamente e **robots.txt** inserindo o seu próprio arquivo na pasta **public**
8587
86-
## Próximo passo
88+
## Próximo Passo
8789

88-
⚔ Aprenda sobre as [configurações de contexto](/configurações de contexto).
90+
⚔ Aprenda sobre o [contexto `settings`](/pt-br/contexto-settings).

src/Article.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ article {
5252

5353
}
5454

55+
li,
56+
& > p {
57+
& code:not(.language-jsx) {
58+
font-size: 1.1rem;
59+
vertical-align: text-bottom;
60+
}
61+
}
62+
5563
}
5664

5765
@media (max-width: 768px) {

0 commit comments

Comments
 (0)