From 13c62a47a91f088d5467f417e39f2861ea71ea88 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Thu, 23 Oct 2025 10:31:10 +0100 Subject: [PATCH] Chore: Remove barrel files (#112803) * remove AccessControl barrel file * fix richhistory barrel file * fix auth-config barrel file * remove ConnectionsRedirectNotice barrel file * remove ConnectData barrel file * remove CategoryHeader barrel file * remove NoAccessModal barrel file * remove Search barrel file * actually prune it... * remove ConnectData barrel file * remove AddLibraryPanelWidget barrel file * remove DashExportModal barrel file * remove DashNav barrel file * remove DashboardRow barrel file * remove DashboardSettings barrel file * remove TracePageHeader barrel file * remove TimelineHeaderRow barrel file * remove reexport in utils * remove unnecessary barrel file export * remove DraggableManager demo barrel file * remove barrel export in useStateSync * remove GetStartedWithPlugin barrel file * remove pickers barrel file * remove ArgQueryEditor barrel file * remove LogsQueryEditor barrel file * remove the QueryEditor barrel file * remove ResourceField barrel file * remove ResourcePicker barrel file * remove TracesQueryEditor barrel file * remove SQLBuilderEditor barrel file * remove MetricStatEditor barrel file * remove nodeGraph barrel file * Revert "remove barrel export in useStateSync" This reverts commit e3b5dd8891be8a022501cf135a6d9aba8907e408. --- eslint-suppressions.json | 145 ------------------ .../core/components/AccessControl/index.ts | 1 - .../core/history/RichHistoryLocalStorage.ts | 2 +- .../richHistoryLocalStorageUtils.test.ts | 2 +- public/app/core/utils/richHistory.test.ts | 2 +- public/app/core/utils/richHistory.ts | 2 - .../permissions/ManagePermissions.tsx | 2 +- public/app/features/auth-config/index.ts | 2 - .../app/features/auth-config/state/actions.ts | 4 +- .../components/FolderActionsButton.test.tsx | 2 +- .../components/FolderActionsButton.tsx | 2 +- .../ConnectionsRedirectNotice/index.ts | 1 - .../pages/AddNewConnectionPage.tsx | 2 +- .../tabs/ConnectData/CardGrid/index.tsx | 1 - .../tabs/ConnectData/CategoryHeader/index.tsx | 1 - .../tabs/ConnectData/ConnectData.tsx | 6 +- .../NoAccessModal/NoAccessModal.tsx | 2 +- .../tabs/ConnectData/NoAccessModal/index.tsx | 1 - .../tabs/ConnectData/Search/index.tsx | 1 - .../connections/tabs/ConnectData/index.tsx | 1 - .../settings/PermissionsEditView.tsx | 2 +- .../components/AddLibraryPanelWidget/index.ts | 1 - .../components/DashExportModal/index.ts | 1 - .../dashboard/components/DashNav/index.ts | 2 - .../AccessControlDashboardPermissions.tsx | 2 +- .../components/DashboardRow/index.ts | 1 - .../components/DashboardSettings/index.ts | 1 - .../components/ShareModal/ShareExport.tsx | 2 +- .../dashboard/containers/DashboardPage.tsx | 4 +- .../dashboard/dashgrid/DashboardGrid.tsx | 4 +- .../explore/NodeGraph/NodeGraphContainer.tsx | 2 +- .../explore/RichHistory/RichHistory.test.tsx | 2 +- .../explore/RichHistory/RichHistory.tsx | 8 +- .../RichHistory/RichHistoryContainer.test.tsx | 2 +- .../RichHistory/RichHistoryQueriesTab.tsx | 9 +- .../RichHistoryStarredTab.test.tsx | 2 +- .../RichHistory/RichHistoryStarredTab.tsx | 8 +- .../features/explore/TraceView/TraceView.tsx | 2 +- .../components/TracePageHeader/index.tsx | 15 -- .../TraceTimelineViewer/SpanBarRow.tsx | 3 +- .../SpanDetail/AccordianLogs.tsx | 2 +- .../SpanDetail/index.test.tsx | 4 +- .../TraceTimelineViewer/SpanDetail/index.tsx | 2 +- .../components/TraceTimelineViewer/Ticks.tsx | 3 +- .../TimelineHeaderRow/index.tsx | 15 -- .../components/TraceTimelineViewer/index.tsx | 2 +- .../components/TraceTimelineViewer/utils.tsx | 2 - .../TraceView/components/model/ddg/types.tsx | 2 - .../utils/DraggableManager/demo/index.tsx | 15 -- .../components/GetStartedWithPlugin/index.ts | 1 - .../admin/components/PluginActions.tsx | 2 +- .../ServiceAccountPermissions.tsx | 2 +- public/app/features/teams/TeamPermissions.tsx | 2 +- .../features/variables/constant/adapter.ts | 2 +- .../app/features/variables/custom/adapter.ts | 2 +- .../features/variables/datasource/adapter.ts | 2 +- .../features/variables/interval/adapter.ts | 2 +- .../app/features/variables/pickers/index.ts | 1 - .../app/features/variables/query/adapter.ts | 2 +- .../components/ArgQueryEditor/index.tsx | 1 - .../LogsQueryEditor/LogsQueryEditor.tsx | 2 +- .../components/LogsQueryEditor/index.tsx | 1 - .../MetricsQueryEditor/MetricsQueryEditor.tsx | 2 +- .../components/QueryEditor/QueryEditor.tsx | 6 +- .../components/QueryEditor/index.tsx | 1 - .../ResourceField/ResourceField.tsx | 2 +- .../components/ResourceField/index.tsx | 1 - .../ResourcePicker/ResourcePicker.test.tsx | 4 +- .../components/ResourcePicker/index.tsx | 1 - .../TracesQueryEditor/TracesQueryEditor.tsx | 2 +- .../components/TracesQueryEditor/index.tsx | 1 - .../VariableEditor/VariableEditor.tsx | 4 +- .../plugins/datasource/azuremonitor/module.ts | 2 +- .../MetricsQueryEditor/MetricsQueryEditor.tsx | 4 +- .../SQLBuilderEditor/index.tsx | 1 - .../shared/MetricStatEditor/index.ts | 1 - public/app/plugins/panel/nodeGraph/index.ts | 1 - public/app/routes/routes.tsx | 2 +- 78 files changed, 61 insertions(+), 298 deletions(-) delete mode 100644 public/app/core/components/AccessControl/index.ts delete mode 100644 public/app/features/connections/components/ConnectionsRedirectNotice/index.ts delete mode 100644 public/app/features/connections/tabs/ConnectData/CardGrid/index.tsx delete mode 100644 public/app/features/connections/tabs/ConnectData/CategoryHeader/index.tsx delete mode 100644 public/app/features/connections/tabs/ConnectData/NoAccessModal/index.tsx delete mode 100644 public/app/features/connections/tabs/ConnectData/Search/index.tsx delete mode 100644 public/app/features/connections/tabs/ConnectData/index.tsx delete mode 100644 public/app/features/dashboard/components/AddLibraryPanelWidget/index.ts delete mode 100644 public/app/features/dashboard/components/DashExportModal/index.ts delete mode 100644 public/app/features/dashboard/components/DashNav/index.ts delete mode 100644 public/app/features/dashboard/components/DashboardRow/index.ts delete mode 100644 public/app/features/dashboard/components/DashboardSettings/index.ts delete mode 100644 public/app/features/explore/TraceView/components/TracePageHeader/index.tsx delete mode 100644 public/app/features/explore/TraceView/components/TraceTimelineViewer/TimelineHeaderRow/index.tsx delete mode 100644 public/app/features/explore/TraceView/components/utils/DraggableManager/demo/index.tsx delete mode 100644 public/app/features/plugins/admin/components/GetStartedWithPlugin/index.ts delete mode 100644 public/app/features/variables/pickers/index.ts delete mode 100644 public/app/plugins/datasource/azuremonitor/components/ArgQueryEditor/index.tsx delete mode 100644 public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/index.tsx delete mode 100644 public/app/plugins/datasource/azuremonitor/components/QueryEditor/index.tsx delete mode 100644 public/app/plugins/datasource/azuremonitor/components/ResourceField/index.tsx delete mode 100644 public/app/plugins/datasource/azuremonitor/components/ResourcePicker/index.tsx delete mode 100644 public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/index.tsx delete mode 100644 public/app/plugins/datasource/cloudwatch/components/QueryEditor/MetricsQueryEditor/SQLBuilderEditor/index.tsx delete mode 100644 public/app/plugins/datasource/cloudwatch/components/shared/MetricStatEditor/index.ts delete mode 100644 public/app/plugins/panel/nodeGraph/index.ts diff --git a/eslint-suppressions.json b/eslint-suppressions.json index 0de835bc1d9..a614933c49b 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -1194,11 +1194,6 @@ "count": 1 } }, - "public/app/core/components/AccessControl/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/core/components/DynamicImports/SafeDynamicImport.tsx": { "@typescript-eslint/no-explicit-any": { "count": 1 @@ -1462,11 +1457,6 @@ "count": 1 } }, - "public/app/core/utils/richHistory.ts": { - "no-barrel-files/no-barrel-files": { - "count": 3 - } - }, "public/app/core/utils/ticks.ts": { "@typescript-eslint/consistent-type-assertions": { "count": 2 @@ -1993,11 +1983,6 @@ "count": 1 } }, - "public/app/features/auth-config/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/auth-config/utils/data.ts": { "@typescript-eslint/consistent-type-assertions": { "count": 1 @@ -2038,21 +2023,6 @@ "count": 1 } }, - "public/app/features/connections/components/ConnectionsRedirectNotice/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, - "public/app/features/connections/tabs/ConnectData/CardGrid/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, - "public/app/features/connections/tabs/ConnectData/CategoryHeader/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/connections/tabs/ConnectData/ConnectData.tsx": { "@typescript-eslint/consistent-type-assertions": { "count": 1 @@ -2064,21 +2034,6 @@ "count": 2 } }, - "public/app/features/connections/tabs/ConnectData/NoAccessModal/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, - "public/app/features/connections/tabs/ConnectData/Search/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, - "public/app/features/connections/tabs/ConnectData/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/correlations/CorrelationsPage.tsx": { "no-restricted-syntax": { "count": 1 @@ -2425,11 +2380,6 @@ "count": 3 } }, - "public/app/features/dashboard/components/AddLibraryPanelWidget/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/dashboard/components/AnnotationSettings/AnnotationSettingsEdit.tsx": { "no-restricted-syntax": { "count": 7 @@ -2448,21 +2398,11 @@ "count": 7 } }, - "public/app/features/dashboard/components/DashExportModal/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/dashboard/components/DashNav/DashNavTimeControls.tsx": { "react-prefer-function-component/react-prefer-function-component": { "count": 1 } }, - "public/app/features/dashboard/components/DashNav/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/dashboard/components/DashboardPrompt/DashboardPrompt.test.tsx": { "@typescript-eslint/no-explicit-any": { "count": 1 @@ -2486,11 +2426,6 @@ "count": 1 } }, - "public/app/features/dashboard/components/DashboardRow/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/dashboard/components/DashboardSettings/AutoRefreshIntervals.tsx": { "no-restricted-syntax": { "count": 1 @@ -2514,11 +2449,6 @@ "count": 1 } }, - "public/app/features/dashboard/components/DashboardSettings/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx": { "no-restricted-syntax": { "count": 3 @@ -3037,11 +2967,6 @@ "count": 1 } }, - "public/app/features/explore/TraceView/components/TracePageHeader/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/explore/TraceView/components/TraceTimelineViewer/ListView/index.tsx": { "react-prefer-function-component/react-prefer-function-component": { "count": 1 @@ -3082,11 +3007,6 @@ "count": 1 } }, - "public/app/features/explore/TraceView/components/TraceTimelineViewer/TimelineHeaderRow/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/explore/TraceView/components/TraceTimelineViewer/VirtualizedTraceView.tsx": { "react-prefer-function-component/react-prefer-function-component": { "count": 1 @@ -3097,11 +3017,6 @@ "count": 1 } }, - "public/app/features/explore/TraceView/components/TraceTimelineViewer/utils.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/explore/TraceView/components/common/SearchBarInput.tsx": { "react-prefer-function-component/react-prefer-function-component": { "count": 1 @@ -3112,11 +3027,6 @@ "count": 1 } }, - "public/app/features/explore/TraceView/components/model/ddg/types.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/explore/TraceView/components/model/link-patterns.tsx": { "@typescript-eslint/consistent-type-assertions": { "count": 2 @@ -3426,11 +3336,6 @@ "count": 1 } }, - "public/app/features/plugins/admin/components/GetStartedWithPlugin/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/plugins/admin/components/InstallControls/InstallControlsWarning.tsx": { "react/no-unescaped-entities": { "count": 1 @@ -3947,11 +3852,6 @@ "count": 1 } }, - "public/app/features/variables/pickers/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/features/variables/pickers/shared/VariableInput.tsx": { "no-restricted-syntax": { "count": 1 @@ -4084,11 +3984,6 @@ "count": 2 } }, - "public/app/plugins/datasource/azuremonitor/components/ArgQueryEditor/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/plugins/datasource/azuremonitor/components/ConfigEditor/AppRegistrationCredentials.tsx": { "no-restricted-syntax": { "count": 5 @@ -4124,41 +4019,16 @@ "count": 1 } }, - "public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx": { "@typescript-eslint/consistent-type-assertions": { "count": 1 } }, - "public/app/plugins/datasource/azuremonitor/components/QueryEditor/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, - "public/app/plugins/datasource/azuremonitor/components/ResourceField/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, - "public/app/plugins/datasource/azuremonitor/components/ResourcePicker/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/Filters.tsx": { "no-restricted-syntax": { "count": 1 } }, - "public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/plugins/datasource/azuremonitor/components/VariableEditor/VariableEditor.tsx": { "no-restricted-syntax": { "count": 7 @@ -4258,21 +4128,11 @@ "count": 2 } }, - "public/app/plugins/datasource/cloudwatch/components/QueryEditor/MetricsQueryEditor/SQLBuilderEditor/index.tsx": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/plugins/datasource/cloudwatch/components/shared/LogGroups/LegacyLogGroupNamesSelection.tsx": { "no-restricted-syntax": { "count": 1 } }, - "public/app/plugins/datasource/cloudwatch/components/shared/MetricStatEditor/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/plugins/datasource/cloudwatch/datasource.ts": { "@typescript-eslint/no-explicit-any": { "count": 1 @@ -5108,11 +4968,6 @@ "count": 1 } }, - "public/app/plugins/panel/nodeGraph/index.ts": { - "no-barrel-files/no-barrel-files": { - "count": 1 - } - }, "public/app/plugins/panel/nodeGraph/layout.ts": { "@typescript-eslint/consistent-type-assertions": { "count": 1 diff --git a/public/app/core/components/AccessControl/index.ts b/public/app/core/components/AccessControl/index.ts deleted file mode 100644 index 753f2b4bccb..00000000000 --- a/public/app/core/components/AccessControl/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './Permissions'; diff --git a/public/app/core/history/RichHistoryLocalStorage.ts b/public/app/core/history/RichHistoryLocalStorage.ts index 165c2f06eac..6a88f5011c3 100644 --- a/public/app/core/history/RichHistoryLocalStorage.ts +++ b/public/app/core/history/RichHistoryLocalStorage.ts @@ -1,7 +1,7 @@ import { find, isEqual, omit } from 'lodash'; import { DataQuery, SelectableValue } from '@grafana/data'; -import { RichHistorySearchFilters, RichHistorySettings } from 'app/core/utils/richHistory'; +import { RichHistorySearchFilters, RichHistorySettings } from 'app/core/utils/richHistoryTypes'; import { RichHistoryQuery } from 'app/types/explore'; import store from '../store'; diff --git a/public/app/core/history/richHistoryLocalStorageUtils.test.ts b/public/app/core/history/richHistoryLocalStorageUtils.test.ts index 29a4b7d79d2..970a00135e3 100644 --- a/public/app/core/history/richHistoryLocalStorageUtils.test.ts +++ b/public/app/core/history/richHistoryLocalStorageUtils.test.ts @@ -1,5 +1,5 @@ import { DataQuery } from '@grafana/data'; -import { SortOrder } from 'app/core/utils/richHistory'; +import { SortOrder } from 'app/core/utils/richHistoryTypes'; import { RichHistoryQuery } from 'app/types/explore'; import { filterAndSortQueries } from './richHistoryLocalStorageUtils'; diff --git a/public/app/core/utils/richHistory.test.ts b/public/app/core/utils/richHistory.test.ts index 0fba9ac1352..ea98b78fdbe 100644 --- a/public/app/core/utils/richHistory.test.ts +++ b/public/app/core/utils/richHistory.test.ts @@ -13,8 +13,8 @@ import { createQueryHeading, deleteAllFromRichHistory, deleteQueryInRichHistory, - SortOrder, } from './richHistory'; +import { SortOrder } from './richHistoryTypes'; const richHistoryStorageMock: RichHistoryStorage = {} as RichHistoryStorage; diff --git a/public/app/core/utils/richHistory.ts b/public/app/core/utils/richHistory.ts index f914e4a22e9..e94929939f4 100644 --- a/public/app/core/utils/richHistory.ts +++ b/public/app/core/utils/richHistory.ts @@ -32,8 +32,6 @@ import { SortOrder, } from './richHistoryTypes'; -export { type RichHistorySearchFilters, type RichHistorySettings, SortOrder }; - /* * Add queries to rich history. Save only queries within the retention period, or that are starred. * Side-effect: store history in local storage diff --git a/public/app/features/alerting/unified/components/permissions/ManagePermissions.tsx b/public/app/features/alerting/unified/components/permissions/ManagePermissions.tsx index 9c15d0f0d5c..33ebf71d59a 100644 --- a/public/app/features/alerting/unified/components/permissions/ManagePermissions.tsx +++ b/public/app/features/alerting/unified/components/permissions/ManagePermissions.tsx @@ -2,7 +2,7 @@ import { ComponentProps, useState } from 'react'; import { Trans, t } from '@grafana/i18n'; import { Button, Drawer } from '@grafana/ui'; -import { Permissions } from 'app/core/components/AccessControl'; +import { Permissions } from 'app/core/components/AccessControl/Permissions'; type ButtonProps = { onClick: () => void }; diff --git a/public/app/features/auth-config/index.ts b/public/app/features/auth-config/index.ts index 69113401661..50599a8fb49 100644 --- a/public/app/features/auth-config/index.ts +++ b/public/app/features/auth-config/index.ts @@ -6,8 +6,6 @@ import { Settings, SettingsSection } from 'app/types/settings'; import { AuthProviderInfo, GetStatusHook, AuthProviderStatus } from './types'; -export * from './types'; - const registeredAuthProviders: AuthProviderInfo[] = []; const authProvidersConfigHooks: Record = {}; diff --git a/public/app/features/auth-config/state/actions.ts b/public/app/features/auth-config/state/actions.ts index cf1cdd8d7f7..bafd7f3c39d 100644 --- a/public/app/features/auth-config/state/actions.ts +++ b/public/app/features/auth-config/state/actions.ts @@ -6,8 +6,8 @@ import { AccessControlAction } from 'app/types/accessControl'; import { Settings, UpdateSettingsQuery } from 'app/types/settings'; import { ThunkResult } from 'app/types/store'; -import { getAuthProviderStatus, getRegisteredAuthProviders, SSOProvider } from '..'; -import { AuthProviderStatus, SettingsError } from '../types'; +import { getAuthProviderStatus, getRegisteredAuthProviders } from '..'; +import { AuthProviderStatus, SettingsError, SSOProvider } from '../types'; import { loadingBegin, diff --git a/public/app/features/browse-dashboards/components/FolderActionsButton.test.tsx b/public/app/features/browse-dashboards/components/FolderActionsButton.test.tsx index 24614e1bd93..2a546571934 100644 --- a/public/app/features/browse-dashboards/components/FolderActionsButton.test.tsx +++ b/public/app/features/browse-dashboards/components/FolderActionsButton.test.tsx @@ -17,7 +17,7 @@ function render(...[ui, options]: Parameters) { } // Mock out the Permissions component for now -jest.mock('app/core/components/AccessControl', () => ({ +jest.mock('app/core/components/AccessControl/Permissions', () => ({ Permissions: () =>
Hello!
, })); diff --git a/public/app/features/browse-dashboards/components/FolderActionsButton.tsx b/public/app/features/browse-dashboards/components/FolderActionsButton.tsx index ec093e3aa69..fcdfd203c0a 100644 --- a/public/app/features/browse-dashboards/components/FolderActionsButton.tsx +++ b/public/app/features/browse-dashboards/components/FolderActionsButton.tsx @@ -4,7 +4,7 @@ import { AppEvents } from '@grafana/data'; import { Trans, t } from '@grafana/i18n'; import { locationService, reportInteraction } from '@grafana/runtime'; import { Button, Drawer, Dropdown, Icon, Menu, MenuItem } from '@grafana/ui'; -import { Permissions } from 'app/core/components/AccessControl'; +import { Permissions } from 'app/core/components/AccessControl/Permissions'; import { appEvents } from 'app/core/core'; import { RepoType } from 'app/features/provisioning/Wizard/types'; import { BulkMoveProvisionedResource } from 'app/features/provisioning/components/BulkActions/BulkMoveProvisionedResource'; diff --git a/public/app/features/connections/components/ConnectionsRedirectNotice/index.ts b/public/app/features/connections/components/ConnectionsRedirectNotice/index.ts deleted file mode 100644 index 450d003a619..00000000000 --- a/public/app/features/connections/components/ConnectionsRedirectNotice/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './ConnectionsRedirectNotice'; diff --git a/public/app/features/connections/pages/AddNewConnectionPage.tsx b/public/app/features/connections/pages/AddNewConnectionPage.tsx index b250b670a3a..e55dc12d799 100644 --- a/public/app/features/connections/pages/AddNewConnectionPage.tsx +++ b/public/app/features/connections/pages/AddNewConnectionPage.tsx @@ -9,7 +9,7 @@ import UpdateAllButton from 'app/features/plugins/admin/components/UpdateAllButt import UpdateAllModal from 'app/features/plugins/admin/components/UpdateAllModal'; import { useGetUpdatable } from 'app/features/plugins/admin/state/hooks'; -import { AddNewConnection } from '../tabs/ConnectData'; +import { AddNewConnection } from '../tabs/ConnectData/ConnectData'; const getStyles = (theme: GrafanaTheme2) => ({ pageContainer: css({ diff --git a/public/app/features/connections/tabs/ConnectData/CardGrid/index.tsx b/public/app/features/connections/tabs/ConnectData/CardGrid/index.tsx deleted file mode 100644 index 8ad53f84835..00000000000 --- a/public/app/features/connections/tabs/ConnectData/CardGrid/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export * from './CardGrid'; diff --git a/public/app/features/connections/tabs/ConnectData/CategoryHeader/index.tsx b/public/app/features/connections/tabs/ConnectData/CategoryHeader/index.tsx deleted file mode 100644 index 715e80b70b5..00000000000 --- a/public/app/features/connections/tabs/ConnectData/CategoryHeader/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export * from './CategoryHeader'; diff --git a/public/app/features/connections/tabs/ConnectData/ConnectData.tsx b/public/app/features/connections/tabs/ConnectData/ConnectData.tsx index 7d75a303cde..81e7d454f43 100644 --- a/public/app/features/connections/tabs/ConnectData/ConnectData.tsx +++ b/public/app/features/connections/tabs/ConnectData/ConnectData.tsx @@ -17,9 +17,9 @@ import { AccessControlAction } from 'app/types/accessControl'; import { ROUTES } from '../../constants'; -import { CardGrid, type CardGridItem } from './CardGrid'; -import { CategoryHeader } from './CategoryHeader'; -import { NoAccessModal } from './NoAccessModal'; +import { CardGrid, type CardGridItem } from './CardGrid/CardGrid'; +import { CategoryHeader } from './CategoryHeader/CategoryHeader'; +import { NoAccessModal } from './NoAccessModal/NoAccessModal'; const getStyles = (theme: GrafanaTheme2) => ({ searchContainer: css({ diff --git a/public/app/features/connections/tabs/ConnectData/NoAccessModal/NoAccessModal.tsx b/public/app/features/connections/tabs/ConnectData/NoAccessModal/NoAccessModal.tsx index 40dab8f3fe8..cf12ea60e39 100644 --- a/public/app/features/connections/tabs/ConnectData/NoAccessModal/NoAccessModal.tsx +++ b/public/app/features/connections/tabs/ConnectData/NoAccessModal/NoAccessModal.tsx @@ -4,7 +4,7 @@ import { GrafanaTheme2 } from '@grafana/data'; import { Trans } from '@grafana/i18n'; import { useStyles2, Modal, Icon, Button, TextLink } from '@grafana/ui'; -import { type CardGridItem } from '../CardGrid'; +import { type CardGridItem } from '../CardGrid/CardGrid'; const getStyles = (theme: GrafanaTheme2) => ({ modal: css({ diff --git a/public/app/features/connections/tabs/ConnectData/NoAccessModal/index.tsx b/public/app/features/connections/tabs/ConnectData/NoAccessModal/index.tsx deleted file mode 100644 index 562cce192d4..00000000000 --- a/public/app/features/connections/tabs/ConnectData/NoAccessModal/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export * from './NoAccessModal'; diff --git a/public/app/features/connections/tabs/ConnectData/Search/index.tsx b/public/app/features/connections/tabs/ConnectData/Search/index.tsx deleted file mode 100644 index addd53308b6..00000000000 --- a/public/app/features/connections/tabs/ConnectData/Search/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export * from './Search'; diff --git a/public/app/features/connections/tabs/ConnectData/index.tsx b/public/app/features/connections/tabs/ConnectData/index.tsx deleted file mode 100644 index 0360f7a6097..00000000000 --- a/public/app/features/connections/tabs/ConnectData/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export * from './ConnectData'; diff --git a/public/app/features/dashboard-scene/settings/PermissionsEditView.tsx b/public/app/features/dashboard-scene/settings/PermissionsEditView.tsx index d438ff9e694..71528deb12d 100644 --- a/public/app/features/dashboard-scene/settings/PermissionsEditView.tsx +++ b/public/app/features/dashboard-scene/settings/PermissionsEditView.tsx @@ -1,6 +1,6 @@ import { PageLayoutType } from '@grafana/data'; import { SceneComponentProps, SceneObjectBase } from '@grafana/scenes'; -import { Permissions } from 'app/core/components/AccessControl'; +import { Permissions } from 'app/core/components/AccessControl/Permissions'; import { Page } from 'app/core/components/Page/Page'; import { contextSrv } from 'app/core/core'; import { AccessControlAction } from 'app/types/accessControl'; diff --git a/public/app/features/dashboard/components/AddLibraryPanelWidget/index.ts b/public/app/features/dashboard/components/AddLibraryPanelWidget/index.ts deleted file mode 100644 index b11f3ac6389..00000000000 --- a/public/app/features/dashboard/components/AddLibraryPanelWidget/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { AddLibraryPanelWidget } from './AddLibraryPanelWidget'; diff --git a/public/app/features/dashboard/components/DashExportModal/index.ts b/public/app/features/dashboard/components/DashExportModal/index.ts deleted file mode 100644 index f9afc4f66da..00000000000 --- a/public/app/features/dashboard/components/DashExportModal/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { DashboardExporter } from './DashboardExporter'; diff --git a/public/app/features/dashboard/components/DashNav/index.ts b/public/app/features/dashboard/components/DashNav/index.ts deleted file mode 100644 index be07fd0d2a3..00000000000 --- a/public/app/features/dashboard/components/DashNav/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -import DashNav from './DashNav'; -export { DashNav }; diff --git a/public/app/features/dashboard/components/DashboardPermissions/AccessControlDashboardPermissions.tsx b/public/app/features/dashboard/components/DashboardPermissions/AccessControlDashboardPermissions.tsx index 479521c91bd..dbc028be848 100644 --- a/public/app/features/dashboard/components/DashboardPermissions/AccessControlDashboardPermissions.tsx +++ b/public/app/features/dashboard/components/DashboardPermissions/AccessControlDashboardPermissions.tsx @@ -1,4 +1,4 @@ -import { Permissions } from 'app/core/components/AccessControl'; +import { Permissions } from 'app/core/components/AccessControl/Permissions'; import { Page } from 'app/core/components/Page/Page'; import { contextSrv } from 'app/core/core'; import { AccessControlAction } from 'app/types/accessControl'; diff --git a/public/app/features/dashboard/components/DashboardRow/index.ts b/public/app/features/dashboard/components/DashboardRow/index.ts deleted file mode 100644 index 3f71e03c80c..00000000000 --- a/public/app/features/dashboard/components/DashboardRow/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { DashboardRow } from './DashboardRow'; diff --git a/public/app/features/dashboard/components/DashboardSettings/index.ts b/public/app/features/dashboard/components/DashboardSettings/index.ts deleted file mode 100644 index 92fde590504..00000000000 --- a/public/app/features/dashboard/components/DashboardSettings/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { DashboardSettings } from './DashboardSettings'; diff --git a/public/app/features/dashboard/components/ShareModal/ShareExport.tsx b/public/app/features/dashboard/components/ShareModal/ShareExport.tsx index f68f5fcc416..a9ee77c8929 100644 --- a/public/app/features/dashboard/components/ShareModal/ShareExport.tsx +++ b/public/app/features/dashboard/components/ShareModal/ShareExport.tsx @@ -4,7 +4,7 @@ import { PureComponent } from 'react'; import { Trans, t } from '@grafana/i18n'; import { Button, Field, Modal, Switch } from '@grafana/ui'; import { appEvents } from 'app/core/core'; -import { DashboardExporter } from 'app/features/dashboard/components/DashExportModal'; +import { DashboardExporter } from 'app/features/dashboard/components/DashExportModal/DashboardExporter'; import { makeExportableV1 } from 'app/features/dashboard-scene/scene/export/exporters'; import { DashboardInteractions } from 'app/features/dashboard-scene/utils/interactions'; import { ShowModalReactEvent } from 'app/types/events'; diff --git a/public/app/features/dashboard/containers/DashboardPage.tsx b/public/app/features/dashboard/containers/DashboardPage.tsx index 21f55b6d8e0..8733fe0311d 100644 --- a/public/app/features/dashboard/containers/DashboardPage.tsx +++ b/public/app/features/dashboard/containers/DashboardPage.tsx @@ -23,10 +23,10 @@ import { StoreState } from 'app/types/store'; import { cancelVariables, templateVarsChangedInUrl } from '../../variables/state/actions'; import { findTemplateVarChanges } from '../../variables/utils'; -import { DashNav } from '../components/DashNav'; +import DashNav from '../components/DashNav/DashNav'; import { DashboardLoading } from '../components/DashboardLoading/DashboardLoading'; import { DashboardPrompt } from '../components/DashboardPrompt/DashboardPrompt'; -import { DashboardSettings } from '../components/DashboardSettings'; +import { DashboardSettings } from '../components/DashboardSettings/DashboardSettings'; import { PanelInspector } from '../components/Inspector/PanelInspector'; import { PanelEditor } from '../components/PanelEditor/PanelEditor'; import { ShareModal } from '../components/ShareModal/ShareModal'; diff --git a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx index 534d5ad64ac..879ba64939a 100644 --- a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx @@ -11,8 +11,8 @@ import { contextSrv } from 'app/core/services/context_srv'; import { VariablesChanged } from 'app/features/variables/types'; import { DashboardPanelsChangedEvent } from 'app/types/events'; -import { AddLibraryPanelWidget } from '../components/AddLibraryPanelWidget'; -import { DashboardRow } from '../components/DashboardRow'; +import { AddLibraryPanelWidget } from '../components/AddLibraryPanelWidget/AddLibraryPanelWidget'; +import { DashboardRow } from '../components/DashboardRow/DashboardRow'; import { DashboardModel } from '../state/DashboardModel'; import { GridPos, PanelModel } from '../state/PanelModel'; diff --git a/public/app/features/explore/NodeGraph/NodeGraphContainer.tsx b/public/app/features/explore/NodeGraph/NodeGraphContainer.tsx index 5c73e85776f..9f43ee738b5 100644 --- a/public/app/features/explore/NodeGraph/NodeGraphContainer.tsx +++ b/public/app/features/explore/NodeGraph/NodeGraphContainer.tsx @@ -10,7 +10,7 @@ import { useStyles2, useTheme2, PanelChrome } from '@grafana/ui'; import { layeredLayoutThreshold } from 'app/plugins/panel/nodeGraph/NodeGraph'; import { StoreState } from 'app/types/store'; -import { NodeGraph } from '../../../plugins/panel/nodeGraph'; +import { NodeGraph } from '../../../plugins/panel/nodeGraph/NodeGraph'; import { LayoutAlgorithm } from '../../../plugins/panel/nodeGraph/panelcfg.gen'; import { useCategorizeFrames } from '../../../plugins/panel/nodeGraph/useCategorizeFrames'; import { useLinks } from '../utils/links'; diff --git a/public/app/features/explore/RichHistory/RichHistory.test.tsx b/public/app/features/explore/RichHistory/RichHistory.test.tsx index dce1e5381d7..260fe33022b 100644 --- a/public/app/features/explore/RichHistory/RichHistory.test.tsx +++ b/public/app/features/explore/RichHistory/RichHistory.test.tsx @@ -1,7 +1,7 @@ import { render, screen } from '@testing-library/react'; import { TestProvider } from 'test/helpers/TestProvider'; -import { SortOrder } from 'app/core/utils/richHistory'; +import { SortOrder } from 'app/core/utils/richHistoryTypes'; import { Tabs } from '../QueriesDrawer/QueriesDrawerContext'; diff --git a/public/app/features/explore/RichHistory/RichHistory.tsx b/public/app/features/explore/RichHistory/RichHistory.tsx index b4fdc2b28e6..864add03e59 100644 --- a/public/app/features/explore/RichHistory/RichHistory.tsx +++ b/public/app/features/explore/RichHistory/RichHistory.tsx @@ -5,12 +5,8 @@ import { SelectableValue } from '@grafana/data'; import { selectors } from '@grafana/e2e-selectors'; import { t } from '@grafana/i18n'; import { TabbedContainer, TabConfig } from '@grafana/ui'; -import { - SortOrder, - RichHistorySearchFilters, - RichHistorySettings, - createDatasourcesList, -} from 'app/core/utils/richHistory'; +import { createDatasourcesList } from 'app/core/utils/richHistory'; +import { SortOrder, RichHistorySearchFilters, RichHistorySettings } from 'app/core/utils/richHistoryTypes'; import { RichHistoryQuery } from 'app/types/explore'; import { useSelector } from 'app/types/store'; diff --git a/public/app/features/explore/RichHistory/RichHistoryContainer.test.tsx b/public/app/features/explore/RichHistory/RichHistoryContainer.test.tsx index e721abb7a88..86999a87d2b 100644 --- a/public/app/features/explore/RichHistory/RichHistoryContainer.test.tsx +++ b/public/app/features/explore/RichHistory/RichHistoryContainer.test.tsx @@ -1,7 +1,7 @@ import { render } from '@testing-library/react'; import { TestProvider } from 'test/helpers/TestProvider'; -import { SortOrder } from 'app/core/utils/richHistory'; +import { SortOrder } from 'app/core/utils/richHistoryTypes'; import { RichHistoryContainer, Props } from './RichHistoryContainer'; diff --git a/public/app/features/explore/RichHistory/RichHistoryQueriesTab.tsx b/public/app/features/explore/RichHistory/RichHistoryQueriesTab.tsx index 3cddb6a605a..919077a0cb2 100644 --- a/public/app/features/explore/RichHistory/RichHistoryQueriesTab.tsx +++ b/public/app/features/explore/RichHistory/RichHistoryQueriesTab.tsx @@ -6,13 +6,8 @@ import { DataSourceApi, GrafanaTheme2, SelectableValue } from '@grafana/data'; import { Trans, t } from '@grafana/i18n'; import { config, getDataSourceSrv } from '@grafana/runtime'; import { Button, FilterInput, MultiSelect, RangeSlider, Select, useStyles2 } from '@grafana/ui'; -import { - mapNumbertoTimeInSlider, - mapQueriesToHeadings, - SortOrder, - RichHistorySearchFilters, - RichHistorySettings, -} from 'app/core/utils/richHistory'; +import { mapNumbertoTimeInSlider, mapQueriesToHeadings } from 'app/core/utils/richHistory'; +import { SortOrder, RichHistorySearchFilters, RichHistorySettings } from 'app/core/utils/richHistoryTypes'; import { RichHistoryQuery } from 'app/types/explore'; import { getSortOrderOptions } from './RichHistory'; diff --git a/public/app/features/explore/RichHistory/RichHistoryStarredTab.test.tsx b/public/app/features/explore/RichHistory/RichHistoryStarredTab.test.tsx index 3da7bfec73f..a8dfd642035 100644 --- a/public/app/features/explore/RichHistory/RichHistoryStarredTab.test.tsx +++ b/public/app/features/explore/RichHistory/RichHistoryStarredTab.test.tsx @@ -1,7 +1,7 @@ import { fireEvent, render, screen } from '@testing-library/react'; import { TestProvider } from 'test/helpers/TestProvider'; -import { SortOrder } from 'app/core/utils/richHistory'; +import { SortOrder } from 'app/core/utils/richHistoryTypes'; import { RichHistoryStarredTab, RichHistoryStarredTabProps } from './RichHistoryStarredTab'; diff --git a/public/app/features/explore/RichHistory/RichHistoryStarredTab.tsx b/public/app/features/explore/RichHistory/RichHistoryStarredTab.tsx index 51c8f36851b..7a5e06e8ebc 100644 --- a/public/app/features/explore/RichHistory/RichHistoryStarredTab.tsx +++ b/public/app/features/explore/RichHistory/RichHistoryStarredTab.tsx @@ -6,12 +6,8 @@ import { DataSourceApi, GrafanaTheme2, SelectableValue } from '@grafana/data'; import { Trans, t } from '@grafana/i18n'; import { config, getDataSourceSrv } from '@grafana/runtime'; import { useStyles2, Select, MultiSelect, FilterInput, Button } from '@grafana/ui'; -import { - createDatasourcesList, - SortOrder, - RichHistorySearchFilters, - RichHistorySettings, -} from 'app/core/utils/richHistory'; +import { createDatasourcesList } from 'app/core/utils/richHistory'; +import { SortOrder, RichHistorySearchFilters, RichHistorySettings } from 'app/core/utils/richHistoryTypes'; import { RichHistoryQuery } from 'app/types/explore'; import { useSelector } from 'app/types/store'; diff --git a/public/app/features/explore/TraceView/TraceView.tsx b/public/app/features/explore/TraceView/TraceView.tsx index b9d185aab75..d9fe8698444 100644 --- a/public/app/features/explore/TraceView/TraceView.tsx +++ b/public/app/features/explore/TraceView/TraceView.tsx @@ -30,8 +30,8 @@ import { useDispatch, useSelector } from 'app/types/store'; import { changePanelState } from '../state/explorePane'; import memoizedTraceCriticalPath from './components/CriticalPath'; -import { TracePageHeader } from './components/TracePageHeader'; import SpanGraph from './components/TracePageHeader/SpanGraph'; +import { TracePageHeader } from './components/TracePageHeader/TracePageHeader'; import TraceTimelineViewer from './components/TraceTimelineViewer'; import { TraceFlameGraphs } from './components/TraceTimelineViewer/SpanDetail'; import { SpanBarOptionsData } from './components/settings/SpanBarSettings'; diff --git a/public/app/features/explore/TraceView/components/TracePageHeader/index.tsx b/public/app/features/explore/TraceView/components/TracePageHeader/index.tsx deleted file mode 100644 index 4f828881708..00000000000 --- a/public/app/features/explore/TraceView/components/TracePageHeader/index.tsx +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) 2017 Uber Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -export { TracePageHeader } from './TracePageHeader'; diff --git a/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanBarRow.tsx b/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanBarRow.tsx index 48891aae1cd..778743894cb 100644 --- a/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanBarRow.tsx +++ b/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanBarRow.tsx @@ -25,13 +25,14 @@ import { SpanBarOptions } from '../settings/SpanBarSettings'; import TNil from '../types/TNil'; import { SpanLinkFunc } from '../types/links'; import { TraceSpan, CriticalPathSection } from '../types/trace'; +import { formatDuration } from '../utils/date'; import SpanBar from './SpanBar'; import { SpanLinksMenu } from './SpanLinks'; import SpanTreeOffset from './SpanTreeOffset'; import Ticks from './Ticks'; import TimelineRow from './TimelineRow'; -import { formatDuration, ViewedBoundsFunctionType } from './utils'; +import { ViewedBoundsFunctionType } from './utils'; const spanBarClassName = 'spanBar'; const spanBarLabelClassName = 'spanBarLabel'; diff --git a/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/AccordianLogs.tsx b/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/AccordianLogs.tsx index b708b7f3ec8..efb36f26948 100644 --- a/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/AccordianLogs.tsx +++ b/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/AccordianLogs.tsx @@ -21,7 +21,7 @@ import { Trans } from '@grafana/i18n'; import { Counter, Icon, useStyles2 } from '@grafana/ui'; import { autoColor } from '../../Theme'; -import { formatDuration } from '../utils'; +import { formatDuration } from '../../utils/date'; import AccordianKeyValues from './AccordianKeyValues'; diff --git a/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/index.test.tsx b/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/index.test.tsx index f65d347c241..cad24717242 100644 --- a/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/index.test.tsx +++ b/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/index.test.tsx @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -jest.mock('../utils'); +jest.mock('../../utils/date'); import { act, render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; @@ -25,7 +25,7 @@ import { pyroscopeProfileIdTagKey } from '../../../createSpanLink'; import traceGenerator from '../../demo/trace-generators'; import transformTraceData from '../../model/transform-trace-data'; import { TraceSpanReference } from '../../types/trace'; -import { formatDuration } from '../utils'; +import { formatDuration } from '../../utils/date'; import DetailState from './DetailState'; diff --git a/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/index.tsx b/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/index.tsx index 19ddc677310..85a15233995 100644 --- a/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/index.tsx +++ b/public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/index.tsx @@ -41,7 +41,7 @@ import LabeledList from '../../common/LabeledList'; import { KIND, LIBRARY_NAME, LIBRARY_VERSION, STATUS, STATUS_MESSAGE, TRACE_STATE } from '../../constants/span'; import { SpanLinkFunc } from '../../types/links'; import { TraceProcess, TraceSpan, TraceSpanReference } from '../../types/trace'; -import { formatDuration } from '../utils'; +import { formatDuration } from '../../utils/date'; import AccordianKeyValues from './AccordianKeyValues'; import AccordianLogs from './AccordianLogs'; diff --git a/public/app/features/explore/TraceView/components/TraceTimelineViewer/Ticks.tsx b/public/app/features/explore/TraceView/components/TraceTimelineViewer/Ticks.tsx index 81c255bcba6..99df256f5c0 100644 --- a/public/app/features/explore/TraceView/components/TraceTimelineViewer/Ticks.tsx +++ b/public/app/features/explore/TraceView/components/TraceTimelineViewer/Ticks.tsx @@ -21,8 +21,7 @@ import { useStyles2 } from '@grafana/ui'; import { autoColor } from '../Theme'; import TNil from '../types/TNil'; - -import { formatDuration } from './utils'; +import { formatDuration } from '../utils/date'; const getStyles = (theme: GrafanaTheme2) => ({ Ticks: css({ diff --git a/public/app/features/explore/TraceView/components/TraceTimelineViewer/TimelineHeaderRow/index.tsx b/public/app/features/explore/TraceView/components/TraceTimelineViewer/TimelineHeaderRow/index.tsx deleted file mode 100644 index 5d134f5e9ac..00000000000 --- a/public/app/features/explore/TraceView/components/TraceTimelineViewer/TimelineHeaderRow/index.tsx +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) 2017 Uber Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -export { default } from './TimelineHeaderRow'; diff --git a/public/app/features/explore/TraceView/components/TraceTimelineViewer/index.tsx b/public/app/features/explore/TraceView/components/TraceTimelineViewer/index.tsx index ca9e3d06a40..c4aa16b18f8 100644 --- a/public/app/features/explore/TraceView/components/TraceTimelineViewer/index.tsx +++ b/public/app/features/explore/TraceView/components/TraceTimelineViewer/index.tsx @@ -29,7 +29,7 @@ import { SpanLinkFunc } from '../types/links'; import { TraceSpan, Trace, TraceSpanReference, CriticalPathSection } from '../types/trace'; import { TraceFlameGraphs } from './SpanDetail'; -import TimelineHeaderRow from './TimelineHeaderRow'; +import TimelineHeaderRow from './TimelineHeaderRow/TimelineHeaderRow'; import VirtualizedTraceView from './VirtualizedTraceView'; import { TUpdateViewRangeTimeFunction, ViewRange, ViewRangeTimeUpdate } from './types'; diff --git a/public/app/features/explore/TraceView/components/TraceTimelineViewer/utils.tsx b/public/app/features/explore/TraceView/components/TraceTimelineViewer/utils.tsx index 3a03cbffdf6..a87a1f16db9 100644 --- a/public/app/features/explore/TraceView/components/TraceTimelineViewer/utils.tsx +++ b/public/app/features/explore/TraceView/components/TraceTimelineViewer/utils.tsx @@ -122,5 +122,3 @@ export const isKindClient = (span: TraceSpan): Boolean => { } return span.tags.some(({ key, value }) => key === 'span.kind' && value === 'client'); }; - -export { formatDuration } from '../utils/date'; diff --git a/public/app/features/explore/TraceView/components/model/ddg/types.tsx b/public/app/features/explore/TraceView/components/model/ddg/types.tsx index 6705c4ea0c3..1c28b3ab00b 100644 --- a/public/app/features/explore/TraceView/components/model/ddg/types.tsx +++ b/public/app/features/explore/TraceView/components/model/ddg/types.tsx @@ -14,8 +14,6 @@ import PathElem from './PathElem'; -export { default as PathElem } from './PathElem'; - export type TDdgService = { name: string; operations: Map; diff --git a/public/app/features/explore/TraceView/components/utils/DraggableManager/demo/index.tsx b/public/app/features/explore/TraceView/components/utils/DraggableManager/demo/index.tsx deleted file mode 100644 index 543358925fd..00000000000 --- a/public/app/features/explore/TraceView/components/utils/DraggableManager/demo/index.tsx +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) 2017 Uber Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -export { default } from './DraggableManagerDemo'; diff --git a/public/app/features/plugins/admin/components/GetStartedWithPlugin/index.ts b/public/app/features/plugins/admin/components/GetStartedWithPlugin/index.ts deleted file mode 100644 index d2f630c5d9e..00000000000 --- a/public/app/features/plugins/admin/components/GetStartedWithPlugin/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { GetStartedWithPlugin } from './GetStartedWithPlugin'; diff --git a/public/app/features/plugins/admin/components/PluginActions.tsx b/public/app/features/plugins/admin/components/PluginActions.tsx index d3e7f4a675c..324e7299955 100644 --- a/public/app/features/plugins/admin/components/PluginActions.tsx +++ b/public/app/features/plugins/admin/components/PluginActions.tsx @@ -5,7 +5,7 @@ import { GrafanaTheme2, PluginErrorCode } from '@grafana/data'; import { Trans } from '@grafana/i18n'; import { Icon, Stack, useStyles2 } from '@grafana/ui'; -import { GetStartedWithPlugin } from '../components/GetStartedWithPlugin'; +import { GetStartedWithPlugin } from '../components/GetStartedWithPlugin/GetStartedWithPlugin'; import { InstallControlsButton } from '../components/InstallControls/InstallControlsButton'; import { getLatestCompatibleVersion, diff --git a/public/app/features/serviceaccounts/ServiceAccountPermissions.tsx b/public/app/features/serviceaccounts/ServiceAccountPermissions.tsx index 79fc21cf82a..ec03909e2cd 100644 --- a/public/app/features/serviceaccounts/ServiceAccountPermissions.tsx +++ b/public/app/features/serviceaccounts/ServiceAccountPermissions.tsx @@ -1,4 +1,4 @@ -import { Permissions } from 'app/core/components/AccessControl'; +import { Permissions } from 'app/core/components/AccessControl/Permissions'; import { contextSrv } from 'app/core/services/context_srv'; import { AccessControlAction } from 'app/types/accessControl'; import { ServiceAccountDTO } from 'app/types/serviceaccount'; diff --git a/public/app/features/teams/TeamPermissions.tsx b/public/app/features/teams/TeamPermissions.tsx index 2afd446913d..22c51d1cce4 100644 --- a/public/app/features/teams/TeamPermissions.tsx +++ b/public/app/features/teams/TeamPermissions.tsx @@ -1,4 +1,4 @@ -import { Permissions } from 'app/core/components/AccessControl'; +import { Permissions } from 'app/core/components/AccessControl/Permissions'; import { contextSrv } from 'app/core/services/context_srv'; import { AccessControlAction } from 'app/types/accessControl'; import { Team } from 'app/types/teams'; diff --git a/public/app/features/variables/constant/adapter.ts b/public/app/features/variables/constant/adapter.ts index 17249031470..aa00b222a78 100644 --- a/public/app/features/variables/constant/adapter.ts +++ b/public/app/features/variables/constant/adapter.ts @@ -4,7 +4,7 @@ import { ConstantVariableModel } from '@grafana/data'; import { dispatch } from '../../../store/store'; import { VariableAdapter } from '../adapters'; -import { optionPickerFactory } from '../pickers'; +import { optionPickerFactory } from '../pickers/OptionsPicker/OptionsPicker'; import { setOptionAsCurrent, setOptionFromUrl } from '../state/actions'; import { toKeyedVariableIdentifier } from '../utils'; diff --git a/public/app/features/variables/custom/adapter.ts b/public/app/features/variables/custom/adapter.ts index 99090799f86..8fa94b179b0 100644 --- a/public/app/features/variables/custom/adapter.ts +++ b/public/app/features/variables/custom/adapter.ts @@ -6,7 +6,7 @@ import { t } from '@grafana/i18n'; import { dispatch } from '../../../store/store'; import { VariableAdapter } from '../adapters'; import { ALL_VARIABLE_TEXT } from '../constants'; -import { optionPickerFactory } from '../pickers'; +import { optionPickerFactory } from '../pickers/OptionsPicker/OptionsPicker'; import { setOptionAsCurrent, setOptionFromUrl } from '../state/actions'; import { containsVariable, isAllVariable, toKeyedVariableIdentifier } from '../utils'; diff --git a/public/app/features/variables/datasource/adapter.ts b/public/app/features/variables/datasource/adapter.ts index 4bca274ce96..52cf898f257 100644 --- a/public/app/features/variables/datasource/adapter.ts +++ b/public/app/features/variables/datasource/adapter.ts @@ -5,7 +5,7 @@ import { DataSourceVariableModel } from '@grafana/data'; import { dispatch } from '../../../store/store'; import { VariableAdapter } from '../adapters'; import { ALL_VARIABLE_TEXT } from '../constants'; -import { optionPickerFactory } from '../pickers'; +import { optionPickerFactory } from '../pickers/OptionsPicker/OptionsPicker'; import { setOptionAsCurrent, setOptionFromUrl } from '../state/actions'; import { containsVariable, isAllVariable, toKeyedVariableIdentifier } from '../utils'; diff --git a/public/app/features/variables/interval/adapter.ts b/public/app/features/variables/interval/adapter.ts index 68c77a5745c..71e27689134 100644 --- a/public/app/features/variables/interval/adapter.ts +++ b/public/app/features/variables/interval/adapter.ts @@ -5,7 +5,7 @@ import { t } from '@grafana/i18n'; import { dispatch } from '../../../store/store'; import { VariableAdapter } from '../adapters'; -import { optionPickerFactory } from '../pickers'; +import { optionPickerFactory } from '../pickers/OptionsPicker/OptionsPicker'; import { setOptionAsCurrent, setOptionFromUrl } from '../state/actions'; import { toKeyedVariableIdentifier } from '../utils'; diff --git a/public/app/features/variables/pickers/index.ts b/public/app/features/variables/pickers/index.ts deleted file mode 100644 index 2cd6110e303..00000000000 --- a/public/app/features/variables/pickers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { optionPickerFactory } from './OptionsPicker/OptionsPicker'; diff --git a/public/app/features/variables/query/adapter.ts b/public/app/features/variables/query/adapter.ts index c330cc52c5d..1233500d58d 100644 --- a/public/app/features/variables/query/adapter.ts +++ b/public/app/features/variables/query/adapter.ts @@ -6,7 +6,7 @@ import { t } from '@grafana/i18n'; import { dispatch } from '../../../store/store'; import { VariableAdapter } from '../adapters'; import { ALL_VARIABLE_TEXT } from '../constants'; -import { optionPickerFactory } from '../pickers'; +import { optionPickerFactory } from '../pickers/OptionsPicker/OptionsPicker'; import { setOptionAsCurrent, setOptionFromUrl } from '../state/actions'; import { containsVariable, isAllVariable, toKeyedVariableIdentifier } from '../utils'; diff --git a/public/app/plugins/datasource/azuremonitor/components/ArgQueryEditor/index.tsx b/public/app/plugins/datasource/azuremonitor/components/ArgQueryEditor/index.tsx deleted file mode 100644 index 9f6ff9eebc8..00000000000 --- a/public/app/plugins/datasource/azuremonitor/components/ArgQueryEditor/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { default } from './ArgQueryEditor'; diff --git a/public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/LogsQueryEditor.tsx b/public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/LogsQueryEditor.tsx index 4a4e9a9cea0..00125f293b7 100644 --- a/public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/LogsQueryEditor.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/LogsQueryEditor.tsx @@ -13,7 +13,7 @@ import { AzureLogAnalyticsMetadataTable } from '../../types/logAnalyticsMetadata import { AzureMonitorQuery, ResultFormat } from '../../types/query'; import { AzureMonitorErrorish, AzureMonitorOption, EngineSchema } from '../../types/types'; import { LogsQueryBuilder } from '../LogsQueryBuilder/LogsQueryBuilder'; -import ResourceField from '../ResourceField'; +import ResourceField from '../ResourceField/ResourceField'; import { ResourceRow, ResourceRowGroup, ResourceRowType } from '../ResourcePicker/types'; import { parseResourceDetails } from '../ResourcePicker/utils'; import FormatAsField from '../shared/FormatAsField'; diff --git a/public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/index.tsx b/public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/index.tsx deleted file mode 100644 index ea14e635722..00000000000 --- a/public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { default } from './LogsQueryEditor'; diff --git a/public/app/plugins/datasource/azuremonitor/components/MetricsQueryEditor/MetricsQueryEditor.tsx b/public/app/plugins/datasource/azuremonitor/components/MetricsQueryEditor/MetricsQueryEditor.tsx index 04b046d31e4..3490908f4c5 100644 --- a/public/app/plugins/datasource/azuremonitor/components/MetricsQueryEditor/MetricsQueryEditor.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/MetricsQueryEditor/MetricsQueryEditor.tsx @@ -6,7 +6,7 @@ import type Datasource from '../../datasource'; import { selectors } from '../../e2e/selectors'; import { AzureMonitorQuery, AzureMonitorResource } from '../../types/query'; import { AzureMonitorOption, AzureMonitorErrorish } from '../../types/types'; -import ResourceField from '../ResourceField'; +import ResourceField from '../ResourceField/ResourceField'; import { ResourceRow, ResourceRowGroup, ResourceRowType } from '../ResourcePicker/types'; import { parseResourceDetails } from '../ResourcePicker/utils'; diff --git a/public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx b/public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx index 54c1bf3dea8..39968c166b5 100644 --- a/public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx @@ -12,11 +12,11 @@ import { selectors } from '../../e2e/selectors'; import { AzureMonitorQuery, AzureQueryType } from '../../types/query'; import { AzureMonitorDataSourceJsonData, AzureMonitorErrorish, AzureMonitorOption } from '../../types/types'; import useLastError from '../../utils/useLastError'; -import ArgQueryEditor from '../ArgQueryEditor'; -import LogsQueryEditor from '../LogsQueryEditor'; +import ArgQueryEditor from '../ArgQueryEditor/ArgQueryEditor'; import { AzureCheatSheetModal } from '../LogsQueryEditor/AzureCheatSheetModal'; +import LogsQueryEditor from '../LogsQueryEditor/LogsQueryEditor'; import NewMetricsQueryEditor from '../MetricsQueryEditor/MetricsQueryEditor'; -import TracesQueryEditor from '../TracesQueryEditor'; +import TracesQueryEditor from '../TracesQueryEditor/TracesQueryEditor'; import { QueryHeader } from './QueryHeader'; import usePreparedQuery from './usePreparedQuery'; diff --git a/public/app/plugins/datasource/azuremonitor/components/QueryEditor/index.tsx b/public/app/plugins/datasource/azuremonitor/components/QueryEditor/index.tsx deleted file mode 100644 index 8525dd4321f..00000000000 --- a/public/app/plugins/datasource/azuremonitor/components/QueryEditor/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { default } from './QueryEditor'; diff --git a/public/app/plugins/datasource/azuremonitor/components/ResourceField/ResourceField.tsx b/public/app/plugins/datasource/azuremonitor/components/ResourceField/ResourceField.tsx index 80849e09619..35af5ad31f6 100644 --- a/public/app/plugins/datasource/azuremonitor/components/ResourceField/ResourceField.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/ResourceField/ResourceField.tsx @@ -10,7 +10,7 @@ import { selectors } from '../../e2e/selectors'; import { ResourcePickerQueryType } from '../../resourcePicker/resourcePickerData'; import { AzureMonitorResource } from '../../types/query'; import { AzureQueryEditorFieldProps } from '../../types/types'; -import ResourcePicker from '../ResourcePicker'; +import ResourcePicker from '../ResourcePicker/ResourcePicker'; import getStyles from '../ResourcePicker/styles'; import { ResourceRow, ResourceRowGroup, ResourceRowType } from '../ResourcePicker/types'; import { parseMultipleResourceDetails, setResources } from '../ResourcePicker/utils'; diff --git a/public/app/plugins/datasource/azuremonitor/components/ResourceField/index.tsx b/public/app/plugins/datasource/azuremonitor/components/ResourceField/index.tsx deleted file mode 100644 index 5e5d95b4814..00000000000 --- a/public/app/plugins/datasource/azuremonitor/components/ResourceField/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { default } from './ResourceField'; diff --git a/public/app/plugins/datasource/azuremonitor/components/ResourcePicker/ResourcePicker.test.tsx b/public/app/plugins/datasource/azuremonitor/components/ResourcePicker/ResourcePicker.test.tsx index 476a932e5cf..72005a4f8aa 100644 --- a/public/app/plugins/datasource/azuremonitor/components/ResourcePicker/ResourcePicker.test.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/ResourcePicker/ResourcePicker.test.tsx @@ -18,11 +18,9 @@ import { import { DeepPartial } from '../../mocks/utils'; import ResourcePickerData, { ResourcePickerQueryType } from '../../resourcePicker/resourcePickerData'; -import { RECENT_RESOURCES_KEY } from './ResourcePicker'; +import ResourcePicker, { RECENT_RESOURCES_KEY } from './ResourcePicker'; import { ResourceRowGroup, ResourceRowType } from './types'; -import ResourcePicker from '.'; - jest.mock('@grafana/runtime', () => ({ ...jest.requireActual('@grafana/runtime'), getTemplateSrv: () => ({ diff --git a/public/app/plugins/datasource/azuremonitor/components/ResourcePicker/index.tsx b/public/app/plugins/datasource/azuremonitor/components/ResourcePicker/index.tsx deleted file mode 100644 index 92a12f4ecde..00000000000 --- a/public/app/plugins/datasource/azuremonitor/components/ResourcePicker/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { default } from './ResourcePicker'; diff --git a/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/TracesQueryEditor.tsx b/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/TracesQueryEditor.tsx index 405674a1665..46729f22dda 100644 --- a/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/TracesQueryEditor.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/TracesQueryEditor.tsx @@ -12,7 +12,7 @@ import { selectors } from '../../e2e/selectors'; import { AzureMonitorQuery, AzureQueryType, ResultFormat } from '../../types/query'; import { AzureMonitorErrorish, AzureMonitorOption } from '../../types/types'; import AdvancedResourcePicker from '../LogsQueryEditor/AdvancedResourcePicker'; -import ResourceField from '../ResourceField'; +import ResourceField from '../ResourceField/ResourceField'; import { ResourceRow, ResourceRowGroup, ResourceRowType } from '../ResourcePicker/types'; import { parseResourceDetails } from '../ResourcePicker/utils'; import { Field } from '../shared/Field'; diff --git a/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/index.tsx b/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/index.tsx deleted file mode 100644 index a052a53085f..00000000000 --- a/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { default } from './TracesQueryEditor'; diff --git a/public/app/plugins/datasource/azuremonitor/components/VariableEditor/VariableEditor.tsx b/public/app/plugins/datasource/azuremonitor/components/VariableEditor/VariableEditor.tsx index ce722187c7d..75ced4bacd0 100644 --- a/public/app/plugins/datasource/azuremonitor/components/VariableEditor/VariableEditor.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/VariableEditor/VariableEditor.tsx @@ -14,8 +14,8 @@ import { migrateQuery } from '../../grafanaTemplateVariableFns'; import { AzureMonitorQuery, AzureQueryType } from '../../types/query'; import { AzureMonitorOption } from '../../types/types'; import useLastError from '../../utils/useLastError'; -import ArgQueryEditor from '../ArgQueryEditor'; -import LogsQueryEditor from '../LogsQueryEditor'; +import ArgQueryEditor from '../ArgQueryEditor/ArgQueryEditor'; +import LogsQueryEditor from '../LogsQueryEditor/LogsQueryEditor'; import { parseResourceURI } from '../ResourcePicker/utils'; import GrafanaTemplateVariableFnInput from './GrafanaTemplateVariableFn'; diff --git a/public/app/plugins/datasource/azuremonitor/module.ts b/public/app/plugins/datasource/azuremonitor/module.ts index b723a0bd50c..5528db67d56 100644 --- a/public/app/plugins/datasource/azuremonitor/module.ts +++ b/public/app/plugins/datasource/azuremonitor/module.ts @@ -3,7 +3,7 @@ import { initPluginTranslations } from '@grafana/i18n'; import { getAppEvents } from '@grafana/runtime'; import { ConfigEditor } from './components/ConfigEditor/ConfigEditor'; -import AzureMonitorQueryEditor from './components/QueryEditor'; +import AzureMonitorQueryEditor from './components/QueryEditor/QueryEditor'; import Datasource from './datasource'; import pluginJson from './plugin.json'; import { trackAzureMonitorDashboardLoaded } from './tracking'; diff --git a/public/app/plugins/datasource/cloudwatch/components/QueryEditor/MetricsQueryEditor/MetricsQueryEditor.tsx b/public/app/plugins/datasource/cloudwatch/components/QueryEditor/MetricsQueryEditor/MetricsQueryEditor.tsx index bbb7d1272b1..de736e380bd 100644 --- a/public/app/plugins/datasource/cloudwatch/components/QueryEditor/MetricsQueryEditor/MetricsQueryEditor.tsx +++ b/public/app/plugins/datasource/cloudwatch/components/QueryEditor/MetricsQueryEditor/MetricsQueryEditor.tsx @@ -17,11 +17,11 @@ import { MetricQueryType, MetricStat, } from '../../../types'; -import { MetricStatEditor } from '../../shared/MetricStatEditor'; +import { MetricStatEditor } from '../../shared/MetricStatEditor/MetricStatEditor'; import { DynamicLabelsField } from './DynamicLabelsField'; import { MathExpressionQueryField } from './MathExpressionQueryField'; -import { SQLBuilderEditor } from './SQLBuilderEditor'; +import { SQLBuilderEditor } from './SQLBuilderEditor/SQLBuilderEditor'; import { SQLCodeEditor } from './SQLCodeEditor'; export interface Props extends QueryEditorProps { diff --git a/public/app/plugins/datasource/cloudwatch/components/QueryEditor/MetricsQueryEditor/SQLBuilderEditor/index.tsx b/public/app/plugins/datasource/cloudwatch/components/QueryEditor/MetricsQueryEditor/SQLBuilderEditor/index.tsx deleted file mode 100644 index ab367d6e80e..00000000000 --- a/public/app/plugins/datasource/cloudwatch/components/QueryEditor/MetricsQueryEditor/SQLBuilderEditor/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { SQLBuilderEditor } from './SQLBuilderEditor'; diff --git a/public/app/plugins/datasource/cloudwatch/components/shared/MetricStatEditor/index.ts b/public/app/plugins/datasource/cloudwatch/components/shared/MetricStatEditor/index.ts deleted file mode 100644 index b3014f87300..00000000000 --- a/public/app/plugins/datasource/cloudwatch/components/shared/MetricStatEditor/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { MetricStatEditor } from './MetricStatEditor'; diff --git a/public/app/plugins/panel/nodeGraph/index.ts b/public/app/plugins/panel/nodeGraph/index.ts deleted file mode 100644 index ab8f952ff37..00000000000 --- a/public/app/plugins/panel/nodeGraph/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { NodeGraph } from './NodeGraph'; diff --git a/public/app/routes/routes.tsx b/public/app/routes/routes.tsx index 2448eda99e1..ae6452a1d99 100644 --- a/public/app/routes/routes.tsx +++ b/public/app/routes/routes.tsx @@ -9,7 +9,7 @@ import { contextSrv } from 'app/core/services/context_srv'; import LdapPage from 'app/features/admin/ldap/LdapPage'; import { getAlertingRoutes } from 'app/features/alerting/routes'; import { isAdmin, isLocalDevEnv, isOpenSourceEdition } from 'app/features/alerting/unified/utils/misc'; -import { ConnectionsRedirectNotice } from 'app/features/connections/components/ConnectionsRedirectNotice'; +import { ConnectionsRedirectNotice } from 'app/features/connections/components/ConnectionsRedirectNotice/ConnectionsRedirectNotice'; import { ROUTES as CONNECTIONS_ROUTES } from 'app/features/connections/constants'; import { getRoutes as getDataConnectionsRoutes } from 'app/features/connections/routes'; import { DASHBOARD_LIBRARY_ROUTES } from 'app/features/dashboard/dashgrid/types';