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/en-US/articles/context-project.md
+30-30Lines changed: 30 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -3,48 +3,48 @@ title: Context Project
3
3
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
4
4
---
5
5
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.
7
7
8
-
This key is *readwrite* in the *server* context.
8
+
This key is **readwrite* in the **server* context.
9
9
10
-
This key is *readonly* in the *client* context.
10
+
This key is **readonly** in the **client** context.
11
11
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.
13
13
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).
15
15
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).
17
17
18
-
Project keys are frozen after the [application startup](/application-startup).
18
+
`project` keys are frozen after the [application startup](/application-startup).
19
19
20
20
The following keys are available in the object:
21
21
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)
38
38
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.
40
40
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.
42
42
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`.
44
44
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.
46
46
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
48
48
49
49
```jsx
50
50
importNullstackfrom'nullstack';
@@ -83,8 +83,8 @@ class Application extends Nullstack {
83
83
exportdefaultApplication;
84
84
```
85
85
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
87
87
88
88
## Next step
89
89
90
-
⚔ Learn about the [context settings](/context-settings).
90
+
⚔ Learn about the [context `settings`](/context-settings).
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).
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.
5
7
6
-
Essa chave é *readwrite* no contexto do *server*.
8
+
Essa chave é **readwrite** no contexto do **server**.
7
9
8
-
Essa chave é *readonly* no contexto do *client*.
10
+
Essa chave é **readonly** no contexto do **client**.
9
11
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 vidafull-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.
11
13
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).
13
15
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).
15
17
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).
17
19
18
20
As chaves a seguir estão disponíveis no objeto:
19
21
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)
36
38
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.
38
40
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**.
40
42
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`.
42
44
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.
44
46
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.
46
48
47
49
```jsx
48
50
importNullstackfrom'nullstack';
@@ -81,8 +83,8 @@ class Application extends Nullstack {
81
83
exportdefaultApplication;
82
84
```
83
85
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**
85
87
86
-
## Próximo passo
88
+
## Próximo Passo
87
89
88
-
⚔ Aprenda sobre as [configurações de contexto](/configurações de contexto).
90
+
⚔ Aprenda sobre o [contexto`settings`](/pt-br/contexto-settings).
0 commit comments