in TailwindTraders.Website/Source/Tailwind.Traders.Web/ClientApp/src/services/configService.js [38:87]
async loadSettings() {
if (this._needLoadSettings) {
const settingsResponse = await axios.get(settingsUrl);
// const settingsResponse = {
// data: {
// auth: null,
// apiUrl: "https://f6b8ea119d5d435c846c.westus2.aksapp.io/webbff/v1",
// apiUrlShoppingCart: "https://backend.tailwindtraders.com/cart-api",
// useB2C: false,
// b2CAuth: { clientId: "", authority: "", scopes: "" },
// cart: null,
// applicationInsights: { instrumentationKey: null },
// debugInformation: {
// sqlServerName: null,
// mongoServerName: null,
// customText: "",
// showDebug: false,
// },
// byPassShoppingCartApi: false,
// devspacesName: "",
// productImagesUrl: null,
// personalizer: { apiKey: "", endpoint: "" },
// },
// };
this._needLoadSettings = false;
this._apiUrl = settingsResponse.data.apiUrl;
this._apiUrlShoppingCart = settingsResponse.data.apiUrlShoppingCart;
this._UseB2C = settingsResponse.data.useB2C;
if (this._UseB2C) {
this._B2cAuthority = settingsResponse.data.b2CAuth.authority;
this._B2cClientId = settingsResponse.data.b2CAuth.clientId;
this._B2cScopes = settingsResponse.data.b2CAuth.scopes;
}
this._devspacesName = settingsResponse.data.devspacesName;
this._applicationInsightsIntrumentationKey =
settingsResponse.data.applicationInsights.instrumentationKey;
this._debugInformation = settingsResponse.data.debugInformation;
this._acsConnectionString = settingsResponse.data.acs.connectionString;
this._acsResource = settingsResponse.data.acs.resource;
this._logicAppUrl = settingsResponse.data.logicAppUrl;
this._email = settingsResponse.data.email;
this._customerSupportEnabled =
settingsResponse.data.email
&& settingsResponse.data.acs.resource
&& settingsResponse.data.acs.connectionString
&& settingsResponse.data.logicAppUrl;
}
},