From 3af4d67678d907510b23851c96defda4cf6c206e Mon Sep 17 00:00:00 2001 From: elsiosanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Mon, 20 Jan 2020 16:04:57 -0400 Subject: [PATCH] Add Calendar to Dashboard (#227) Hi!, The calendar was supported using element-ui and vue.js --- package.json | 2 +- .../ADempiere/Dashboard/calendar/index.vue | 39 +++++++++++++++++++ src/components/ADempiere/Dashboard/index.vue | 2 +- src/lang/ADempiere/en.js | 1 + src/lang/ADempiere/es.js | 1 + 5 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 src/components/ADempiere/Dashboard/calendar/index.vue diff --git a/package.json b/package.json index f6c5a23e..6f06f184 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "driver.js": "0.9.5", "dropzone": "5.5.1", "echarts": "4.2.1", - "element-ui": "2.7.0", + "element-ui": "2.13.0", "file-saver": "2.0.1", "fuse.js": "3.4.4", "js-cookie": "2.2.0", diff --git a/src/components/ADempiere/Dashboard/calendar/index.vue b/src/components/ADempiere/Dashboard/calendar/index.vue new file mode 100644 index 00000000..187aee10 --- /dev/null +++ b/src/components/ADempiere/Dashboard/calendar/index.vue @@ -0,0 +1,39 @@ + + + + + + {{ $t('route.calendar') }} + + + + + + {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : '' }} + + + + + + + + + + diff --git a/src/components/ADempiere/Dashboard/index.vue b/src/components/ADempiere/Dashboard/index.vue index 354ca786..8809680b 100644 --- a/src/components/ADempiere/Dashboard/index.vue +++ b/src/components/ADempiere/Dashboard/index.vue @@ -25,7 +25,7 @@ export default { // load the component that is indicated in the attributes of received property renderDashboard() { // TODO: Add support to this list of currently unsupported dashboards - const unsupportedDashboards = ['activities', 'views', 'calendar', 'performance'] + const unsupportedDashboards = ['activities', 'views', 'performance'] if (unsupportedDashboards.includes(this.metadata.fileName)) { return } diff --git a/src/lang/ADempiere/en.js b/src/lang/ADempiere/en.js index 9c9f8ad7..f539e7e5 100644 --- a/src/lang/ADempiere/en.js +++ b/src/lang/ADempiere/en.js @@ -1,6 +1,7 @@ export default { route: { dashboard: 'Dashboard', + calendar: 'Calendar', documentation: 'Documentation', guide: 'Guide', forgotPassword: 'Forgot Password?', diff --git a/src/lang/ADempiere/es.js b/src/lang/ADempiere/es.js index 39df6cdd..0f04bc60 100644 --- a/src/lang/ADempiere/es.js +++ b/src/lang/ADempiere/es.js @@ -2,6 +2,7 @@ export default { route: { dashboard: 'Panel de control', documentation: 'Documentación', + calendar: 'Calendario', forgotPassword: '¿Olvidó su Contraseña?', userEnrollment: 'Registrarse', guide: 'Guía',
+ {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : '' }} +