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/pt-BR/articles/contexto-project.md
+22-24Lines changed: 22 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,21 @@
1
1
---
2
-
title: Context Project
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
-
---
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.
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
+
---
7
5
8
-
This key is*readwrite*in the *server* context.
6
+
Essa chave é *readwrite* no contexto do *server*.
9
7
10
-
This key is*readonly*in the *client* context.
8
+
Essa chave é *readonly* no contexto do *client*.
11
9
12
-
Project keys will be used to generate metatags during server-side rendering and must be assigned before [initiate](/full-stack-lifecycle) is resolved.
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.
13
11
14
-
Project keys will be used to generate the app manifest and should be set during the [application startup](/application-startup).
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).
15
13
16
-
The disallow key will be used to generate the robots.txt and should be set during the [application startup](/application-startup).
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).
17
15
18
-
Project keys are frozen after the [application startup](/application-startup).
16
+
As chaves do projeto serão congeladas após a [inicialização do aplicativo](/inicialização do aplicativo).
19
17
20
-
The following keys are available in the object:
18
+
As chaves a seguir estão disponíveis no objeto:
21
19
22
20
- *domain*: string
23
21
- *name*: string
@@ -30,21 +28,21 @@ The following keys are available in the object:
30
28
- *scope*: string
31
29
- *root*: string
32
30
- *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)
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)
37
35
- *protocol* string (http or https)
38
36
39
-
Besides *domain*, *name* and *color*all other keys have sensible defaults generated based on the application scope.
37
+
Além de *domain*, *name* and *color* todas as outras chaves tem padrões sensíveis gerados com base no escopo do aplicativo.
40
38
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.
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.
42
40
43
-
If the *sitemap*key is set to true your robots.txt file will point the sitemap to*https://${project.domain}/sitemap.xml*.
41
+
Se a chave *sitemap* estiver definada como verdadeira o seu arquivo robots.txt wirá apontar o sitemap para *https://${project.domain}/sitemap.xml*.
44
42
45
-
The *cdn*key will prefix your asset bundles and will be available in the context so you can manually prefix other assets.
43
+
A chave *cdn* irá prefixar seu pacote de ativos e ficará disponível no contexto para que você possa manualmente prefixar outros ativos.
46
44
47
-
The *protocol*key is "http" in development mode and "https" in production mode by default
45
+
A chave *protocol* é "http" no modo de desenvolvimento e "https" e no modo produção por predefinição
48
46
49
47
```jsx
50
48
import Nullstack from 'nullstack';
@@ -83,8 +81,8 @@ class Application extends Nullstack {
83
81
export default Application;
84
82
```
85
83
86
-
> 💡 You can override the automatically generated manifest.json and robots.txt by serving your own file from the public folder
84
+
> 💡 Você pode substituir o manifest.json gerado automaticamente e robots.txt inserindo o seu próprio arquivo da pasta pública
87
85
88
-
## Next step
86
+
## Próximo passo
89
87
90
-
⚔ Learn about the [context settings](/context-settings).
88
+
⚔ Aprenda sobre as [configurações de contexto](/configurações de contexto).
0 commit comments