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
0260c779
Commit
0260c779
authored
Jan 14, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: another wip commit
parent
23f84ba5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
6 deletions
+31
-6
public/app/features/dashboard/panel_editor/QueriesTab.tsx
+1
-6
public/app/features/dashboard/panel_editor/QueryEditorRow.tsx
+30
-0
No files found.
public/app/features/dashboard/panel_editor/QueriesTab.tsx
View file @
0260c779
...
...
@@ -198,11 +198,6 @@ export class QueriesTab extends PureComponent<Props, State> {
this
.
setState
({
isAddingMixed
:
false
});
};
renderQueryRow
(
query
:
DataQuery
)
{
console
.
log
(
'render query row'
,
this
.
state
.
currentDS
);
return
<
div
ref=
{
element
=>
(
this
.
element
=
element
)
}
/>;
}
render
()
{
const
{
panel
}
=
this
.
props
;
const
{
currentDS
,
isAddingMixed
}
=
this
.
state
;
...
...
@@ -223,7 +218,7 @@ export class QueriesTab extends PureComponent<Props, State> {
<>
<
PanelOptionsGroup
>
<
div
className=
"query-editor-rows"
>
{
panel
.
targets
.
map
(
query
=>
this
.
renderQueryRow
(
query
))
}
<
div
ref=
{
element
=>
(
this
.
element
=
element
)
}
/>
<
div
className=
"gf-form-query"
>
<
div
className=
"gf-form gf-form-query-letter-cell"
>
...
...
public/app/features/dashboard/panel_editor/QueryEditorRow.tsx
0 → 100644
View file @
0260c779
// Libraries
import
React
,
{
PureComponent
}
from
'react'
;
// Utils & Services
import
{
AngularComponent
,
getAngularLoader
}
from
'app/core/services/AngularLoader'
;
// Types
import
{
PanelModel
}
from
'../panel_model'
;
import
{
DashboardModel
}
from
'../dashboard_model'
;
interface
Props
{
panel
:
PanelModel
;
dashboard
:
DashboardModel
;
}
interface
State
{
}
export
class
VisualizationTab
extends
PureComponent
<
Props
,
State
>
{
element
:
HTMLElement
;
angularQueryEditor
:
AngularComponent
;
constructor
(
props
)
{
super
(
props
);
}
render
()
{
}
}
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