diff --git a/src/Ecotag/ClientApp/public/environment.azure.json b/src/Ecotag/ClientApp/public/environment.azure.json index cd35fda1..6a205678 100644 --- a/src/Ecotag/ClientApp/public/environment.azure.json +++ b/src/Ecotag/ClientApp/public/environment.azure.json @@ -1,6 +1,7 @@ { "apiUrl": "https://axaguildev-ecotag.azurewebsites.net/api/server/{path}", "baseUrl": "", + "slimfaasBaseUrl": "", "oidc": { "mode": "Default", "configuration": { diff --git a/src/Ecotag/ClientApp/public/environment.desktop.json b/src/Ecotag/ClientApp/public/environment.desktop.json index 977da1ed..8e4ea4f9 100644 --- a/src/Ecotag/ClientApp/public/environment.desktop.json +++ b/src/Ecotag/ClientApp/public/environment.desktop.json @@ -1,6 +1,7 @@ { "apiUrl": "https://localhost:5001/api/server/{path}", "baseUrl": "", + "slimfaasBaseUrl": "", "oidc": { "mode": "Default", "configuration": { diff --git a/src/Ecotag/ClientApp/public/environment.dev.json b/src/Ecotag/ClientApp/public/environment.dev.json index 87af94f8..28f1f9d9 100644 --- a/src/Ecotag/ClientApp/public/environment.dev.json +++ b/src/Ecotag/ClientApp/public/environment.dev.json @@ -1,6 +1,7 @@ { "apiUrl": "https://localhost:5001/api/server/{path}", "baseUrl": "", + "slimfaasBaseUrl": "", "oidc": { "mode": "Default", "configuration": { diff --git a/src/Ecotag/ClientApp/public/environment.docker.json b/src/Ecotag/ClientApp/public/environment.docker.json index 940f6db3..842acc2a 100644 --- a/src/Ecotag/ClientApp/public/environment.docker.json +++ b/src/Ecotag/ClientApp/public/environment.docker.json @@ -1,6 +1,7 @@ { "apiUrl": "http://localhost:5010/api/server/{path}", "baseUrl": "", + "slimfaasBaseUrl": "", "oidc": { "mode": "Default", "configuration": { diff --git a/src/Ecotag/ClientApp/public/environment.json b/src/Ecotag/ClientApp/public/environment.json index 1118bcf0..5c60c2f5 100644 --- a/src/Ecotag/ClientApp/public/environment.json +++ b/src/Ecotag/ClientApp/public/environment.json @@ -1,6 +1,7 @@ { "apiUrl": "#{Spa:ApiUrl}#", "baseUrl": "#{Spa:BaseUrl}#", + "slimfaasBaseUrl": "#{Spa:SlimfaasUrl}#", "oidc": { "mode": "#{Spa:Oidc:Mode}#", "configuration": { diff --git a/src/Ecotag/ClientApp/src/Server/App.js b/src/Ecotag/ClientApp/src/Server/App.js index 6cdf3f30..22d67fcd 100644 --- a/src/Ecotag/ClientApp/src/Server/App.js +++ b/src/Ecotag/ClientApp/src/Server/App.js @@ -16,6 +16,7 @@ import {CallBackSuccess} from "./shared/Oidc/Callback.component"; import AccessToken from "./AccessToken"; import {useHistory} from "react-router"; import {OidcProvider, OidcSecure} from "@axa-fr/react-oidc"; +import PlanetSaver from "./PlanetSaver"; const AppWithOidcProvider = withEnvironment(({environment}) => { @@ -41,14 +42,30 @@ const AppWithOidcProvider = withEnvironment(({environment}) => { > -
- -