From e2d6c5987083d8f7afcfb1ffa652cbc412464f63 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Tue, 1 Oct 2024 14:42:19 +0100 Subject: [PATCH] fix(frontend): remove extra lines --- frontend/src/app-components/attachment/AttachmentThumbnail.tsx | 1 - frontend/src/app-components/attachment/AttachmentUploader.tsx | 1 - frontend/src/app-components/auth/Register.tsx | 1 - frontend/src/app-components/auth/ResetPassword.tsx | 1 - frontend/src/app-components/auth/resetPasswordRequest.tsx | 1 - frontend/src/app-components/dialogs/DeleteDialog.tsx | 1 - frontend/src/components/Menu/MenuAccordion.tsx | 1 - frontend/src/components/Menu/index.tsx | 1 - frontend/src/components/content-types/ContentTypeDialog.tsx | 1 - .../src/components/content-types/EditContentTypeFieldsDialog.tsx | 1 - frontend/src/components/content-types/components/FieldInput.tsx | 1 - frontend/src/components/content-types/index.tsx | 1 - frontend/src/components/contents/index.tsx | 1 - frontend/src/components/context-vars/ContextVarDialog.tsx | 1 - frontend/src/components/dashboard/AudienceChart.tsx | 1 - frontend/src/components/dashboard/ConversationChart.tsx | 1 - frontend/src/components/dashboard/MessageChart.tsx | 1 - frontend/src/components/dashboard/PopularChart.tsx | 1 - frontend/src/components/inbox/components/AttachmentViewer.tsx | 1 - frontend/src/components/inbox/components/Chat.tsx | 1 - frontend/src/components/inbox/components/ChatActions.tsx | 1 - frontend/src/components/inbox/index.tsx | 1 - frontend/src/components/labels/LabelDialog.tsx | 1 - frontend/src/components/labels/index.tsx | 1 - frontend/src/components/languages/LanguageDialog.tsx | 1 - frontend/src/components/media-library/index.tsx | 1 - frontend/src/components/nlp/NlpEntityDialog.tsx | 1 - frontend/src/components/nlp/NlpSampleDialog.tsx | 1 - frontend/src/components/nlp/NlpValueDialog.tsx | 1 - frontend/src/components/nlp/components/NlpDatasetCounter.tsx | 1 - frontend/src/components/nlp/components/NlpEntity.tsx | 1 - frontend/src/components/nlp/components/NlpValues.tsx | 1 - frontend/src/components/nlp/index.tsx | 1 - frontend/src/components/roles/PermissionsDialog.tsx | 1 - frontend/src/components/roles/RoleDialog.tsx | 1 - frontend/src/components/subscribers/EditSubscriberDialog.tsx | 1 - frontend/src/components/subscribers/index.tsx | 1 - frontend/src/components/translations/EditTranslationDialog.tsx | 1 - frontend/src/components/translations/index.tsx | 1 - frontend/src/components/users/EditUserDialog.tsx | 1 - frontend/src/components/users/InvitationDialog.tsx | 1 - frontend/src/components/users/index.tsx | 1 - frontend/src/components/visual-editor/Aside.tsx | 1 - frontend/src/components/visual-editor/BlockDialog.tsx | 1 - frontend/src/components/visual-editor/CustomBlocks.tsx | 1 - .../src/components/visual-editor/form/AttachmentMessageForm.tsx | 1 - .../src/components/visual-editor/form/ButtonsMessageForm.tsx | 1 - frontend/src/components/visual-editor/form/OptionsForm.tsx | 1 - .../components/visual-editor/form/QuickRepliesMessageForm.tsx | 1 - frontend/src/components/visual-editor/form/TextMessageForm.tsx | 1 - frontend/src/components/visual-editor/form/TriggersForm.tsx | 1 - .../components/visual-editor/form/inputs/message/ButtonInput.tsx | 1 - .../visual-editor/form/inputs/message/QuickReplyInput.tsx | 1 - .../visual-editor/form/inputs/options/ContextVarInput.tsx | 1 - .../visual-editor/form/inputs/options/LocalFallbackInput.tsx | 1 - .../visual-editor/form/inputs/triggers/ContentPostbackInput.tsx | 1 - .../visual-editor/form/inputs/triggers/PatternInput.tsx | 1 - .../visual-editor/form/inputs/triggers/PostbackInput.tsx | 1 - frontend/src/components/visual-editor/index.tsx | 1 - frontend/src/components/visual-editor/v2/Diagrams.tsx | 1 - frontend/src/layout/Header.tsx | 1 - frontend/src/pages/visual-editor.tsx | 1 - 62 files changed, 62 deletions(-) diff --git a/frontend/src/app-components/attachment/AttachmentThumbnail.tsx b/frontend/src/app-components/attachment/AttachmentThumbnail.tsx index c0e61ff..6075b67 100644 --- a/frontend/src/app-components/attachment/AttachmentThumbnail.tsx +++ b/frontend/src/app-components/attachment/AttachmentThumbnail.tsx @@ -21,7 +21,6 @@ import { } from "@mui/material"; import { FC } from "react"; - import { useDelete } from "@/hooks/crud/useDelete"; import { useGet } from "@/hooks/crud/useGet"; import { useDialog } from "@/hooks/useDialog"; diff --git a/frontend/src/app-components/attachment/AttachmentUploader.tsx b/frontend/src/app-components/attachment/AttachmentUploader.tsx index 5323aff..915ff65 100644 --- a/frontend/src/app-components/attachment/AttachmentUploader.tsx +++ b/frontend/src/app-components/attachment/AttachmentUploader.tsx @@ -11,7 +11,6 @@ import FolderCopyIcon from "@mui/icons-material/FolderCopy"; import { Box, Button, Divider, Grid, styled, Typography } from "@mui/material"; import { ChangeEvent, DragEvent, FC, useState } from "react"; - import { useUpload } from "@/hooks/crud/useUpload"; import { getDisplayDialogs, useDialog } from "@/hooks/useDialog"; import { useToast } from "@/hooks/useToast"; diff --git a/frontend/src/app-components/auth/Register.tsx b/frontend/src/app-components/auth/Register.tsx index 6c55f80..deedd7e 100644 --- a/frontend/src/app-components/auth/Register.tsx +++ b/frontend/src/app-components/auth/Register.tsx @@ -23,7 +23,6 @@ import { useRouter } from "next/router"; import { useEffect, useState } from "react"; import { useForm } from "react-hook-form"; - import { useAcceptInvite } from "@/hooks/entities/auth-hooks"; import { useToast } from "@/hooks/useToast"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/app-components/auth/ResetPassword.tsx b/frontend/src/app-components/auth/ResetPassword.tsx index 5337ec7..f68a446 100644 --- a/frontend/src/app-components/auth/ResetPassword.tsx +++ b/frontend/src/app-components/auth/ResetPassword.tsx @@ -12,7 +12,6 @@ import Link from "next/link"; import { useRouter } from "next/router"; import { useForm } from "react-hook-form"; - import { useResetPassword } from "@/hooks/entities/reset-hooks"; import { useToast } from "@/hooks/useToast"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/app-components/auth/resetPasswordRequest.tsx b/frontend/src/app-components/auth/resetPasswordRequest.tsx index 563457f..a5d1313 100644 --- a/frontend/src/app-components/auth/resetPasswordRequest.tsx +++ b/frontend/src/app-components/auth/resetPasswordRequest.tsx @@ -10,7 +10,6 @@ import { Button, Grid, Paper, Typography } from "@mui/material"; import Link from "next/link"; import { useForm } from "react-hook-form"; - import { useRequestResetPassword } from "@/hooks/entities/reset-hooks"; import { useToast } from "@/hooks/useToast"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/app-components/dialogs/DeleteDialog.tsx b/frontend/src/app-components/dialogs/DeleteDialog.tsx index 7070105..f911499 100644 --- a/frontend/src/app-components/dialogs/DeleteDialog.tsx +++ b/frontend/src/app-components/dialogs/DeleteDialog.tsx @@ -17,7 +17,6 @@ import { } from "@mui/material"; import { FC } from "react"; - import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { DialogControl } from "@/hooks/useDialog"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/Menu/MenuAccordion.tsx b/frontend/src/components/Menu/MenuAccordion.tsx index c103cab..46d3b6a 100644 --- a/frontend/src/components/Menu/MenuAccordion.tsx +++ b/frontend/src/components/Menu/MenuAccordion.tsx @@ -26,7 +26,6 @@ import { } from "@mui/material"; import React, { FC, useState } from "react"; - import { AnimatedChevron } from "@/app-components/icons/AnimatedChevron"; import { UnifiedIcon } from "@/app-components/icons/UnifiedIcon"; import { TMenuItem } from "@/app-components/menus/Sidebar"; diff --git a/frontend/src/components/Menu/index.tsx b/frontend/src/components/Menu/index.tsx index ee7716c..bab6d44 100644 --- a/frontend/src/components/Menu/index.tsx +++ b/frontend/src/components/Menu/index.tsx @@ -11,7 +11,6 @@ import AddIcon from "@mui/icons-material/Add"; import { Grid, Paper, Button, Box, debounce } from "@mui/material"; import React, { useRef, useState } from "react"; - import { DeleteDialog } from "@/app-components/dialogs/DeleteDialog"; import { NoDataOverlay } from "@/app-components/tables/NoDataOverlay"; import { useCreate } from "@/hooks/crud/useCreate"; diff --git a/frontend/src/components/content-types/ContentTypeDialog.tsx b/frontend/src/components/content-types/ContentTypeDialog.tsx index 6846c15..f1e5ec0 100644 --- a/frontend/src/components/content-types/ContentTypeDialog.tsx +++ b/frontend/src/components/content-types/ContentTypeDialog.tsx @@ -10,7 +10,6 @@ import { Dialog, DialogActions, DialogContent } from "@mui/material"; import { FC, useEffect } from "react"; import { useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/content-types/EditContentTypeFieldsDialog.tsx b/frontend/src/components/content-types/EditContentTypeFieldsDialog.tsx index 89cde84..95ba915 100644 --- a/frontend/src/components/content-types/EditContentTypeFieldsDialog.tsx +++ b/frontend/src/components/content-types/EditContentTypeFieldsDialog.tsx @@ -18,7 +18,6 @@ import { import { useEffect } from "react"; import { useFieldArray, useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle, diff --git a/frontend/src/components/content-types/components/FieldInput.tsx b/frontend/src/components/content-types/components/FieldInput.tsx index 236ab72..5d5d5b3 100644 --- a/frontend/src/components/content-types/components/FieldInput.tsx +++ b/frontend/src/components/content-types/components/FieldInput.tsx @@ -17,7 +17,6 @@ import { useWatch, } from "react-hook-form"; - import { IconButton } from "@/app-components/buttons/IconButton"; import { Input } from "@/app-components/inputs/Input"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/content-types/index.tsx b/frontend/src/components/content-types/index.tsx index 5324390..23e8e9f 100644 --- a/frontend/src/components/content-types/index.tsx +++ b/frontend/src/components/content-types/index.tsx @@ -11,7 +11,6 @@ import AddIcon from "@mui/icons-material/Add"; import { Button, Grid, Paper } from "@mui/material"; import { useRouter } from "next/router"; - import { DeleteDialog } from "@/app-components/dialogs"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; import { diff --git a/frontend/src/components/contents/index.tsx b/frontend/src/components/contents/index.tsx index 5cfaace..c2c104b 100644 --- a/frontend/src/components/contents/index.tsx +++ b/frontend/src/components/contents/index.tsx @@ -13,7 +13,6 @@ import { Button, Chip, Grid, Paper, Switch, Typography } from "@mui/material"; import Link from "next/link"; import { useRouter } from "next/router"; - import { DeleteDialog } from "@/app-components/dialogs"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; import { diff --git a/frontend/src/components/context-vars/ContextVarDialog.tsx b/frontend/src/components/context-vars/ContextVarDialog.tsx index bd33ebb..05f5e0f 100644 --- a/frontend/src/components/context-vars/ContextVarDialog.tsx +++ b/frontend/src/components/context-vars/ContextVarDialog.tsx @@ -17,7 +17,6 @@ import { import { FC, useEffect } from "react"; import { Controller, useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/dashboard/AudienceChart.tsx b/frontend/src/components/dashboard/AudienceChart.tsx index d0ed355..589f2c4 100644 --- a/frontend/src/components/dashboard/AudienceChart.tsx +++ b/frontend/src/components/dashboard/AudienceChart.tsx @@ -9,7 +9,6 @@ import { Card, CardContent, Divider } from "@mui/material"; import { MultiLineChart, ResponsiveChartContainer } from "eazychart-react"; - import { StyledCardHeader } from "@/app-components/card/StyledCardHeader"; import { useFindStats } from "@/hooks/entities/bot-stat-hooks"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/dashboard/ConversationChart.tsx b/frontend/src/components/dashboard/ConversationChart.tsx index 11f2d27..5c6b7bf 100644 --- a/frontend/src/components/dashboard/ConversationChart.tsx +++ b/frontend/src/components/dashboard/ConversationChart.tsx @@ -9,7 +9,6 @@ import { Card, CardContent, Divider } from "@mui/material"; import { MultiLineChart, ResponsiveChartContainer } from "eazychart-react"; - import { StyledCardHeader } from "@/app-components/card/StyledCardHeader"; import { useFindStats } from "@/hooks/entities/bot-stat-hooks"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/dashboard/MessageChart.tsx b/frontend/src/components/dashboard/MessageChart.tsx index f6dd845..53a2794 100644 --- a/frontend/src/components/dashboard/MessageChart.tsx +++ b/frontend/src/components/dashboard/MessageChart.tsx @@ -9,7 +9,6 @@ import { Card, CardContent, Divider } from "@mui/material"; import { MultiLineChart, ResponsiveChartContainer } from "eazychart-react"; - import { StyledCardHeader } from "@/app-components/card/StyledCardHeader"; import { useFindStats } from "@/hooks/entities/bot-stat-hooks"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/dashboard/PopularChart.tsx b/frontend/src/components/dashboard/PopularChart.tsx index e244ac2..b8aa141 100644 --- a/frontend/src/components/dashboard/PopularChart.tsx +++ b/frontend/src/components/dashboard/PopularChart.tsx @@ -9,7 +9,6 @@ import { Card, CardContent, Divider } from "@mui/material"; import { ColumnChart, ResponsiveChartContainer } from "eazychart-react"; - import { StyledCardHeader } from "@/app-components/card/StyledCardHeader"; import { useFindStats } from "@/hooks/entities/bot-stat-hooks"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/inbox/components/AttachmentViewer.tsx b/frontend/src/components/inbox/components/AttachmentViewer.tsx index 26da61b..59a4e18 100644 --- a/frontend/src/components/inbox/components/AttachmentViewer.tsx +++ b/frontend/src/components/inbox/components/AttachmentViewer.tsx @@ -10,7 +10,6 @@ import DownloadIcon from "@mui/icons-material/Download"; import { Button, Dialog, DialogContent } from "@mui/material"; import { FC } from "react"; - import { DialogTitle } from "@/app-components/dialogs"; import { useDialog } from "@/hooks/useDialog"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/inbox/components/Chat.tsx b/frontend/src/components/inbox/components/Chat.tsx index d1dd239..42216e4 100644 --- a/frontend/src/components/inbox/components/Chat.tsx +++ b/frontend/src/components/inbox/components/Chat.tsx @@ -17,7 +17,6 @@ import { import QuestionAnswerTwoToneIcon from "@mui/icons-material/QuestionAnswerTwoTone"; import { debounce, Grid } from "@mui/material"; - import { useCreate } from "@/hooks/crud/useCreate"; import { useAuth } from "@/hooks/useAuth"; import { useConfig } from "@/hooks/useConfig"; diff --git a/frontend/src/components/inbox/components/ChatActions.tsx b/frontend/src/components/inbox/components/ChatActions.tsx index 7380355..63e269f 100644 --- a/frontend/src/components/inbox/components/ChatActions.tsx +++ b/frontend/src/components/inbox/components/ChatActions.tsx @@ -11,7 +11,6 @@ import { faHandPointRight } from "@fortawesome/free-solid-svg-icons"; import { Button, Grid, IconButton, MenuItem, Typography } from "@mui/material"; import { useEffect, useState } from "react"; - import { UnifiedIcon } from "@/app-components/icons/UnifiedIcon"; import { Input } from "@/app-components/inputs/Input"; import { useFind } from "@/hooks/crud/useFind"; diff --git a/frontend/src/components/inbox/index.tsx b/frontend/src/components/inbox/index.tsx index 66964a0..6a56e84 100644 --- a/frontend/src/components/inbox/index.tsx +++ b/frontend/src/components/inbox/index.tsx @@ -11,7 +11,6 @@ import "@chatscope/chat-ui-kit-styles/dist/default/styles.min.css"; import { Grid, MenuItem } from "@mui/material"; import { useState } from "react"; - import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect"; import { Input } from "@/app-components/inputs/Input"; import { useSearch } from "@/hooks/useSearch"; diff --git a/frontend/src/components/labels/LabelDialog.tsx b/frontend/src/components/labels/LabelDialog.tsx index 99b9fab..3c9b50a 100644 --- a/frontend/src/components/labels/LabelDialog.tsx +++ b/frontend/src/components/labels/LabelDialog.tsx @@ -10,7 +10,6 @@ import { Dialog, DialogActions, DialogContent } from "@mui/material"; import { FC, useEffect } from "react"; import { useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/labels/index.tsx b/frontend/src/components/labels/index.tsx index 7592209..2f529d9 100644 --- a/frontend/src/components/labels/index.tsx +++ b/frontend/src/components/labels/index.tsx @@ -12,7 +12,6 @@ import { Button, Grid, Paper } from "@mui/material"; import { GridColDef } from "@mui/x-data-grid"; import React from "react"; - import { DeleteDialog } from "@/app-components/dialogs/DeleteDialog"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; import { diff --git a/frontend/src/components/languages/LanguageDialog.tsx b/frontend/src/components/languages/LanguageDialog.tsx index 8cd9ef8..14012bc 100644 --- a/frontend/src/components/languages/LanguageDialog.tsx +++ b/frontend/src/components/languages/LanguageDialog.tsx @@ -16,7 +16,6 @@ import { import { FC, useEffect } from "react"; import { Controller, useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/media-library/index.tsx b/frontend/src/components/media-library/index.tsx index a427699..51a2213 100644 --- a/frontend/src/components/media-library/index.tsx +++ b/frontend/src/components/media-library/index.tsx @@ -10,7 +10,6 @@ import DriveFolderUploadIcon from "@mui/icons-material/DriveFolderUpload"; import { Box, Grid, Paper } from "@mui/material"; import { GridColDef, GridEventListener } from "@mui/x-data-grid"; - import AttachmentThumbnail from "@/app-components/attachment/AttachmentThumbnail"; import { DeleteDialog } from "@/app-components/dialogs/DeleteDialog"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; diff --git a/frontend/src/components/nlp/NlpEntityDialog.tsx b/frontend/src/components/nlp/NlpEntityDialog.tsx index ba3b026..f330588 100644 --- a/frontend/src/components/nlp/NlpEntityDialog.tsx +++ b/frontend/src/components/nlp/NlpEntityDialog.tsx @@ -19,7 +19,6 @@ import { import { FC, useEffect } from "react"; import { useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/nlp/NlpSampleDialog.tsx b/frontend/src/components/nlp/NlpSampleDialog.tsx index dd93c0b..3a14ce1 100644 --- a/frontend/src/components/nlp/NlpSampleDialog.tsx +++ b/frontend/src/components/nlp/NlpSampleDialog.tsx @@ -9,7 +9,6 @@ import { Dialog, DialogContent } from "@mui/material"; import { FC } from "react"; - import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { useUpdate } from "@/hooks/crud/useUpdate"; import { DialogControlProps } from "@/hooks/useDialog"; diff --git a/frontend/src/components/nlp/NlpValueDialog.tsx b/frontend/src/components/nlp/NlpValueDialog.tsx index 632833b..1b5e51c 100644 --- a/frontend/src/components/nlp/NlpValueDialog.tsx +++ b/frontend/src/components/nlp/NlpValueDialog.tsx @@ -11,7 +11,6 @@ import { useRouter } from "next/router"; import { FC, useEffect } from "react"; import { Controller, useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/nlp/components/NlpDatasetCounter.tsx b/frontend/src/components/nlp/components/NlpDatasetCounter.tsx index 0c6bfbc..d0b10e9 100644 --- a/frontend/src/components/nlp/components/NlpDatasetCounter.tsx +++ b/frontend/src/components/nlp/components/NlpDatasetCounter.tsx @@ -9,7 +9,6 @@ import { Box } from "@mui/material"; import React from "react"; - import { StyledCardHeader } from "@/app-components/card/StyledCardHeader"; import { useCount } from "@/hooks/crud/useCount"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/nlp/components/NlpEntity.tsx b/frontend/src/components/nlp/components/NlpEntity.tsx index 4c72655..ae36644 100644 --- a/frontend/src/components/nlp/components/NlpEntity.tsx +++ b/frontend/src/components/nlp/components/NlpEntity.tsx @@ -11,7 +11,6 @@ import { Button, Chip, Grid } from "@mui/material"; import { GridColDef } from "@mui/x-data-grid"; import { useRouter } from "next/router"; - import { DeleteDialog } from "@/app-components/dialogs"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; import { diff --git a/frontend/src/components/nlp/components/NlpValues.tsx b/frontend/src/components/nlp/components/NlpValues.tsx index 6af71a1..7996654 100644 --- a/frontend/src/components/nlp/components/NlpValues.tsx +++ b/frontend/src/components/nlp/components/NlpValues.tsx @@ -14,7 +14,6 @@ import { GridColDef } from "@mui/x-data-grid"; import { useRouter } from "next/router"; import { useEffect, useState } from "react"; - import { DeleteDialog } from "@/app-components/dialogs"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; import { diff --git a/frontend/src/components/nlp/index.tsx b/frontend/src/components/nlp/index.tsx index 696ede9..96f0f08 100644 --- a/frontend/src/components/nlp/index.tsx +++ b/frontend/src/components/nlp/index.tsx @@ -12,7 +12,6 @@ import dynamic from "next/dynamic"; import { useRouter } from "next/router"; import React from "react"; - import { TabPanel } from "@/app-components/tabs/TabPanel"; import { useCreate } from "@/hooks/crud/useCreate"; import { useFind } from "@/hooks/crud/useFind"; diff --git a/frontend/src/components/roles/PermissionsDialog.tsx b/frontend/src/components/roles/PermissionsDialog.tsx index 49a73ac..dca3832 100644 --- a/frontend/src/components/roles/PermissionsDialog.tsx +++ b/frontend/src/components/roles/PermissionsDialog.tsx @@ -25,7 +25,6 @@ import { } from "@mui/material"; import { useState, FC, useEffect } from "react"; - import { IconButton } from "@/app-components/buttons/IconButton"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { Input } from "@/app-components/inputs/Input"; diff --git a/frontend/src/components/roles/RoleDialog.tsx b/frontend/src/components/roles/RoleDialog.tsx index b2ec6cc..798d19c 100644 --- a/frontend/src/components/roles/RoleDialog.tsx +++ b/frontend/src/components/roles/RoleDialog.tsx @@ -10,7 +10,6 @@ import { Dialog, DialogActions, DialogContent } from "@mui/material"; import { FC, useEffect } from "react"; import { useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/subscribers/EditSubscriberDialog.tsx b/frontend/src/components/subscribers/EditSubscriberDialog.tsx index afbdbc8..0b2897b 100644 --- a/frontend/src/components/subscribers/EditSubscriberDialog.tsx +++ b/frontend/src/components/subscribers/EditSubscriberDialog.tsx @@ -17,7 +17,6 @@ import Link from "next/link"; import { useEffect, FC, useState } from "react"; import { Controller, useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/subscribers/index.tsx b/frontend/src/components/subscribers/index.tsx index db1108e..ebf4daa 100644 --- a/frontend/src/components/subscribers/index.tsx +++ b/frontend/src/components/subscribers/index.tsx @@ -12,7 +12,6 @@ import { Grid, IconButton, MenuItem, Paper } from "@mui/material"; import { GridColDef } from "@mui/x-data-grid"; import React, { useState } from "react"; - import { ChipEntity } from "@/app-components/displays/ChipEntity"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; import { Input } from "@/app-components/inputs/Input"; diff --git a/frontend/src/components/translations/EditTranslationDialog.tsx b/frontend/src/components/translations/EditTranslationDialog.tsx index 1fe326e..f3d3fcb 100644 --- a/frontend/src/components/translations/EditTranslationDialog.tsx +++ b/frontend/src/components/translations/EditTranslationDialog.tsx @@ -16,7 +16,6 @@ import { import { FC, useEffect } from "react"; import { Controller, useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/translations/index.tsx b/frontend/src/components/translations/index.tsx index eb6357f..a4e3bb0 100644 --- a/frontend/src/components/translations/index.tsx +++ b/frontend/src/components/translations/index.tsx @@ -11,7 +11,6 @@ import AutorenewIcon from "@mui/icons-material/Autorenew"; import { Button, Chip, Grid, Paper, Stack } from "@mui/material"; import { GridColDef } from "@mui/x-data-grid"; - import { DeleteDialog } from "@/app-components/dialogs"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; import { diff --git a/frontend/src/components/users/EditUserDialog.tsx b/frontend/src/components/users/EditUserDialog.tsx index 6713c57..092bad9 100644 --- a/frontend/src/components/users/EditUserDialog.tsx +++ b/frontend/src/components/users/EditUserDialog.tsx @@ -17,7 +17,6 @@ import Link from "next/link"; import { FC, useEffect, useState } from "react"; import { Controller, useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/users/InvitationDialog.tsx b/frontend/src/components/users/InvitationDialog.tsx index c9f7761..7745871 100644 --- a/frontend/src/components/users/InvitationDialog.tsx +++ b/frontend/src/components/users/InvitationDialog.tsx @@ -12,7 +12,6 @@ import { Button, Dialog, DialogActions, DialogContent } from "@mui/material"; import { FC, useEffect } from "react"; import { Controller, useForm } from "react-hook-form"; - import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; import { ContentItem } from "@/app-components/dialogs/layouts/ContentItem"; diff --git a/frontend/src/components/users/index.tsx b/frontend/src/components/users/index.tsx index c937c64..fd16366 100644 --- a/frontend/src/components/users/index.tsx +++ b/frontend/src/components/users/index.tsx @@ -11,7 +11,6 @@ import PersonAddAlt1Icon from "@mui/icons-material/PersonAddAlt1"; import { Button, Grid, Paper, Switch } from "@mui/material"; import { GridColDef } from "@mui/x-data-grid"; - import { ChipEntity } from "@/app-components/displays/ChipEntity"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; import { diff --git a/frontend/src/components/visual-editor/Aside.tsx b/frontend/src/components/visual-editor/Aside.tsx index 8da68aa..a001475 100644 --- a/frontend/src/components/visual-editor/Aside.tsx +++ b/frontend/src/components/visual-editor/Aside.tsx @@ -9,7 +9,6 @@ import { Grid, IconButton, Paper, Typography, styled } from "@mui/material"; import { FC, SVGProps } from "react"; - import AttachmentIcon from "@/app-components/svg/toolbar/AttachmentIcon"; import ButtonsIcon from "@/app-components/svg/toolbar/ButtonsIcon"; import ListIcon from "@/app-components/svg/toolbar/ListIcon"; diff --git a/frontend/src/components/visual-editor/BlockDialog.tsx b/frontend/src/components/visual-editor/BlockDialog.tsx index 5c5213d..3a5e3e4 100644 --- a/frontend/src/components/visual-editor/BlockDialog.tsx +++ b/frontend/src/components/visual-editor/BlockDialog.tsx @@ -21,7 +21,6 @@ import { import { FC, useEffect, useState } from "react"; import { Controller, useForm } from "react-hook-form"; - import DialogButtons from "@/app-components/buttons/DialogButtons"; import { DialogTitle } from "@/app-components/dialogs/DialogTitle"; import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; diff --git a/frontend/src/components/visual-editor/CustomBlocks.tsx b/frontend/src/components/visual-editor/CustomBlocks.tsx index f2e366e..2792108 100644 --- a/frontend/src/components/visual-editor/CustomBlocks.tsx +++ b/frontend/src/components/visual-editor/CustomBlocks.tsx @@ -8,7 +8,6 @@ import { Grid } from "@mui/material"; - import PluginIcon from "@/app-components/svg/toolbar/PluginIcon"; import { useFind } from "@/hooks/crud/useFind"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/visual-editor/form/AttachmentMessageForm.tsx b/frontend/src/components/visual-editor/form/AttachmentMessageForm.tsx index 91ffb49..99bc103 100644 --- a/frontend/src/components/visual-editor/form/AttachmentMessageForm.tsx +++ b/frontend/src/components/visual-editor/form/AttachmentMessageForm.tsx @@ -8,7 +8,6 @@ import { Controller, useFormContext } from "react-hook-form"; - import AttachmentInput from "@/app-components/attachment/AttachmentInput"; import { ContentItem } from "@/app-components/dialogs"; import AttachmentIcon from "@/app-components/svg/toolbar/AttachmentIcon"; diff --git a/frontend/src/components/visual-editor/form/ButtonsMessageForm.tsx b/frontend/src/components/visual-editor/form/ButtonsMessageForm.tsx index 90885b9..0a362be 100644 --- a/frontend/src/components/visual-editor/form/ButtonsMessageForm.tsx +++ b/frontend/src/components/visual-editor/form/ButtonsMessageForm.tsx @@ -8,7 +8,6 @@ import { Controller, useFormContext } from "react-hook-form"; - import { ContentItem } from "@/app-components/dialogs"; import { Input } from "@/app-components/inputs/Input"; import ButtonsIcon from "@/app-components/svg/toolbar/ButtonsIcon"; diff --git a/frontend/src/components/visual-editor/form/OptionsForm.tsx b/frontend/src/components/visual-editor/form/OptionsForm.tsx index 9c542fc..b5c3f70 100644 --- a/frontend/src/components/visual-editor/form/OptionsForm.tsx +++ b/frontend/src/components/visual-editor/form/OptionsForm.tsx @@ -9,7 +9,6 @@ import { Typography } from "@mui/material"; import { Controller, useFormContext } from "react-hook-form"; - import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; import { ContentItem } from "@/app-components/dialogs/layouts/ContentItem"; import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect"; diff --git a/frontend/src/components/visual-editor/form/QuickRepliesMessageForm.tsx b/frontend/src/components/visual-editor/form/QuickRepliesMessageForm.tsx index 9cc686d..fff277d 100644 --- a/frontend/src/components/visual-editor/form/QuickRepliesMessageForm.tsx +++ b/frontend/src/components/visual-editor/form/QuickRepliesMessageForm.tsx @@ -8,7 +8,6 @@ import { Controller, useFormContext } from "react-hook-form"; - import { ContentItem } from "@/app-components/dialogs"; import { Input } from "@/app-components/inputs/Input"; import QuickRepliesIcon from "@/app-components/svg/toolbar/QuickRepliesIcon"; diff --git a/frontend/src/components/visual-editor/form/TextMessageForm.tsx b/frontend/src/components/visual-editor/form/TextMessageForm.tsx index 9458a17..b9b6eb4 100644 --- a/frontend/src/components/visual-editor/form/TextMessageForm.tsx +++ b/frontend/src/components/visual-editor/form/TextMessageForm.tsx @@ -8,7 +8,6 @@ import { Controller, useFormContext } from "react-hook-form"; - import { ContentItem } from "@/app-components/dialogs"; import MultipleInput from "@/app-components/inputs/MultipleInput"; import SimpleTextIcon from "@/app-components/svg/toolbar/SimpleTextIcon"; diff --git a/frontend/src/components/visual-editor/form/TriggersForm.tsx b/frontend/src/components/visual-editor/form/TriggersForm.tsx index 81d7cd7..517b78d 100644 --- a/frontend/src/components/visual-editor/form/TriggersForm.tsx +++ b/frontend/src/components/visual-editor/form/TriggersForm.tsx @@ -9,7 +9,6 @@ import { Divider } from "@mui/material"; import { Controller, useFormContext } from "react-hook-form"; - import { ContentContainer } from "@/app-components/dialogs/layouts/ContentContainer"; import { ContentItem } from "@/app-components/dialogs/layouts/ContentItem"; import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect"; diff --git a/frontend/src/components/visual-editor/form/inputs/message/ButtonInput.tsx b/frontend/src/components/visual-editor/form/inputs/message/ButtonInput.tsx index 0a289e9..067c08a 100644 --- a/frontend/src/components/visual-editor/form/inputs/message/ButtonInput.tsx +++ b/frontend/src/components/visual-editor/form/inputs/message/ButtonInput.tsx @@ -10,7 +10,6 @@ import { Grid, MenuItem } from "@mui/material"; import { FC } from "react"; import { FieldPath, useFormContext } from "react-hook-form"; - import { Input } from "@/app-components/inputs/Input"; import { ToggleableInput } from "@/app-components/inputs/ToggleableInput"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/visual-editor/form/inputs/message/QuickReplyInput.tsx b/frontend/src/components/visual-editor/form/inputs/message/QuickReplyInput.tsx index bb9d6d2..87f89f7 100644 --- a/frontend/src/components/visual-editor/form/inputs/message/QuickReplyInput.tsx +++ b/frontend/src/components/visual-editor/form/inputs/message/QuickReplyInput.tsx @@ -10,7 +10,6 @@ import { Grid, MenuItem } from "@mui/material"; import { FC, useState } from "react"; import { useFormContext } from "react-hook-form"; - import { Input } from "@/app-components/inputs/Input"; import { ToggleableInput } from "@/app-components/inputs/ToggleableInput"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/visual-editor/form/inputs/options/ContextVarInput.tsx b/frontend/src/components/visual-editor/form/inputs/options/ContextVarInput.tsx index 89d6c91..cfc0e91 100644 --- a/frontend/src/components/visual-editor/form/inputs/options/ContextVarInput.tsx +++ b/frontend/src/components/visual-editor/form/inputs/options/ContextVarInput.tsx @@ -11,7 +11,6 @@ import { Grid } from "@mui/material"; import { FC } from "react"; import { useFormContext } from "react-hook-form"; - import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect"; import AutoCompleteSelect from "@/app-components/inputs/AutoCompleteSelect"; import { useFind } from "@/hooks/crud/useFind"; diff --git a/frontend/src/components/visual-editor/form/inputs/options/LocalFallbackInput.tsx b/frontend/src/components/visual-editor/form/inputs/options/LocalFallbackInput.tsx index 31bb6c4..de00c0d 100644 --- a/frontend/src/components/visual-editor/form/inputs/options/LocalFallbackInput.tsx +++ b/frontend/src/components/visual-editor/form/inputs/options/LocalFallbackInput.tsx @@ -12,7 +12,6 @@ import { Accordion, AccordionDetails, AccordionSummary } from "@mui/material"; import { FC, useEffect, useState } from "react"; import { useFormContext } from "react-hook-form"; - import { ContentContainer, ContentItem } from "@/app-components/dialogs"; import { Input } from "@/app-components/inputs/Input"; import MultipleInput from "@/app-components/inputs/MultipleInput"; diff --git a/frontend/src/components/visual-editor/form/inputs/triggers/ContentPostbackInput.tsx b/frontend/src/components/visual-editor/form/inputs/triggers/ContentPostbackInput.tsx index 4f798fb..a297d12 100644 --- a/frontend/src/components/visual-editor/form/inputs/triggers/ContentPostbackInput.tsx +++ b/frontend/src/components/visual-editor/form/inputs/triggers/ContentPostbackInput.tsx @@ -9,7 +9,6 @@ import { Box, Typography } from "@mui/material"; import { useMemo } from "react"; - import AutoCompleteSelect from "@/app-components/inputs/AutoCompleteSelect"; import { useFind } from "@/hooks/crud/useFind"; import { useGetFromCache } from "@/hooks/crud/useGet"; diff --git a/frontend/src/components/visual-editor/form/inputs/triggers/PatternInput.tsx b/frontend/src/components/visual-editor/form/inputs/triggers/PatternInput.tsx index c136a18..9e81edb 100644 --- a/frontend/src/components/visual-editor/form/inputs/triggers/PatternInput.tsx +++ b/frontend/src/components/visual-editor/form/inputs/triggers/PatternInput.tsx @@ -10,7 +10,6 @@ import { Box, Grid, MenuItem, Typography } from "@mui/material"; import { FC, useEffect, useState } from "react"; import { RegisterOptions, useFormContext } from "react-hook-form"; - import AutoCompleteEntitySelect from "@/app-components/inputs/AutoCompleteEntitySelect"; import { Input } from "@/app-components/inputs/Input"; import { RegexInput } from "@/app-components/inputs/RegexInput"; diff --git a/frontend/src/components/visual-editor/form/inputs/triggers/PostbackInput.tsx b/frontend/src/components/visual-editor/form/inputs/triggers/PostbackInput.tsx index 7123dfd..5fbd96b 100644 --- a/frontend/src/components/visual-editor/form/inputs/triggers/PostbackInput.tsx +++ b/frontend/src/components/visual-editor/form/inputs/triggers/PostbackInput.tsx @@ -9,7 +9,6 @@ import { Box, Typography } from "@mui/material"; import { useMemo } from "react"; - import AutoCompleteSelect from "@/app-components/inputs/AutoCompleteSelect"; import { useGetFromCache } from "@/hooks/crud/useGet"; import { useTranslate } from "@/hooks/useTranslate"; diff --git a/frontend/src/components/visual-editor/index.tsx b/frontend/src/components/visual-editor/index.tsx index 8d298a8..8929bdf 100644 --- a/frontend/src/components/visual-editor/index.tsx +++ b/frontend/src/components/visual-editor/index.tsx @@ -9,7 +9,6 @@ import { Grid } from "@mui/material"; import dynamic from "next/dynamic"; - const Diagrams = dynamic(() => import("./v2/Diagrams"), { ssr: false }); const VisualEditorProvider = dynamic(() => import("./hooks/useVisualEditor"), { ssr: false, diff --git a/frontend/src/components/visual-editor/v2/Diagrams.tsx b/frontend/src/components/visual-editor/v2/Diagrams.tsx index 5be6078..9172eac 100644 --- a/frontend/src/components/visual-editor/v2/Diagrams.tsx +++ b/frontend/src/components/visual-editor/v2/Diagrams.tsx @@ -37,7 +37,6 @@ import { useState, } from "react"; - import { DeleteDialog } from "@/app-components/dialogs"; import { CategoryDialog } from "@/components/categories/CategoryDialog"; import { useDelete, useDeleteFromCache } from "@/hooks/crud/useDelete"; diff --git a/frontend/src/layout/Header.tsx b/frontend/src/layout/Header.tsx index ea91a72..6f77306 100644 --- a/frontend/src/layout/Header.tsx +++ b/frontend/src/layout/Header.tsx @@ -19,7 +19,6 @@ import { import MuiAppBar, { AppBarProps as MuiAppBarProps } from "@mui/material/AppBar"; import { FC, useEffect, useRef, useState } from "react"; - import { HexabotLogo } from "@/app-components/logos/HexabotLogo"; import { PopoverMenu } from "@/app-components/menus/PopoverMenu"; import { getAvatarSrc } from "@/components/inbox/helpers/mapMessages"; diff --git a/frontend/src/pages/visual-editor.tsx b/frontend/src/pages/visual-editor.tsx index 9fc9575..107959b 100644 --- a/frontend/src/pages/visual-editor.tsx +++ b/frontend/src/pages/visual-editor.tsx @@ -11,7 +11,6 @@ import { Avatar, Box, Typography } from "@mui/material"; import UiChatWidget from "hexabot-widget/src/UiChatWidget"; import { ReactElement } from "react"; - import { getAvatarSrc } from "@/components/inbox/helpers/mapMessages"; import { VisualEditor } from "@/components/visual-editor"; import { useConfig } from "@/hooks/useConfig";