From 0063830ca9e97a3d4aa0213eec86adf048803601 Mon Sep 17 00:00:00 2001 From: Severino Date: Tue, 17 Oct 2023 14:07:10 +0200 Subject: [PATCH] Apply eslint + one attribute per line + removed unecessary props from return + attribute ordering --- resources/js/components/AttributeList.vue | 217 +++++++----- resources/js/components/AttributeTemplate.vue | 3 +- resources/js/components/CommentList.vue | 132 ++++++++ resources/js/components/EntityDetail.vue | 11 +- resources/js/components/UserPreferences.vue | 17 + resources/js/components/Users.vue | 2 +- resources/js/components/attribute/Entity.vue | 9 +- resources/js/components/attribute/Epoch.vue | 2 +- .../js/components/attribute/Iconclass.vue | 29 ++ .../js/components/attribute/MultiChoice.vue | 8 +- .../js/components/attribute/SingleChoice.vue | 7 +- resources/js/components/attribute/Tabular.vue | 35 +- .../js/components/modals/attribute/Add.vue | 53 +-- .../components/modals/role/AccessControl.vue | 308 ++++++++++-------- .../preferences/ProjectMaintainer.vue | 4 +- .../js/components/preferences/ProjectName.vue | 1 - resources/js/components/tree/Entity.vue | 213 +++++++----- resources/js/components/tree/Node.vue | 71 ++-- webpack.mix.js | 1 + 19 files changed, 744 insertions(+), 379 deletions(-) diff --git a/resources/js/components/AttributeList.vue b/resources/js/components/AttributeList.vue index 1c14dc464..a176deb94 100644 --- a/resources/js/components/AttributeList.vue +++ b/resources/js/components/AttributeList.vue @@ -8,55 +8,120 @@ :disabled="disableDrag" :group="group" :move="handleMove" - @change="handleUpdate"> - @@ -375,7 +444,7 @@ options: { required: false, type: Object, - default: {}, + default: ()=>({}), }, preview: { required: false, diff --git a/resources/js/components/AttributeTemplate.vue b/resources/js/components/AttributeTemplate.vue index 072ebd3af..bc6fc7730 100644 --- a/resources/js/components/AttributeTemplate.vue +++ b/resources/js/components/AttributeTemplate.vue @@ -13,7 +13,8 @@ diff --git a/resources/js/components/CommentList.vue b/resources/js/components/CommentList.vue index a708b0d1a..5bc9cedbd 100644 --- a/resources/js/components/CommentList.vue +++ b/resources/js/components/CommentList.vue @@ -2,6 +2,23 @@
+
+ + +
+
+ • + {{ ago(comment.updated_at) }} + +