From 7fa4fd75d64d73d2b11b721953c8d069565f0c5a Mon Sep 17 00:00:00 2001 From: luishsf <49794990+luishsf@users.noreply.github.com> Date: Wed, 6 Dec 2023 17:33:20 -0300 Subject: [PATCH] update content ai home view --- .../repository/home/HomeRepositoryCard.vue | 39 ++- src/components/repository/sidebar/SideBar.vue | 3 - src/layout/dashboard/DashboardLayout.vue | 312 +++++++++--------- src/locales/pt_br.json | 4 +- src/views/repository/content/Bases.vue | 147 +++++---- src/views/repository/content/BasesForm.vue | 3 - src/views/repository/content/Navigation.vue | 34 ++ 7 files changed, 303 insertions(+), 239 deletions(-) create mode 100644 src/views/repository/content/Navigation.vue diff --git a/src/components/repository/home/HomeRepositoryCard.vue b/src/components/repository/home/HomeRepositoryCard.vue index 163720581..29c68c79e 100644 --- a/src/components/repository/home/HomeRepositoryCard.vue +++ b/src/components/repository/home/HomeRepositoryCard.vue @@ -14,7 +14,7 @@
-
+
+ + +
+ @@ -48,7 +62,7 @@ />
-
+
@@ -87,7 +101,18 @@
-
+
+ +
+ +
+ Excluir base +
+
+
+
+ +
@@ -388,9 +413,9 @@ export default { }; }, intelligenceForce() { - const scoreObject = this.repositoryDetail.repository_score; - const scoreResult = (scoreObject.evaluate_size_score - + scoreObject.intents_balance_score + scoreObject.intents_size_score) / 3; + const scoreObject = this.repositoryDetail?.repository_score; + const scoreResult = (scoreObject?.evaluate_size_score + + scoreObject?.intents_balance_score + scoreObject?.intents_size_score) / 3; return scoreResult.toFixed(0); }, }, diff --git a/src/components/repository/sidebar/SideBar.vue b/src/components/repository/sidebar/SideBar.vue index 76f428a33..a9b17395d 100644 --- a/src/components/repository/sidebar/SideBar.vue +++ b/src/components/repository/sidebar/SideBar.vue @@ -605,9 +605,6 @@ export default { &__select { z-index: 10; padding-bottom: $unnnic-spacing-stack-sm; - .icon-right { - transform: translateY(110%) - } .dropdown > div > input { height: auto; } diff --git a/src/layout/dashboard/DashboardLayout.vue b/src/layout/dashboard/DashboardLayout.vue index 13ddb12d6..18c57ff58 100644 --- a/src/layout/dashboard/DashboardLayout.vue +++ b/src/layout/dashboard/DashboardLayout.vue @@ -1,156 +1,156 @@ - - - + + + diff --git a/src/locales/pt_br.json b/src/locales/pt_br.json index d4fd873ef..b0f959e92 100644 --- a/src/locales/pt_br.json +++ b/src/locales/pt_br.json @@ -325,9 +325,9 @@ "confirm_with_username_placeholder": "Confirme seu nome de usuário para excluir a conta", "confirm_remove_integrate": "Remover integração", "bases": { - "knowledge_bases": "Bases de conhecimento", + "knowledge_bases": "{n} base de conteúdo adicionada | {n} bases de conteúdo adicionadas", "description": "As Bases de Conhecimento são as fontes de texto de uma Inteligência de Conteúdo. Distribua o texto da inteligência em bases, reunindo informações semelhantes sobre cada uma. Saiba mais em nossa documentação.", - "new_knowledge_base": "Adicionar nova base", + "new_knowledge_base": "Criar base de conteúdo", "adjustments": "Configurações", "adjustments_subtitle": "Gerencie as configurações básicas da Inteligência", "adjustments_button": "Salvar alterações", diff --git a/src/views/repository/content/Bases.vue b/src/views/repository/content/Bases.vue index c5025acc2..18ac00049 100644 --- a/src/views/repository/content/Bases.vue +++ b/src/views/repository/content/Bases.vue @@ -5,70 +5,70 @@
-
- -

-

- {{ $t("webapp.home.no_description") }} -

-
-
+
- +

+

+ {{ $t("webapp.home.no_description") }} +

+
+ +
-
+ + +

-
- +

-

+ + {{ $t('webapp.home.bases.new_knowledge_base') }} +

-
- + +
+ +
diff --git a/src/views/repository/content/BasesForm.vue b/src/views/repository/content/BasesForm.vue index ccc17907a..aafbae8f2 100644 --- a/src/views/repository/content/BasesForm.vue +++ b/src/views/repository/content/BasesForm.vue @@ -536,9 +536,6 @@ export default { align-items: center; } } - .icon-right { - transform: translateY(100%); - } .input.size-md { height: 46px; } diff --git a/src/views/repository/content/Navigation.vue b/src/views/repository/content/Navigation.vue new file mode 100644 index 000000000..ac3714863 --- /dev/null +++ b/src/views/repository/content/Navigation.vue @@ -0,0 +1,34 @@ + + + +