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
ca3405af
Commit
ca3405af
authored
Jan 09, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(plugins): moved http settings to directive instad of just ng-include partial
parent
36ebfc74
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
26 additions
and
30 deletions
+26
-30
public/app/features/datasources/all.js
+4
-0
public/app/features/datasources/edit_ctrl.js
+4
-3
public/app/features/datasources/list_ctrl.js
+0
-0
public/app/features/datasources/partials/edit.html
+0
-0
public/app/features/datasources/partials/http_settings.html
+2
-0
public/app/features/datasources/partials/list.html
+0
-0
public/app/features/org/all.js
+1
-2
public/app/plugins/datasource/elasticsearch/partials/edit_view.html
+1
-2
public/app/plugins/datasource/graphite/datasource.d.ts
+1
-1
public/app/plugins/datasource/graphite/datasource.js
+1
-4
public/app/plugins/datasource/graphite/module.js
+5
-1
public/app/plugins/datasource/graphite/partials/config.html
+1
-2
public/app/plugins/datasource/graphite/plugin.json
+1
-5
public/app/plugins/datasource/graphite/specs/datasource_specs.ts
+1
-1
public/app/plugins/datasource/influxdb/partials/config.html
+1
-2
public/app/plugins/datasource/opentsdb/partials/config.html
+1
-3
public/app/plugins/datasource/prometheus/partials/config.html
+1
-3
tasks/options/watch.js
+1
-1
No files found.
public/app/features/datasources/all.js
0 → 100644
View file @
ca3405af
define
([
'./list_ctrl'
,
'./edit_ctrl'
,
],
function
()
{});
public/app/features/
org/datasourceEditC
trl.js
→
public/app/features/
datasources/edit_c
trl.js
View file @
ca3405af
...
...
@@ -9,9 +9,11 @@ function (angular, _, config) {
var
module
=
angular
.
module
(
'grafana.controllers'
);
var
datasourceTypes
=
[];
module
.
controller
(
'DataSourceEditCtrl'
,
function
(
$scope
,
$q
,
backendSrv
,
$routeParams
,
$location
,
datasourceSrv
)
{
module
.
directive
(
'datasourceHttpSettings'
,
function
()
{
return
{
templateUrl
:
'app/features/datasources/partials/http_settings.html'
};
});
$scope
.
httpConfigPartialSrc
=
'app/features/org/partials/datasourceHttpConfig.html'
;
module
.
controller
(
'DataSourceEditCtrl'
,
function
(
$scope
,
$q
,
backendSrv
,
$routeParams
,
$location
,
datasourceSrv
)
{
var
defaults
=
{
name
:
''
,
type
:
'graphite'
,
url
:
''
,
access
:
'proxy'
,
jsonData
:
{}};
...
...
@@ -114,6 +116,5 @@ function (angular, _, config) {
};
$scope
.
init
();
});
});
public/app/features/
org/datasourcesC
trl.js
→
public/app/features/
datasources/list_c
trl.js
View file @
ca3405af
File moved
public/app/features/
org/partials/datasourceE
dit.html
→
public/app/features/
datasources/partials/e
dit.html
View file @
ca3405af
File moved
public/app/features/
org/partials/datasourceHttpConfig
.html
→
public/app/features/
datasources/partials/http_settings
.html
View file @
ca3405af
...
...
@@ -53,3 +53,5 @@
<div
class=
"clearfix"
></div>
</div>
</div>
<br>
public/app/features/
org/partials/datasources
.html
→
public/app/features/
datasources/partials/list
.html
View file @
ca3405af
File moved
public/app/features/org/all.js
View file @
ca3405af
define
([
'./datasourcesCtrl'
,
'./datasourceEditCtrl'
,
'./orgUsersCtrl'
,
'./newOrgCtrl'
,
'./userInviteCtrl'
,
'./orgApiKeysCtrl'
,
'./orgDetailsCtrl'
,
'../datasources/all'
,
],
function
()
{});
public/app/plugins/datasource/elasticsearch/partials/edit_view.html
View file @
ca3405af
<div
ng-include=
"httpConfigPartialSrc"
></div>
<br>
<datasource-http-settings></datasource-http-settings>
<h5>
Elasticsearch details
</h5>
...
...
public/app/plugins/datasource/graphite/datasource.d.ts
View file @
ca3405af
declare
var
Datasource
:
any
;
export
{
Datasource
}
;
export
default
Datasource
;
public/app/plugins/datasource/graphite/datasource.js
View file @
ca3405af
...
...
@@ -4,7 +4,6 @@ define([
'jquery'
,
'app/core/config'
,
'app/core/utils/datemath'
,
'./directives'
,
'./query_ctrl'
,
'./func_editor'
,
'./add_graphite_func'
,
...
...
@@ -293,7 +292,5 @@ function (angular, _, $, config, dateMath) {
};
}
return
{
Datasource
:
GraphiteDatasource
};
return
GraphiteDatasource
;
});
public/app/plugins/datasource/graphite/
directives
.js
→
public/app/plugins/datasource/graphite/
module
.js
View file @
ca3405af
define
([
'angular'
,
'./datasource'
,
],
function
(
angular
)
{
function
(
angular
,
GraphiteDatasource
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.directives'
);
...
...
@@ -18,4 +19,7 @@ function (angular) {
return
{
templateUrl
:
'app/plugins/datasource/graphite/partials/annotations.editor.html'
};
});
return
{
Datasource
:
GraphiteDatasource
,
};
});
public/app/plugins/datasource/graphite/partials/config.html
View file @
ca3405af
<div
ng-include=
"httpConfigPartialSrc"
></div>
<datasource-http-settings></datasource-http-settings>
public/app/plugins/datasource/graphite/plugin.json
View file @
ca3405af
...
...
@@ -3,11 +3,7 @@
"type"
:
"datasource"
,
"id"
:
"graphite"
,
"module"
:
"app/plugins/datasource/graphite/datasource"
,
"partials"
:
{
"config"
:
"app/plugins/datasource/graphite/partials/config.html"
},
"module"
:
"app/plugins/datasource/graphite/module"
,
"defaultMatchFormat"
:
"glob"
,
"metrics"
:
true
,
...
...
public/app/plugins/datasource/graphite/specs/datasource_specs.ts
View file @
ca3405af
import
{
describe
,
beforeEach
,
it
,
sinon
,
expect
,
angularMocks
}
from
'test/lib/common'
;
import
helpers
from
'test/specs/helpers'
;
import
{
Datasource
}
from
"../datasource"
;
import
Datasource
from
"../datasource"
;
describe
(
'graphiteDatasource'
,
function
()
{
var
ctx
=
new
helpers
.
ServiceTestContext
();
...
...
public/app/plugins/datasource/influxdb/partials/config.html
View file @
ca3405af
<div
ng-include=
"httpConfigPartialSrc"
></div>
<br>
<datasource-http-settings></datasource-http-settings>
<h5>
InfluxDB Details
</h5>
...
...
public/app/plugins/datasource/opentsdb/partials/config.html
View file @
ca3405af
<div
ng-include=
"httpConfigPartialSrc"
></div>
<br>
<datasource-http-settings></datasource-http-settings>
public/app/plugins/datasource/prometheus/partials/config.html
View file @
ca3405af
<div
ng-include=
"httpConfigPartialSrc"
></div>
<br>
<datasource-http-settings></datasource-http-settings>
tasks/options/watch.js
View file @
ca3405af
...
...
@@ -6,7 +6,7 @@ module.exports = function(config, grunt) {
grunt
.
log
.
writeln
(
'File Changed: '
+
filepath
);
if
(
/
(\.
html
)
$/
.
test
(
filepath
))
{
if
(
/
(\.
html
)
|
(\.
json
)
$/
.
test
(
filepath
))
{
newPath
=
filepath
.
replace
(
/^public/
,
'public_gen'
);
grunt
.
log
.
writeln
(
'Copying to '
+
newPath
);
grunt
.
file
.
copy
(
filepath
,
newPath
);
...
...
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