Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
ff7db709
Unverified
Commit
ff7db709
authored
May 06, 2020
by
Ryan McKinley
Committed by
GitHub
May 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@grafana/ui: avoid imports to @grafana/data/src/... (#24358)
parent
91a83b71
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
packages/grafana-data/src/transformations/index.ts
+6
-1
packages/grafana-ui/src/components/TransformersUI/CalculateFieldTransformerEditor.tsx
+2
-4
packages/grafana-ui/src/components/TransformersUI/LabelsToFieldsTransformerEditor.tsx
+7
-2
No files found.
packages/grafana-data/src/transformations/index.ts
View file @
ff7db709
...
...
@@ -7,7 +7,12 @@ export { FilterFieldsByNameTransformerOptions } from './transformers/filterByNam
export
{
FilterFramesByRefIdTransformerOptions
}
from
'./transformers/filterByRefId'
;
export
{
SeriesToColumnsOptions
}
from
'./transformers/seriesToColumns'
;
export
{
ReduceTransformerOptions
}
from
'./transformers/reduce'
;
export
{
CalculateFieldTransformerOptions
}
from
'./transformers/calculateField'
;
export
{
LabelsToFieldsOptions
}
from
'./transformers/labelsToFields'
;
export
{
CalculateFieldTransformerOptions
,
CalculateFieldMode
,
getResultFieldNameForCalculateFieldTransformerOptions
,
}
from
'./transformers/calculateField'
;
export
{
OrganizeFieldsTransformerOptions
}
from
'./transformers/organize'
;
export
{
createOrderFieldsComparer
}
from
'./transformers/order'
;
export
{
transformDataFrame
}
from
'./transformDataFrame'
;
...
...
packages/grafana-ui/src/components/TransformersUI/CalculateFieldTransformerEditor.tsx
View file @
ff7db709
...
...
@@ -12,16 +12,14 @@ import {
BinaryOperationID
,
SelectableValue
,
binaryOperators
,
CalculateFieldMode
,
getResultFieldNameForCalculateFieldTransformerOptions
,
}
from
'@grafana/data'
;
import
{
StatsPicker
}
from
'../StatsPicker/StatsPicker'
;
import
{
Switch
}
from
'../Forms/Legacy/Switch/Switch'
;
import
{
Input
}
from
'../Input/Input'
;
import
{
FilterPill
}
from
'../FilterPill/FilterPill'
;
import
{
HorizontalGroup
}
from
'../Layout/Layout'
;
import
{
CalculateFieldMode
,
getResultFieldNameForCalculateFieldTransformerOptions
,
}
from
'@grafana/data/src/transformations/transformers/calculateField'
;
import
{
Select
}
from
'../Select/Select'
;
import
defaults
from
'lodash/defaults'
;
...
...
packages/grafana-ui/src/components/TransformersUI/LabelsToFieldsTransformerEditor.tsx
View file @
ff7db709
import
React
from
'react'
;
import
{
DataTransformerID
,
standardTransformers
,
TransformerRegistyItem
,
TransformerUIProps
}
from
'@grafana/data'
;
import
{
LabelsToFieldsOptions
}
from
'@grafana/data/src/transformations/transformers/labelsToFields'
;
import
{
DataTransformerID
,
standardTransformers
,
TransformerRegistyItem
,
TransformerUIProps
,
LabelsToFieldsOptions
,
}
from
'@grafana/data'
;
export
const
LabelsAsFieldsTransformerEditor
:
React
.
FC
<
TransformerUIProps
<
LabelsToFieldsOptions
>>
=
({
input
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment