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
1dfabf49
Commit
1dfabf49
authored
Jan 17, 2019
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Replace the deprecated SFC with FC
parent
71121e1d
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
48 additions
and
48 deletions
+48
-48
public/app/core/components/Animations/FadeIn.tsx
+2
-2
public/app/core/components/Footer/Footer.tsx
+2
-2
public/app/core/components/LayoutSelector/LayoutSelector.tsx
+2
-2
public/app/core/components/PageLoader/PageLoader.tsx
+2
-2
public/app/core/components/ToggleButtonGroup/ToggleButtonGroup.tsx
+2
-2
public/app/core/components/sidemenu/DropDownChild.tsx
+2
-2
public/app/core/components/sidemenu/SideMenuDropDown.tsx
+2
-2
public/app/core/components/sidemenu/SignIn.tsx
+2
-2
public/app/core/components/sidemenu/TopSection.tsx
+2
-2
public/app/core/components/sidemenu/TopSectionItem.tsx
+2
-2
public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderMenuItem.tsx
+2
-2
public/app/features/dashboard/panel_editor/DataSourceOption.tsx
+2
-2
public/app/features/datasources/DashboardsTable.tsx
+2
-2
public/app/features/datasources/settings/BasicSettings.tsx
+2
-2
public/app/features/datasources/settings/ButtonRow.tsx
+2
-2
public/app/features/explore/Error.tsx
+2
-2
public/app/features/org/OrgProfile.tsx
+2
-2
public/app/features/plugins/PluginList.tsx
+2
-2
public/app/features/plugins/PluginListItem.tsx
+2
-2
public/app/features/users/UsersTable.tsx
+2
-2
public/app/plugins/datasource/stackdriver/components/AlignmentPeriods.tsx
+2
-2
public/app/plugins/datasource/stackdriver/components/Alignments.tsx
+2
-2
public/app/plugins/datasource/stackdriver/components/AnnotationsHelp.tsx
+2
-2
public/app/plugins/datasource/stackdriver/components/SimpleSelect.tsx
+2
-2
No files found.
public/app/core/components/Animations/FadeIn.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
Transition
from
'react-transition-group/Transition'
;
interface
Props
{
...
...
@@ -8,7 +8,7 @@ interface Props {
unmountOnExit
?:
boolean
;
}
export
const
FadeIn
:
S
FC
<
Props
>
=
props
=>
{
export
const
FadeIn
:
FC
<
Props
>
=
props
=>
{
const
defaultStyle
=
{
transition
:
`opacity
${
props
.
duration
}
ms linear`
,
opacity
:
0
,
...
...
public/app/core/components/Footer/Footer.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
{
Tooltip
}
from
'@grafana/ui'
;
interface
Props
{
...
...
@@ -9,7 +9,7 @@ interface Props {
newGrafanaVersion
:
string
;
}
export
const
Footer
:
S
FC
<
Props
>
=
React
.
memo
(({
appName
,
buildVersion
,
buildCommit
,
newGrafanaVersionExists
,
newGrafanaVersion
})
=>
{
export
const
Footer
:
FC
<
Props
>
=
React
.
memo
(({
appName
,
buildVersion
,
buildCommit
,
newGrafanaVersionExists
,
newGrafanaVersion
})
=>
{
return
(
<
footer
className=
"footer"
>
<
div
className=
"text-center"
>
...
...
public/app/core/components/LayoutSelector/LayoutSelector.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
export
type
LayoutMode
=
LayoutModes
.
Grid
|
LayoutModes
.
List
;
...
...
@@ -12,7 +12,7 @@ interface Props {
onLayoutModeChanged
:
(
mode
:
LayoutMode
)
=>
{};
}
const
LayoutSelector
:
S
FC
<
Props
>
=
props
=>
{
const
LayoutSelector
:
FC
<
Props
>
=
props
=>
{
const
{
mode
,
onLayoutModeChanged
}
=
props
;
return
(
<
div
className=
"layout-selector"
>
...
...
public/app/core/components/PageLoader/PageLoader.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
interface
Props
{
pageName
?:
string
;
}
const
PageLoader
:
S
FC
<
Props
>
=
({
pageName
})
=>
{
const
PageLoader
:
FC
<
Props
>
=
({
pageName
})
=>
{
const
loadingText
=
`Loading
${
pageName
}
...`
;
return
(
<
div
className=
"page-loader-wrapper"
>
...
...
public/app/core/components/ToggleButtonGroup/ToggleButtonGroup.tsx
View file @
1dfabf49
import
React
,
{
S
FC
,
ReactNode
,
PureComponent
}
from
'react'
;
import
React
,
{
FC
,
ReactNode
,
PureComponent
}
from
'react'
;
import
{
Tooltip
}
from
'@grafana/ui'
;
interface
ToggleButtonGroupProps
{
...
...
@@ -29,7 +29,7 @@ interface ToggleButtonProps {
tooltip
?:
string
;
}
export
const
ToggleButton
:
S
FC
<
ToggleButtonProps
>
=
({
export
const
ToggleButton
:
FC
<
ToggleButtonProps
>
=
({
children
,
selected
,
className
=
''
,
...
...
public/app/core/components/sidemenu/DropDownChild.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
export
interface
Props
{
child
:
any
;
}
const
DropDownChild
:
S
FC
<
Props
>
=
props
=>
{
const
DropDownChild
:
FC
<
Props
>
=
props
=>
{
const
{
child
}
=
props
;
const
listItemClassName
=
child
.
divider
?
'divider'
:
''
;
...
...
public/app/core/components/sidemenu/SideMenuDropDown.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
DropDownChild
from
'./DropDownChild'
;
interface
Props
{
link
:
any
;
}
const
SideMenuDropDown
:
S
FC
<
Props
>
=
props
=>
{
const
SideMenuDropDown
:
FC
<
Props
>
=
props
=>
{
const
{
link
}
=
props
;
return
(
<
ul
className=
"dropdown-menu dropdown-menu--sidemenu"
role=
"menu"
>
...
...
public/app/core/components/sidemenu/SignIn.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
const
SignIn
:
S
FC
<
any
>
=
()
=>
{
const
SignIn
:
FC
<
any
>
=
()
=>
{
const
loginUrl
=
`login?redirect=
${
encodeURIComponent
(
window
.
location
.
pathname
)}
`
;
return
(
<
div
className=
"sidemenu-item"
>
...
...
public/app/core/components/sidemenu/TopSection.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
_
from
'lodash'
;
import
TopSectionItem
from
'./TopSectionItem'
;
import
config
from
'../../config'
;
const
TopSection
:
S
FC
<
any
>
=
()
=>
{
const
TopSection
:
FC
<
any
>
=
()
=>
{
const
navTree
=
_
.
cloneDeep
(
config
.
bootData
.
navTree
);
const
mainLinks
=
_
.
filter
(
navTree
,
item
=>
!
item
.
hideFromMenu
);
...
...
public/app/core/components/sidemenu/TopSectionItem.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
SideMenuDropDown
from
'./SideMenuDropDown'
;
export
interface
Props
{
link
:
any
;
}
const
TopSectionItem
:
S
FC
<
Props
>
=
props
=>
{
const
TopSectionItem
:
FC
<
Props
>
=
props
=>
{
const
{
link
}
=
props
;
return
(
<
div
className=
"sidemenu-item dropdown"
>
...
...
public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderMenuItem.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
{
PanelMenuItem
}
from
'@grafana/ui'
;
interface
Props
{
children
:
any
;
}
export
const
PanelHeaderMenuItem
:
S
FC
<
Props
&
PanelMenuItem
>
=
props
=>
{
export
const
PanelHeaderMenuItem
:
FC
<
Props
&
PanelMenuItem
>
=
props
=>
{
const
isSubMenu
=
props
.
type
===
'submenu'
;
const
isDivider
=
props
.
type
===
'divider'
;
return
isDivider
?
(
...
...
public/app/features/dashboard/panel_editor/DataSourceOption.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
{
Tooltip
}
from
'@grafana/ui'
;
interface
Props
{
...
...
@@ -10,7 +10,7 @@ interface Props {
tooltipInfo
?:
any
;
}
export
const
DataSourceOptions
:
S
FC
<
Props
>
=
({
label
,
placeholder
,
name
,
value
,
onChange
,
tooltipInfo
})
=>
{
export
const
DataSourceOptions
:
FC
<
Props
>
=
({
label
,
placeholder
,
name
,
value
,
onChange
,
tooltipInfo
})
=>
{
const
dsOption
=
(
<
div
className=
"gf-form gf-form--flex-end"
>
<
label
className=
"gf-form-label"
>
{
label
}
</
label
>
...
...
public/app/features/datasources/DashboardsTable.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
{
PluginDashboard
}
from
'../../types'
;
export
interface
Props
{
...
...
@@ -7,7 +7,7 @@ export interface Props {
onRemove
:
(
dashboard
)
=>
void
;
}
const
DashboardsTable
:
S
FC
<
Props
>
=
({
dashboards
,
onImport
,
onRemove
})
=>
{
const
DashboardsTable
:
FC
<
Props
>
=
({
dashboards
,
onImport
,
onRemove
})
=>
{
function
buttonText
(
dashboard
:
PluginDashboard
)
{
return
dashboard
.
revision
!==
dashboard
.
importedRevision
?
'Update'
:
'Re-import'
;
}
...
...
public/app/features/datasources/settings/BasicSettings.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
{
Label
}
from
'@grafana/ui'
;
import
{
Switch
}
from
'../../../core/components/Switch/Switch'
;
...
...
@@ -10,7 +10,7 @@ export interface Props {
onDefaultChange
:
(
value
:
boolean
)
=>
void
;
}
const
BasicSettings
:
S
FC
<
Props
>
=
({
dataSourceName
,
isDefault
,
onDefaultChange
,
onNameChange
})
=>
{
const
BasicSettings
:
FC
<
Props
>
=
({
dataSourceName
,
isDefault
,
onDefaultChange
,
onNameChange
})
=>
{
return
(
<
div
className=
"gf-form-group"
>
<
div
className=
"gf-form-inline"
>
...
...
public/app/features/datasources/settings/ButtonRow.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
export
interface
Props
{
isReadOnly
:
boolean
;
...
...
@@ -6,7 +6,7 @@ export interface Props {
onSubmit
:
(
event
)
=>
void
;
}
const
ButtonRow
:
S
FC
<
Props
>
=
({
isReadOnly
,
onDelete
,
onSubmit
})
=>
{
const
ButtonRow
:
FC
<
Props
>
=
({
isReadOnly
,
onDelete
,
onSubmit
})
=>
{
return
(
<
div
className=
"gf-form-button-row"
>
<
button
type=
"submit"
className=
"btn btn-success"
disabled=
{
isReadOnly
}
onClick=
{
event
=>
onSubmit
(
event
)
}
>
...
...
public/app/features/explore/Error.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
interface
Props
{
message
:
any
;
}
export
const
Alert
:
S
FC
<
Props
>
=
props
=>
{
export
const
Alert
:
FC
<
Props
>
=
props
=>
{
const
{
message
}
=
props
;
return
(
<
div
className=
"gf-form-group section"
>
...
...
public/app/features/org/OrgProfile.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
export
interface
Props
{
orgName
:
string
;
...
...
@@ -6,7 +6,7 @@ export interface Props {
onOrgNameChange
:
(
orgName
:
string
)
=>
void
;
}
const
OrgProfile
:
S
FC
<
Props
>
=
({
onSubmit
,
onOrgNameChange
,
orgName
})
=>
{
const
OrgProfile
:
FC
<
Props
>
=
({
onSubmit
,
onOrgNameChange
,
orgName
})
=>
{
return
(
<
div
>
<
h3
className=
"page-sub-heading"
>
Organization profile
</
h3
>
...
...
public/app/features/plugins/PluginList.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
classNames
from
'classnames'
;
import
PluginListItem
from
'./PluginListItem'
;
import
{
Plugin
}
from
'app/types'
;
...
...
@@ -9,7 +9,7 @@ interface Props {
layoutMode
:
LayoutMode
;
}
const
PluginList
:
S
FC
<
Props
>
=
props
=>
{
const
PluginList
:
FC
<
Props
>
=
props
=>
{
const
{
plugins
,
layoutMode
}
=
props
;
const
listStyle
=
classNames
({
...
...
public/app/features/plugins/PluginListItem.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
{
Plugin
}
from
'app/types'
;
interface
Props
{
plugin
:
Plugin
;
}
const
PluginListItem
:
S
FC
<
Props
>
=
props
=>
{
const
PluginListItem
:
FC
<
Props
>
=
props
=>
{
const
{
plugin
}
=
props
;
return
(
...
...
public/app/features/users/UsersTable.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
{
OrgUser
}
from
'app/types'
;
export
interface
Props
{
...
...
@@ -7,7 +7,7 @@ export interface Props {
onRemoveUser
:
(
user
:
OrgUser
)
=>
void
;
}
const
UsersTable
:
S
FC
<
Props
>
=
props
=>
{
const
UsersTable
:
FC
<
Props
>
=
props
=>
{
const
{
users
,
onRoleChange
,
onRemoveUser
}
=
props
;
return
(
...
...
public/app/plugins/datasource/stackdriver/components/AlignmentPeriods.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
_
from
'lodash'
;
import
kbn
from
'app/core/utils/kbn'
;
...
...
@@ -14,7 +14,7 @@ export interface Props {
usedAlignmentPeriod
:
string
;
}
export
const
AlignmentPeriods
:
S
FC
<
Props
>
=
({
export
const
AlignmentPeriods
:
FC
<
Props
>
=
({
alignmentPeriod
,
templateSrv
,
onChange
,
...
...
public/app/plugins/datasource/stackdriver/components/Alignments.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
import
_
from
'lodash'
;
import
{
MetricSelect
}
from
'app/core/components/Select/MetricSelect'
;
...
...
@@ -12,7 +12,7 @@ export interface Props {
perSeriesAligner
:
string
;
}
export
const
Alignments
:
S
FC
<
Props
>
=
({
perSeriesAligner
,
templateSrv
,
onChange
,
alignOptions
})
=>
{
export
const
Alignments
:
FC
<
Props
>
=
({
perSeriesAligner
,
templateSrv
,
onChange
,
alignOptions
})
=>
{
return
(
<>
<
div
className=
"gf-form-group"
>
...
...
public/app/plugins/datasource/stackdriver/components/AnnotationsHelp.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
export
const
AnnotationsHelp
:
S
FC
=
()
=>
{
export
const
AnnotationsHelp
:
FC
=
()
=>
{
return
(
<
div
className=
"gf-form grafana-info-box"
style=
{
{
padding
:
0
}
}
>
<
pre
className=
"gf-form-pre alert alert-info"
style=
{
{
marginRight
:
0
}
}
>
...
...
public/app/plugins/datasource/stackdriver/components/SimpleSelect.tsx
View file @
1dfabf49
import
React
,
{
S
FC
}
from
'react'
;
import
React
,
{
FC
}
from
'react'
;
interface
Props
{
onValueChange
:
(
e
)
=>
void
;
...
...
@@ -7,7 +7,7 @@ interface Props {
label
:
string
;
}
const
SimpleSelect
:
S
FC
<
Props
>
=
props
=>
{
const
SimpleSelect
:
FC
<
Props
>
=
props
=>
{
const
{
label
,
onValueChange
,
value
,
options
}
=
props
;
return
(
<
div
className=
"gf-form max-width-21"
>
...
...
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