@orbe-agro/client-core 5.3.84 → 5.3.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @desc Endereço da API usado em versão de produção.
|
|
3
|
+
*
|
|
4
|
+
* VITE_APP_API_URL é definido no arquivo ".env.development" e ".env.production".
|
|
5
|
+
*
|
|
6
|
+
* Ambiente ".env.development" é usado com o comando "yarn build:dev".
|
|
7
|
+
*
|
|
8
|
+
* Ambiente ".env.production" é usado com o comando "yarn build:prod".
|
|
9
|
+
*
|
|
10
|
+
* Os ambientes sobrescrevem qualquer outro ambiente e as variáveis carregadas neles.
|
|
11
|
+
**/
|
|
12
|
+
declare global {
|
|
13
|
+
interface Window {
|
|
14
|
+
__ENV?: {
|
|
15
|
+
URL_BACKEND?: string;
|
|
16
|
+
NOME_APLICACAO?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
1
20
|
/**
|
|
2
21
|
* @desc Endereço atual da API.
|
|
3
22
|
**/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.config.d.ts","sourceRoot":"","sources":["../../../../lib/base/configs/api.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.config.d.ts","sourceRoot":"","sources":["../../../../lib/base/configs/api.config.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;;IAUI;AAEJ,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,KAAK,CAAC,EAAE;YAAE,WAAW,CAAC,EAAE,MAAM,CAAC;YAAC,cAAc,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAC3D;CACF;AASD;;IAEI;AACJ,eAAO,MAAM,OAAO,KAC0D,CAAA;AAE9E,eAAO,MAAM,kBAAkB,KAA8C,CAAA;AAC7E,eAAO,MAAM,iBAAiB,KAA6C,CAAA;AAE3E,QAAA,MAAM,SAAS;;;;;;;CAOd,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const t = "production", A = "http://localhost:8081";
|
|
2
|
+
var _;
|
|
3
|
+
const o = ((_ = window.__ENV) == null ? void 0 : _.URL_BACKEND) ?? "http://172.16.14.27:30001";
|
|
4
|
+
var n;
|
|
5
|
+
console.log("VARIAVEL window.__ENV?.URL_BACKEND: " + ((n = window.__ENV) == null ? void 0 : n.URL_BACKEND));
|
|
6
|
+
console.log("VARIAVEL BUILD_API_URL: " + o);
|
|
7
|
+
const E = t === "development" || !o ? A : o, L = void 0, c = void 0, e = {
|
|
8
|
+
API_URL: E,
|
|
9
|
+
GOOGLE_MAP_API_KEY: L,
|
|
10
|
+
GOOGLE_MAP_MAP_ID: c,
|
|
11
|
+
NODE_ENV: t,
|
|
12
|
+
DEV_API_URL: A,
|
|
13
|
+
BUILD_API_URL: o
|
|
8
14
|
};
|
|
9
15
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
E as API_URL,
|
|
17
|
+
L as GOOGLE_MAP_API_KEY,
|
|
18
|
+
c as GOOGLE_MAP_MAP_ID,
|
|
19
|
+
e as default
|
|
14
20
|
};
|
|
15
21
|
//# sourceMappingURL=api.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.config.js","sources":["../../../lib/base/configs/api.config.ts"],"sourcesContent":["/**\n * @desc Ambiente atual.\n *\n * \"development\" -> iniciado com \"yarn start\".\n *\n * \"production\" -> versão gerado com \"yarn build\".\n **/\nconst NODE_ENV = import.meta.env.MODE\n\n/**\n * @desc Endereço da API usado em modo de desenvolvimento, quando rodando a aplicação com \"yarn start\".\n *\n * @see http://localhost:8080/api (LOCAL)\n *\n * @see http://172.16.14.27:30001/api (QAS)\n *\n * */\n\nconst DEV_API_URL = 'http://localhost:8081'\n\n/**\n * @desc Endereço da API usado em versão de produção.\n *\n * VITE_APP_API_URL é definido no arquivo \".env.development\" e \".env.production\".\n *\n * Ambiente \".env.development\" é usado com o comando \"yarn build:dev\".\n *\n * Ambiente \".env.production\" é usado com o comando \"yarn build:prod\".\n *\n * Os ambientes sobrescrevem qualquer outro ambiente e as variáveis carregadas neles.\n **/\nconst BUILD_API_URL = import.meta.env.VITE_APP_API_URL\n\n/**\n * @desc Endereço atual da API.\n **/\nexport const API_URL =\n NODE_ENV === 'development' || !BUILD_API_URL ? DEV_API_URL : BUILD_API_URL\n\nexport const GOOGLE_MAP_API_KEY = import.meta.env.VITE_APP_GOOGLE_MAP_API_KEY\nexport const GOOGLE_MAP_MAP_ID = import.meta.env.VITE_APP_GOOGLE_MAP_MAP_ID\n\nconst apiConfig = {\n API_URL,\n GOOGLE_MAP_API_KEY,\n GOOGLE_MAP_MAP_ID,\n NODE_ENV,\n DEV_API_URL,\n BUILD_API_URL,\n}\n\nexport default apiConfig\n"],"names":["NODE_ENV","DEV_API_URL","BUILD_API_URL","API_URL","GOOGLE_MAP_API_KEY","GOOGLE_MAP_MAP_ID","apiConfig"],"mappings":"AAOA,MAAMA,IAAW,cAWXC,IAAc,
|
|
1
|
+
{"version":3,"file":"api.config.js","sources":["../../../lib/base/configs/api.config.ts"],"sourcesContent":["/**\n * @desc Ambiente atual.\n *\n * \"development\" -> iniciado com \"yarn start\".\n *\n * \"production\" -> versão gerado com \"yarn build\".\n **/\nconst NODE_ENV = import.meta.env.MODE\n\n/**\n * @desc Endereço da API usado em modo de desenvolvimento, quando rodando a aplicação com \"yarn start\".\n *\n * @see http://localhost:8080/api (LOCAL)\n *\n * @see http://172.16.14.27:30001/api (QAS)\n *\n * */\n\nconst DEV_API_URL = 'http://localhost:8081'\n\n/**\n * @desc Endereço da API usado em versão de produção.\n *\n * VITE_APP_API_URL é definido no arquivo \".env.development\" e \".env.production\".\n *\n * Ambiente \".env.development\" é usado com o comando \"yarn build:dev\".\n *\n * Ambiente \".env.production\" é usado com o comando \"yarn build:prod\".\n *\n * Os ambientes sobrescrevem qualquer outro ambiente e as variáveis carregadas neles.\n **/\n\ndeclare global {\n interface Window {\n __ENV?: { URL_BACKEND?: string; NOME_APLICACAO?: string };\n }\n}\n\nconst BUILD_API_URL = window.__ENV?.URL_BACKEND ?? import.meta.env.VITE_APP_API_URL\n\n\nconsole.log('VARIAVEL window.__ENV?.URL_BACKEND: ' + window.__ENV?.URL_BACKEND);\nconsole.log('VARIAVEL BUILD_API_URL: ' + BUILD_API_URL);\n\n\n/**\n * @desc Endereço atual da API.\n **/\nexport const API_URL =\n NODE_ENV === 'development' || !BUILD_API_URL ? DEV_API_URL : BUILD_API_URL\n\nexport const GOOGLE_MAP_API_KEY = import.meta.env.VITE_APP_GOOGLE_MAP_API_KEY\nexport const GOOGLE_MAP_MAP_ID = import.meta.env.VITE_APP_GOOGLE_MAP_MAP_ID\n\nconst apiConfig = {\n API_URL,\n GOOGLE_MAP_API_KEY,\n GOOGLE_MAP_MAP_ID,\n NODE_ENV,\n DEV_API_URL,\n BUILD_API_URL,\n}\n\nexport default apiConfig\n"],"names":["NODE_ENV","DEV_API_URL","_a","BUILD_API_URL","API_URL","GOOGLE_MAP_API_KEY","GOOGLE_MAP_MAP_ID","apiConfig"],"mappings":"AAOA,MAAMA,IAAW,cAWXC,IAAc;AAXpB,IAAAC;AA+BA,MAAMC,MAAgBD,IAAA,OAAO,UAAP,gBAAAA,EAAc,gBAAe;AA/BnD,IAAAA;AAkCA,QAAQ,IAAI,2CAAyCA,IAAA,OAAO,UAAP,gBAAAA,EAAc,YAAW;AAC9E,QAAQ,IAAI,6BAA6BC,CAAa;AAM/C,MAAMC,IACTJ,MAAa,iBAAiB,CAACG,IAAgBF,IAAcE,GAEpDE,IAAqB,QACrBC,IAAoB,QAE3BC,IAAY;AAAA,EACd,SAAAH;AAAA,EACA,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,UAAAN;AAAA,EACA,aAAAC;AAAA,EACA,eAAAE;AACJ;"}
|
|
@@ -29,7 +29,19 @@ const DEV_API_URL = 'http://localhost:8081'
|
|
|
29
29
|
*
|
|
30
30
|
* Os ambientes sobrescrevem qualquer outro ambiente e as variáveis carregadas neles.
|
|
31
31
|
**/
|
|
32
|
-
|
|
32
|
+
|
|
33
|
+
declare global {
|
|
34
|
+
interface Window {
|
|
35
|
+
__ENV?: { URL_BACKEND?: string; NOME_APLICACAO?: string };
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const BUILD_API_URL = window.__ENV?.URL_BACKEND ?? import.meta.env.VITE_APP_API_URL
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
console.log('VARIAVEL window.__ENV?.URL_BACKEND: ' + window.__ENV?.URL_BACKEND);
|
|
43
|
+
console.log('VARIAVEL BUILD_API_URL: ' + BUILD_API_URL);
|
|
44
|
+
|
|
33
45
|
|
|
34
46
|
/**
|
|
35
47
|
* @desc Endereço atual da API.
|