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
0d8f1fab
Commit
0d8f1fab
authored
Feb 08, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed histogram and pie editors, added hits and map editors
parent
b94ea26b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
9 deletions
+40
-9
dashboards.js
+2
-2
panels/histogram/editor.html
+1
-1
panels/histogram/module.js
+1
-0
panels/hits/editor.html
+11
-0
panels/map/editor.html
+11
-0
panels/pie/editor.html
+6
-6
panels/pie/module.js
+8
-0
No files found.
dashboards.js
View file @
0d8f1fab
...
@@ -193,8 +193,8 @@ var dashboards =
...
@@ -193,8 +193,8 @@ var dashboards =
labels
:
false
,
labels
:
false
,
colors
:
[
'#BF3030'
,
'#1D7373'
,
'#86B32D'
,
'#A60000'
,
'#006363'
,
'#679B00'
],
colors
:
[
'#BF3030'
,
'#1D7373'
,
'#86B32D'
,
'#A60000'
,
'#006363'
,
'#679B00'
],
field
:
'country'
,
field
:
'country'
,
mode
:
"
query
"
,
mode
:
"
terms
"
,
query
:
{
query
:
"
falstaff
"
}
query
:
{
query
:
"
*"
,
field
:
"play_name
"
}
},
},
{
{
type
:
"text"
,
type
:
"text"
,
...
...
panels/histogram/editor.html
View file @
0d8f1fab
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</form>
</form>
</div>
</div>
<div
class=
"span1"
>
<div
class=
"span1"
>
<i
class=
"icon-remove
"
ng-click=
"remove_query(q);get_data(
)"
></i>
<i
class=
"icon-remove
pointer"
ng-click=
"remove_query(q
)"
></i>
</div>
</div>
</div>
</div>
<div
class=
"row-fluid"
>
<div
class=
"row-fluid"
>
...
...
panels/histogram/module.js
View file @
0d8f1fab
...
@@ -25,6 +25,7 @@ angular.module('kibana.histogram', [])
...
@@ -25,6 +25,7 @@ angular.module('kibana.histogram', [])
$scope
.
remove_query
=
function
(
q
)
{
$scope
.
remove_query
=
function
(
q
)
{
$scope
.
panel
.
query
=
_
.
without
(
$scope
.
panel
.
query
,
q
);
$scope
.
panel
.
query
=
_
.
without
(
$scope
.
panel
.
query
,
q
);
$scope
.
get_data
();
}
}
$scope
.
add_query
=
function
(
label
,
query
)
{
$scope
.
add_query
=
function
(
label
,
query
)
{
...
...
panels/hits/editor.html
View file @
0d8f1fab
<div
class=
"row-fluid"
>
<div
class=
"span9"
>
<form
class=
"input-append"
>
<h6>
Query
</h6>
<input
type=
"text"
style=
"width:85%"
ng-model=
"panel.query"
>
<button
class=
"btn"
ng-click=
"get_data();"
><i
class=
"icon-search"
></i></button>
</form>
</div>
<div
class=
"span3"
><h6>
Font Size
</h6>
<select
class=
"input-small"
ng-model=
"panel.style['font-size']"
ng-options=
"f for f in ['6pt','7pt','8pt','10pt','12pt','14pt','16pt','18pt','20pt','24pt','28pt','32pt','36pt','42pt','48pt','52pt','60pt','72pt']"
></select></span>
</div>
panels/map/editor.html
0 → 100644
View file @
0d8f1fab
<div
class=
"row-fluid"
>
<div
class=
"span9"
>
<form
class=
"input-append"
>
<h6>
Query
</h6>
<input
type=
"text"
style=
"width:85%"
ng-model=
"panel.query"
>
<button
class=
"btn"
ng-click=
"get_data();"
><i
class=
"icon-search"
></i></button>
</form>
</div>
<div
class=
"span3"
><h6>
Map
</h6>
<select
class=
"input-small"
ng-model=
"panel.map"
ng-options=
"f for f in ['world','europe','usa']"
></select></span>
</div>
panels/pie/editor.html
View file @
0d8f1fab
...
@@ -31,8 +31,6 @@
...
@@ -31,8 +31,6 @@
</div>
</div>
<div
ng-switch-when=
"query"
>
<div
ng-switch-when=
"query"
>
<div
class=
"row-fluid"
>
<div
class=
"row-fluid"
>
<div
class=
"span1"
>
</div>
<div
class=
"span3"
>
<div
class=
"span3"
>
<form
style=
"margin-bottom: 0px"
>
<form
style=
"margin-bottom: 0px"
>
<h6>
Label
</h6>
<h6>
Label
</h6>
...
@@ -46,12 +44,11 @@
...
@@ -46,12 +44,11 @@
<button
class=
"btn"
ng-click=
"add_query(newlabel,newquery);newlabel='';newquery=''"
><i
class=
"icon-plus"
></i></button>
<button
class=
"btn"
ng-click=
"add_query(newlabel,newquery);newlabel='';newquery=''"
><i
class=
"icon-plus"
></i></button>
</form>
</form>
</div>
</div>
<div
class=
"span1"
>
</div>
</div>
</div>
<div
class=
"row-fluid"
ng-repeat=
"q in panel.query"
>
<div
class=
"row-fluid"
ng-repeat=
"q in panel.query"
>
<div
class=
"span1"
>
<div
class=
"span3"
>
<i
class=
"icon-remove"
ng-click=
"remove_query(q)"
></i>
</div>
<div
class=
"span4"
>
<form
style=
"margin-bottom: 0px"
>
<form
style=
"margin-bottom: 0px"
>
<input
type=
"text"
style=
"width:70%"
ng-model=
"q.label"
>
<input
type=
"text"
style=
"width:70%"
ng-model=
"q.label"
>
</form>
</form>
...
@@ -62,6 +59,9 @@
...
@@ -62,6 +59,9 @@
<button
class=
"btn"
ng-click=
"get_data()"
><i
class=
"icon-search"
></i></button>
<button
class=
"btn"
ng-click=
"get_data()"
><i
class=
"icon-search"
></i></button>
</form>
</form>
</div>
</div>
<div
class=
"span1"
>
<i
class=
"icon-remove pointer"
ng-click=
"remove_query(q)"
></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
panels/pie/module.js
View file @
0d8f1fab
...
@@ -33,6 +33,14 @@ angular.module('kibana.pie', [])
...
@@ -33,6 +33,14 @@ angular.module('kibana.pie', [])
eventBus
.
broadcast
(
$scope
.
$id
,
$scope
.
panel
.
group
,
'get_time'
)
eventBus
.
broadcast
(
$scope
.
$id
,
$scope
.
panel
.
group
,
'get_time'
)
}
}
$scope
.
remove_query
=
function
(
q
)
{
if
(
$scope
.
panel
.
mode
!==
'query'
)
return
false
;
$scope
.
panel
.
query
=
_
.
without
(
$scope
.
panel
.
query
,
q
);
$scope
.
get_data
();
}
$scope
.
add_query
=
function
(
label
,
query
)
{
$scope
.
add_query
=
function
(
label
,
query
)
{
if
(
$scope
.
panel
.
mode
!==
'query'
)
if
(
$scope
.
panel
.
mode
!==
'query'
)
return
false
;
return
false
;
...
...
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