project-booster-vue 8.128.1 → 8.128.2
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.
- package/package.json +1 -1
- package/src/services/api/configApi.js +4 -0
- package/src/services/api/configurationsApi.js +2 -2
- package/src/services/api/documentsApi.js +2 -2
- package/src/services/api/estimatesApi.js +2 -2
- package/src/services/api/eventsApi.js +2 -2
- package/src/services/api/inhabitantsApi.js +2 -2
- package/src/services/api/mediaApi.js +2 -2
- package/src/services/api/productsApi.js +2 -2
- package/src/services/api/projectsApi.js +2 -2
- package/src/services/api/scenarioApi.js +2 -2
package/package.json
CHANGED
|
@@ -5,6 +5,10 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateConfigApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
@@ -5,8 +5,8 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
if (config) {
|
|
9
|
-
clientApi.defaults.baseURL = config.
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const updateConfigurationsApiClient = (config) => {
|
|
@@ -5,8 +5,8 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
if (config) {
|
|
9
|
-
clientApi.defaults.baseURL = config.
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const updateDocumentsApiClient = (config) => {
|
|
@@ -5,8 +5,8 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
if (config) {
|
|
9
|
-
clientApi.defaults.baseURL = config.
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const updateEstimatesApiClient = (config) => {
|
|
@@ -5,8 +5,8 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
if (config) {
|
|
9
|
-
clientApi.defaults.baseURL = config.
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const updateEventsApiClient = (config) => {
|
|
@@ -5,8 +5,8 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
if (config) {
|
|
9
|
-
clientApi.defaults.baseURL = config.
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const updateInhabitantsApiClient = (config) => {
|
|
@@ -5,8 +5,8 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
if (config) {
|
|
9
|
-
clientApi.defaults.baseURL = config.
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const updateMediaApiClient = (config) => {
|
|
@@ -5,8 +5,8 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
if (config) {
|
|
9
|
-
clientApi.defaults.baseURL = config.
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const updateProductsApiClient = (config) => {
|
|
@@ -5,8 +5,8 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
if (config) {
|
|
9
|
-
clientApi.defaults.baseURL = config.
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const updateProjectsApiClient = (config) => {
|
|
@@ -4,8 +4,8 @@ export const clientApi = axios.create({
|
|
|
4
4
|
baseURL: '/project-booster/api',
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
if (config) {
|
|
8
|
-
clientApi.defaults.baseURL = config.
|
|
7
|
+
if (global.window.config) {
|
|
8
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export const updateScenarioApiClient = (config) => {
|