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
7c4a597f
Unverified
Commit
7c4a597f
authored
Jan 11, 2021
by
Torkel Ödegaard
Committed by
GitHub
Jan 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CleanUp: Removed old panel options group component (#30157)
* Removed unused component * Remove scss import
parent
e09c535f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
78 deletions
+3
-78
packages/grafana-ui/src/components/PanelOptionsGroup/PanelOptionsGroup.tsx
+0
-39
packages/grafana-ui/src/components/PanelOptionsGroup/_PanelOptionsGroup.scss
+0
-34
packages/grafana-ui/src/components/index.scss
+0
-1
packages/grafana-ui/src/components/index.ts
+0
-1
public/app/plugins/panel/piechart/PieChartOptionsBox.tsx
+3
-3
No files found.
packages/grafana-ui/src/components/PanelOptionsGroup/PanelOptionsGroup.tsx
deleted
100644 → 0
View file @
e09c535f
// Libraries
import
React
,
{
FunctionComponent
}
from
'react'
;
import
{
Icon
}
from
'../Icon/Icon'
;
interface
Props
{
title
?:
string
|
JSX
.
Element
;
onClose
?:
()
=>
void
;
children
:
JSX
.
Element
|
JSX
.
Element
[]
|
boolean
;
onAdd
?:
()
=>
void
;
}
export
const
PanelOptionsGroup
:
FunctionComponent
<
Props
>
=
props
=>
{
return
(
<
div
className=
"panel-options-group"
>
{
props
.
onAdd
?
(
<
div
className=
"panel-options-group__header"
>
<
button
className=
"panel-options-group__add-btn"
onClick=
{
props
.
onAdd
}
>
<
div
className=
"panel-options-group__add-circle"
>
<
Icon
name=
"plus"
/>
</
div
>
<
span
className=
"panel-options-group__title"
>
{
props
.
title
}
</
span
>
</
button
>
</
div
>
)
:
(
props
.
title
&&
(
<
div
className=
"panel-options-group__header"
>
<
span
className=
"panel-options-group__title"
>
{
props
.
title
}
</
span
>
{
props
.
onClose
&&
(
<
button
className=
"btn btn-link"
onClick=
{
props
.
onClose
}
>
<
Icon
name=
"times"
/>
</
button
>
)
}
</
div
>
)
)
}
{
props
.
children
&&
<
div
className=
"panel-options-group__body"
>
{
props
.
children
}
</
div
>
}
</
div
>
);
};
packages/grafana-ui/src/components/PanelOptionsGroup/_PanelOptionsGroup.scss
deleted
100644 → 0
View file @
e09c535f
.panel-options-group
{
border-bottom
:
$panel-border
;
}
.panel-options-group__header
{
padding
:
8px
16px
8px
8px
;
position
:
relative
;
display
:
flex
;
align-items
:
center
;
cursor
:
pointer
;
font-weight
:
500
;
color
:
$text-color-semi-weak
;
&
:hover
{
color
:
$text-color
;
.panel-options-group__icon
{
color
:
$text-color
;
}
}
}
.panel-options-group__icon
{
color
:
$text-color-weak
;
margin-right
:
8px
;
}
.panel-options-group__title
{
position
:
relative
;
}
.panel-options-group__body
{
padding
:
8px
16px
16px
32px
;
}
packages/grafana-ui/src/components/index.scss
View file @
7c4a597f
...
...
@@ -5,7 +5,6 @@
@import
'EmptySearchResult/EmptySearchResult'
;
@import
'FormField/FormField'
;
@import
'PanelOptionsGrid/PanelOptionsGrid'
;
@import
'PanelOptionsGroup/PanelOptionsGroup'
;
@import
'RefreshPicker/RefreshPicker'
;
@import
'Forms/Legacy/Select/Select'
;
@import
'TableInputCSV/TableInputCSV'
;
...
...
packages/grafana-ui/src/components/index.ts
View file @
7c4a597f
...
...
@@ -16,7 +16,6 @@ export { ButtonCascader } from './ButtonCascader/ButtonCascader';
export
{
LoadingPlaceholder
,
LoadingPlaceholderProps
}
from
'./LoadingPlaceholder/LoadingPlaceholder'
;
export
{
ColorPicker
,
SeriesColorPicker
}
from
'./ColorPicker/ColorPicker'
;
export
{
SeriesColorPickerPopover
,
SeriesColorPickerPopoverWithTheme
}
from
'./ColorPicker/SeriesColorPickerPopover'
;
export
{
PanelOptionsGroup
}
from
'./PanelOptionsGroup/PanelOptionsGroup'
;
export
{
PanelOptionsGrid
}
from
'./PanelOptionsGrid/PanelOptionsGrid'
;
export
{
EmptySearchResult
}
from
'./EmptySearchResult/EmptySearchResult'
;
export
{
PieChart
,
PieChartType
}
from
'./PieChart/PieChart'
;
...
...
public/app/plugins/panel/piechart/PieChartOptionsBox.tsx
View file @
7c4a597f
...
...
@@ -2,7 +2,7 @@
import
React
,
{
PureComponent
}
from
'react'
;
// Components
import
{
LegacyForms
,
InlineFormLabel
,
PanelOptionsGroup
}
from
'@grafana/ui'
;
import
{
LegacyForms
,
InlineFormLabel
}
from
'@grafana/ui'
;
const
{
Select
,
FormField
}
=
LegacyForms
;
// Types
...
...
@@ -27,7 +27,7 @@ export class PieChartOptionsBox extends PureComponent<PanelEditorProps<PieChartO
const
{
pieType
,
strokeWidth
}
=
options
;
return
(
<
PanelOptionsGroup
title=
"PieChart"
>
<>
<
div
className=
"gf-form"
>
<
InlineFormLabel
width=
{
labelWidth
}
>
Type
</
InlineFormLabel
>
<
Select
...
...
@@ -45,7 +45,7 @@ export class PieChartOptionsBox extends PureComponent<PanelEditorProps<PieChartO
value=
{
strokeWidth
}
/>
</
div
>
</
PanelOptionsGroup
>
</>
);
}
}
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