mirror of https://github.com/buster-so/buster.git
trigger file change
This commit is contained in:
parent
da90476acb
commit
8290e1d454
|
@ -7,7 +7,7 @@ import { useMemoizedFn } from 'ahooks';
|
|||
import { BusterListColumn, BusterListRow } from '@/components/ui/list';
|
||||
import { ChatSelectedOptionPopup } from './ChatItemsSelectedPopup';
|
||||
import { BusterList, ListEmptyStateWithButton } from '@/components/ui/list';
|
||||
import { FavoriteStar, getShareStatus, StatusBadgeIndicator } from '@/components/features/Lists';
|
||||
import { FavoriteStar, getShareStatus, StatusBadgeIndicator } from '@/components/features/lists2';
|
||||
import { useCreateListByDate } from '@/components/ui/list/useCreateListByDate';
|
||||
|
||||
export const ChatItemsContainer: React.FC<{
|
||||
|
|
|
@ -8,8 +8,8 @@ import { useUserConfigContextSelector } from '@/context/Users';
|
|||
import { useBusterCollectionListContextSelector } from '@/context/Collections';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { useBusterNotifications } from '@/context/BusterNotifications';
|
||||
import { SaveToCollectionsDropdown } from '@/components/features/Dropdowns/SaveToCollectionsDropdown';
|
||||
import { StatusBadgeButton } from '@/components/features/Lists/StatusBadgeIndicator';
|
||||
import { SaveToCollectionsDropdown } from '@/components/features/dropdowns2/SaveToCollectionsDropdown';
|
||||
import { StatusBadgeButton } from '@/components/features/lists2/StatusBadgeIndicator';
|
||||
|
||||
export const ChatSelectedOptionPopup: React.FC<{
|
||||
selectedRowKeys: string[];
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
import { BusterInfiniteList } from '@/components/ui/list';
|
||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||
import { PermissionLineageBreadcrumb } from '../../../../../../../components/features/PermissionComponents';
|
||||
import { ListUserItem } from '@/components/features/Lists';
|
||||
import { ListUserItem } from '@/components/features/lists2';
|
||||
|
||||
export const PermissionListUserContainer: React.FC<{
|
||||
className?: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import { Button } from 'antd';
|
|||
import { AppMaterialIcons } from '@/components/ui';
|
||||
import { DatasetGroupDatasetsListContainer } from './DatasetGroupDatasetsListContainer';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { NewDatasetModal } from '@/components/features/Modals/NewDatasetModal';
|
||||
import { NewDatasetModal } from '@/components/features/modals2/NewDatasetModal';
|
||||
|
||||
export const DatasetGroupDatasetsController: React.FC<{
|
||||
datasetGroupId: string;
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import React, { useMemo, useState } from 'react';
|
||||
import { ListUserItem } from '@/components/features/Lists';
|
||||
import { ListUserItem } from '@/components/features/lists2';
|
||||
import { DatasetGroupUsersSelectedPopup } from './DatasetGroupUsersSelectedPopup';
|
||||
|
||||
export const DatasetGroupUsersListContainer: React.FC<{
|
||||
|
|
|
@ -8,7 +8,7 @@ import { Button } from 'antd';
|
|||
import { AppMaterialIcons } from '@/components/ui';
|
||||
import { PermissionGroupDatasetsListContainer } from './PermissionGroupDatasetsListContainer';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { NewDatasetModal } from '@/components/features/Modals/NewDatasetModal';
|
||||
import { NewDatasetModal } from '@/components/features/modals2/NewDatasetModal';
|
||||
|
||||
export const PermissionGroupDatasetsController: React.FC<{
|
||||
permissionGroupId: string;
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import React, { useMemo, useState } from 'react';
|
||||
import { ListUserItem } from '@/components/features/Lists';
|
||||
import { ListUserItem } from '@/components/features/lists2';
|
||||
import { PermissionGroupUsersSelectedPopup } from './PermissionGroupUsersSelectedPopup';
|
||||
|
||||
export const PermissionGroupUsersListContainer: React.FC<{
|
||||
|
|
|
@ -10,7 +10,7 @@ import React, { useMemo, useState } from 'react';
|
|||
import { Text } from '@/components/ui';
|
||||
import { OrganizationUserRoleText } from './config';
|
||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||
import { ListUserItem } from '@/components/features/Lists';
|
||||
import { ListUserItem } from '@/components/features/lists2';
|
||||
|
||||
export const ListUsersComponent: React.FC<{
|
||||
users: OrganizationUser[];
|
||||
|
|
|
@ -8,7 +8,7 @@ import { UserDatasetsListContainer } from './UserDatasetsListContainer';
|
|||
import { Button } from 'antd';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { AppMaterialIcons } from '@/components/ui';
|
||||
import { NewDatasetModal } from '@/components/features/Modals/NewDatasetModal';
|
||||
import { NewDatasetModal } from '@/components/features/modals2/NewDatasetModal';
|
||||
|
||||
export const UserDatasetsController: React.FC<{ userId: string }> = ({ userId }) => {
|
||||
const { data: datasets } = useGetUserDatasets({ userId });
|
||||
|
|
|
@ -8,7 +8,7 @@ import { Button } from 'antd';
|
|||
import { useMemoizedFn } from 'ahooks';
|
||||
import { AppMaterialIcons } from '@/components/ui';
|
||||
import { UserTeamsListContainer } from './UserTeamsListContainer';
|
||||
import { NewTeamModal } from '@/components/features/Modals/NewTeamModal';
|
||||
import { NewTeamModal } from '@/components/features/modals2/NewTeamModal';
|
||||
|
||||
export const UserTeamsController: React.FC<{ userId: string }> = ({ userId }) => {
|
||||
const { data: teams, refetch } = useGetUserTeams({ userId });
|
||||
|
|
|
@ -5,7 +5,7 @@ import React, { useImperativeHandle, useLayoutEffect } from 'react';
|
|||
import { WhiteListBlock } from '../WhiteListBlock';
|
||||
import type { DatasourceCreateCredentials } from '@/api/buster_socket/datasources';
|
||||
import type { DataSource } from '@/api/asset_interfaces';
|
||||
import { NewDatasetModal } from '@/components/features/Modals/NewDatasetModal';
|
||||
import { NewDatasetModal } from '@/components/features/modals2/NewDatasetModal';
|
||||
|
||||
const layout = {
|
||||
labelCol: { span: 7, offset: 0 },
|
||||
|
|
|
@ -12,7 +12,7 @@ import { NewChatModalDataSourceSelect } from './NewChatModalDatasourceSelect';
|
|||
import { NoDatasets } from './NoDatasets';
|
||||
import { useAppLayoutContextSelector } from '@/context/BusterAppLayout';
|
||||
import { useGetDatasets } from '@/api/buster_rest/datasets';
|
||||
import { NewDatasetModal } from '../Modals/NewDatasetModal';
|
||||
import { NewDatasetModal } from '../modals2/NewDatasetModal';
|
||||
|
||||
const { TextArea } = Input;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useState } from 'react';
|
||||
import { SaveToCollectionsDropdown } from '../Dropdowns/SaveToCollectionsDropdown';
|
||||
import { SaveToCollectionsDropdown } from '../dropdowns2/SaveToCollectionsDropdown';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { useBusterNotifications } from '@/context/BusterNotifications';
|
||||
import { useBusterCollectionListContextSelector } from '@/context/Collections';
|
||||
|
|
|
@ -2,7 +2,7 @@ import { useBusterNotifications } from '@/context/BusterNotifications';
|
|||
import { useBusterCollectionListContextSelector } from '@/context/Collections';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import React, { useState } from 'react';
|
||||
import { SaveToCollectionsDropdown } from '../Dropdowns/SaveToCollectionsDropdown';
|
||||
import { SaveToCollectionsDropdown } from '../dropdowns2/SaveToCollectionsDropdown';
|
||||
import { CollectionButton } from './CollectionsButton';
|
||||
import { useBusterMetricsIndividualContextSelector } from '@/context/Metrics';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { useBusterMetricsIndividualContextSelector } from '@/context/Metrics';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import React from 'react';
|
||||
import { SaveToDashboardDropdown } from '../Dropdowns/SaveToDashboardDropdown';
|
||||
import { SaveToDashboardDropdown } from '../dropdowns2/SaveToDashboardDropdown';
|
||||
import { Button } from 'antd';
|
||||
import { AppMaterialIcons } from '@/components/ui';
|
||||
import type { BusterMetric } from '@/api/asset_interfaces';
|
||||
|
|
|
@ -8,7 +8,7 @@ import { useMemoizedFn } from 'ahooks';
|
|||
import { Button } from 'antd';
|
||||
import React, { useMemo } from 'react';
|
||||
import type { BusterCollectionListItem } from '@/api/asset_interfaces';
|
||||
import { NewCollectionModal } from '../Modals/NewCollectionModal';
|
||||
import { NewCollectionModal } from '../modals2/NewCollectionModal';
|
||||
|
||||
export const SaveToCollectionsDropdown: React.FC<{
|
||||
children: React.ReactNode;
|
|
@ -4,12 +4,12 @@ import { ConfigProvider, Layout } from 'antd';
|
|||
import React, { PropsWithChildren, useMemo } from 'react';
|
||||
import { AppSidebar } from './AppSidebar';
|
||||
import { NewChatModal } from '@/components/features/NewChatModal';
|
||||
import { InvitePeopleModal } from '@/components/features/Modals/InvitePeopleModal';
|
||||
import { InvitePeopleModal } from '@/components/features/modals2/InvitePeopleModal';
|
||||
import { AppSplitter } from '@/components/ui/layout';
|
||||
import { createStyles } from 'antd-style';
|
||||
import { useBusterStylesContext } from '@/context/BusterStyles/BusterStyles';
|
||||
import { useUserConfigContextSelector } from '@/context/Users';
|
||||
import { SupportModal } from '@/components/features/Modals/SupportModal';
|
||||
import { SupportModal } from '@/components/features/modals2/SupportModal';
|
||||
import { useAppLayoutContextSelector } from '@/context/BusterAppLayout';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { ThemeConfig } from 'antd/lib';
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
} from '@/api/asset_interfaces';
|
||||
import { Text } from '@/components/ui';
|
||||
import { ListEmptyStateWithButton } from '@/components/ui/list';
|
||||
import { AddTypeModal } from '@/components/features/Modals/AddTypeModal';
|
||||
import { AddTypeModal } from '@/components/features/modals2/AddTypeModal';
|
||||
import { ShareAssetType } from '@/api/asset_interfaces';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { BusterList, BusterListColumn, BusterListRow } from '@/components/ui/list';
|
||||
|
|
|
@ -11,7 +11,7 @@ import Link from 'next/link';
|
|||
import { useAppLayoutContextSelector } from '@/context/BusterAppLayout';
|
||||
import { BusterRoutes } from '@/routes';
|
||||
import { AppMaterialIcons, EditableTitle } from '@/components/ui';
|
||||
import { FavoriteStar } from '@/components/features/Lists/FavoriteStar';
|
||||
import { FavoriteStar } from '@/components/features/lists2/FavoriteStar';
|
||||
import { ShareMenu } from '@/components/features/ShareMenu';
|
||||
import { BusterCollection, ShareAssetType } from '@/api/asset_interfaces';
|
||||
import { Text } from '@/components/ui';
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
ListEmptyStateWithButton
|
||||
} from '@/components/ui/list';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { NewCollectionModal } from '@/components/features/Modals/NewCollectionModal';
|
||||
import { NewCollectionModal } from '@/components/features/modals2/NewCollectionModal';
|
||||
import { BusterCollectionListItem } from '@/api/asset_interfaces';
|
||||
import { CollectionListSelectedPopup } from './CollectionListSelectedPopup';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import { useBusterDashboardIndividual } from '@/context/Dashboards';
|
|||
import { FileIndeterminateLoader } from '@/components/features/FileIndeterminateLoader';
|
||||
import { DashboardFileView, useChatLayoutContextSelector } from '@layouts/ChatLayout';
|
||||
import { DashboardViewComponents } from './config';
|
||||
import { AddTypeModal } from '@/components/features/Modals/AddTypeModal';
|
||||
import { AddTypeModal } from '@/components/features/modals2/AddTypeModal';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
|
||||
export const DashboardController: React.FC<{ dashboardId: string }> = ({ dashboardId }) => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, { useEffect } from 'react';
|
||||
import { CodeCard } from '@/components/ui/card';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { SaveResetFilePopup } from '@/components/features/Popups/SaveResetFilePopup';
|
||||
import { SaveResetFilePopup } from '@/components/features/popups2/SaveResetFilePopup';
|
||||
import { useBusterNotifications } from '@/context/BusterNotifications';
|
||||
import { DashboardViewProps } from '../config';
|
||||
import {
|
||||
|
|
|
@ -7,7 +7,7 @@ import { BusterUserAvatar } from '@/components/ui';
|
|||
import { formatDate } from '@/utils';
|
||||
import { BusterList, BusterListColumn, BusterListRow } from '@/components/ui/list';
|
||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||
import { getShareStatus } from '@/components/features/Lists';
|
||||
import { getShareStatus } from '@/components/features/lists2';
|
||||
import { ListEmptyStateWithButton } from '@/components/ui/list';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { DashboardSelectedOptionPopup } from './DashboardSelectedPopup';
|
||||
|
|
|
@ -5,7 +5,7 @@ import { Button, Dropdown, DropdownProps } from 'antd';
|
|||
import { useUserConfigContextSelector } from '@/context/Users';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { useBusterNotifications } from '@/context/BusterNotifications';
|
||||
import { SaveToCollectionsDropdown } from '@/components/features/Dropdowns/SaveToCollectionsDropdown';
|
||||
import { SaveToCollectionsDropdown } from '@/components/features/dropdowns2/SaveToCollectionsDropdown';
|
||||
import { useBusterDashboardContextSelector } from '@/context/Dashboards';
|
||||
|
||||
export const DashboardSelectedOptionPopup: React.FC<{
|
||||
|
|
|
@ -16,7 +16,7 @@ import React, { useMemo, useState } from 'react';
|
|||
import { PermissionUsersSelectedPopup } from './PermissionUsersSelectedPopup';
|
||||
import { PERMISSION_USERS_OPTIONS } from './config';
|
||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||
import { ListUserItem } from '@/components/features/Lists';
|
||||
import { ListUserItem } from '@/components/features/lists2';
|
||||
|
||||
export const PermissionListUsersContainer: React.FC<{
|
||||
filteredPermissionUsers: ListPermissionUsersResponse[];
|
||||
|
|
|
@ -5,7 +5,7 @@ import { Breadcrumb, Button } from 'antd';
|
|||
import Link from 'next/link';
|
||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||
import { AppMaterialIcons, AppSegmented, AppTooltip } from '@/components/ui';
|
||||
import { NewDatasetModal } from '@/components/features/Modals/NewDatasetModal';
|
||||
import { NewDatasetModal } from '@/components/features/modals2/NewDatasetModal';
|
||||
import { AppContentHeader } from '@/components/ui/layout/AppContentHeader';
|
||||
import { useIndividualDataset } from '@/context/Datasets';
|
||||
import { useHotkeys } from 'react-hotkeys-hook';
|
||||
|
|
|
@ -6,7 +6,7 @@ import { useUserConfigContextSelector } from '@/context/Users';
|
|||
import { useMemo, useState } from 'react';
|
||||
import { DatasetListContent } from './DatasetListContent';
|
||||
import { DatasetHeader } from './DatasetsHeader';
|
||||
import { NewDatasetModal } from '@/components/features/Modals/NewDatasetModal';
|
||||
import { NewDatasetModal } from '@/components/features/modals2/NewDatasetModal';
|
||||
|
||||
export const DatasetsListController: React.FC<{}> = ({}) => {
|
||||
const isAdmin = useUserConfigContextSelector((state) => state.isAdmin);
|
||||
|
|
|
@ -3,7 +3,7 @@ import type { MetricViewProps } from '../config';
|
|||
import { CodeCard } from '@/components/ui/card';
|
||||
import { useMetricIndividual, useBusterMetricsIndividualContextSelector } from '@/context/Metrics';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { SaveResetFilePopup } from '@/components/features/Popups/SaveResetFilePopup';
|
||||
import { SaveResetFilePopup } from '@/components/features/popups2/SaveResetFilePopup';
|
||||
import { useBusterNotifications } from '@/context/BusterNotifications';
|
||||
|
||||
export const MetricViewFile: React.FC<MetricViewProps> = React.memo(({ metricId }) => {
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { ShareAssetType, VerificationStatus, BusterMetricListItem } from '@/api/asset_interfaces';
|
||||
import { makeHumanReadble, formatDate } from '@/utils';
|
||||
import React, { memo, useMemo, useRef, useState } from 'react';
|
||||
import { StatusBadgeIndicator, getShareStatus } from '@/components/features/Lists';
|
||||
import { StatusBadgeIndicator, getShareStatus } from '@/components/features/lists2';
|
||||
import { BusterUserAvatar, Text } from '@/components/ui';
|
||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { BusterListColumn, BusterListRow } from '@/components/ui/list';
|
||||
import { MetricSelectedOptionPopup } from './MetricItemsSelectedPopup';
|
||||
import { BusterList, ListEmptyStateWithButton } from '@/components/ui/list';
|
||||
import { FavoriteStar } from '@/components/features/Lists';
|
||||
import { FavoriteStar } from '@/components/features/lists2';
|
||||
import { useCreateListByDate } from '@/components/ui/list/useCreateListByDate';
|
||||
|
||||
export const MetricItemsContainer: React.FC<{
|
||||
|
|
|
@ -2,12 +2,12 @@ import React, { useState } from 'react';
|
|||
import { AppMaterialIcons } from '@/components/ui';
|
||||
import { BusterListSelectedOptionPopupContainer } from '@/components/ui/list';
|
||||
import { Button, Dropdown, DropdownProps } from 'antd';
|
||||
import { StatusBadgeButton } from '@/components/features/Lists';
|
||||
import { StatusBadgeButton } from '@/components/features/lists2';
|
||||
import { VerificationStatus } from '@/api/asset_interfaces';
|
||||
import { useBusterMetricsIndividualContextSelector } from '@/context/Metrics';
|
||||
import { useUserConfigContextSelector } from '@/context/Users';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { SaveToCollectionsDropdown } from '@/components/features/Dropdowns/SaveToCollectionsDropdown';
|
||||
import { SaveToCollectionsDropdown } from '@/components/features/dropdowns2/SaveToCollectionsDropdown';
|
||||
import { useBusterNotifications } from '@/context/BusterNotifications';
|
||||
|
||||
export const MetricSelectedOptionPopup: React.FC<{
|
||||
|
|
|
@ -12,7 +12,7 @@ import { useHotkeys } from 'react-hotkeys-hook';
|
|||
import { useUserConfigContextSelector } from '@/context/Users';
|
||||
import { useBusterTermsIndividual } from '@/context/Terms';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { NewTermModal } from '@/components/features/Modals/NewTermModal';
|
||||
import { NewTermModal } from '@/components/features/modals2/NewTermModal';
|
||||
|
||||
export const TermsHeader: React.FC<{
|
||||
termId?: string;
|
||||
|
|
Loading…
Reference in New Issue