diff --git a/src/components/DxpImage.vue b/src/components/DxpImage.vue new file mode 100644 index 00000000..9ffbf6e8 --- /dev/null +++ b/src/components/DxpImage.vue @@ -0,0 +1,55 @@ + + + \ No newline at end of file diff --git a/src/components/DxpUserProfile.vue b/src/components/DxpUserProfile.vue new file mode 100644 index 00000000..087ab071 --- /dev/null +++ b/src/components/DxpUserProfile.vue @@ -0,0 +1,82 @@ + + + + \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index beb273ca..abdba802 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -14,6 +14,8 @@ import '@ionic/vue/css/text-transformation.css'; import '@ionic/vue/css/flex-utils.css'; import '@ionic/vue/css/display.css'; +export { default as DxpImage } from './DxpImage.vue'; +export { default as DxpUserProfile } from './DxpUserProfile.vue' export { default as AppVersionInfo } from './AppVersionInfo.vue'; export { default as LanguageSwitcher } from './LanguageSwitcher.vue'; export { default as OmsInstanceNavigator } from './OmsInstanceNavigator.vue' diff --git a/src/index.ts b/src/index.ts index a0f5cd41..a6d85614 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,7 @@ declare var process: any; import { createPinia } from "pinia"; import { useProductIdentificationStore } from "./store/productIdentification"; import { useAuthStore } from "./store/auth"; -import { AppVersionInfo, LanguageSwitcher, OmsInstanceNavigator, ProductIdentifier, Scanner, ShopifyImg } from "./components"; +import { AppVersionInfo, DxpImage, DxpUserProfile, LanguageSwitcher, OmsInstanceNavigator, ProductIdentifier, Scanner, ShopifyImg } from "./components"; import Login from "./components/Login"; import { goToOms, getProductIdentificationValue } from "./utils"; import { initialiseFirebaseApp } from "./utils/firebase" @@ -17,6 +17,7 @@ const pinia = createPinia(); pinia.use(piniaPluginPersistedstate) let i18n: any +let imageContext = {} as any let translate: any; let loginContext = {} as any let shopifyImgContext = {} as any @@ -43,6 +44,8 @@ export let dxpComponents = { app.use(i18n); app.component('AppVersionInfo', AppVersionInfo) + app.component('DxpImage', DxpImage) + app.component('DxpUserProfile', DxpUserProfile) app.component('LanguageSwitcher', LanguageSwitcher) app.component('Login', Login) app.component('OmsInstanceNavigator', OmsInstanceNavigator) @@ -55,6 +58,7 @@ export let dxpComponents = { loginContext.loader = options.loader loginContext.appLoginUrl = options.appLoginUrl + imageContext.defaultImgUrl = options.defaultImgUrl shopifyImgContext.defaultImgUrl = options.defaultImgUrl userContext.getUserPreference = options.getUserPreference @@ -80,9 +84,12 @@ export let dxpComponents = { export { appContext, + DxpImage, + DxpUserProfile, getProductIdentificationValue, goToOms, i18n, + imageContext, initialiseFirebaseApp, Login, loginContext,