From d7df6793b7d80296749e492762cbb89025e10537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rik=20BENOIST?= Date: Sat, 23 Dec 2023 09:19:00 +0100 Subject: [PATCH] fix: translations - excel export --- package.json | 5 +- pnpm-lock.yaml | 7 + src/assets/styles/styles.scss | 3 + src/navigation/horizontal/index.ts | 19 +- src/navigation/vertical/index.ts | 19 +- src/pages/flux/bl/not_sent/index.vue | 301 +++++++++++++++++++++++++++ src/plugins/i18n/locales/ar.json | 22 ++ src/plugins/i18n/locales/en.json | 22 ++ src/plugins/i18n/locales/fr.json | 24 ++- typed-router.d.ts | 1 + 10 files changed, 412 insertions(+), 11 deletions(-) create mode 100644 src/pages/flux/bl/not_sent/index.vue diff --git a/package.json b/package.json index 7b08a17..27746cb 100755 --- a/package.json +++ b/package.json @@ -50,7 +50,8 @@ "vue3-apexcharts": "^1.4.4", "vue3-perfect-scrollbar": "^1.6.1", "vuetify": "3.3.22", - "webfontloader": "^1.6.28" + "webfontloader": "^1.6.28", + "export-from-json": "^1.7.3" }, "devDependencies": { "@antfu/eslint-config-vue": "^0.43.1", @@ -133,4 +134,4 @@ "msw": { "workerDirectory": "public" } -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a2593cd..bf2fb2c 100755 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -67,6 +67,9 @@ dependencies: cookie-es: specifier: ^1.0.0 version: 1.0.0 + export-from-json: + specifier: ^1.7.3 + version: 1.7.3 jwt-decode: specifier: ^3.1.2 version: 3.1.2 @@ -4109,6 +4112,10 @@ packages: strip-final-newline: 3.0.0 dev: true + /export-from-json@1.7.3: + resolution: {integrity: sha512-Xg0L0saYz+CBz2MnaZvSEAHr17hWtHAfFWXw/frllG9t6aijuQukiU40ElOeM9nDTrtQPhLJMLN0q8lo897FYg==} + dev: false + /external-editor@3.1.0: resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} engines: {node: '>=4'} diff --git a/src/assets/styles/styles.scss b/src/assets/styles/styles.scss index 3118a33..ca6a10c 100755 --- a/src/assets/styles/styles.scss +++ b/src/assets/styles/styles.scss @@ -1 +1,4 @@ // Write your overrides +.dt-row-striped tr:nth-of-type(even) { + background-color: #f6f2f28d; +} diff --git a/src/navigation/horizontal/index.ts b/src/navigation/horizontal/index.ts index 80e8ac1..f8b5cee 100755 --- a/src/navigation/horizontal/index.ts +++ b/src/navigation/horizontal/index.ts @@ -7,14 +7,25 @@ export default [ { title: 'Store', to: { name: 'store-list' }, - icon: { icon: 'tabler-file' }, + icon: { icon: 'tabler-building-store' }, }, { - title: 'Obi', - icon: { icon: 'tabler-file' }, + title: 'Flow', + icon: { icon: 'tabler-topology-bus' }, + children: [ + { + title: 'BL not sent', + to: { name: 'flux-bl-not-sent' }, + icon: { icon: 'tabler-unlink' }, + }, + ], + }, + { + title: 'OBI', + icon: { icon: 'tabler-shopping-bag-check' }, }, { title: 'Dotsoft', - icon: { icon: 'tabler-file' }, + icon: { icon: 'tabler-database-star' }, }, ] diff --git a/src/navigation/vertical/index.ts b/src/navigation/vertical/index.ts index 80e8ac1..f8b5cee 100755 --- a/src/navigation/vertical/index.ts +++ b/src/navigation/vertical/index.ts @@ -7,14 +7,25 @@ export default [ { title: 'Store', to: { name: 'store-list' }, - icon: { icon: 'tabler-file' }, + icon: { icon: 'tabler-building-store' }, }, { - title: 'Obi', - icon: { icon: 'tabler-file' }, + title: 'Flow', + icon: { icon: 'tabler-topology-bus' }, + children: [ + { + title: 'BL not sent', + to: { name: 'flux-bl-not-sent' }, + icon: { icon: 'tabler-unlink' }, + }, + ], + }, + { + title: 'OBI', + icon: { icon: 'tabler-shopping-bag-check' }, }, { title: 'Dotsoft', - icon: { icon: 'tabler-file' }, + icon: { icon: 'tabler-database-star' }, }, ] diff --git a/src/pages/flux/bl/not_sent/index.vue b/src/pages/flux/bl/not_sent/index.vue new file mode 100644 index 0000000..44f3955 --- /dev/null +++ b/src/pages/flux/bl/not_sent/index.vue @@ -0,0 +1,301 @@ + + + diff --git a/src/plugins/i18n/locales/ar.json b/src/plugins/i18n/locales/ar.json index 765dda0..64284d7 100755 --- a/src/plugins/i18n/locales/ar.json +++ b/src/plugins/i18n/locales/ar.json @@ -1,9 +1,28 @@ { "Home": "الصفحة الرئيسية", "Store": "متجر", + "Stores": "المتاجر", + "Flow": "التدفق", + "OBI": "OBI", + "Dotsoft": "Dotsoft", "List of stores": "قائمة المتاجر", + "BL not sent list": "قائمة البيانات الخارجية غير المرسلة", + "BL not sent": "بيانات البيانات الخارجية غير المرسلة", + "ST ID": "ST ID", + "Exp ID": "Exp ID", + "BL ID": "BL ID", + "BL Date": "تاريخ BL", + "External Code": "رمز خارجي", + "Notes": "ملاحظات", + "Expeditor": "المندوب", + "Distributor": "البائع", + "Distributors": "البائعين", + "Season": "الموسم", "Country": "الدولة", "Brand": "العلامة التجارية", + "R-C-S": "R-C-S", + "Item ID": "معرف العنصر", + "Chain": "المجموعة", "Multi POS": "Multi POS", "Search": "بحث", "Name": "الاسم", @@ -11,6 +30,7 @@ "Mode": "الوضع", "Value": "القيمة", "Item": "العنصر", + "Items": "العناصر", "Remote": "متصل", "Option": "خيار", "Stock": "المخزون", @@ -34,6 +54,7 @@ "Submit": "Submit", "You can search for a reference, reference-color or reference-color-size.": "You can search for a reference, reference-color or reference-color-size.", "Minimum 5 characters long": "Minimum 5 characters long", + "Filters": "Filters", "---------------------------": "---------------------------", "UI Elements": "عناصر واجهة المستخدم", "Forms & Tables": "النماذج والجداول", @@ -116,6 +137,7 @@ "Not Authorized": "غير مخول", "Under Maintenance": "تحت الصيانة", "Error": "خطأ", + "Errors": "خطوات", "Statistics": "إحصائيات", "Analytics": "تحليلات", "Access Control": "صلاحية التحكم صلاحية الدخول", diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index 7ca6f7a..f4549b7 100755 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -1,9 +1,28 @@ { "Home": "Home", "Store": "Store", + "Stores": "Stores", + "Flow": "Flow", + "OBI": "OBI", + "Dotsoft": "Dotsoft", "List of stores": "List of stores", + "BL not sent list": "BL not sent list", + "BL not sent": "BL not sent", + "ST ID": "ST ID", + "Exp ID": "Exp ID", + "BL ID": "BL ID", + "BL Date": "BL Date", + "External Code": "External Code", + "Notes": "Notes", + "Expeditor": "Expeditor", + "Distributor": "Distributor", + "Distributors": "Distributors", + "Season": "Season", "Country": "Country", "Brand": "Brand", + "R-C-S": "R-C-S", + "Item ID": "Item ID", + "Chain": "Chain", "Multi POS": "Multi POS", "Search": "Search", "Name": "Name", @@ -11,6 +30,7 @@ "Mode": "Mode", "Value": "Value", "Item": "Item", + "Items": "Items", "Remote": "Remote", "Option": "Option", "Stock": "Stock", @@ -34,6 +54,7 @@ "Submit": "Submit", "You can search for a reference, reference-color or reference-color-size.": "You can search for a reference, reference-color or reference-color-size.", "Minimum 5 characters long": "Minimum 5 characters long", + "Filters": "Filters", "---------------------------": "---------------------------", "UI Elements": "UI Elements", "Forms & Tables": "Forms & Tables", @@ -116,6 +137,7 @@ "Not Authorized": "Not Authorized", "Under Maintenance": "Under Maintenance", "Error": "Error", + "Errors": "Errors", "Statistics": "Statistics", "Actions": "Actions", "Access Control": "Access Control", diff --git a/src/plugins/i18n/locales/fr.json b/src/plugins/i18n/locales/fr.json index 99660e8..0cb2d31 100755 --- a/src/plugins/i18n/locales/fr.json +++ b/src/plugins/i18n/locales/fr.json @@ -1,9 +1,28 @@ { "Home": "Accueil", "Store": "Boutique", + "Stores": "Boutiques", + "Flow": "Flux", + "OBI": "OBI", + "Dotsoft": "Dotsoft", "List of stores": "Liste des boutiques", + "BL not sent list": "Liste des BL non envoyés", + "BL not sent": "BL non envoyé", + "ST ID": "ID ST", + "Exp ID": "ID Exp", + "BL ID": "ID BL", + "BL Date": "Date BL", + "External Code": "Code externe", + "Notes": "Notes", + "Expeditor": "Expéditeur", + "Distributor": "Distributeur", + "Distributors": "Distributeurs", + "Season": "Saison", "Country": "Pays", - "Brand": "Enseigne", + "Brand": "Marque", + "R-C-S": "R-C-T", + "Item ID": "ID produit", + "Chain": "Enseigne", "Multi POS": "Multi POS", "Search": "Chercher", "Name": "Nom", @@ -11,6 +30,7 @@ "Mode": "Mode", "Value": "Valeur", "Item": "Article", + "Items": "Articles", "Remote": "Accès distant", "Option": "Option", "Stock": "Stock", @@ -34,6 +54,7 @@ "Submit": "Valider", "You can search for a reference, reference-color or reference-color-size.": "Vous pouvez chercher une reference, reference-couleur ou reference-couleur-taille.", "Minimum 5 characters long": "Minimum 5 caractères", + "Filters": "Filtres", "---------------------------": "---------------------------", "UI Elements": "ÉLÉMENTS DE L'UI", "Forms & Tables": "Formulaires et tableaux", @@ -117,6 +138,7 @@ "Not Authorized": "Pas autorisé", "Under Maintenance": "En maintenance", "Error": "Erreur", + "Errors": "Erreurs", "Statistics": "Statistiques", "Card Actions": "Actions de la carte", "Actions": "Actions", diff --git a/typed-router.d.ts b/typed-router.d.ts index 1d46cac..9b543d3 100755 --- a/typed-router.d.ts +++ b/typed-router.d.ts @@ -41,6 +41,7 @@ declare module 'vue-router/auto/routes' { export interface RouteNamedMap { 'root': RouteRecordInfo<'root', '/', Record, Record>, '$error': RouteRecordInfo<'$error', '/:error(.*)', { error: ParamValue }, { error: ParamValue }>, + 'flux-bl-not-sent': RouteRecordInfo<'flux-bl-not-sent', '/flux/bl/not_sent', Record, Record>, 'login': RouteRecordInfo<'login', '/login', Record, Record>, 'store-details': RouteRecordInfo<'store-details', '/store/details', Record, Record>, 'store-list': RouteRecordInfo<'store-list', '/store/list', Record, Record>,