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
f4ba80b7
Commit
f4ba80b7
authored
Dec 08, 2013
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
worked on full screen edit mode
parent
d446887e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
7 deletions
+58
-7
src/app/controllers/dash.js
+9
-1
src/app/directives/kibanaPanel.js
+1
-1
src/app/panels/graphite/editor.html
+1
-1
src/app/panels/graphite/module.html
+18
-1
src/app/panels/graphite/module.js
+19
-1
src/app/partials/dashboard.html
+9
-0
src/index.html
+1
-2
No files found.
src/app/controllers/dash.js
View file @
f4ba80b7
...
...
@@ -29,7 +29,7 @@ function (angular, config, _) {
var
module
=
angular
.
module
(
'kibana.controllers'
);
module
.
controller
(
'DashCtrl'
,
function
(
$scope
,
$route
,
ejsResource
,
fields
,
dashboard
,
alertSrv
,
panelMove
,
esVersion
)
{
$scope
,
$ro
otScope
,
$ro
ute
,
ejsResource
,
fields
,
dashboard
,
alertSrv
,
panelMove
,
esVersion
)
{
$scope
.
requiredElasticSearchVersion
=
">=0.20.5"
;
...
...
@@ -61,6 +61,14 @@ function (angular, config, _) {
$scope
.
reset_row
();
$scope
.
ejs
=
ejsResource
(
config
.
elasticsearch
);
$rootScope
.
$on
(
'fullEditMode'
,
function
(
evt
,
enabled
)
{
$scope
.
fullEditMode
=
enabled
;
});
};
$scope
.
closeFullEdit
=
function
()
{
$rootScope
.
$emit
(
'fullEditMode'
,
false
);
};
$scope
.
isPanel
=
function
(
obj
)
{
...
...
src/app/directives/kibanaPanel.js
View file @
f4ba80b7
...
...
@@ -37,7 +37,7 @@ function (angular) {
'</span>'
+
'<span class="row-button extra" ng-show="panel.editable != false">'
+
'<span bs-modal="
\'
app/partials/paneleditor.html
\'
" class="pointer">'
+
'<span bs-modal="
\'
app/partials/paneleditor.html
\'
" class="pointer"
ng-click="openConfigureModal($event)"
>'
+
'<i class="icon-cog pointer" bs-tooltip="
\'
Configure
\'
"></i></span>'
+
'</span>'
+
...
...
src/app/panels/graphite/editor.html
View file @
f4ba80b7
...
...
@@ -6,7 +6,7 @@
<div
class=
"row-fluid"
>
<div
class=
"span12"
>
<input
type=
"text"
ng-model=
"target.target"
class=
"input-large"
style=
"width:95%"
ng-
change=
"render
()"
/>
<input
type=
"text"
ng-model=
"target.target"
class=
"input-large"
style=
"width:95%"
ng-
model-onblur
ng-change=
"get_data
()"
/>
<i
ng-click=
"panel.targets = _.without(panel.targets, target)"
class=
"pointer icon-remove"
style=
"position: relative; top: -5px; left: 5px;"
></i>
</div>
</div>
...
...
src/app/panels/graphite/module.html
View file @
f4ba80b7
<div
ng-controller=
'graphite'
ng-init=
"init()"
style=
"min-height:{{panel.height || row.height}}"
>
<div
ng-controller=
'graphite'
ng-init=
"init()"
style=
"min-height:{{panel.height || row.height}}"
ng-class=
'{"panel-full-edit-mode": inEditMode}'
>
<style>
.histogram-legend
{
display
:
inline-block
;
...
...
@@ -32,6 +32,23 @@
.form-inline
.checkbox
{
display
:
inline-block
;
}
.full-edit-mode
{
//
display
:
none
;
}
.panel-full-edit-mode
{
z-index
:
1500
;
display
:
block
;
position
:
fixed
;
left
:
20px
;
right
:
20px
;
top
:
100px
;
outline
:
1px
solid
#101214
;
border-top
:
1px
solid
#3e444c
;
padding
:
0
10px
10px
10px
;
background
:
#202328
;
}
</style>
<div>
<span
ng-show=
'panel.options'
>
...
...
src/app/panels/graphite/module.js
View file @
f4ba80b7
...
...
@@ -35,7 +35,7 @@ function (angular, app, $, _, kbn, moment, timeSeries, graphiteSrv) {
var
module
=
angular
.
module
(
'kibana.panels.graphite'
,
[]);
app
.
useModule
(
module
);
module
.
controller
(
'graphite'
,
function
(
$scope
,
querySrv
,
dashboard
,
filterSrv
)
{
module
.
controller
(
'graphite'
,
function
(
$scope
,
$rootScope
,
querySrv
,
dashboard
,
filterSrv
)
{
$scope
.
panelMeta
=
{
modals
:
[
{
...
...
@@ -383,6 +383,24 @@ function (angular, app, $, _, kbn, moment, timeSeries, graphiteSrv) {
});
};
$scope
.
openConfigureModal
=
function
(
$event
)
{
$event
.
preventDefault
();
$event
.
stopPropagation
();
var
closeEditMode
=
$rootScope
.
$on
(
'fullEditMode'
,
function
(
evt
,
enabled
)
{
$scope
.
inEditMode
=
enabled
;
if
(
!
enabled
)
{
closeEditMode
();
}
setTimeout
(
function
()
{
$scope
.
$emit
(
'render'
);
},
200
);
});
$rootScope
.
$emit
(
'fullEditMode'
,
true
);
};
// I really don't like this function, too much dom manip. Break out into directive?
$scope
.
populate_modal
=
function
(
request
)
{
$scope
.
inspector
=
angular
.
toJson
(
request
,
true
);
...
...
src/app/partials/dashboard.html
View file @
f4ba80b7
...
...
@@ -13,6 +13,15 @@
<div
class=
"container-fluid main"
>
<div
class=
"row-fluid"
>
<div
class=
"row-fluid container"
style=
"margin-top:10px; width:98%"
>
<!-- Full edit mode -->
<div
class=
"row-fluid kibana-row"
ng-show=
"fullEditMode"
style=
"text-align: center; z-index: 1500; position: absolute; background-color: #272b30"
>
<h5>
Configure Panel
<i
ng-click=
"closeFullEdit()"
class=
"pointer icon-remove"
style=
"position: relative; top: 0px; left: 15px;"
></i>
</h5>
</div>
<div
ng-show=
"fullEditMode"
class=
"modal-backdrop fade in"
></div>
<!-- Rows -->
<div
class=
"row-fluid kibana-row"
ng-controller=
"RowCtrl"
ng-repeat=
"(row_name, row) in dashboard.current.rows"
ng-style=
"row_style(row)"
>
<div
class=
"row-control"
>
...
...
src/index.html
View file @
f4ba80b7
...
...
@@ -20,8 +20,7 @@
</head>
<body
ng-cloak
>
<body
ng-cloak
ng-class=
"{'full-edit-mode': fullEditMode}"
>
<link
rel=
"stylesheet"
ng-href=
"css/bootstrap.{{dashboard.current.style||'dark'}}.min.css"
>
<link
rel=
"stylesheet"
href=
"css/bootstrap-responsive.min.css"
>
...
...
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