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
f9f51d68
Commit
f9f51d68
authored
Jan 08, 2019
by
Erik Sundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace fragment with empty jsx tags
parent
e71e2b30
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
28 additions
and
28 deletions
+28
-28
public/app/plugins/datasource/stackdriver/components/Aggregations.tsx
+4
-4
public/app/plugins/datasource/stackdriver/components/AliasBy.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/AnnotationQueryEditor.tsx
+4
-4
public/app/plugins/datasource/stackdriver/components/Help.tsx
+2
-2
public/app/plugins/datasource/stackdriver/components/Metrics.tsx
+2
-2
public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx
+4
-4
public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.tsx
+6
-6
No files found.
public/app/plugins/datasource/stackdriver/components/Aggregations.tsx
View file @
f9f51d68
...
...
@@ -63,7 +63,7 @@ export class Aggregations extends React.Component<Props, State> {
const
{
templateSrv
,
onChange
,
crossSeriesReducer
}
=
this
.
props
;
return
(
<
React
.
Fragment
>
<>
<
div
className=
"gf-form-inline"
>
<
div
className=
"gf-form"
>
<
label
className=
"gf-form-label query-keyword width-9"
>
Aggregation
</
label
>
...
...
@@ -79,15 +79,15 @@ export class Aggregations extends React.Component<Props, State> {
<
div
className=
"gf-form gf-form--grow"
>
<
label
className=
"gf-form-label gf-form-label--grow"
>
<
a
onClick=
{
()
=>
this
.
handleToggleDisplayAdvanced
()
}
>
<
React
.
Fragment
>
<>
<
i
className=
{
`fa fa-caret-${displayAdvancedOptions ? 'down' : 'right'}`
}
/>
Advanced Options
</
React
.
Fragment
>
</>
</
a
>
</
label
>
</
div
>
</
div
>
{
this
.
props
.
children
(
this
.
state
.
displayAdvancedOptions
)
}
</
React
.
Fragment
>
</>
);
}
}
public/app/plugins/datasource/stackdriver/components/AliasBy.tsx
View file @
f9f51d68
...
...
@@ -39,7 +39,7 @@ export class AliasBy extends Component<Props, State> {
render
()
{
return
(
<
React
.
Fragment
>
<>
<
div
className=
"gf-form-inline"
>
<
div
className=
"gf-form"
>
<
label
className=
"gf-form-label query-keyword width-9"
>
Alias By
</
label
>
...
...
@@ -54,7 +54,7 @@ export class AliasBy extends Component<Props, State> {
<
div
className=
"gf-form-label gf-form-label--grow"
/>
</
div
>
</
div
>
</
React
.
Fragment
>
</>
);
}
}
public/app/plugins/datasource/stackdriver/components/AlignmentPeriods.tsx
View file @
f9f51d68
...
...
@@ -12,7 +12,7 @@ export interface Props {
export
const
AlignmentPeriods
:
SFC
<
Props
>
=
({
alignmentPeriod
,
templateSrv
,
onChange
})
=>
{
return
(
<
React
.
Fragment
>
<>
<
div
className=
"gf-form-inline"
>
<
div
className=
"gf-form"
>
<
label
className=
"gf-form-label query-keyword width-9"
>
Alignment Period
</
label
>
...
...
@@ -35,6 +35,6 @@ export const AlignmentPeriods: SFC<Props> = ({ alignmentPeriod, templateSrv, onC
/>
</
div
>
</
div
>
</
React
.
Fragment
>
</>
);
};
public/app/plugins/datasource/stackdriver/components/Alignments.tsx
View file @
f9f51d68
...
...
@@ -12,7 +12,7 @@ export interface Props {
export
const
Alignments
:
SFC
<
Props
>
=
({
perSeriesAligner
,
templateSrv
,
onChange
,
alignOptions
})
=>
{
return
(
<
React
.
Fragment
>
<>
<
div
className=
"gf-form-group"
>
<
div
className=
"gf-form offset-width-9"
>
<
label
className=
"gf-form-label query-keyword width-15"
>
Aligner
</
label
>
...
...
@@ -26,6 +26,6 @@ export const Alignments: SFC<Props> = ({ perSeriesAligner, templateSrv, onChange
/>
</
div
>
</
div
>
</
React
.
Fragment
>
</>
);
};
public/app/plugins/datasource/stackdriver/components/AnnotationQueryEditor.tsx
View file @
f9f51d68
...
...
@@ -62,7 +62,7 @@ export class AnnotationQueryEditor extends React.Component<Props, State> {
const
{
datasource
}
=
this
.
props
;
return
(
<
React
.
Fragment
>
<>
<
Metrics
defaultProject=
{
defaultProject
}
metricType=
{
metricType
}
...
...
@@ -71,7 +71,7 @@ export class AnnotationQueryEditor extends React.Component<Props, State> {
onChange=
{
value
=>
this
.
handleMetricTypeChange
(
value
)
}
>
{
metric
=>
(
<
React
.
Fragment
>
<>
<
Filter
filtersChanged=
{
value
=>
this
.
handleChange
(
'filters'
,
value
)
}
filters=
{
filters
}
...
...
@@ -81,7 +81,7 @@ export class AnnotationQueryEditor extends React.Component<Props, State> {
datasource=
{
datasource
}
metricType=
{
metric
?
metric
.
type
:
''
}
/>
</
React
.
Fragment
>
</>
)
}
</
Metrics
>
<
div
className=
"gf-form gf-form-inline"
>
...
...
@@ -109,7 +109,7 @@ export class AnnotationQueryEditor extends React.Component<Props, State> {
</
div
>
<
AnnotationsHelp
/>
</
React
.
Fragment
>
</>
);
}
}
public/app/plugins/datasource/stackdriver/components/Help.tsx
View file @
f9f51d68
...
...
@@ -35,7 +35,7 @@ export class Help extends React.Component<Props, State> {
const
{
datasource
,
rawQuery
,
lastQueryError
}
=
this
.
props
;
return
(
<
React
.
Fragment
>
<>
<
div
className=
"gf-form-inline"
>
<
Project
datasource=
{
datasource
}
/>
<
div
className=
"gf-form"
onClick=
{
()
=>
this
.
handleHelpClicked
()
}
>
...
...
@@ -106,7 +106,7 @@ export class Help extends React.Component<Props, State> {
<
pre
className=
"gf-form-pre alert alert-error"
>
{
lastQueryError
}
</
pre
>
</
div
>
)
}
</
React
.
Fragment
>
</>
);
}
}
public/app/plugins/datasource/stackdriver/components/Metrics.tsx
View file @
f9f51d68
...
...
@@ -146,7 +146,7 @@ export class Metrics extends React.Component<Props, State> {
const
{
metricType
,
templateSrv
}
=
this
.
props
;
return
(
<
React
.
Fragment
>
<>
<
div
className=
"gf-form-inline"
>
<
div
className=
"gf-form"
>
<
span
className=
"gf-form-label width-9 query-keyword"
>
Service
</
span
>
...
...
@@ -186,7 +186,7 @@ export class Metrics extends React.Component<Props, State> {
</
div
>
</
div
>
{
this
.
props
.
children
(
this
.
state
.
metricDescriptor
)
}
</
React
.
Fragment
>
</>
);
}
}
public/app/plugins/datasource/stackdriver/components/QueryEditor.tsx
View file @
f9f51d68
...
...
@@ -138,7 +138,7 @@ export class QueryEditor extends React.Component<Props, State> {
const
{
datasource
}
=
this
.
props
;
return
(
<
React
.
Fragment
>
<>
<
Metrics
defaultProject=
{
defaultProject
}
metricType=
{
metricType
}
...
...
@@ -147,7 +147,7 @@ export class QueryEditor extends React.Component<Props, State> {
onChange=
{
value
=>
this
.
handleMetricTypeChange
(
value
)
}
>
{
metric
=>
(
<
React
.
Fragment
>
<>
<
Filter
filtersChanged=
{
value
=>
this
.
handleChange
(
'filters'
,
value
)
}
groupBysChanged=
{
value
=>
this
.
handleChange
(
'groupBys'
,
value
)
}
...
...
@@ -184,10 +184,10 @@ export class QueryEditor extends React.Component<Props, State> {
onChange=
{
value
=>
this
.
handleChange
(
'alignmentPeriod'
,
value
)
}
/>
<
Help
datasource=
{
datasource
}
rawQuery=
{
lastQuery
}
lastQueryError=
{
lastQueryError
}
/>
</
React
.
Fragment
>
</>
)
}
</
Metrics
>
</
React
.
Fragment
>
</>
);
}
}
public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.tsx
View file @
f9f51d68
...
...
@@ -134,7 +134,7 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
case
MetricFindQueryTypes
.
LabelValues
:
case
MetricFindQueryTypes
.
ResourceTypes
:
return
(
<
React
.
Fragment
>
<>
<
SimpleSelect
value=
{
this
.
state
.
selectedService
}
options=
{
this
.
insertTemplateVariables
(
this
.
state
.
services
)
}
...
...
@@ -155,12 +155,12 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
label=
"Label Key"
/>
)
}
</
React
.
Fragment
>
</>
);
case
MetricFindQueryTypes
.
Aligners
:
case
MetricFindQueryTypes
.
Aggregations
:
return
(
<
React
.
Fragment
>
<>
<
SimpleSelect
value=
{
this
.
state
.
selectedService
}
options=
{
this
.
insertTemplateVariables
(
this
.
state
.
services
)
}
...
...
@@ -173,7 +173,7 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
onValueChange=
{
e
=>
this
.
onMetricTypeChange
(
e
)
}
label=
"Metric Type"
/>
</
React
.
Fragment
>
</>
);
default
:
return
''
;
...
...
@@ -182,7 +182,7 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
render
()
{
return
(
<
React
.
Fragment
>
<>
<
SimpleSelect
value=
{
this
.
state
.
selectedQueryType
}
options=
{
this
.
queryTypes
}
...
...
@@ -190,7 +190,7 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
label=
"Query Type"
/>
{
this
.
renderQueryTypeSwitch
(
this
.
state
.
selectedQueryType
)
}
</
React
.
Fragment
>
</>
);
}
}
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