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
dbe191fd
Commit
dbe191fd
authored
Jul 07, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: viz editor started
parent
dec62d73
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
3 deletions
+56
-3
public/app/features/dashboard/dashgrid/DashboardPanel.tsx
+0
-1
public/app/features/dashboard/dashgrid/PanelEditor.tsx
+3
-2
public/app/features/dashboard/dashnav/dashnav.ts
+2
-0
public/sass/_grafana.scss
+1
-0
public/sass/components/_viz_editor.scss
+50
-0
No files found.
public/app/features/dashboard/dashgrid/DashboardPanel.tsx
View file @
dbe191fd
...
...
@@ -85,7 +85,6 @@ export class DashboardPanel extends React.Component<Props, State> {
if
(
pluginExports
.
PanelComponent
)
{
return
(
<
PanelChrome
key=
"asd"
component=
{
pluginExports
.
PanelComponent
}
panel=
{
this
.
props
.
panel
}
dashboard=
{
this
.
props
.
dashboard
}
...
...
public/app/features/dashboard/dashgrid/PanelEditor.tsx
View file @
dbe191fd
...
...
@@ -38,10 +38,11 @@ export class PanelEditor extends React.Component<PanelEditorProps, any> {
renderVizTab
()
{
return
(
<
div
className=
"viz-editor"
>
<
div
className=
"viz-editor-list"
>
<
div
className=
"viz-editor-col1"
>
<
h5
className=
"section-heading"
>
Visualization Type
</
h5
>
<
VizPicker
/>
</
div
>
<
div
className=
"viz-editor-
options
"
>
<
div
className=
"viz-editor-
col2
"
>
<
h5
className=
"section-heading"
>
Options
</
h5
>
</
div
>
</
div
>
...
...
public/app/features/dashboard/dashnav/dashnav.ts
View file @
dbe191fd
...
...
@@ -38,6 +38,8 @@ export class DashNavCtrl {
}
else
if
(
search
.
fullscreen
)
{
delete
search
.
fullscreen
;
delete
search
.
edit
;
delete
search
.
tab
;
delete
search
.
panelId
;
}
this
.
$location
.
search
(
search
);
}
...
...
public/sass/_grafana.scss
View file @
dbe191fd
...
...
@@ -92,6 +92,7 @@
@import
'components/form_select_box'
;
@import
'components/user-picker'
;
@import
'components/description-picker'
;
@import
'components/viz_editor'
;
// PAGES
@import
'pages/login'
;
...
...
public/sass/components/_viz_editor.scss
0 → 100644
View file @
dbe191fd
.viz-editor
{
display
:
flex
;
}
.viz-editor-col1
{
width
:
150px
;
background
:
$panel-bg
;
}
.viz-editor-col2
{
flex-grow
:
1
;
}
.viz-picker
{
padding
:
3px
8px
;
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
overflow
:
auto
;
height
:
100%
;
}
.viz-picker__item
{
background
:
$card-background
;
box-shadow
:
$card-shadow
;
border-radius
:
3px
;
padding
:
$spacer
/
3
$spacer
;
width
:
31%
;
height
:
60px
;
text-align
:
center
;
margin
:
$gf-form-margin
;
cursor
:
pointer
;
&
.active
,
&
:hover
{
background
:
$card-background-hover
;
}
}
.viz-picker__item-name
{
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
font-size
:
$font-size-sm
;
}
.viz-picker__item-img
{
height
:
calc
(
100%
-
15px
);
}
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