From c07c86e71bc8345802443cd4acf1d6cbb3817502 Mon Sep 17 00:00:00 2001 From: Greg L Date: Thu, 23 Nov 2023 19:07:55 -0500 Subject: [PATCH] - fixed new files that should be .jsx --- ...orStoreDialog.js => VectorStoreDialog.jsx} | 30 +++++++++---------- ...ctorStorePopUp.js => VectorStorePopUp.jsx} | 8 ++--- 2 files changed, 19 insertions(+), 19 deletions(-) rename packages/ui/src/views/vectorstore/{VectorStoreDialog.js => VectorStoreDialog.jsx} (96%) rename packages/ui/src/views/vectorstore/{VectorStorePopUp.js => VectorStorePopUp.jsx} (94%) diff --git a/packages/ui/src/views/vectorstore/VectorStoreDialog.js b/packages/ui/src/views/vectorstore/VectorStoreDialog.jsx similarity index 96% rename from packages/ui/src/views/vectorstore/VectorStoreDialog.js rename to packages/ui/src/views/vectorstore/VectorStoreDialog.jsx index 29f443f4..7bc796eb 100644 --- a/packages/ui/src/views/vectorstore/VectorStoreDialog.js +++ b/packages/ui/src/views/vectorstore/VectorStoreDialog.jsx @@ -19,19 +19,19 @@ import { Typography } from '@mui/material' -import { CheckboxInput } from 'ui-component/checkbox/Checkbox' -import { BackdropLoader } from 'ui-component/loading/BackdropLoader' -import { TableViewOnly } from 'ui-component/table/Table' +import { CheckboxInput } from '@/ui-component/checkbox/Checkbox' +import { BackdropLoader } from '@/ui-component/loading/BackdropLoader' +import { TableViewOnly } from '@/ui-component/table/Table' import { IconX } from '@tabler/icons' import ExpandMoreIcon from '@mui/icons-material/ExpandMore' -import pythonSVG from 'assets/images/python.svg' -import javascriptSVG from 'assets/images/javascript.svg' -import cURLSVG from 'assets/images/cURL.svg' +import pythonSVG from '@/assets/images/python.svg' +import javascriptSVG from '@/assets/images/javascript.svg' +import cURLSVG from '@/assets/images/cURL.svg' -import useApi from 'hooks/useApi' -import configApi from 'api/config' -import vectorstoreApi from 'api/vectorstore' +import useApi from '@/hooks/useApi' +import configApi from '@/api/config' +import vectorstoreApi from '@/api/vectorstore' // Utils import { @@ -41,14 +41,14 @@ import { getConfigExamplesForJS, getConfigExamplesForPython, getConfigExamplesForCurl -} from 'utils/genericHelper' -import useNotifier from 'utils/useNotifier' +} from '@/utils/genericHelper' +import useNotifier from '@/utils/useNotifier' // Store -import { flowContext } from 'store/context/ReactFlowContext' -import { HIDE_CANVAS_DIALOG, SHOW_CANVAS_DIALOG } from 'store/actions' -import { baseURL } from 'store/constant' -import { enqueueSnackbar as enqueueSnackbarAction, closeSnackbar as closeSnackbarAction } from 'store/actions' +import { flowContext } from '@/store/context/ReactFlowContext' +import { HIDE_CANVAS_DIALOG, SHOW_CANVAS_DIALOG } from '@/store/actions' +import { baseURL } from '@/store/constant' +import { enqueueSnackbar as enqueueSnackbarAction, closeSnackbar as closeSnackbarAction } from '@/store/actions' function TabPanel(props) { const { children, value, index, ...other } = props diff --git a/packages/ui/src/views/vectorstore/VectorStorePopUp.js b/packages/ui/src/views/vectorstore/VectorStorePopUp.jsx similarity index 94% rename from packages/ui/src/views/vectorstore/VectorStorePopUp.js rename to packages/ui/src/views/vectorstore/VectorStorePopUp.jsx index 2e23e69c..a77d9486 100644 --- a/packages/ui/src/views/vectorstore/VectorStorePopUp.js +++ b/packages/ui/src/views/vectorstore/VectorStorePopUp.jsx @@ -6,17 +6,17 @@ import { Button } from '@mui/material' import { IconDatabaseImport, IconX } from '@tabler/icons' // project import -import { StyledFab } from 'ui-component/button/StyledFab' +import { StyledFab } from '@/ui-component/button/StyledFab' import VectorStoreDialog from './VectorStoreDialog' // api -import vectorstoreApi from 'api/vectorstore' +import vectorstoreApi from '@/api/vectorstore' // Hooks -import useNotifier from 'utils/useNotifier' +import useNotifier from '@/utils/useNotifier' // Const -import { enqueueSnackbar as enqueueSnackbarAction, closeSnackbar as closeSnackbarAction } from 'store/actions' +import { enqueueSnackbar as enqueueSnackbarAction, closeSnackbar as closeSnackbarAction } from '@/store/actions' export const VectorStorePopUp = ({ chatflowid }) => { const dispatch = useDispatch()