From de1c7b127dcdbe5ed92ed3cc4143740a6cb7de65 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 23 Mar 2021 08:08:36 +0900 Subject: [PATCH 1/6] Add LabelGroup components --- .../tasks/textClassification/LabelGroup.vue | 46 ++++++++++++ .../multiLabel/LabelGroup.vue | 74 +++++++++++++++++++ .../singleLabel/LabelGroup.vue | 69 +++++++++++++++++ 3 files changed, 189 insertions(+) create mode 100644 frontend/components/tasks/textClassification/LabelGroup.vue create mode 100644 frontend/components/tasks/textClassification/multiLabel/LabelGroup.vue create mode 100644 frontend/components/tasks/textClassification/singleLabel/LabelGroup.vue diff --git a/frontend/components/tasks/textClassification/LabelGroup.vue b/frontend/components/tasks/textClassification/LabelGroup.vue new file mode 100644 index 00000000..cc6dbbee --- /dev/null +++ b/frontend/components/tasks/textClassification/LabelGroup.vue @@ -0,0 +1,46 @@ + + + diff --git a/frontend/components/tasks/textClassification/multiLabel/LabelGroup.vue b/frontend/components/tasks/textClassification/multiLabel/LabelGroup.vue new file mode 100644 index 00000000..1a0bcdae --- /dev/null +++ b/frontend/components/tasks/textClassification/multiLabel/LabelGroup.vue @@ -0,0 +1,74 @@ + + + diff --git a/frontend/components/tasks/textClassification/singleLabel/LabelGroup.vue b/frontend/components/tasks/textClassification/singleLabel/LabelGroup.vue new file mode 100644 index 00000000..d450147b --- /dev/null +++ b/frontend/components/tasks/textClassification/singleLabel/LabelGroup.vue @@ -0,0 +1,69 @@ + + + From 323bba973636bc0ff586b158e5d4ec3161e419a6 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 23 Mar 2021 08:08:53 +0900 Subject: [PATCH 2/6] Add LabelSelect components --- .../tasks/textClassification/LabelSelect.vue | 46 ++++++++ .../multiLabel/LabelSelect.vue | 108 ++++++++++++++++++ .../singleLabel/LabelSelect.vue | 93 +++++++++++++++ 3 files changed, 247 insertions(+) create mode 100644 frontend/components/tasks/textClassification/LabelSelect.vue create mode 100644 frontend/components/tasks/textClassification/multiLabel/LabelSelect.vue create mode 100644 frontend/components/tasks/textClassification/singleLabel/LabelSelect.vue diff --git a/frontend/components/tasks/textClassification/LabelSelect.vue b/frontend/components/tasks/textClassification/LabelSelect.vue new file mode 100644 index 00000000..0a70cda1 --- /dev/null +++ b/frontend/components/tasks/textClassification/LabelSelect.vue @@ -0,0 +1,46 @@ + + + diff --git a/frontend/components/tasks/textClassification/multiLabel/LabelSelect.vue b/frontend/components/tasks/textClassification/multiLabel/LabelSelect.vue new file mode 100644 index 00000000..73386c4d --- /dev/null +++ b/frontend/components/tasks/textClassification/multiLabel/LabelSelect.vue @@ -0,0 +1,108 @@ + + + diff --git a/frontend/components/tasks/textClassification/singleLabel/LabelSelect.vue b/frontend/components/tasks/textClassification/singleLabel/LabelSelect.vue new file mode 100644 index 00000000..f0daa330 --- /dev/null +++ b/frontend/components/tasks/textClassification/singleLabel/LabelSelect.vue @@ -0,0 +1,93 @@ + + + From 64cde612f3aab424583fe0afa74bc95ba144b90b Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 23 Mar 2021 08:09:18 +0900 Subject: [PATCH 3/6] Add slot to ToolbarLaptop --- frontend/components/tasks/toolbar/ToolbarLaptop.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/components/tasks/toolbar/ToolbarLaptop.vue b/frontend/components/tasks/toolbar/ToolbarLaptop.vue index 390c9800..265fc331 100644 --- a/frontend/components/tasks/toolbar/ToolbarLaptop.vue +++ b/frontend/components/tasks/toolbar/ToolbarLaptop.vue @@ -59,6 +59,7 @@ /> + Date: Tue, 23 Mar 2021 08:10:32 +0900 Subject: [PATCH 4/6] Use LabelSelect and LabelGroup in text classification page --- .../_id/text-classification/index.vue | 35 ++++++++++++++----- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/frontend/pages/projects/_id/text-classification/index.vue b/frontend/pages/projects/_id/text-classification/index.vue index d3d65dfa..a50df08a 100644 --- a/frontend/pages/projects/_id/text-classification/index.vue +++ b/frontend/pages/projects/_id/text-classification/index.vue @@ -11,7 +11,20 @@ class="d-none d-sm-block" @click:clear-label="clear" @click:review="approve" - /> + > + + + mdi-format-list-bulleted + + + mdi-text + + + - - + @@ -49,10 +65,10 @@ diff --git a/frontend/components/tasks/textClassification/TextClassification.vue b/frontend/components/tasks/textClassification/TextClassification.vue deleted file mode 100644 index 87d5b548..00000000 --- a/frontend/components/tasks/textClassification/TextClassification.vue +++ /dev/null @@ -1,107 +0,0 @@ - - -