Skip to content

Commit 68365a7

Browse files
committed
Review & improvement in context-page
1 parent 904099a commit 68365a7

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
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/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).

0 commit comments

Comments
 (0)