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
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -7,40 +7,40 @@ The page object is a proxy in the framework store part of your context and gives
7
7
8
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)is 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
14
-
-*title*: string
15
-
-*image*: string (absolute or relative URL)
16
-
-*description*: string
17
-
-*canonical*: string (absolute or relative URL)
18
-
-*locale*: string
19
-
-*robots*: string
20
-
-*schema*: object
21
-
-*changes*: string
22
-
-*priority*: number
23
-
-*status*: number
14
+
-**title**: `string`
15
+
-**image**: `string (absolute or relative URL)`
16
+
-**description**: `string`
17
+
-**canonical**: `string (absolute or relative URL)`
18
+
-**locale**: `string`
19
+
-**robots**: `string`
20
+
-**schema**: `object`
21
+
-**changes**: `string`
22
+
-**priority**: `number`
23
+
-**status**: `number`
24
24
25
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
-
- always
34
-
- hourly
35
-
- daily
36
-
- weekly
37
-
- monthly
38
-
- yearly
39
-
- never
33
+
-**always**
34
+
-**hourly**
35
+
-**daily**
36
+
-**weekly**
37
+
-**monthly**
38
+
-**yearly**
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
-
Nullstack does not set a default priority, however, sitemaps assume a 0.5 priority when not explicitly set.
43
+
Nullstack does not set a default priority, however, sitemaps assume a `0.5` priority when not explicitly set.
44
44
45
45
Besides *title* and *locale* all other keys have sensible defaults generated based on the application scope.
description: The page object is a proxy in the framework store part of your context and gives you information about the document head metatags
2
+
title: Contexto da página
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
-
The page object is a proxy in the framework store part of your context and gives you information about the document head metatags.
6
+
O objeto da página é um proxy armazenado na estrutura de seu contexto e fornece informações sobre as metatags do cabeçalho do documento.
7
7
8
-
This key is *readwrite* and available only in the *client* context.
8
+
Esta chave é de *leitura e escrita* e está disponível apenas no contexto *client-side*.
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) is resolved.
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.
11
11
12
-
The following keys are available in the object:
12
+
As seguintes chaves estão disponíveis no objeto:
13
13
14
-
-*title*: string
15
-
-*image*: string (absolute or relative URL)
16
-
-*description*: string
17
-
-*canonical*: string (absolute or relative URL)
18
-
-*locale*: string
19
-
-*robots*: string
20
-
-*schema*: object
21
-
-*changes*: string
22
-
-*priority*: number
23
-
-*status*: number
14
+
-**title**: `string`
15
+
-**image**: `string (URL absoluto ou relativo)`
16
+
-**description**: `string`
17
+
-**canonical**: `string (URL absoluto ou relativo)`
18
+
-**locale**: `string`
19
+
-**robots**: `string`
20
+
-**schema**: `object`
21
+
-**changes**: `string`
22
+
-**priority**: `number`
23
+
-**status**: `number`
24
24
25
-
When the title key is assigned on the client-side, the document title will be updated.
25
+
Quando a chave de título é atribuída no lado client-side, o título do documento será atualizado.
26
26
27
-
Nullstack uses the *changes*and*priority*keys to generate the sitemap.xml.
27
+
Nullstack utiliza as chaves *changes*e*priority*para gerar o `sitemap.xml`
28
28
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
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
-
The *changes*key represents the*changefreq*key in the sitemap.xml and if assigned must be one of the following values:
31
+
A chave *changes*representa a chave*changefreq*no `sitemap.xml` e se for atribuída será um dos seguintes valores:
32
32
33
-
- always
34
-
- hourly
35
-
- daily
36
-
- weekly
37
-
- monthly
38
-
- yearly
39
-
- never
33
+
-**always**
34
+
-**hourly**
35
+
-**daily**
36
+
-**weekly**
37
+
-**monthly**
38
+
-**yearly**
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
+
A chave *priority*é um número entre `0.0` e `1.0` que representada no `sitemap.xml`
42
42
43
-
Nullstack does not set a default priority, however, sitemaps assume a 0.5 priority when not explicitly set.
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.
44
44
45
-
Besides *title*and*locale* all other keys have sensible defaults generated based on the application scope.
45
+
Além de *title*e*locale*, todas as outras chaves tem padrões sensíveis e gerados com base no escopo do aplicativo.
Atualizando*page.title*gerando um evento personalizado.
81
81
82
82
```jsx
83
83
importNullstackfrom'nullstack';
@@ -95,15 +95,15 @@ class Analytics extends Nullstack {
95
95
exportdefaultAnalytics;
96
96
```
97
97
98
-
## Error pages
98
+
## Páginas de erro
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
+
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
-
The status key will be raised with the HTTP response.
102
+
A chave de status será gerada na resposta HTTP.
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
+
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
-
The status of [server functions](/server-functions) responses will be set to the*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';
@@ -128,8 +128,8 @@ class Application extends Nullstack {
128
128
exportdefaultApplication;
129
129
```
130
130
131
-
> 🔥 Assigning to the status key during the [single-page application](/full-stack-lifecycle) mode will have no effect.
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
-
## Next step
133
+
## Próxima Etapa
134
134
135
-
⚔ Learn about the [context project](/context-project).
135
+
⚔ Aprenda sobre o [contexto do projeto](/pt-br/contexto-project).
0 commit comments