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
c54ae5d1
Commit
c54ae5d1
authored
Nov 09, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve dropdown pane connetion to tab toolbar
parent
1bad8db9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
22 deletions
+22
-22
public/app/features/dashboard/dashgrid/DataSourcePicker.tsx
+0
-1
public/app/features/dashboard/dashgrid/EditorTabBody.tsx
+3
-3
public/app/features/dashboard/dashgrid/QueriesTab.tsx
+2
-3
public/app/features/dashboard/dashgrid/VisualizationTab.tsx
+3
-1
public/app/features/dashboard/dashgrid/VizTypePicker.tsx
+0
-1
public/sass/components/_viz_editor.scss
+14
-13
No files found.
public/app/features/dashboard/dashgrid/DataSourcePicker.tsx
View file @
c54ae5d1
...
...
@@ -78,7 +78,6 @@ export class DataSourcePicker extends PureComponent<Props, State> {
return
(
<>
<
div
className=
"cta-form__bar"
>
<
div
className=
"cta-form__bar-header"
>
Select data source
</
div
>
{
this
.
renderFilters
()
}
<
div
className=
"gf-form--grow"
/>
</
div
>
...
...
public/app/features/dashboard/dashgrid/EditorTabBody.tsx
View file @
c54ae5d1
...
...
@@ -51,8 +51,8 @@ export class EditorTabBody extends PureComponent<Props, State> {
renderButton
(
view
:
EditorToolBarView
)
{
return
(
<
div
className=
"nav-buttons"
key=
{
view
.
title
}
>
<
button
className=
"btn navbar-button"
>
<
i
className=
{
view
.
icon
}
/>
{
view
.
title
}
<
button
className=
"btn navbar-button"
onClick=
{
()
=>
this
.
onToggleToolBarView
(
view
)
}
>
{
view
.
icon
&&
<
i
className=
{
view
.
icon
}
/>
}
{
view
.
title
}
</
button
>
</
div
>
);
...
...
@@ -62,7 +62,7 @@ export class EditorTabBody extends PureComponent<Props, State> {
return
(
<
div
className=
"editor-toolbar-view"
>
<
button
className=
"editor-toolbar-view__close"
onClick=
{
this
.
onCloseOpenView
}
>
<
i
className=
"fa fa-
remove
"
/>
<
i
className=
"fa fa-
chevron-up
"
/>
</
button
>
{
view
.
render
()
}
</
div
>
...
...
public/app/features/dashboard/dashgrid/QueriesTab.tsx
View file @
c54ae5d1
...
...
@@ -55,18 +55,17 @@ export class QueriesTab extends PureComponent<Props> {
const
queryInspector
=
{
title
:
'Query Inspector'
,
icon
:
'fa fa-lightbulb-o'
,
render
:
()
=>
<
h2
>
hello
</
h2
>,
};
const
dsHelp
=
{
title
:
'
Help
'
,
title
:
''
,
icon
:
'fa fa-question'
,
render
:
()
=>
<
h2
>
hello
</
h2
>,
};
return
(
<
EditorTabBody
main=
{
currentDataSource
}
toolbarItems=
{
[
dsHelp
,
queryInspector
]
}
>
<
EditorTabBody
main=
{
currentDataSource
}
toolbarItems=
{
[
queryInspector
,
dsHelp
]
}
>
<
div
ref=
{
element
=>
(
this
.
element
=
element
)
}
style=
{
{
width
:
'100%'
}
}
/>
</
EditorTabBody
>
);
...
...
public/app/features/dashboard/dashgrid/VisualizationTab.tsx
View file @
c54ae5d1
...
...
@@ -36,12 +36,14 @@ export class VisualizationTab extends PureComponent<Props> {
};
render
()
{
const
{
plugin
,
onTypeChanged
}
=
this
.
props
;
const
{
plugin
}
=
this
.
props
;
const
panelSelection
=
{
title
:
plugin
.
name
,
imgSrc
:
plugin
.
info
.
logos
.
small
,
render
:
()
=>
{
// the needs to be scoped inside this closure
const
{
plugin
,
onTypeChanged
}
=
this
.
props
;
return
<
VizTypePicker
current=
{
plugin
}
onTypeChanged=
{
onTypeChanged
}
/>;
},
};
...
...
public/app/features/dashboard/dashgrid/VizTypePicker.tsx
View file @
c54ae5d1
...
...
@@ -81,7 +81,6 @@ export class VizTypePicker extends PureComponent<Props, State> {
return
(
<>
<
div
className=
"cta-form__bar"
>
<
div
className=
"cta-form__bar-header"
>
Select visualization
</
div
>
{
this
.
renderFilters
()
}
<
div
className=
"gf-form--grow"
/>
</
div
>
...
...
public/sass/components/_viz_editor.scss
View file @
c54ae5d1
...
...
@@ -85,9 +85,7 @@
}
&
--selected
{
.viz-picker__item-name
{
color
:
$text-color
;
}
box-shadow
:
0
0
12px
#ff4d00
;
}
}
...
...
@@ -171,10 +169,12 @@
display
:
flex
;
align-content
:
center
;
align-items
:
center
;
background
:
linear-gradient
(
90deg
,
#292a2d
,
black
);
padding
:
7px
30px
7px
20px
;
background
:
$page-header-bg
;
box-shadow
:
0
0
20px
black
;
padding
:
7px
30px
7px
20px
;
cursor
:
pointer
;
position
:
relative
;
z-index
:
1
;
}
.edit-section__selected
{
...
...
@@ -208,14 +208,15 @@
}
.panel-editor-tabs
{
z-index
:
1
;
position
:
relative
;
z-index
:
2
;
box-shadow
:
$page-header-shadow
;
border-bottom
:
1px
solid
$page-header-border-color
;
padding
:
0
$dashboard-padding
;
@include
clearfix
();
.active.gf-tabs-link
{
background
:
#242427
;
background
:
$input-label-bg
;
}
}
...
...
@@ -231,6 +232,7 @@
i
{
font-size
:
120%
;
}
&
:hover
{
color
:
$text-color-strong
;
}
...
...
@@ -238,11 +240,10 @@
.editor-toolbar-view
{
position
:
relative
;
padding
:
1
0px
20px
;
padding
:
2
0px
20px
;
background-color
:
$empty-list-cta-bg
;
border-top
:
3px
solid
$orange
;
margin
:
0
100px
;
margin-bottom
:
20px
;
top
:
-45px
;
margin
:
0
30px
20px
0px
;
}
.editor-toolbar-view__close
{
...
...
@@ -250,8 +251,8 @@
padding
:
4px
8px
4px
9px
;
border
:
none
;
position
:
absolute
;
right
:
9
px
;
top
:
7
px
;
right
:
15
px
;
top
:
20
px
;
font-size
:
$font-size-md
;
&
:hover
{
...
...
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