From f0c26591e6e3b60b6849e4abe5622ea4aee91745 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Fri, 31 May 2024 14:47:30 +0530 Subject: [PATCH 1/2] Improved: added entry for the Company app in dashboard (#115) --- .env.example | 2 +- src/assets/images/Company.svg | 25 +++++++++++++++++++++++++ src/views/Home.vue | 5 +++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 src/assets/images/Company.svg diff --git a/.env.example b/.env.example index 3b1b90e..f212c93 100644 --- a/.env.example +++ b/.env.example @@ -4,4 +4,4 @@ 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", "order-routing"] \ No newline at end of file +VUE_APP_MAARG_LOGIN=["atp", "company", "order-routing"] \ No newline at end of file diff --git a/src/assets/images/Company.svg b/src/assets/images/Company.svg new file mode 100644 index 0000000..ba09b7e --- /dev/null +++ b/src/assets/images/Company.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/Home.vue b/src/views/Home.vue index 27b4a1f..6025f0f 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -202,6 +202,11 @@ export default defineComponent({ name: 'Order Routing', resource: require('../assets/images/OrderRouting.svg'), type: 'Workflow' + }, { + handle: 'company', + name: 'Company', + resource: require('../assets/images/Company.svg'), + type: 'Administration' }] const appCategory = appInfo.reduce((obj: any, app: any) => { From ef07c0c9d1a3ec3ba09795c70352def7b1fcd32b Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Fri, 31 May 2024 14:53:33 +0530 Subject: [PATCH 2/2] Improved: generated app link generation url (#115) --- src/views/Home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 6025f0f..cd2e76a 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -135,7 +135,7 @@ export default defineComponent({ }, generateAppLink(app: any, appEnvironment = '') { const oms = isMaargLogin(app.handle) ? this.authStore.getMaargOms : this.authStore.getOMS; - window.location.href = this.scheme + app.handle + appEnvironment + this.domain + (this.authStore.isAuthenticated ? `/login?oms=${oms.startsWith('http') ? isMaargLogin(app.handle) ? oms : oms.includes('/api') ? oms : `${oms}/api/` : oms}&token=${this.authStore.token.value}&expirationTime=${this.authStore.token.expiration}${isMaargLogin(this.authStore.getRedirectUrl) ? '&omsRedirectionUrl=' + this.authStore.getOMS : ''}` : '') + window.location.href = this.scheme + app.handle + appEnvironment + this.domain + (this.authStore.isAuthenticated ? `/login?oms=${oms.startsWith('http') ? isMaargLogin(app.handle) ? oms : oms.includes('/api') ? oms : `${oms}/api/` : oms}&token=${this.authStore.token.value}&expirationTime=${this.authStore.token.expiration}${isMaargLogin(app.handle) ? '&omsRedirectionUrl=' + this.authStore.getOMS : ''}` : '') } }, setup() {