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
8699dec5
Commit
8699dec5
authored
Aug 11, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed jshint issues
parent
6f0c6281
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
Gruntfile.js
+1
-2
src/app/services/grafana/grafanaDatasource.js
+3
-3
No files found.
Gruntfile.js
View file @
8699dec5
...
@@ -35,4 +35,4 @@ module.exports = function (grunt) {
...
@@ -35,4 +35,4 @@ module.exports = function (grunt) {
// pass the config to grunt
// pass the config to grunt
grunt
.
initConfig
(
config
);
grunt
.
initConfig
(
config
);
};
};
\ No newline at end of file
src/app/services/grafana/grafanaDatasource.js
View file @
8699dec5
...
@@ -6,14 +6,14 @@ define([
...
@@ -6,14 +6,14 @@ define([
'kbn'
,
'kbn'
,
'moment'
'moment'
],
],
function
(
angular
,
_
,
$
,
config
,
kbn
,
moment
)
{
function
(
angular
)
{
'use strict'
;
'use strict'
;
var
module
=
angular
.
module
(
'grafana.services'
);
var
module
=
angular
.
module
(
'grafana.services'
);
module
.
factory
(
'GrafanaDatasource'
,
function
(
$q
,
$http
)
{
module
.
factory
(
'GrafanaDatasource'
,
function
(
$q
,
$http
)
{
function
GrafanaDatasource
(
datasource
)
{
function
GrafanaDatasource
()
{
this
.
type
=
'grafana'
;
this
.
type
=
'grafana'
;
this
.
grafanaDB
=
true
;
this
.
grafanaDB
=
true
;
}
}
...
@@ -44,7 +44,7 @@ function (angular, _, $, config, kbn, moment) {
...
@@ -44,7 +44,7 @@ function (angular, _, $, config, kbn, moment) {
GrafanaDatasource
.
prototype
.
saveDashboard
=
function
(
dashboard
)
{
GrafanaDatasource
.
prototype
.
saveDashboard
=
function
(
dashboard
)
{
return
$http
.
post
(
'/api/dashboard/'
,
{
dashboard
:
dashboard
})
return
$http
.
post
(
'/api/dashboard/'
,
{
dashboard
:
dashboard
})
.
then
(
function
()
{
.
then
(
function
()
{
return
{
title
:
dashboard
.
title
,
url
:
'/dashboard/db/'
+
dashboard
.
title
};
return
{
title
:
dashboard
.
title
,
url
:
'/dashboard/db/'
+
dashboard
.
title
};
},
function
(
data
)
{
},
function
(
data
)
{
throw
"Failed to search: "
+
data
;
throw
"Failed to search: "
+
data
;
});
});
...
...
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