diff --git a/src/App.svelte b/src/App.svelte index bc7891f2..ff6f3c17 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -114,7 +114,7 @@ await authInstance.login(); } - const progress = await fetch('https://content.sheaft.com/progress/departments.json'); + const progress = await fetch(config.content + '/progress/departments.json'); var data = await progress.json(); allDepartmentsProgress.set(data); diff --git a/src/components/nav/Nav.svelte b/src/components/nav/Nav.svelte index dcf16a7e..88ebdfd7 100644 --- a/src/components/nav/Nav.svelte +++ b/src/components/nav/Nav.svelte @@ -41,6 +41,7 @@ import SellingPointRoutes from "./../../routes/selling-points/routes.js"; import DeliveryRoutes from "./../../routes/deliveries/routes.js"; import QuickOrderRoutes from "./../../routes/quick-orders/routes.js"; +import { config } from "../../configs/config"; const authInstance = GetAuthInstance(); const routerInstance = GetRouterInstance(); @@ -323,7 +324,7 @@ {$authUserAccount.profile.given_name ? $authUserAccount.profile.given_name : $authUserAccount.profile.name}
{:else} diff --git a/src/configs/config.local.js b/src/configs/config.local.js index 39527e50..4065ad24 100644 --- a/src/configs/config.local.js +++ b/src/configs/config.local.js @@ -3,6 +3,7 @@ export const config = { front: "http://localhost:4200", api: "http://localhost:5002", signalr: "http://localhost:5009", + content: "http://localhost:10000/devstoreaccount1", auth: { url: "http://localhost:5000", settings: { diff --git a/src/configs/config.production.js b/src/configs/config.production.js index 3bfeb098..7fda61f6 100644 --- a/src/configs/config.production.js +++ b/src/configs/config.production.js @@ -3,6 +3,7 @@ export const config = { front: "https://app.sheaft.com", api: "https://api.sheaft.com", signalr: "https://signalr.sheaft.com", + content: "https://content.sheaft.com", auth: { url: "https://auth.sheaft.com", settings: { diff --git a/src/configs/config.remote.js b/src/configs/config.remote.js index fc6bc146..8ad40cd7 100644 --- a/src/configs/config.remote.js +++ b/src/configs/config.remote.js @@ -3,6 +3,7 @@ export const config = { front: "http://localhost:4200", api: "https://sheaft-api-rd.azurewebsites.net", signalr: "https://sheaft-signalr-rd.azurewebsites.net", + content: "https://rd.content.sheaft.com", auth: { url: "https://sheaft-identity-rd.azurewebsites.net", settings: { diff --git a/src/configs/config.staging.js b/src/configs/config.staging.js index 25491733..fce6ddb5 100644 --- a/src/configs/config.staging.js +++ b/src/configs/config.staging.js @@ -3,6 +3,7 @@ export const config = { front: "https://dev.app.sheaft.com", api: "https://sheaft-api-rd.azurewebsites.net", signalr: "https://sheaft-signalr-rd.azurewebsites.net", + content: "https://rd.content.sheaft.com", auth: { url: "https://sheaft-identity-rd.azurewebsites.net", settings: { diff --git a/src/routes/account/Profile.svelte b/src/routes/account/Profile.svelte index 1a4f3d32..15ec13c5 100644 --- a/src/routes/account/Profile.svelte +++ b/src/routes/account/Profile.svelte @@ -15,6 +15,7 @@ import EditConsumer from "./EditConsumer.svelte"; import EditProducer from "./EditProducer.svelte"; import EditStore from "./EditStore.svelte"; + import { config } from "../../configs/config"; const errorsHandler = new SheaftErrors(); const authInstance = GetAuthInstance(); @@ -65,7 +66,7 @@ $authUserAccount.profile && $authUserAccount.profile.picture ? $authUserAccount.profile.picture - : "https://content.sheaft.com/pictures/users/profile.svg"; + : config.content + "/pictures/users/profile.svg";{producer.name}
{#if producer.tags && producer.tags && producer.tags.length > 0 && producer.tags.find((t) => t.name === "Bio")}