mirror of https://github.com/grafana/grafana.git
Chore: reduces barrel files (#107512)
* Chore: reduce barrel files * chore: fixes unit test * chore: fix broken path
This commit is contained in:
parent
3e6d620d2c
commit
68cbd23916
|
@ -1499,22 +1499,9 @@ exports[`better eslint`] = {
|
|||
"public/app/features/browse-dashboards/components/NewFolderForm.tsx:5381": [
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"]
|
||||
],
|
||||
"public/app/features/browse-dashboards/state/index.ts:5381": [
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "0"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "1"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "2"]
|
||||
],
|
||||
"public/app/features/connections/components/ConnectionsRedirectNotice/index.ts:5381": [
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "0"]
|
||||
],
|
||||
"public/app/features/connections/pages/index.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./AddNewConnectionPage\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./DataSourceDashboardsPage\`)", "1"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./DataSourceDetailsPage\`)", "2"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./DataSourcesListPage\`)", "3"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./EditDataSourcePage\`)", "4"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./NewDataSourcePage\`)", "5"]
|
||||
],
|
||||
"public/app/features/connections/tabs/ConnectData/CardGrid/CardGrid.tsx:5381": [
|
||||
[0, 0, 0, "Add noMargin prop to Card components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"]
|
||||
],
|
||||
|
@ -1568,10 +1555,6 @@ exports[`better eslint`] = {
|
|||
"public/app/features/correlations/components/EmptyCorrelationsCTA.tsx:5381": [
|
||||
[0, 0, 0, "Add noMargin prop to Card components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"]
|
||||
],
|
||||
"public/app/features/correlations/components/Wizard/index.ts:5381": [
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "0"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "1"]
|
||||
],
|
||||
"public/app/features/correlations/mocks/useCorrelations.mocks.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
|
@ -1730,10 +1713,6 @@ exports[`better eslint`] = {
|
|||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "4"],
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "5"]
|
||||
],
|
||||
"public/app/features/dashboard-scene/settings/annotations/index.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./AnnotationSettingsEdit\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./AnnotationSettingsList\`)", "1"]
|
||||
],
|
||||
"public/app/features/dashboard-scene/settings/links/DashboardLinkForm.tsx:5381": [
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"],
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "1"],
|
||||
|
@ -1781,13 +1760,6 @@ exports[`better eslint`] = {
|
|||
[0, 0, 0, "Do not use any type assertions.", "0"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "1"]
|
||||
],
|
||||
"public/app/features/dashboard-scene/settings/version-history/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./HistorySrv\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./VersionHistoryButtons\`)", "1"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./VersionHistoryComparison\`)", "2"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./VersionHistoryHeader\`)", "3"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./VersionHistoryTable\`)", "4"]
|
||||
],
|
||||
"public/app/features/dashboard-scene/sharing/ShareButton/share-externally/EmailShare/ConfigEmailSharing/ConfigEmailSharing.tsx:5381": [
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"]
|
||||
],
|
||||
|
@ -1870,10 +1842,6 @@ exports[`better eslint`] = {
|
|||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "5"],
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "6"]
|
||||
],
|
||||
"public/app/features/dashboard/components/AnnotationSettings/index.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./AnnotationSettingsEdit\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./AnnotationSettingsList\`)", "1"]
|
||||
],
|
||||
"public/app/features/dashboard/components/DashExportModal/DashboardExporter.test.ts:5381": [
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "1"],
|
||||
|
@ -1956,10 +1924,6 @@ exports[`better eslint`] = {
|
|||
"public/app/features/dashboard/components/Inspector/PanelInspector.tsx:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/features/dashboard/components/LinksSettings/index.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./LinkSettingsEdit\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./LinkSettingsList\`)", "1"]
|
||||
],
|
||||
"public/app/features/dashboard/components/PanelEditor/DynamicConfigValueEditor.tsx:5381": [
|
||||
[0, 0, 0, "\'HorizontalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"],
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "1"]
|
||||
|
@ -2228,10 +2192,6 @@ exports[`better eslint`] = {
|
|||
[0, 0, 0, "Unexpected any. Specify a different type.", "2"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "3"]
|
||||
],
|
||||
"public/app/features/dataframe-import/index.ts:5381": [
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "0"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "1"]
|
||||
],
|
||||
"public/app/features/datasources/components/DataSourceTypeCard.tsx:5381": [
|
||||
[0, 0, 0, "Add noMargin prop to Card components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"],
|
||||
[0, 0, 0, "Use data-testid for E2E selectors instead of aria-label", "1"]
|
||||
|
@ -2251,14 +2211,6 @@ exports[`better eslint`] = {
|
|||
[0, 0, 0, "Do not use any type assertions.", "0"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "1"]
|
||||
],
|
||||
"public/app/features/datasources/state/index.ts:5381": [
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "0"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "1"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "2"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "3"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "4"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "5"]
|
||||
],
|
||||
"public/app/features/datasources/state/navModel.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "1"]
|
||||
|
@ -2299,24 +2251,6 @@ exports[`better eslint`] = {
|
|||
"public/app/features/dimensions/editors/ValueMappingsEditor/ValueMappingsEditor.tsx:5381": [
|
||||
[0, 0, 0, "\'VerticalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"]
|
||||
],
|
||||
"public/app/features/dimensions/editors/index.ts:5381": [
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "0"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "1"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "2"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "3"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "4"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "5"]
|
||||
],
|
||||
"public/app/features/dimensions/index.ts:5381": [
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "0"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "1"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "2"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "3"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "4"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "5"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "6"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "7"]
|
||||
],
|
||||
"public/app/features/dimensions/scale.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
|
@ -2362,17 +2296,6 @@ exports[`better eslint`] = {
|
|||
"public/app/features/explore/TraceView/components/demo/trace-generators.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/features/explore/TraceView/components/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./TracePageHeader\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./TraceTimelineViewer/SpanDetail/DetailState\`)", "1"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./TraceTimelineViewer\`)", "2"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./model/transform-trace-data\`)", "3"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./settings/SpanBarSettings\`)", "4"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./utils/filter-spans\`)", "5"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "6"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "7"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "8"]
|
||||
],
|
||||
"public/app/features/explore/TraceView/components/model/ddg/types.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./PathElem\`)", "0"]
|
||||
],
|
||||
|
@ -2393,21 +2316,9 @@ exports[`better eslint`] = {
|
|||
"public/app/features/explore/TraceView/components/model/transform-trace-data.tsx:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/features/explore/TraceView/components/types/index.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`../settings/SpanBarSettings\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./TNil\`)", "1"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./TTraceTimeline\`)", "2"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./links\`)", "3"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./trace\`)", "4"]
|
||||
],
|
||||
"public/app/features/explore/TraceView/components/utils/DraggableManager/demo/index.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./DraggableManagerDemo\`)", "0"]
|
||||
],
|
||||
"public/app/features/explore/TraceView/components/utils/DraggableManager/index.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./DraggableManager\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./EUpdateTypes\`)", "1"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "2"]
|
||||
],
|
||||
"public/app/features/explore/TraceView/createSpanLink.tsx:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "1"]
|
||||
|
@ -2602,23 +2513,12 @@ exports[`better eslint`] = {
|
|||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "1"],
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "2"]
|
||||
],
|
||||
"public/app/features/plugins/admin/components/Badges/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./PluginDeprecatedBadge\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./PluginDisabledBadge\`)", "1"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./PluginEnterpriseBadge\`)", "2"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./PluginInstallBadge\`)", "3"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./PluginUpdateAvailableBadge\`)", "4"]
|
||||
],
|
||||
"public/app/features/plugins/admin/components/GetStartedWithPlugin/GetStartedWithDataSource.tsx:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/features/plugins/admin/components/GetStartedWithPlugin/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./GetStartedWithPlugin\`)", "0"]
|
||||
],
|
||||
"public/app/features/plugins/admin/components/InstallControls/index.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./InstallControlsButton\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./InstallControlsWarning\`)", "1"]
|
||||
],
|
||||
"public/app/features/plugins/admin/components/PluginDetailsPage.tsx:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
|
@ -3142,10 +3042,6 @@ exports[`better eslint`] = {
|
|||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "1"]
|
||||
],
|
||||
"public/app/plugins/datasource/azuremonitor/azureMetadata/index.ts:5381": [
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "0"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "1"]
|
||||
],
|
||||
"public/app/plugins/datasource/azuremonitor/components/ArgQueryEditor/index.tsx:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./ArgQueryEditor\`)", "0"]
|
||||
],
|
||||
|
@ -3227,11 +3123,6 @@ exports[`better eslint`] = {
|
|||
"public/app/plugins/datasource/azuremonitor/mocks/variables.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/azuremonitor/types/index.ts:5381": [
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "0"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "1"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "2"]
|
||||
],
|
||||
"public/app/plugins/datasource/azuremonitor/types/query.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`../dataquery.gen\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`../dataquery.gen\`)", "1"],
|
||||
|
@ -3263,23 +3154,6 @@ exports[`better eslint`] = {
|
|||
"public/app/plugins/datasource/cloud-monitoring/components/VariableQueryEditor.tsx:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloud-monitoring/components/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./Aggregation\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./AliasBy\`)", "1"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./AlignmentFunction\`)", "2"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./Alignment\`)", "3"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./AnnotationsHelp\`)", "4"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./Fields\`)", "5"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./GroupBy\`)", "6"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./LabelFilter\`)", "7"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./MQLQueryEditor\`)", "8"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./MetricQueryEditor\`)", "9"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./PeriodSelect\`)", "10"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./Preprocessor\`)", "11"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./Project\`)", "12"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./SLOQueryEditor\`)", "13"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./VisualMetricQueryEditor\`)", "14"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloud-monitoring/datasource.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "1"],
|
||||
|
@ -3377,16 +3251,6 @@ exports[`better eslint`] = {
|
|||
"public/app/plugins/datasource/cloudwatch/mocks/cloudwatch-logs-test-data/filterQuery.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/mocks/cloudwatch-logs-test-data/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./commentOnlyQuery\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./empty\`)", "1"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./filterQuery\`)", "2"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./multiLineFullQuery\`)", "3"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./newCommandQuery\`)", "4"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./singleLineFullQuery\`)", "5"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./sortQuery\`)", "6"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./whitespaceQuery\`)", "7"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/mocks/cloudwatch-logs-test-data/multiLineFullQuery.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
|
@ -3429,13 +3293,6 @@ exports[`better eslint`] = {
|
|||
[0, 0, 0, "Do not use any type assertions.", "16"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "17"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/mocks/cloudwatch-sql-test-data/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./multiLineFullQuery\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./multiLineIncompleteQueryWithoutNamespace\`)", "1"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./singleLineEmptyQuery\`)", "2"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./singleLineFullQuery\`)", "3"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./singleLineTwoQueries\`)", "4"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/mocks/cloudwatch-sql-test-data/multiLineFullQuery.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
|
@ -3457,24 +3314,12 @@ exports[`better eslint`] = {
|
|||
"public/app/plugins/datasource/cloudwatch/mocks/dynamic-label-test-data/afterLabelValue.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/mocks/dynamic-label-test-data/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./afterLabelValue\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./insideLabelValue\`)", "1"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/mocks/dynamic-label-test-data/insideLabelValue.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/mocks/metric-math-test-data/afterFunctionQuery.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/mocks/metric-math-test-data/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./afterFunctionQuery\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./secondArgAfterSearchQuery\`)", "1"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./secondArgQuery\`)", "2"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./singleLineEmptyQuery\`)", "3"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./thirdArgAfterSearchQuery\`)", "4"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./withinStringQuery\`)", "5"]
|
||||
],
|
||||
"public/app/plugins/datasource/cloudwatch/mocks/metric-math-test-data/secondArgAfterSearchQuery.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
|
@ -3582,11 +3427,6 @@ exports[`better eslint`] = {
|
|||
"public/app/plugins/datasource/elasticsearch/test-helpers/render.tsx:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/elasticsearch/types.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./dataquery.gen\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`ElasticsearchQuery\`)", "1"],
|
||||
[0, 0, 0, "Do not use export all (\`export * from ...\`)", "2"]
|
||||
],
|
||||
"public/app/plugins/datasource/grafana-postgresql-datasource/configuration/ConfigurationEditor.tsx:5381": [
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "0"],
|
||||
[0, 0, 0, "Add noMargin prop to Field components to remove built-in margins. Use layout components like Stack or Grid with the gap prop instead for consistent spacing.", "1"],
|
||||
|
@ -3627,10 +3467,6 @@ exports[`better eslint`] = {
|
|||
"public/app/plugins/datasource/grafana-testdata-datasource/components/SimulationSchemaForm.tsx:5381": [
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/grafana-testdata-datasource/components/index.ts:5381": [
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./RandomWalkEditor\`)", "0"],
|
||||
[0, 0, 0, "Do not re-export imported variable (\`./StreamingClientEditor\`)", "1"]
|
||||
],
|
||||
"public/app/plugins/datasource/grafana-testdata-datasource/datasource.ts:5381": [
|
||||
[0, 0, 0, "Do not use any type assertions.", "0"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "1"]
|
||||
|
|
|
@ -5,11 +5,11 @@ import { v4 as uuidv4 } from 'uuid';
|
|||
import { selectors as rawSelectors } from '@grafana/e2e-selectors';
|
||||
|
||||
import { selectors } from '../../public/app/plugins/datasource/azuremonitor/e2e/selectors';
|
||||
import { AzureQueryType } from '../../public/app/plugins/datasource/azuremonitor/types/query';
|
||||
import {
|
||||
AzureMonitorDataSourceJsonData,
|
||||
AzureMonitorDataSourceSecureJsonData,
|
||||
AzureQueryType,
|
||||
} from '../../public/app/plugins/datasource/azuremonitor/types';
|
||||
} from '../../public/app/plugins/datasource/azuremonitor/types/types';
|
||||
import { e2e } from '../utils';
|
||||
|
||||
const provisioningPath = `provisioning/datasources/azmonitor-ds.yaml`;
|
||||
|
|
|
@ -9,7 +9,7 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { Trans } from '@grafana/i18n';
|
||||
import { IconButton, useStyles2, Text } from '@grafana/ui';
|
||||
import { Indent } from 'app/core/components/Indent/Indent';
|
||||
import { childrenByParentUIDSelector, rootItemsSelector } from 'app/features/browse-dashboards/state';
|
||||
import { childrenByParentUIDSelector, rootItemsSelector } from 'app/features/browse-dashboards/state/hooks';
|
||||
import { DashboardsTreeItem } from 'app/features/browse-dashboards/types';
|
||||
import { DashboardViewItem } from 'app/features/search/types';
|
||||
import { useSelector } from 'app/types';
|
||||
|
|
|
@ -27,7 +27,8 @@ import CreateNewButton from './components/CreateNewButton';
|
|||
import { FolderActionsButton } from './components/FolderActionsButton';
|
||||
import { SearchView } from './components/SearchView';
|
||||
import { getFolderPermissions } from './permissions';
|
||||
import { setAllSelection, useHasSelection } from './state';
|
||||
import { useHasSelection } from './state/hooks';
|
||||
import { setAllSelection } from './state/slice';
|
||||
|
||||
// New Browse/Manage/Search Dashboards views for nested folders
|
||||
const BrowseDashboardsPage = memo(() => {
|
||||
|
|
|
@ -16,7 +16,8 @@ import { RecentlyDeletedActions } from './components/RecentlyDeletedActions';
|
|||
import { RecentlyDeletedEmptyState } from './components/RecentlyDeletedEmptyState';
|
||||
import { SearchView } from './components/SearchView';
|
||||
import { getFolderPermissions } from './permissions';
|
||||
import { setAllSelection, useHasSelection } from './state';
|
||||
import { useHasSelection } from './state/hooks';
|
||||
import { setAllSelection } from './state/slice';
|
||||
|
||||
const RecentlyDeletedPage = memo(() => {
|
||||
const dispatch = useDispatch();
|
||||
|
|
|
@ -25,7 +25,7 @@ import {
|
|||
SaveDashboardResponseDTO,
|
||||
} from 'app/types';
|
||||
|
||||
import { refetchChildren, refreshParents } from '../state';
|
||||
import { refetchChildren, refreshParents } from '../state/actions';
|
||||
import { DashboardTreeSelection } from '../types';
|
||||
|
||||
import { isProvisionedDashboard, isProvisionedFolder } from './isProvisioned';
|
||||
|
|
|
@ -9,7 +9,8 @@ import { useDispatch } from 'app/types';
|
|||
import { ShowModalReactEvent } from 'app/types/events';
|
||||
|
||||
import { useDeleteItemsMutation, useMoveItemsMutation } from '../../api/browseDashboardsAPI';
|
||||
import { setAllSelection, useActionSelectionState } from '../../state';
|
||||
import { useActionSelectionState } from '../../state/hooks';
|
||||
import { setAllSelection } from '../../state/slice';
|
||||
import { DashboardTreeSelection } from '../../types';
|
||||
|
||||
import { DeleteModal } from './DeleteModal';
|
||||
|
|
|
@ -6,17 +6,15 @@ import { DashboardViewItem } from 'app/features/search/types';
|
|||
import { useDispatch } from 'app/types';
|
||||
|
||||
import { PAGE_SIZE } from '../api/services';
|
||||
import { fetchNextChildrenPage } from '../state/actions';
|
||||
import {
|
||||
useFlatTreeState,
|
||||
useCheckboxSelectionState,
|
||||
setFolderOpenState,
|
||||
setItemSelectionState,
|
||||
useChildrenByParentUIDState,
|
||||
setAllSelection,
|
||||
useBrowseLoadingStatus,
|
||||
useLoadNextChildrenPage,
|
||||
fetchNextChildrenPage,
|
||||
} from '../state';
|
||||
} from '../state/hooks';
|
||||
import { setFolderOpenState, setItemSelectionState, setAllSelection } from '../state/slice';
|
||||
import { BrowseDashboardsState, DashboardTreeSelection, SelectionState } from '../types';
|
||||
|
||||
import { DashboardsTree } from './DashboardsTree';
|
||||
|
|
|
@ -10,7 +10,7 @@ import { getIconForItem } from 'app/features/search/service/utils';
|
|||
|
||||
import { Indent } from '../../../core/components/Indent/Indent';
|
||||
import { FolderRepo } from '../../../core/components/NestedFolderPicker/FolderRepo';
|
||||
import { useChildrenByParentUIDState } from '../state';
|
||||
import { useChildrenByParentUIDState } from '../state/hooks';
|
||||
import { DashboardsTreeCellProps } from '../types';
|
||||
|
||||
import { makeRowID } from './utils';
|
||||
|
|
|
@ -12,7 +12,8 @@ import { ShowModalReactEvent } from 'app/types/events';
|
|||
import { deletedDashboardsCache } from '../../search/service/deletedDashboardsCache';
|
||||
import { useListDeletedDashboardsQuery, useRestoreDashboardMutation } from '../api/browseDashboardsAPI';
|
||||
import { useRecentlyDeletedStateManager } from '../api/useRecentlyDeletedStateManager';
|
||||
import { clearFolders, setAllSelection, useActionSelectionState } from '../state';
|
||||
import { useActionSelectionState } from '../state/hooks';
|
||||
import { clearFolders, setAllSelection } from '../state/slice';
|
||||
|
||||
import { RestoreModal } from './RestoreModal';
|
||||
|
||||
|
|
|
@ -9,7 +9,8 @@ import { SearchStateManager } from 'app/features/search/state/SearchStateManager
|
|||
import { DashboardViewItemKind, SearchState } from 'app/features/search/types';
|
||||
import { useDispatch, useSelector } from 'app/types';
|
||||
|
||||
import { setAllSelection, setItemSelectionState, useHasSelection } from '../state';
|
||||
import { useHasSelection } from '../state/hooks';
|
||||
import { setAllSelection, setItemSelectionState } from '../state/slice';
|
||||
|
||||
interface SearchViewProps {
|
||||
height: number;
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
export * from './slice';
|
||||
export * from './actions';
|
||||
export * from './hooks';
|
|
@ -7,7 +7,7 @@ import { config } from 'app/core/config';
|
|||
import { BackgroundConfig, Constraint, LineConfig, Placement } from 'app/plugins/panel/canvas/panelcfg.gen';
|
||||
|
||||
import { LineStyleConfig } from '../../plugins/panel/canvas/editor/LineStyleEditor';
|
||||
import { DimensionContext } from '../dimensions';
|
||||
import { DimensionContext } from '../dimensions/context';
|
||||
|
||||
import { StandardEditorConfig } from './types';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import { t } from '@grafana/i18n';
|
|||
import { TextDimensionMode } from '@grafana/schema';
|
||||
import { Button, Spinner, useStyles2 } from '@grafana/ui';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ColorDimensionEditor } from 'app/features/dimensions/editors';
|
||||
import { ColorDimensionEditor } from 'app/features/dimensions/editors/ColorDimensionEditor';
|
||||
import { TextDimensionEditor } from 'app/features/dimensions/editors/TextDimensionEditor';
|
||||
import { APIEditor, APIEditorConfig } from 'app/plugins/panel/canvas/editor/element/APIEditor';
|
||||
import { ButtonStyleConfig, ButtonStyleEditor } from 'app/plugins/panel/canvas/editor/element/ButtonStyleEditor';
|
||||
|
|
|
@ -4,7 +4,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { t } from '@grafana/i18n';
|
||||
import { config } from 'app/core/config';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ColorDimensionEditor } from 'app/features/dimensions/editors/ColorDimensionEditor';
|
||||
import { TextDimensionEditor } from 'app/features/dimensions/editors/TextDimensionEditor';
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { t } from '@grafana/i18n';
|
||||
import { ScalarDimensionConfig } from '@grafana/schema';
|
||||
import { useStyles2 } from '@grafana/ui';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { ScalarDimensionEditor } from 'app/features/dimensions/editors';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ScalarDimensionEditor } from 'app/features/dimensions/editors/ScalarDimensionEditor';
|
||||
|
||||
import { CanvasElementItem, CanvasElementOptions, CanvasElementProps, defaultBgColor } from '../element';
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { t } from '@grafana/i18n';
|
||||
import { ScalarDimensionConfig } from '@grafana/schema';
|
||||
import { useStyles2 } from '@grafana/ui';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { ScalarDimensionEditor } from 'app/features/dimensions/editors';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ScalarDimensionEditor } from 'app/features/dimensions/editors/ScalarDimensionEditor';
|
||||
|
||||
import { CanvasElementItem, CanvasElementOptions, CanvasElementProps, defaultBgColor } from '../element';
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { t } from '@grafana/i18n';
|
||||
import { ScalarDimensionConfig } from '@grafana/schema';
|
||||
import { useStyles2 } from '@grafana/ui';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { ScalarDimensionEditor } from 'app/features/dimensions/editors';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ScalarDimensionEditor } from 'app/features/dimensions/editors/ScalarDimensionEditor';
|
||||
|
||||
import { CanvasElementItem, CanvasElementOptions, CanvasElementProps, defaultBgColor } from '../element';
|
||||
|
||||
|
|
|
@ -6,9 +6,10 @@ import { LinkModel } from '@grafana/data';
|
|||
import { t } from '@grafana/i18n';
|
||||
import { ColorDimensionConfig, ResourceDimensionConfig, ResourceDimensionMode } from '@grafana/schema';
|
||||
import { SanitizedSVG } from 'app/core/components/SVG/SanitizedSVG';
|
||||
import { getPublicOrAbsoluteUrl } from 'app/features/dimensions';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ColorDimensionEditor, ResourceDimensionEditor } from 'app/features/dimensions/editors';
|
||||
import { ColorDimensionEditor } from 'app/features/dimensions/editors/ColorDimensionEditor';
|
||||
import { ResourceDimensionEditor } from 'app/features/dimensions/editors/ResourceDimensionEditor';
|
||||
import { getPublicOrAbsoluteUrl } from 'app/features/dimensions/resource';
|
||||
import { LineConfig } from 'app/plugins/panel/canvas/panelcfg.gen';
|
||||
|
||||
import { CanvasElementItem, CanvasElementOptions, CanvasElementProps, defaultBgColor } from '../element';
|
||||
|
|
|
@ -4,7 +4,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { t } from '@grafana/i18n';
|
||||
import { config } from 'app/core/config';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ColorDimensionEditor } from 'app/features/dimensions/editors/ColorDimensionEditor';
|
||||
import { TextDimensionEditor } from 'app/features/dimensions/editors/TextDimensionEditor';
|
||||
|
||||
|
|
|
@ -4,8 +4,9 @@ import { GrafanaTheme2, LinkModel } from '@grafana/data';
|
|||
import { t } from '@grafana/i18n';
|
||||
import { ColorDimensionConfig, ScalarDimensionConfig } from '@grafana/schema';
|
||||
import config from 'app/core/config';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { ColorDimensionEditor, ScalarDimensionEditor } from 'app/features/dimensions/editors';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ColorDimensionEditor } from 'app/features/dimensions/editors/ColorDimensionEditor';
|
||||
import { ScalarDimensionEditor } from 'app/features/dimensions/editors/ScalarDimensionEditor';
|
||||
|
||||
import { CanvasElementItem, CanvasElementOptions, CanvasElementProps } from '../../element';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { t } from '@grafana/i18n';
|
||||
import { config } from 'app/core/config';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ColorDimensionEditor } from 'app/features/dimensions/editors/ColorDimensionEditor';
|
||||
import { TextDimensionEditor } from 'app/features/dimensions/editors/TextDimensionEditor';
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import { GrafanaTheme2, LinkModel } from '@grafana/data';
|
|||
import { t } from '@grafana/i18n';
|
||||
import { ScalarDimensionConfig } from '@grafana/schema';
|
||||
import { useStyles2 } from '@grafana/ui';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { ScalarDimensionEditor } from 'app/features/dimensions/editors';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { ScalarDimensionEditor } from 'app/features/dimensions/editors/ScalarDimensionEditor';
|
||||
|
||||
import { CanvasElementItem, CanvasElementOptions, CanvasElementProps, defaultBgColor } from '../element';
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import { t } from '@grafana/i18n';
|
|||
import { ConfirmModal } from '@grafana/ui';
|
||||
import { LayerElement } from 'app/core/components/Layers/types';
|
||||
import { notFoundItem } from 'app/features/canvas/elements/notFound';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import {
|
||||
BackgroundImageSize,
|
||||
Constraint,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { cloneDeep } from 'lodash';
|
||||
|
||||
import { notFoundItem } from 'app/features/canvas/elements/notFound';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import { HorizontalConstraint, Placement, VerticalConstraint } from 'app/plugins/panel/canvas/panelcfg.gen';
|
||||
import { LayerActionID } from 'app/plugins/panel/canvas/types';
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
} from '@grafana/schema';
|
||||
import { Portal } from '@grafana/ui';
|
||||
import { config } from 'app/core/config';
|
||||
import { DimensionContext } from 'app/features/dimensions';
|
||||
import { DimensionContext } from 'app/features/dimensions/context';
|
||||
import {
|
||||
getColorDimensionFromData,
|
||||
getResourceDimensionFromData,
|
||||
|
|
|
@ -3,14 +3,12 @@ import { Navigate, Routes, Route, useLocation } from 'react-router-dom-v5-compat
|
|||
import { StoreState, useSelector } from 'app/types';
|
||||
|
||||
import { ROUTES } from './constants';
|
||||
import {
|
||||
AddNewConnectionPage,
|
||||
DataSourceDashboardsPage,
|
||||
DataSourceDetailsPage,
|
||||
DataSourcesListPage,
|
||||
EditDataSourcePage,
|
||||
NewDataSourcePage,
|
||||
} from './pages';
|
||||
import { AddNewConnectionPage } from './pages/AddNewConnectionPage';
|
||||
import { DataSourceDashboardsPage } from './pages/DataSourceDashboardsPage';
|
||||
import { DataSourceDetailsPage } from './pages/DataSourceDetailsPage';
|
||||
import { DataSourcesListPage } from './pages/DataSourcesListPage';
|
||||
import { EditDataSourcePage } from './pages/EditDataSourcePage';
|
||||
import { NewDataSourcePage } from './pages/NewDataSourcePage';
|
||||
|
||||
function RedirectToAddNewConnection() {
|
||||
const { search } = useLocation();
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Page } from 'app/core/components/Page/Page';
|
|||
import { AdvisorRedirectNotice } from 'app/features/connections/components/AdvisorRedirectNotice/AdvisorRedirectNotice';
|
||||
import { DataSourceAddButton } from 'app/features/datasources/components/DataSourceAddButton';
|
||||
import { DataSourcesList } from 'app/features/datasources/components/DataSourcesList';
|
||||
import { getDataSourcesCount } from 'app/features/datasources/state';
|
||||
import { getDataSourcesCount } from 'app/features/datasources/state/selectors';
|
||||
import { StoreState, useSelector } from 'app/types';
|
||||
|
||||
export function DataSourcesListPage() {
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
export { AddNewConnectionPage } from './AddNewConnectionPage';
|
||||
export { DataSourceDetailsPage } from './DataSourceDetailsPage';
|
||||
export { DataSourcesListPage } from './DataSourcesListPage';
|
||||
export { DataSourceDashboardsPage } from './DataSourceDashboardsPage';
|
||||
export { EditDataSourcePage } from './EditDataSourcePage';
|
||||
export { NewDataSourcePage } from './NewDataSourcePage';
|
|
@ -5,12 +5,10 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { t } from '@grafana/i18n';
|
||||
import { featureEnabled } from '@grafana/runtime';
|
||||
import { Card, Grid, useStyles2, Stack, Badge } from '@grafana/ui';
|
||||
import {
|
||||
PluginDeprecatedBadge,
|
||||
PluginDisabledBadge,
|
||||
PluginInstalledBadge,
|
||||
PluginUpdateAvailableBadge,
|
||||
} from 'app/features/plugins/admin/components/Badges';
|
||||
import { PluginDeprecatedBadge } from 'app/features/plugins/admin/components/Badges/PluginDeprecatedBadge';
|
||||
import { PluginDisabledBadge } from 'app/features/plugins/admin/components/Badges/PluginDisabledBadge';
|
||||
import { PluginInstalledBadge } from 'app/features/plugins/admin/components/Badges/PluginInstallBadge';
|
||||
import { PluginUpdateAvailableBadge } from 'app/features/plugins/admin/components/Badges/PluginUpdateAvailableBadge';
|
||||
import { getBadgeColor } from 'app/features/plugins/admin/components/Badges/sharedStyles';
|
||||
import { isPluginUpdatable } from 'app/features/plugins/admin/helpers';
|
||||
import { CatalogPlugin } from 'app/features/plugins/admin/types';
|
||||
|
|
|
@ -5,7 +5,7 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { PanelContainer, useStyles2 } from '@grafana/ui';
|
||||
import { CloseButton } from 'app/core/components/CloseButton/CloseButton';
|
||||
|
||||
import { Wizard } from '../components/Wizard';
|
||||
import { Wizard } from '../components/Wizard/Wizard';
|
||||
import { useCorrelations } from '../useCorrelations';
|
||||
|
||||
import { ConfigureCorrelationBasicInfoForm } from './ConfigureCorrelationBasicInfoForm';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { useEffect } from 'react';
|
||||
|
||||
import { Wizard } from '../components/Wizard';
|
||||
import { Wizard } from '../components/Wizard/Wizard';
|
||||
import { Correlation } from '../types';
|
||||
import { useCorrelations } from '../useCorrelations';
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
export * from './Wizard';
|
||||
export * from './types';
|
|
@ -59,7 +59,7 @@ import { buildGridItemForPanel, transformSaveModelToScene } from '../serializati
|
|||
import { gridItemToPanel } from '../serialization/transformSceneToSaveModel';
|
||||
import { DecoratedRevisionModel } from '../settings/VersionsEditView';
|
||||
import { DashboardEditView } from '../settings/utils';
|
||||
import { historySrv } from '../settings/version-history';
|
||||
import { historySrv } from '../settings/version-history/HistorySrv';
|
||||
import { DashboardModelCompatibilityWrapper } from '../utils/DashboardModelCompatibilityWrapper';
|
||||
import { isInCloneChain } from '../utils/clone';
|
||||
import { dashboardSceneGraph } from '../utils/dashboardSceneGraph';
|
||||
|
|
|
@ -11,7 +11,8 @@ import { dashboardSceneGraph } from '../utils/dashboardSceneGraph';
|
|||
import { getDashboardSceneFor } from '../utils/utils';
|
||||
|
||||
import { EditListViewSceneUrlSync } from './EditListViewSceneUrlSync';
|
||||
import { AnnotationSettingsEdit, AnnotationSettingsList, newAnnotationName } from './annotations';
|
||||
import { AnnotationSettingsEdit, newAnnotationName } from './annotations/AnnotationSettingsEdit';
|
||||
import { AnnotationSettingsList } from './annotations/AnnotationSettingsList';
|
||||
import { DashboardEditView, DashboardEditViewState, useDashboardEditPageNav } from './utils';
|
||||
|
||||
export enum MoveDirection {
|
||||
|
|
|
@ -5,7 +5,7 @@ import { DashboardScene } from '../scene/DashboardScene';
|
|||
import { activateFullSceneTree } from '../utils/test-utils';
|
||||
|
||||
import { VERSIONS_FETCH_LIMIT, VersionsEditView } from './VersionsEditView';
|
||||
import { historySrv } from './version-history';
|
||||
import { historySrv } from './version-history/HistorySrv';
|
||||
|
||||
jest.mock('./version-history/HistorySrv');
|
||||
|
||||
|
|
|
@ -11,14 +11,11 @@ import { NavToolbarActions } from '../scene/NavToolbarActions';
|
|||
import { getDashboardSceneFor } from '../utils/utils';
|
||||
|
||||
import { DashboardEditView, DashboardEditViewState, useDashboardEditPageNav } from './utils';
|
||||
import {
|
||||
RevisionsModel,
|
||||
VersionHistoryComparison,
|
||||
VersionHistoryHeader,
|
||||
VersionHistoryTable,
|
||||
VersionsHistoryButtons,
|
||||
historySrv,
|
||||
} from './version-history';
|
||||
import { RevisionsModel, historySrv } from './version-history/HistorySrv';
|
||||
import { VersionsHistoryButtons } from './version-history/VersionHistoryButtons';
|
||||
import { VersionHistoryComparison } from './version-history/VersionHistoryComparison';
|
||||
import { VersionHistoryHeader } from './version-history/VersionHistoryHeader';
|
||||
import { VersionHistoryTable } from './version-history/VersionHistoryTable';
|
||||
|
||||
export const VERSIONS_FETCH_LIMIT = 10;
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
export { AnnotationSettingsEdit, newAnnotationName } from './AnnotationSettingsEdit';
|
||||
export { AnnotationSettingsList } from './AnnotationSettingsList';
|
|
@ -1,5 +0,0 @@
|
|||
export { HistorySrv, historySrv, type RevisionsModel } from './HistorySrv';
|
||||
export { VersionHistoryTable } from './VersionHistoryTable';
|
||||
export { VersionHistoryHeader } from './VersionHistoryHeader';
|
||||
export { VersionsHistoryButtons } from './VersionHistoryButtons';
|
||||
export { VersionHistoryComparison } from './VersionHistoryComparison';
|
|
@ -1,2 +0,0 @@
|
|||
export { AnnotationSettingsEdit, newAnnotationName } from './AnnotationSettingsEdit';
|
||||
export { AnnotationSettingsList } from './AnnotationSettingsList';
|
|
@ -3,7 +3,8 @@ import { getDataSourceSrv, locationService } from '@grafana/runtime';
|
|||
import { Page } from 'app/core/components/Page/Page';
|
||||
|
||||
import { DashboardModel } from '../../state/DashboardModel';
|
||||
import { AnnotationSettingsEdit, AnnotationSettingsList, newAnnotationName } from '../AnnotationSettings';
|
||||
import { AnnotationSettingsEdit, newAnnotationName } from '../AnnotationSettings/AnnotationSettingsEdit';
|
||||
import { AnnotationSettingsList } from '../AnnotationSettings/AnnotationSettingsList';
|
||||
|
||||
import { SettingsPageProps } from './types';
|
||||
|
||||
|
|
|
@ -4,7 +4,8 @@ import { locationService } from '@grafana/runtime';
|
|||
import { Page } from 'app/core/components/Page/Page';
|
||||
import { NEW_LINK } from 'app/features/dashboard-scene/settings/links/utils';
|
||||
|
||||
import { LinkSettingsEdit, LinkSettingsList } from '../LinksSettings';
|
||||
import { LinkSettingsEdit } from '../LinksSettings/LinkSettingsEdit';
|
||||
import { LinkSettingsList } from '../LinksSettings/LinkSettingsList';
|
||||
|
||||
import { SettingsPageProps } from './types';
|
||||
|
||||
|
|
|
@ -4,12 +4,9 @@ import * as React from 'react';
|
|||
import { config } from '@grafana/runtime';
|
||||
import { Spinner, HorizontalGroup } from '@grafana/ui';
|
||||
import { Page } from 'app/core/components/Page/Page';
|
||||
import {
|
||||
historySrv,
|
||||
RevisionsModel,
|
||||
VersionHistoryHeader,
|
||||
VersionsHistoryButtons,
|
||||
} from 'app/features/dashboard-scene/settings/version-history';
|
||||
import { historySrv, RevisionsModel } from 'app/features/dashboard-scene/settings/version-history/HistorySrv';
|
||||
import { VersionsHistoryButtons } from 'app/features/dashboard-scene/settings/version-history/VersionHistoryButtons';
|
||||
import { VersionHistoryHeader } from 'app/features/dashboard-scene/settings/version-history/VersionHistoryHeader';
|
||||
|
||||
import { VersionHistoryComparison } from '../VersionHistory/VersionHistoryComparison';
|
||||
import { VersionHistoryTable } from '../VersionHistory/VersionHistoryTable';
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
export { LinkSettingsEdit } from './LinkSettingsEdit';
|
||||
export { LinkSettingsList } from './LinkSettingsList';
|
|
@ -4,7 +4,7 @@ import { useAsyncFn } from 'react-use';
|
|||
import { locationUtil } from '@grafana/data';
|
||||
import { config, locationService } from '@grafana/runtime';
|
||||
import { useAppNotification } from 'app/core/copy/appNotification';
|
||||
import { historySrv } from 'app/features/dashboard-scene/settings/version-history';
|
||||
import { historySrv } from 'app/features/dashboard-scene/settings/version-history/HistorySrv';
|
||||
import { useSelector } from 'app/types';
|
||||
|
||||
import { dashboardWatcher } from '../../../live/dashboard/dashboardWatcher';
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
export * from './utils';
|
||||
export * from './constants';
|
|
@ -6,7 +6,7 @@ import { loadPluginDashboards } from 'app/features/plugins/admin/state/actions';
|
|||
import { PluginDashboard, StoreState, useDispatch, useSelector } from 'app/types';
|
||||
|
||||
import DashboardTable from '../components/DashboardsTable';
|
||||
import { useInitDataSourceSettings } from '../state';
|
||||
import { useInitDataSourceSettings } from '../state/hooks';
|
||||
|
||||
export type Props = {
|
||||
// The UID of the data source
|
||||
|
|
|
@ -10,7 +10,8 @@ import { contextSrv } from 'app/core/core';
|
|||
import { StoreState, AccessControlAction, useSelector } from 'app/types';
|
||||
|
||||
import { ROUTES } from '../../connections/constants';
|
||||
import { getDataSources, getDataSourcesCount, useLoadDataSources } from '../state';
|
||||
import { useLoadDataSources } from '../state/hooks';
|
||||
import { getDataSources, getDataSourcesCount } from '../state/selectors';
|
||||
import { trackDataSourcesListViewed } from '../tracking';
|
||||
|
||||
import { DataSourcesListCard } from './DataSourcesListCard';
|
||||
|
|
|
@ -5,7 +5,8 @@ import { SelectableValue } from '@grafana/data';
|
|||
import PageActionBar from 'app/core/components/PageActionBar/PageActionBar';
|
||||
import { StoreState, useSelector, useDispatch } from 'app/types';
|
||||
|
||||
import { getDataSourcesSearchQuery, getDataSourcesSort, setDataSourcesSearchQuery, setIsSortAscending } from '../state';
|
||||
import { setDataSourcesSearchQuery, setIsSortAscending } from '../state/reducers';
|
||||
import { getDataSourcesSearchQuery, getDataSourcesSort } from '../state/selectors';
|
||||
import { trackDsSearched } from '../tracking';
|
||||
|
||||
const ascendingSortValue = 'alpha-asc';
|
||||
|
|
|
@ -16,9 +16,6 @@ import PageLoader from 'app/core/components/PageLoader/PageLoader';
|
|||
import { DataSourceSettingsState, useDispatch } from 'app/types';
|
||||
|
||||
import {
|
||||
dataSourceLoaded,
|
||||
setDataSourceName,
|
||||
setIsDefault,
|
||||
useDataSource,
|
||||
useDataSourceExploreUrl,
|
||||
useDataSourceMeta,
|
||||
|
@ -28,7 +25,8 @@ import {
|
|||
useInitDataSourceSettings,
|
||||
useTestDataSource,
|
||||
useUpdateDatasource,
|
||||
} from '../state';
|
||||
} from '../state/hooks';
|
||||
import { setIsDefault, setDataSourceName, dataSourceLoaded } from '../state/reducers';
|
||||
import { trackDsConfigClicked, trackDsConfigUpdated } from '../tracking';
|
||||
import { DataSourceRights } from '../types';
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import { config } from '@grafana/runtime';
|
|||
import { LinkButton } from '@grafana/ui';
|
||||
import { contextSrv } from 'app/core/core';
|
||||
|
||||
import { useDataSource } from '../state';
|
||||
import { useDataSource } from '../state/hooks';
|
||||
import { trackCreateDashboardClicked, trackDsConfigClicked, trackExploreClicked } from '../tracking';
|
||||
import { constructDataSourceExploreUrl } from '../utils';
|
||||
|
||||
|
|
|
@ -10,12 +10,9 @@ import { DataSourcePluginCategory, StoreState, useDispatch, useSelector } from '
|
|||
import { ROUTES } from '../../connections/constants';
|
||||
import { DataSourceCategories } from '../components/DataSourceCategories';
|
||||
import { DataSourceTypeCardList } from '../components/DataSourceTypeCardList';
|
||||
import {
|
||||
useAddDatasource,
|
||||
useLoadDataSourcePlugins,
|
||||
getFilteredDataSourcePlugins,
|
||||
setDataSourceTypeSearchQuery,
|
||||
} from '../state';
|
||||
import { useAddDatasource, useLoadDataSourcePlugins } from '../state/hooks';
|
||||
import { setDataSourceTypeSearchQuery } from '../state/reducers';
|
||||
import { getFilteredDataSourcePlugins } from '../state/selectors';
|
||||
|
||||
export function NewDataSource() {
|
||||
useLoadDataSourcePlugins();
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
Icon,
|
||||
ScrollContainer,
|
||||
} from '@grafana/ui';
|
||||
import * as DFImport from 'app/features/dataframe-import';
|
||||
import { acceptedFiles, maxFileSize } from 'app/features/dataframe-import/constants';
|
||||
import { GrafanaQuery } from 'app/plugins/datasource/grafana/types';
|
||||
import { getFileDropToQueryHandler } from 'app/plugins/datasource/grafana/utils';
|
||||
|
||||
|
@ -203,9 +203,9 @@ export function DataSourceModal({
|
|||
readAs="readAsArrayBuffer"
|
||||
fileListRenderer={() => undefined}
|
||||
options={{
|
||||
maxSize: DFImport.maxFileSize,
|
||||
maxSize: maxFileSize,
|
||||
multiple: false,
|
||||
accept: DFImport.acceptedFiles,
|
||||
accept: acceptedFiles,
|
||||
onDrop: onFileDrop,
|
||||
}}
|
||||
>
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
export * from './actions';
|
||||
export * from './buildCategories';
|
||||
export * from './hooks';
|
||||
export * from './navModel';
|
||||
export * from './reducers';
|
||||
export * from './selectors';
|
|
@ -7,8 +7,8 @@ import { ResourceDimensionConfig, ResourceDimensionMode } from '@grafana/schema'
|
|||
import { InlineField, InlineFieldRow, RadioButtonGroup } from '@grafana/ui';
|
||||
import { FieldNamePicker } from '@grafana/ui/internal';
|
||||
|
||||
import { getPublicOrAbsoluteUrl, ResourceFolderName } from '..';
|
||||
import { MediaType, ResourceDimensionOptions, ResourcePickerSize } from '../types';
|
||||
import { getPublicOrAbsoluteUrl } from '../resource';
|
||||
import { MediaType, ResourceDimensionOptions, ResourceFolderName, ResourcePickerSize } from '../types';
|
||||
|
||||
import { ResourcePicker } from './ResourcePicker';
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
export * from './ColorDimensionEditor';
|
||||
export * from './IconSelector';
|
||||
export * from './ResourceDimensionEditor';
|
||||
export * from './ScaleDimensionEditor';
|
||||
export * from './ScalarDimensionEditor';
|
||||
export * from './TextDimensionEditor';
|
|
@ -1,9 +0,0 @@
|
|||
export * from './types';
|
||||
|
||||
export * from './color';
|
||||
export * from './scale';
|
||||
export * from './text';
|
||||
export * from './utils';
|
||||
export * from './resource';
|
||||
export * from './context';
|
||||
export * from './scalar';
|
|
@ -7,15 +7,13 @@ import {
|
|||
ColorDimensionConfig,
|
||||
ScalarDimensionConfig,
|
||||
} from '@grafana/schema';
|
||||
import {
|
||||
getColorDimension,
|
||||
getScaledDimension,
|
||||
getTextDimension,
|
||||
getResourceDimension,
|
||||
DimensionSupplier,
|
||||
} from 'app/features/dimensions';
|
||||
|
||||
import { getColorDimension } from './color';
|
||||
import { getResourceDimension } from './resource';
|
||||
import { getScalarDimension } from './scalar';
|
||||
import { getScaledDimension } from './scale';
|
||||
import { getTextDimension } from './text';
|
||||
import { DimensionSupplier } from './types';
|
||||
|
||||
export function getColorDimensionFromData(
|
||||
data: PanelData | undefined,
|
||||
|
|
|
@ -27,17 +27,15 @@ import { useDispatch, useSelector } from 'app/types';
|
|||
|
||||
import { changePanelState } from '../state/explorePane';
|
||||
|
||||
import {
|
||||
SpanBarOptionsData,
|
||||
SpanLinkFunc,
|
||||
Trace,
|
||||
TracePageHeader,
|
||||
TraceTimelineViewer,
|
||||
TTraceTimeline,
|
||||
} from './components';
|
||||
import memoizedTraceCriticalPath from './components/CriticalPath';
|
||||
import { TracePageHeader } from './components/TracePageHeader';
|
||||
import SpanGraph from './components/TracePageHeader/SpanGraph';
|
||||
import TraceTimelineViewer from './components/TraceTimelineViewer';
|
||||
import { TraceFlameGraphs } from './components/TraceTimelineViewer/SpanDetail';
|
||||
import { SpanBarOptionsData } from './components/settings/SpanBarSettings';
|
||||
import TTraceTimeline from './components/types/TTraceTimeline';
|
||||
import { SpanLinkFunc } from './components/types/links';
|
||||
import { Trace } from './components/types/trace';
|
||||
import { createSpanLinkFactory } from './createSpanLink';
|
||||
import { useChildrenState } from './useChildrenState';
|
||||
import { useDetailState } from './useDetailState';
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
import memoizeOne from 'memoize-one';
|
||||
|
||||
import { CriticalPathSection, Trace, TraceSpan } from '../types';
|
||||
import { TraceSpan, CriticalPathSection, Trace } from '../types/trace';
|
||||
|
||||
import findLastFinishingChildSpan from './utils/findLastFinishingChildSpan';
|
||||
import getChildOfSpans from './utils/getChildOfSpans';
|
||||
|
|
|
@ -27,7 +27,9 @@
|
|||
|
||||
Here +++++ are critical path sections
|
||||
*/
|
||||
import { Trace, TraceResponse, transformTraceData } from '../../index';
|
||||
|
||||
import transformTraceData from '../../model/transform-trace-data';
|
||||
import { Trace, TraceResponse } from '../../types/trace';
|
||||
|
||||
const testTrace: TraceResponse = {
|
||||
traceID: 'test1-trace',
|
||||
|
|
|
@ -29,7 +29,8 @@
|
|||
|
|
||||
Here ++++++ is critical path |
|
||||
*/
|
||||
import { TraceResponse, transformTraceData } from '../../index';
|
||||
import transformTraceData from '../../model/transform-trace-data';
|
||||
import { TraceResponse } from '../../types/trace';
|
||||
|
||||
const happyTrace: TraceResponse = {
|
||||
traceID: 'trace-123',
|
||||
|
|
|
@ -26,7 +26,8 @@ Span B will be dropped. |
|
|||
span A is on critical path(+++++) |
|
||||
*/
|
||||
|
||||
import { TraceResponse, transformTraceData } from '../../index';
|
||||
import transformTraceData from '../../model/transform-trace-data';
|
||||
import { TraceResponse } from '../../types/trace';
|
||||
|
||||
const trace: TraceResponse = {
|
||||
traceID: '006c3cf93508f205',
|
||||
|
|
|
@ -29,7 +29,8 @@ Both spanB and spanC will be dropped. |
|
|||
span A is on critical path(+++++) |
|
||||
*/
|
||||
|
||||
import { TraceResponse, transformTraceData } from '../../index';
|
||||
import transformTraceData from '../../model/transform-trace-data';
|
||||
import { TraceResponse } from '../../types/trace';
|
||||
|
||||
const trace: TraceResponse = {
|
||||
traceID: 'trace-abc',
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
Here span B is ref-type is 'FOLLOWS_FROM' |
|
||||
*/
|
||||
|
||||
import { TraceResponse, transformTraceData } from '../../index';
|
||||
import transformTraceData from '../../model/transform-trace-data';
|
||||
import { TraceResponse } from '../../types/trace';
|
||||
|
||||
const trace: TraceResponse = {
|
||||
traceID: 'trace-abc',
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
└──────────────┘ | (parent-child tree)
|
||||
*/
|
||||
|
||||
import { TraceResponse, transformTraceData } from '../../index';
|
||||
import transformTraceData from '../../model/transform-trace-data';
|
||||
import { TraceResponse } from '../../types/trace';
|
||||
|
||||
const trace: TraceResponse = {
|
||||
traceID: 'trace-abc',
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
└──────────────┘ |
|
||||
*/
|
||||
|
||||
import { TraceResponse, transformTraceData } from '../../index';
|
||||
import transformTraceData from '../../model/transform-trace-data';
|
||||
import { TraceResponse } from '../../types/trace';
|
||||
|
||||
const trace: TraceResponse = {
|
||||
traceID: 'trace-abc',
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { TraceResponse, transformTraceData } from '../../index';
|
||||
import transformTraceData from '../../model/transform-trace-data';
|
||||
import { TraceResponse } from '../../types/trace';
|
||||
|
||||
/*
|
||||
┌─────────────────┐ |
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { TraceResponse, transformTraceData } from '../../index';
|
||||
import transformTraceData from '../../model/transform-trace-data';
|
||||
import { TraceResponse } from '../../types/trace';
|
||||
|
||||
/*
|
||||
┌──────────┐ |
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { TraceSpan } from '../../types';
|
||||
import { TraceSpan } from '../../types/trace';
|
||||
|
||||
/**
|
||||
* @returns - Returns the span that finished last among the remaining child spans.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { TraceSpan } from '../../types';
|
||||
import { TraceSpan } from '../../types/trace';
|
||||
|
||||
/**
|
||||
* Removes child spans whose refType is FOLLOWS_FROM and their descendants.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { TraceSpan } from '../../types';
|
||||
import { TraceSpan } from '../../types/trace';
|
||||
import test3 from '../testCases/test3';
|
||||
import test4 from '../testCases/test4';
|
||||
import test6 from '../testCases/test6';
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { TraceSpan } from '../../types';
|
||||
import { TraceSpan } from '../../types/trace';
|
||||
|
||||
/**
|
||||
* This function resolves overflowing child spans for each span.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { TNil } from './types';
|
||||
import TNil from './types/TNil';
|
||||
import { TraceSpan, TraceSpanReference, Trace } from './types/trace';
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,7 +23,7 @@ import { config, reportInteraction } from '@grafana/runtime';
|
|||
import { Icon, PopoverContent, Tooltip, useTheme2 } from '@grafana/ui';
|
||||
import { getButtonStyles } from '@grafana/ui/internal';
|
||||
|
||||
import { Trace } from '../../types';
|
||||
import { Trace } from '../../types/trace';
|
||||
|
||||
export type NextPrevResultProps = {
|
||||
trace: Trace;
|
||||
|
|
|
@ -21,7 +21,7 @@ import { Button, Switch, useStyles2 } from '@grafana/ui';
|
|||
import { getButtonStyles } from '@grafana/ui/internal';
|
||||
|
||||
import { SearchProps } from '../../../useSearch';
|
||||
import { Trace } from '../../types';
|
||||
import { Trace } from '../../types/trace';
|
||||
import { convertTimeFilter } from '../../utils/filter-spans';
|
||||
|
||||
import NextPrevResult from './NextPrevResult';
|
||||
|
|
|
@ -23,7 +23,7 @@ import { Collapse, Icon, InlineField, InlineFieldRow, Select, Stack, Tooltip, us
|
|||
import { defaultFilters, SearchProps } from '../../../useSearch';
|
||||
import { getTraceServiceNames, getTraceSpanNames } from '../../../utils/tags';
|
||||
import SearchBarInput from '../../common/SearchBarInput';
|
||||
import { Trace } from '../../types';
|
||||
import { Trace } from '../../types/trace';
|
||||
import NextPrevResult from '../SearchBar/NextPrevResult';
|
||||
import TracePageSearchBar from '../SearchBar/TracePageSearchBar';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { Input, Select, Stack, useStyles2 } from '@grafana/ui';
|
|||
|
||||
import { randomId, SearchProps, Tag } from '../../../useSearch';
|
||||
import { getTraceTagKeys, getTraceTagValues } from '../../../utils/tags';
|
||||
import { Trace } from '../../types';
|
||||
import { Trace } from '../../types/trace';
|
||||
|
||||
interface Props {
|
||||
search: SearchProps;
|
||||
|
|
|
@ -19,7 +19,7 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { withTheme2, stylesFactory } from '@grafana/ui';
|
||||
|
||||
import { autoColor } from '../../Theme';
|
||||
import { TNil } from '../../types';
|
||||
import TNil from '../../types/TNil';
|
||||
import { getRgbColorByKey } from '../../utils/color-generator';
|
||||
|
||||
import renderIntoCanvas from './render-into-canvas';
|
||||
|
|
|
@ -21,8 +21,11 @@ import { Trans } from '@grafana/i18n';
|
|||
import { withTheme2, stylesFactory, Button } from '@grafana/ui';
|
||||
|
||||
import { autoColor } from '../../Theme';
|
||||
import { TUpdateViewRangeTimeFunction, ViewRange, ViewRangeTimeUpdate, TNil } from '../../index';
|
||||
import DraggableManager, { DraggableBounds, DraggingUpdate, EUpdateTypes } from '../../utils/DraggableManager';
|
||||
import { TUpdateViewRangeTimeFunction, ViewRangeTimeUpdate, ViewRange } from '../../TraceTimelineViewer/types';
|
||||
import TNil from '../../types/TNil';
|
||||
import DraggableManager from '../../utils/DraggableManager/DraggableManager';
|
||||
import EUpdateTypes from '../../utils/DraggableManager/EUpdateTypes';
|
||||
import { DraggableBounds, DraggingUpdate } from '../../utils/DraggableManager/types';
|
||||
|
||||
import GraphTicks from './GraphTicks';
|
||||
import Scrubber from './Scrubber';
|
||||
|
|
|
@ -16,8 +16,8 @@ import { css } from '@emotion/css';
|
|||
import memoizeOne from 'memoize-one';
|
||||
import * as React from 'react';
|
||||
|
||||
import { TUpdateViewRangeTimeFunction, ViewRange, ViewRangeTimeUpdate } from '../../index';
|
||||
import { TraceSpan, Trace } from '../../types';
|
||||
import { ViewRange, TUpdateViewRangeTimeFunction, ViewRangeTimeUpdate } from '../../TraceTimelineViewer/types';
|
||||
import { Trace, TraceSpan } from '../../types/trace';
|
||||
|
||||
import CanvasSpanGraph from './CanvasSpanGraph';
|
||||
import TickLabels from './TickLabels';
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { TNil } from '../../index';
|
||||
import TNil from '../../types/TNil';
|
||||
|
||||
// exported for tests
|
||||
export const ITEM_ALPHA = 0.8;
|
||||
|
|
|
@ -27,7 +27,7 @@ import ExternalLinks from '../common/ExternalLinks';
|
|||
import TraceName from '../common/TraceName';
|
||||
import { getTraceLinks } from '../model/link-patterns';
|
||||
import { getHeaderTags, getTraceName } from '../model/trace-viewer';
|
||||
import { Trace } from '../types';
|
||||
import { Trace } from '../types/trace';
|
||||
import { formatDuration } from '../utils/date';
|
||||
|
||||
import TracePageActions from './Actions/TracePageActions';
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
import * as React from 'react';
|
||||
|
||||
import { TNil } from '../../types';
|
||||
import TNil from '../../types/TNil';
|
||||
|
||||
import Positions from './Positions';
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@ import { Tooltip, useStyles2 } from '@grafana/ui';
|
|||
|
||||
import { autoColor } from '../Theme';
|
||||
import { Popover } from '../common/Popover';
|
||||
import { TraceSpan, TNil, CriticalPathSection } from '../types';
|
||||
import TNil from '../types/TNil';
|
||||
import { TraceSpan, CriticalPathSection } from '../types/trace';
|
||||
|
||||
import AccordianLogs from './SpanDetail/AccordianLogs';
|
||||
import { ViewedBoundsFunctionType } from './utils';
|
||||
|
|
|
@ -17,7 +17,8 @@ import userEvent from '@testing-library/user-event';
|
|||
|
||||
import { DURATION, NONE, TAG } from '@grafana/o11y-ds-frontend';
|
||||
|
||||
import { SpanLinkDef, TraceSpan } from '../types';
|
||||
import { SpanLinkDef } from '../types/links';
|
||||
import { TraceSpan } from '../types/trace';
|
||||
|
||||
import SpanBarRow, { SpanBarRowProps } from './SpanBarRow';
|
||||
|
||||
|
|
|
@ -21,7 +21,10 @@ import { DURATION, NONE, TAG } from '@grafana/o11y-ds-frontend';
|
|||
import { Icon, stylesFactory, withTheme2 } from '@grafana/ui';
|
||||
|
||||
import { autoColor } from '../Theme';
|
||||
import { SpanBarOptions, SpanLinkFunc, TraceSpan, TNil, CriticalPathSection } from '../types';
|
||||
import { SpanBarOptions } from '../settings/SpanBarSettings';
|
||||
import TNil from '../types/TNil';
|
||||
import { SpanLinkFunc } from '../types/links';
|
||||
import { TraceSpan, CriticalPathSection } from '../types/trace';
|
||||
|
||||
import SpanBar from './SpanBar';
|
||||
import { SpanLinksMenu } from './SpanLinks';
|
||||
|
|
|
@ -20,7 +20,7 @@ import { GrafanaTheme2, TraceKeyValuePair } from '@grafana/data';
|
|||
import { Icon, useStyles2 } from '@grafana/ui';
|
||||
|
||||
import { autoColor } from '../../Theme';
|
||||
import { TNil } from '../../types';
|
||||
import TNil from '../../types/TNil';
|
||||
|
||||
import * as markers from './AccordianKeyValues.markers';
|
||||
import KeyValuesTable, { KeyValuesTableLink } from './KeyValuesTable';
|
||||
|
|
|
@ -20,7 +20,7 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { Icon, useStyles2 } from '@grafana/ui';
|
||||
|
||||
import { autoColor } from '../../Theme';
|
||||
import { TNil } from '../../types';
|
||||
import TNil from '../../types/TNil';
|
||||
|
||||
import { getStyles as getAccordianKeyValuesStyles } from './AccordianKeyValues';
|
||||
import TextList from './TextList';
|
||||
|
|
|
@ -21,7 +21,7 @@ import { Icon, useStyles2 } from '@grafana/ui';
|
|||
|
||||
import { autoColor } from '../../Theme';
|
||||
import CopyIcon from '../../common/CopyIcon';
|
||||
import { TNil } from '../../types';
|
||||
import TNil from '../../types/TNil';
|
||||
|
||||
import jsonMarkup from './jsonMarkup';
|
||||
|
||||
|
|
|
@ -9,8 +9,7 @@ import { DataLinkButton, Dropdown, Menu, ToolbarButton } from '@grafana/ui';
|
|||
import { RelatedProfilesTitle } from '@grafana-plugins/tempo/resultTransformer';
|
||||
|
||||
import { pyroscopeProfileIdTagKey } from '../../../createSpanLink';
|
||||
import { SpanLinkFunc } from '../../types';
|
||||
import { SpanLinkDef, SpanLinkType } from '../../types/links';
|
||||
import { SpanLinkDef, SpanLinkFunc, SpanLinkType } from '../../types/links';
|
||||
import { TraceSpan } from '../../types/trace';
|
||||
|
||||
export type ProfilesButtonContext = {
|
||||
|
|
|
@ -39,7 +39,7 @@ import { pyroscopeProfileIdTagKey } from '../../../createSpanLink';
|
|||
import { autoColor } from '../../Theme';
|
||||
import LabeledList from '../../common/LabeledList';
|
||||
import { KIND, LIBRARY_NAME, LIBRARY_VERSION, STATUS, STATUS_MESSAGE, TRACE_STATE } from '../../constants/span';
|
||||
import { SpanLinkFunc } from '../../types';
|
||||
import { SpanLinkFunc } from '../../types/links';
|
||||
import { TraceProcess, TraceSpan, TraceSpanReference } from '../../types/trace';
|
||||
import { formatDuration } from '../utils';
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import { TimeZone } from '@grafana/schema';
|
|||
import { Button, clearButtonStyles, stylesFactory, withTheme2 } from '@grafana/ui';
|
||||
|
||||
import { autoColor } from '../Theme';
|
||||
import { SpanLinkFunc } from '../types';
|
||||
import { SpanLinkFunc } from '../types/links';
|
||||
import { TraceSpan, TraceSpanReference } from '../types/trace';
|
||||
|
||||
import SpanDetail, { TraceFlameGraphs } from './SpanDetail';
|
||||
|
|
|
@ -17,7 +17,7 @@ import userEvent from '@testing-library/user-event';
|
|||
|
||||
import { createTheme } from '@grafana/data';
|
||||
|
||||
import { TraceSpan } from '../types';
|
||||
import { TraceSpan } from '../types/trace';
|
||||
import spanAncestorIdsSpy from '../utils/span-ancestor-ids';
|
||||
|
||||
import SpanTreeOffset, { getStyles, TProps } from './SpanTreeOffset';
|
||||
|
|
|
@ -21,7 +21,7 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { Icon, stylesFactory, withTheme2 } from '@grafana/ui';
|
||||
|
||||
import { autoColor } from '../Theme';
|
||||
import { TraceSpan } from '../types';
|
||||
import { TraceSpan } from '../types/trace';
|
||||
import spanAncestorIds from '../utils/span-ancestor-ids';
|
||||
|
||||
export const getStyles = stylesFactory((theme: GrafanaTheme2) => ({
|
||||
|
|
|
@ -20,7 +20,7 @@ import { GrafanaTheme2 } from '@grafana/data';
|
|||
import { useStyles2 } from '@grafana/ui';
|
||||
|
||||
import { autoColor } from '../Theme';
|
||||
import { TNil } from '../types';
|
||||
import TNil from '../types/TNil';
|
||||
|
||||
import { formatDuration } from './utils';
|
||||
|
||||
|
|
|
@ -16,8 +16,9 @@ import { css } from '@emotion/css';
|
|||
import cx from 'classnames';
|
||||
import * as React from 'react';
|
||||
|
||||
import { TNil } from '../../types';
|
||||
import DraggableManager, { DraggableBounds, DraggingUpdate } from '../../utils/DraggableManager';
|
||||
import TNil from '../../types/TNil';
|
||||
import DraggableManager from '../../utils/DraggableManager/DraggableManager';
|
||||
import { DraggableBounds, DraggingUpdate } from '../../utils/DraggableManager/types';
|
||||
|
||||
export const getStyles = () => ({
|
||||
TimelineColumnResizer: css({
|
||||
|
|
|
@ -17,8 +17,9 @@ import * as React from 'react';
|
|||
|
||||
import { stylesFactory } from '@grafana/ui';
|
||||
|
||||
import { TNil } from '../../types';
|
||||
import DraggableManager, { DraggableBounds, DraggingUpdate } from '../../utils/DraggableManager';
|
||||
import TNil from '../../types/TNil';
|
||||
import DraggableManager from '../../utils/DraggableManager/DraggableManager';
|
||||
import { DraggableBounds, DraggingUpdate } from '../../utils/DraggableManager/types';
|
||||
import { TUpdateViewRangeTimeFunction, ViewRangeTime, ViewRangeTimeUpdate } from '../types';
|
||||
|
||||
// exported for testing
|
||||
|
|
|
@ -15,7 +15,7 @@ import { render, screen } from '@testing-library/react';
|
|||
|
||||
import traceGenerator from '../demo/trace-generators';
|
||||
import transformTraceData from '../model/transform-trace-data';
|
||||
import { Trace } from '../types';
|
||||
import { Trace } from '../types/trace';
|
||||
import { formatDuration } from '../utils/date';
|
||||
|
||||
import SpanTreeOffset from './SpanTreeOffset';
|
||||
|
|
|
@ -26,9 +26,11 @@ import { TimeZone } from '@grafana/schema';
|
|||
import { stylesFactory, withTheme2, ToolbarButton } from '@grafana/ui';
|
||||
|
||||
import { PEER_SERVICE } from '../constants/tag-keys';
|
||||
import { CriticalPathSection, SpanBarOptions, SpanLinkFunc, TNil } from '../types';
|
||||
import { SpanBarOptions } from '../settings/SpanBarSettings';
|
||||
import TNil from '../types/TNil';
|
||||
import TTraceTimeline from '../types/TTraceTimeline';
|
||||
import { TraceSpan, Trace, TraceSpanReference } from '../types/trace';
|
||||
import { SpanLinkFunc } from '../types/links';
|
||||
import { TraceSpan, Trace, TraceSpanReference, CriticalPathSection } from '../types/trace';
|
||||
import { getColorByKey } from '../utils/color-generator';
|
||||
|
||||
import ListView from './ListView';
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue