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
ab47c2c7
Commit
ab47c2c7
authored
Mar 06, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed influxdb 0.9 data source, renamed clone dashboard to Save As...
parent
3e6ec19f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
12 deletions
+44
-12
src/app/features/dashboard/all.js
+1
-1
src/app/features/dashboard/dashboardNavCtrl.js
+2
-2
src/app/features/dashboard/partials/saveDashboardAs.html
+3
-3
src/app/features/dashboard/saveDashboardAsCtrl.js
+1
-1
src/app/features/org/partials/datasourceEdit.html
+1
-1
src/app/partials/dashboard_topnav.html
+1
-1
src/app/plugins/datasource/elasticsearch/partials/config.html
+2
-2
src/app/plugins/datasource/influxdb/partials/config.html
+32
-0
src/app/plugins/datasource/influxdb_08/partials/config.html
+1
-1
No files found.
src/app/features/dashboard/all.js
View file @
ab47c2c7
define
([
'./dashboardCtrl'
,
'./dashboardNavCtrl'
,
'./
cloneDashboard
Ctrl'
,
'./
saveDashboardAs
Ctrl'
,
'./playlistCtrl'
,
'./rowCtrl'
,
'./sharePanelCtrl'
,
...
...
src/app/features/dashboard/dashboardNavCtrl.js
View file @
ab47c2c7
...
...
@@ -120,12 +120,12 @@ function (angular, _, moment) {
});
};
$scope
.
cloneDashboard
=
function
()
{
$scope
.
saveDashboardAs
=
function
()
{
var
newScope
=
$rootScope
.
$new
();
newScope
.
clone
=
angular
.
copy
(
$scope
.
dashboard
);
$scope
.
appEvent
(
'show-modal'
,
{
src
:
'./app/features/dashboard/partials/
cloneDashboard
.html'
,
src
:
'./app/features/dashboard/partials/
saveDashboardAs
.html'
,
scope
:
newScope
,
});
};
...
...
src/app/features/dashboard/partials/
cloneDashboard
.html
→
src/app/features/dashboard/partials/
saveDashboardAs
.html
View file @
ab47c2c7
<div
class=
"modal-body gf-box gf-box-no-margin"
ng-controller=
"
CloneDashboard
Ctrl"
ng-init=
"init();"
>
<div
class=
"modal-body gf-box gf-box-no-margin"
ng-controller=
"
SaveDashboardAs
Ctrl"
ng-init=
"init();"
>
<div
class=
"gf-box-header"
>
<div
class=
"gf-box-title"
>
<i
class=
"fa fa-copy"
></i>
Clone Dashboard
Save As...
</div>
<button
class=
"gf-box-header-close-btn"
ng-click=
"dismiss();"
>
...
...
@@ -18,8 +18,8 @@
<br>
<br>
<button
class=
"btn btn-success"
ng-click=
"saveClone();"
>
Clone
</button>
<button
class=
"btn btn-inverse"
ng-click=
"dismiss();"
>
Cancel
</button>
<button
class=
"btn btn-success"
ng-click=
"saveClone();"
>
Save
</button>
</div>
</div>
</div>
...
...
src/app/features/dashboard/
cloneDashboard
Ctrl.js
→
src/app/features/dashboard/
saveDashboardAs
Ctrl.js
View file @
ab47c2c7
...
...
@@ -6,7 +6,7 @@ function (angular) {
var
module
=
angular
.
module
(
'grafana.controllers'
);
module
.
controller
(
'
CloneDashboard
Ctrl'
,
function
(
$scope
,
backendSrv
,
$location
)
{
module
.
controller
(
'
SaveDashboardAs
Ctrl'
,
function
(
$scope
,
backendSrv
,
$location
)
{
$scope
.
init
=
function
()
{
$scope
.
clone
.
id
=
null
;
...
...
src/app/features/org/partials/datasourceEdit.html
View file @
ab47c2c7
...
...
@@ -49,7 +49,7 @@
Url
</li>
<li>
<input
type=
"text"
class=
"tight-form-input input-xlarge"
ng-model=
'current.url'
placeholder=
"http://my.
graphite
.com:8080"
required
></input>
<input
type=
"text"
class=
"tight-form-input input-xlarge"
ng-model=
'current.url'
placeholder=
"http://my.
server
.com:8080"
required
></input>
</li>
<li
class=
"tight-form-item"
>
Access
<tip>
Direct = url is used directly from browser, Proxy = Grafana backend will proxy the request
</label>
...
...
src/app/partials/dashboard_topnav.html
View file @
ab47c2c7
...
...
@@ -43,7 +43,7 @@
<li><a
class=
"pointer"
ng-click=
"openEditView('templating');"
>
Templating
</a></li>
<li><a
class=
"pointer"
ng-click=
"exportDashboard();"
>
Export
</a></li>
<li><a
class=
"pointer"
ng-click=
"editJson();"
>
View JSON
</a></li>
<li><a
class=
"pointer"
ng-click=
"
cloneDashboard();"
>
Clone dashboard
</a></li>
<li><a
class=
"pointer"
ng-click=
"
saveDashboardAs();"
>
Save As...
</a></li>
<li><a
class=
"pointer"
ng-click=
"deleteDashboard();"
>
Delete dashboard
</a></li>
</ul>
</li>
...
...
src/app/plugins/datasource/elasticsearch/partials/config.html
View file @
ab47c2c7
<h
2>
Elastic search details
</h2
>
<h
5>
Elastic search details
</h5
>
<div
class=
"tight-form last"
>
<ul
class=
"tight-form-list"
>
...
...
@@ -6,7 +6,7 @@
Index name
</li>
<li>
<input
type=
"text"
class=
"tight-form-input input-x
xlarge last
"
ng-model=
'current.database'
placeholder=
""
required
></input>
<input
type=
"text"
class=
"tight-form-input input-x
large
"
ng-model=
'current.database'
placeholder=
""
required
></input>
</li>
</ul>
<div
class=
"clearfix"
></div>
...
...
src/app/plugins/datasource/influxdb/partials/config.html
0 → 100644
View file @
ab47c2c7
<h5>
InfluxDB Details
</h5>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 80px"
>
Database
</li>
<li>
<input
type=
"text"
class=
"tight-form-input input-large"
ng-model=
'current.database'
placeholder=
""
required
></input>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form last"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 80px"
>
User
</li>
<li>
<input
type=
"text"
class=
"tight-form-input input-large"
ng-model=
'current.user'
placeholder=
""
required
></input>
</li>
<li
class=
"tight-form-item"
>
Password
</li>
<li>
<input
type=
"password"
class=
"tight-form-input input-large"
ng-model=
'current.password'
placeholder=
""
required
></input>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
src/app/plugins/datasource/influxdb_08/partials/config.html
View file @
ab47c2c7
...
...
@@ -23,7 +23,7 @@
Password
</li>
<li>
<input
type=
"
text
"
class=
"tight-form-input input-large"
ng-model=
'current.password'
placeholder=
""
required
></input>
<input
type=
"
password
"
class=
"tight-form-input input-large"
ng-model=
'current.password'
placeholder=
""
required
></input>
</li>
</ul>
<div
class=
"clearfix"
></div>
...
...
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