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
9d8d5b18
Commit
9d8d5b18
authored
Dec 14, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop-addpanelpanel' into add-panel-rewrite
parents
b15bb4fb
3c059bc9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
149 deletions
+109
-149
public/app/features/dashboard/dashgrid/AddPanelPanel.tsx
+97
-124
public/app/features/dashboard/specs/AddPanelPanel.test.tsx
+0
-5
public/sass/components/_panel_add_panel.scss
+12
-20
No files found.
public/app/features/dashboard/dashgrid/AddPanelPanel.tsx
View file @
9d8d5b18
This diff is collapsed.
Click to expand it.
public/app/features/dashboard/specs/AddPanelPanel.test.tsx
View file @
9d8d5b18
...
...
@@ -32,11 +32,6 @@ describe('AddPanelPanel', () => {
wrapper
=
shallow
(<
AddPanelPanel
panel=
{
panel
}
dashboard=
{
dashboardMock
}
/>);
});
it
(
'should fetch all panels sorted with core plugins first'
,
()
=>
{
expect
(
wrapper
.
find
(
'.add-panel__item'
).
get
(
1
).
props
.
title
).
toBe
(
'singlestat'
);
expect
(
wrapper
.
find
(
'.add-panel__item'
).
get
(
4
).
props
.
title
).
toBe
(
'piechart'
);
});
it
(
'should filter'
,
()
=>
{
wrapper
.
find
(
'input'
).
simulate
(
'change'
,
{
target
:
{
value
:
'p'
}
});
...
...
public/sass/components/_panel_add_panel.scss
View file @
9d8d5b18
...
...
@@ -4,20 +4,17 @@
.add-panel
{
height
:
100%
;
.baron__root
{
height
:
calc
(
100%
-
43px
);
}
//display: flex;
//flex-direction: column;
}
.add-panel__header
{
top
:
0
;
position
:
absolute
;
padding
:
0
15px
;
display
:
flex
;
align-items
:
center
;
background
:
$page-header-bg
;
box-shadow
:
$page-header-shadow
;
border-bottom
:
1px
solid
$page-header-border-color
;
width
:
100%
;
.gicon
{
font-size
:
30px
;
margin-right
:
$spacer
;
...
...
@@ -32,18 +29,6 @@
margin-right
:
-10px
;
}
.add-panel__title
{
font-size
:
$font-size-md
;
margin-right
:
$spacer
*
2
;
}
.add-panel__sub-title
{
font-style
:
italic
;
color
:
$text-muted
;
position
:
relative
;
top
:
1px
;
}
.add-panel__items
{
padding
:
3px
8px
;
display
:
flex
;
...
...
@@ -97,3 +82,10 @@
width
:
100%
;
padding
:
3px
8px
;
}
.add-panel-btn-container
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
100%
;
}
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