From 68d7623a0d0c74ad4eb1844dfbdeb45bf38ab798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rik=20BENOIST?= Date: Sun, 21 Jan 2024 18:57:38 +0100 Subject: [PATCH] feat: add back-office link and show pos version --- src/plugins/i18n/locales/ar.json | 5 ++ src/plugins/i18n/locales/en.json | 5 ++ src/plugins/i18n/locales/fr.json | 5 ++ .../pages/store/view/StoreTabGeneral.vue | 9 +++- src/views/pages/store/view/StoreTabRemote.vue | 47 ++++++++++++++++--- 5 files changed, 64 insertions(+), 7 deletions(-) diff --git a/src/plugins/i18n/locales/ar.json b/src/plugins/i18n/locales/ar.json index bf1b24a..5cdd04c 100755 --- a/src/plugins/i18n/locales/ar.json +++ b/src/plugins/i18n/locales/ar.json @@ -70,6 +70,11 @@ "Dates range error": "With a date range, a text of at least 5 characters must be specified", "Close": "Close", "Connect to invidual POS": "Connect to invidual POS", + "REMOTE CONTROL": "REMOTE CONTROL", + "EXTERNAL LINK": "EXTERNAL LINK", + "Note: Click on the button below to access DOTSOFT Back-office": "Note: Click on the button below to access DOTSOFT Back-office", + "Open Back-office": "Open Back-office", + "Mount drive": "Mount drive", "---------------------------": "---------------------------", "UI Elements": "عناصر واجهة المستخدم", "Forms & Tables": "النماذج والجداول", diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index 2cd707a..1411547 100755 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -70,6 +70,11 @@ "Dates range error": "With a date range, a text of at least 5 characters must be specified", "Close": "Close", "Connect to invidual POS": "Connect to invidual POS", + "REMOTE CONTROL": "REMOTE CONTROL", + "EXTERNAL LINK": "EXTERNAL LINK", + "Note: Click on the button below to access DOTSOFT Back-office": "Note: Click on the button below to access DOTSOFT Back-office", + "Open Back-office": "Open Back-office", + "Mount drive": "Mount drive", "---------------------------": "---------------------------", "UI Elements": "UI Elements", "Forms & Tables": "Forms & Tables", diff --git a/src/plugins/i18n/locales/fr.json b/src/plugins/i18n/locales/fr.json index 4f6b2b4..c126e8f 100755 --- a/src/plugins/i18n/locales/fr.json +++ b/src/plugins/i18n/locales/fr.json @@ -70,6 +70,11 @@ "Dates range error": "Dans le cas d'une plage de dates, un texte d'au moins 5 caractères doit être spécifié.", "Close": "Fermer", "Connect to invidual POS": "Connexion à une caisse individuelle", + "REMOTE CONTROL": "CONTROLE A DISTANCE", + "EXTERNAL LINK": "LIEN EXTERNE", + "Note: Click on the button below to access DOTSOFT Back-office": "Note: Cliquez sur le bouton ci-dessous pour accéder au Back-office DOTSOFT", + "Open Back-office": "Ouvrir DOTSOFT", + "Mount drive": "Monter lecteur", "---------------------------": "---------------------------", "UI Elements": "ÉLÉMENTS DE L'UI", "Forms & Tables": "Formulaires et tableaux", diff --git a/src/views/pages/store/view/StoreTabGeneral.vue b/src/views/pages/store/view/StoreTabGeneral.vue index c4796a1..82c0ae6 100644 --- a/src/views/pages/store/view/StoreTabGeneral.vue +++ b/src/views/pages/store/view/StoreTabGeneral.vue @@ -24,10 +24,17 @@ const props = defineProps() {{ pos.ip }} + + {{ pos.version }} + / () + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +const { t } = useI18n() + const drive = ['M:', 'N:', 'O:', 'P:', 'Q:', 'R:', 'S:', 'T:'] const selectedProtocol = ref('hdpos') @@ -40,6 +44,12 @@ const mountDrive = (ip: string, drive: string) => { window.open(url, '_blank') } + +const openBO = () => { + const url = `http://aspf.adic.lan/site/login/login.asp?dataid=1&validated=1&input_login=caisse${localStoreData.value.store.id_structure}-20&input_password=caisse&id_caisse=20` + + window.open(url, '_blank') +}