diff --git a/.env.example b/.env.example
index 33bcdbe..fe4f382 100644
--- a/.env.example
+++ b/.env.example
@@ -4,5 +4,6 @@ VUE_APP_I18N_FALLBACK_LOCALE=en
VUE_APP_LOCALES={"en": "English", "ja": "日本語", "es": "Español"}
VUE_APP_CURRENCY_FORMATS={"en": {"currency": {"style": "currency","currency": "USD"}}, "ja": {"currency": {"style": "currency", "currency": "JPY"}}, "es": {"currency": {"style": "currency","currency": "ESP"}}}
VUE_APP_DEFAULT_ALIAS=
-VUE_APP_MAARG_LOGIN=["atp", "company", "order-routing"]
-VUE_APP_MAARG_LOGIN_REQUIRED=["preorder"]
\ No newline at end of file
+VUE_APP_MAARG_LOGIN=["atp", "company", "order-routing", "inventorycount"]
+VUE_APP_USERS_LOGIN_URL="http://users.hotwax.io/login"
+VUE_APP_MAARG_LOGIN_REQUIRED=["preorder"]
diff --git a/package-lock.json b/package-lock.json
index c799666..4a3c3db 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,13 +1,14 @@
{
"name": "Launchpad",
- "version": "2.1.0",
+ "version": "3.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "Launchpad",
- "version": "2.1.0",
+ "version": "3.0.0",
"dependencies": {
+ "@hotwax/apps-theme": "^1.2.8",
"@hotwax/dxp-components": "^1.12.2",
"@hotwax/oms-api": "^1.13.0",
"@ionic/core": "^7.6.0",
@@ -2580,6 +2581,11 @@
"@hapi/hoek": "^9.0.0"
}
},
+ "node_modules/@hotwax/apps-theme": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@hotwax/apps-theme/-/apps-theme-1.2.8.tgz",
+ "integrity": "sha512-6ZE2y4DKWcDdYNToPv7L6oYM71NS4zgxfoncIUvSvA9BYqi3MavfC36Z6ujHBEB/PsUhcbU8DOdpakTvyL5aGw=="
+ },
"node_modules/@hotwax/dxp-components": {
"version": "1.12.2",
"resolved": "https://registry.npmjs.org/@hotwax/dxp-components/-/dxp-components-1.12.2.tgz",
@@ -15717,6 +15723,11 @@
"@hapi/hoek": "^9.0.0"
}
},
+ "@hotwax/apps-theme": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@hotwax/apps-theme/-/apps-theme-1.2.8.tgz",
+ "integrity": "sha512-6ZE2y4DKWcDdYNToPv7L6oYM71NS4zgxfoncIUvSvA9BYqi3MavfC36Z6ujHBEB/PsUhcbU8DOdpakTvyL5aGw=="
+ },
"@hotwax/dxp-components": {
"version": "1.12.2",
"resolved": "https://registry.npmjs.org/@hotwax/dxp-components/-/dxp-components-1.12.2.tgz",
diff --git a/package.json b/package.json
index f90494f..1343149 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "Launchpad",
- "version": "2.1.0",
+ "version": "3.0.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
@@ -11,6 +11,7 @@
"dependencies": {
"@hotwax/dxp-components": "^1.12.2",
"@hotwax/oms-api": "^1.13.0",
+ "@hotwax/apps-theme": "^1.2.8",
"@ionic/core": "^7.6.0",
"@ionic/vue": "^7.6.0",
"@ionic/vue-router": "^7.6.0",
diff --git a/src/components/Image.vue b/src/components/Image.vue
new file mode 100644
index 0000000..ce0da42
--- /dev/null
+++ b/src/components/Image.vue
@@ -0,0 +1,64 @@
+
+
+
+
+
diff --git a/src/components/UserActionsPopover.vue b/src/components/UserActionsPopover.vue
new file mode 100644
index 0000000..0cfc92d
--- /dev/null
+++ b/src/components/UserActionsPopover.vue
@@ -0,0 +1,64 @@
+
+
+
+ {{ authStore.current?.partyName ? authStore.current.partyName : authStore.current.userLoginId }}
+
+
+ {{ translate("View profile") }}
+
+
+
+ {{ translate("Logout") }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/locales/en.json b/src/locales/en.json
index b8ef5a3..851679e 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -14,5 +14,6 @@
"Something went wrong while login. Please contact administrator.": "Something went wrong while login. Please contact administrator.",
"Sorry, your username or password is incorrect. Please try again.": "Sorry, your username or password is incorrect. Please try again.",
"This application is not enabled for your account": "This application is not enabled for your account",
- "Username": "Username"
+ "Username": "Username",
+ "View profile": "View profile"
}
\ No newline at end of file
diff --git a/src/main.ts b/src/main.ts
index 69e87ef..8eed0b0 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -25,6 +25,7 @@ import '@ionic/vue/css/display.css';
/* Theme variables */
import './theme/variables.css';
+import '@hotwax/apps-theme';
const app = createApp(App)
.use(IonicVue, {
diff --git a/src/theme/variables.css b/src/theme/variables.css
index b00dc83..05f685e 100644
--- a/src/theme/variables.css
+++ b/src/theme/variables.css
@@ -236,16 +236,6 @@ http://ionicframework.com/docs/theming/ */
}
body {
- /** Spacer variables **/
- --spacer-2xs: 0.25rem; /* 4px */
- --spacer-xs: 0.5rem; /* 8px */
- --spacer-sm: 1rem; /* 16px */
- --spacer-base: 1.5rem; /* 24px */
- --spacer-lg: 2rem; /* 32px */
- --spacer-xl: 2.5rem; /* 40px */
- --spacer-2xl: 5rem; /* 80px */
- --spacer-3xl: 10rem; /* 160px */
-
/** Border variable **/
--border-medium: 1px solid var(--ion-color-medium);
}
diff --git a/src/util/index.ts b/src/util/index.ts
index c29240b..b151711 100644
--- a/src/util/index.ts
+++ b/src/util/index.ts
@@ -10,14 +10,16 @@ const showToast = async (message: string) => {
return toast.present();
}
-const isMaargLogin = (handle: string) => {
+const isMaargLogin = (handle: string, environment = "") => {
+ const appHandle = environment ? handle + environment : handle
const maargLoginApps = JSON.parse(process.env.VUE_APP_MAARG_LOGIN ? process.env.VUE_APP_MAARG_LOGIN : [])
- return maargLoginApps.some((appName: string) => handle.includes(appName))
+ return maargLoginApps.some((appName: string) => appHandle.includes(appName))
}
-const isMaargLoginRequired = (handle: string) => {
+const isMaargLoginRequired = (handle: string, environment = "") => {
+ const appHandle = environment ? handle + environment : handle
const maargOmsRequiredApps = JSON.parse(process.env.VUE_APP_MAARG_LOGIN_REQUIRED ? process.env.VUE_APP_MAARG_LOGIN_REQUIRED : [])
- return maargOmsRequiredApps.some((appName: string) => handle.includes(appName))
+ return maargOmsRequiredApps.some((appName: string) => appHandle.includes(appName))
}
export { isMaargLogin, isMaargLoginRequired, showToast }
\ No newline at end of file
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 4360cb1..c603af4 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -9,21 +9,21 @@
-
-
- {{ authStore.current?.partyName ? authStore.current?.partyName : authStore.current.userLoginId }}
-
- {{ $t('Logout') }}
-
+
+
+
+
+
+ {{ authStore.current?.partyName ? authStore.current?.partyName : authStore.current.userLoginId }}
+
+
-
+
{{ authStore.getOMS }}
-
-
-
+
@@ -46,10 +46,12 @@
{{ translate("Not configured") }}
-
+
+
+
-
+
@@ -64,6 +66,7 @@