From f60d3431cf730e62dceeedb79ce0e05c36b943bd Mon Sep 17 00:00:00 2001 From: smit95tpatel Date: Tue, 14 Dec 2021 16:24:05 +0530 Subject: [PATCH] intergrated filter for downtimes --- .../Dashboard/DashboardDowntimes.vue | 94 +++++++---- .../components/Dashboard/DowntimesList.vue | 19 +-- .../src/components/Elements/Pagination.vue | 13 +- frontend/src/forms/DowntimeFilters.vue | 150 ++++++++++++++++++ frontend/src/languages/english.js | 3 + frontend/src/mixin.js | 3 + 6 files changed, 233 insertions(+), 49 deletions(-) create mode 100644 frontend/src/forms/DowntimeFilters.vue diff --git a/frontend/src/components/Dashboard/DashboardDowntimes.vue b/frontend/src/components/Dashboard/DashboardDowntimes.vue index 60035f9f..08ce6efa 100644 --- a/frontend/src/components/Dashboard/DashboardDowntimes.vue +++ b/frontend/src/components/Dashboard/DashboardDowntimes.vue @@ -1,8 +1,14 @@ \ No newline at end of file diff --git a/frontend/src/forms/DowntimeFilters.vue b/frontend/src/forms/DowntimeFilters.vue new file mode 100644 index 00000000..0f737590 --- /dev/null +++ b/frontend/src/forms/DowntimeFilters.vue @@ -0,0 +1,150 @@ + + + \ No newline at end of file diff --git a/frontend/src/languages/english.js b/frontend/src/languages/english.js index 7c5cb338..f7991c50 100644 --- a/frontend/src/languages/english.js +++ b/frontend/src/languages/english.js @@ -6,7 +6,10 @@ const english = { actions: 'Actions', services: 'Services', downtimes: 'Downtimes', + filters: 'Filters', service: 'Service', + clear: 'Clear', + search: 'Search', failures: 'Failures', users: 'Users', login: 'Login', diff --git a/frontend/src/mixin.js b/frontend/src/mixin.js index 69d48ac0..74855578 100644 --- a/frontend/src/mixin.js +++ b/frontend/src/mixin.js @@ -51,6 +51,9 @@ export default Vue.mixin({ niceDate (val) { return format(parseISO(val), 'EEE, MMM do h:mma'); }, + niceDateWithYear (val) { + return format(parseISO(val), 'EEE, do MMM yyyy \'at\' h:mma'); + }, parseISO (v) { return parseISO(v); },