From 3f4381ad2c5e4a3a2cb02d46b9e7457177665f90 Mon Sep 17 00:00:00 2001 From: cdubuisson Date: Sat, 25 Jan 2020 13:46:13 +0100 Subject: [PATCH] :recycle: : create specific date time vue filter with vanilly instead of moment --- src/main/resources/templates/job.html | 1 + .../templates/module_description.html | 10 ++----- src/main/resources/templates/stack.html | 12 +------- .../vue_templates/filters/date-time.vue | 29 +++++++++++++++++++ .../vue_templates/job/job-metadata.vue | 10 ++----- .../templates/vue_templates/job/job-step.vue | 10 ++----- 6 files changed, 38 insertions(+), 34 deletions(-) create mode 100644 src/main/resources/templates/vue_templates/filters/date-time.vue diff --git a/src/main/resources/templates/job.html b/src/main/resources/templates/job.html index 899193cd6..d31ede442 100644 --- a/src/main/resources/templates/job.html +++ b/src/main/resources/templates/job.html @@ -89,6 +89,7 @@

Stack {{stack.name}}

+
diff --git a/src/main/resources/templates/module_description.html b/src/main/resources/templates/module_description.html index 2842210ea..b6e5a9e90 100644 --- a/src/main/resources/templates/module_description.html +++ b/src/main/resources/templates/module_description.html @@ -57,8 +57,8 @@

{{description}}

@@ -98,6 +98,7 @@

+
@@ -121,11 +122,6 @@

data: () => ({ page: 'module_description' }), template: "#template-navigation", }); - - Vue.filter('dateTime', function (value) { - if (!value || !moment(value).isValid()) return ''; - return moment(value).format('LLL'); - }) diff --git a/src/main/resources/templates/stack.html b/src/main/resources/templates/stack.html index 56ae8ef2c..5df2a2fed 100644 --- a/src/main/resources/templates/stack.html +++ b/src/main/resources/templates/stack.html @@ -44,6 +44,7 @@
+