You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: i18n/en-US/articles/context-page.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@ title: Context Page
3
3
description: The page object is a proxy in the framework store part of your context and gives you information about the document head metatags
4
4
---
5
5
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.
7
7
8
-
This key is *readwrite* and available only in the *client* context.
8
+
This key is **readwrite** and available only in the **client** context.
9
9
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.
11
11
12
12
The following keys are available in the object:
13
13
@@ -22,13 +22,13 @@ The following keys are available in the object:
22
22
-**priority**: `number`
23
23
-**status**: `number`
24
24
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.
26
26
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**
28
28
29
29
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
30
30
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:
32
32
33
33
-**always**
34
34
-**hourly**
@@ -38,11 +38,11 @@ The *changes* key represents the *changefreq* key in the `sitemap.xml` and if as
38
38
-**yearly**
39
39
-**never**
40
40
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**.
42
42
43
43
Nullstack does not set a default priority, however, sitemaps assume a `0.5` priority when not explicitly set.
44
44
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.
46
46
47
47
```jsx
48
48
importNullstackfrom'nullstack';
@@ -77,7 +77,7 @@ export default Page;
77
77
78
78
## Custom Events
79
79
80
-
Updating *page.title* will raise a custom event.
80
+
Updating `page.title` will raise a custom event.
81
81
82
82
```jsx
83
83
importNullstackfrom'nullstack';
@@ -97,13 +97,13 @@ export default Analytics;
97
97
98
98
## Error pages
99
99
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.
101
101
102
102
The status key will be raised with the HTTP response.
103
103
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.
105
105
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`.
107
107
108
108
```jsx
109
109
importNullstackfrom'nullstack';
@@ -132,4 +132,4 @@ export default Application;
132
132
133
133
## Next step
134
134
135
-
⚔ Learn about the [context project](/context-project).
135
+
⚔ Learn about the [context `project`](/context-project).
Copy file name to clipboardExpand all lines: i18n/pt-BR/articles/contexto-page.md
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@ title: Contexto Page
3
3
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
4
4
---
5
5
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.
7
7
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**.
9
9
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.
11
11
12
12
As seguintes chaves estão disponíveis no objeto:
13
13
@@ -22,13 +22,13 @@ As seguintes chaves estão disponíveis no objeto:
22
22
-**priority**: `number`
23
23
-**status**: `number`
24
24
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.
26
26
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**.
28
28
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).
30
30
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:
32
32
33
33
-**always**
34
34
-**hourly**
@@ -38,11 +38,11 @@ A chave *changes* representa a chave *changefreq* no `sitemap.xml` e se for atri
38
38
-**yearly**
39
39
-**never**
40
40
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**.
42
42
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.
44
44
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.
46
46
47
47
```jsx
48
48
importNullstackfrom'nullstack';
@@ -77,7 +77,7 @@ export default Page;
77
77
78
78
## Eventos Personalizados
79
79
80
-
Atualizando *page.title* gerando um evento personalizado.
80
+
Atualizando `page.title` gerará um evento personalizado.
81
81
82
82
```jsx
83
83
importNullstackfrom'nullstack';
@@ -97,13 +97,13 @@ export default Analytics;
97
97
98
98
## Páginas de erro
99
99
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.
101
101
102
102
A chave de status será gerada na resposta HTTP.
103
103
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.
105
105
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`.
107
107
108
108
```jsx
109
109
importNullstackfrom'nullstack';
@@ -130,6 +130,6 @@ export default Application;
130
130
131
131
> 🔥 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.
132
132
133
-
## Próxima Etapa
133
+
## Próximo Passo
134
134
135
-
⚔ Aprenda sobre o [contexto do projeto](/pt-br/contexto-project).
135
+
⚔ Aprenda sobre o [contexto `project`](/pt-br/contexto-project).
0 commit comments