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
164435f7
Commit
164435f7
authored
Jan 08, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving code arround
parent
d3e11cab
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
57 additions
and
73 deletions
+57
-73
src/app/controllers/all.js
+1
-0
src/app/controllers/registerCtrl.js
+0
-12
src/app/features/dashboard/all.js
+1
-0
src/app/features/dashboard/soloPanelCtrl.js
+0
-8
src/app/features/grafanaDatasource/datasource.js
+1
-1
src/app/routes/backend/admin.js
+0
-21
src/app/routes/backend/all.js
+53
-4
src/app/routes/backend/dashboard.js
+0
-26
src/test/specs/SoloPanelCtrl-specs.js
+0
-0
src/test/specs/soloPanelCtrl-specs.js
+1
-1
No files found.
src/app/controllers/all.js
View file @
164435f7
...
...
@@ -7,4 +7,5 @@ define([
'./inspectCtrl'
,
'./jsonEditorCtrl'
,
'./loginCtrl'
,
'./registerCtrl'
,
],
function
()
{});
src/app/
routes/backend/login
.js
→
src/app/
controllers/registerCtrl
.js
View file @
164435f7
...
...
@@ -6,18 +6,6 @@ function (angular) {
var
module
=
angular
.
module
(
'grafana.routes'
);
module
.
config
(
function
(
$routeProvider
)
{
$routeProvider
.
when
(
'/login'
,
{
templateUrl
:
'app/partials/login.html'
,
controller
:
'LoginCtrl'
,
})
.
when
(
'/register'
,
{
templateUrl
:
'app/partials/register.html'
,
controller
:
'RegisterCtrl'
,
});
});
module
.
controller
(
'RegisterCtrl'
,
function
(
$scope
,
backendSrv
,
$location
)
{
$scope
.
loginModel
=
{};
$scope
.
grafana
.
sidemenu
=
false
;
...
...
src/app/features/dashboard/all.js
View file @
164435f7
...
...
@@ -10,5 +10,6 @@ define([
'./viewStateSrv'
,
'./playlistSrv'
,
'./panelSrv'
,
'./soloPanelCtrl'
,
'./timeSrv'
,
],
function
()
{});
src/app/
routes/backend/solo-pane
l.js
→
src/app/
features/dashboard/soloPanelCtr
l.js
View file @
164435f7
...
...
@@ -7,14 +7,6 @@ function (angular, $) {
var
module
=
angular
.
module
(
'grafana.routes'
);
module
.
config
(
function
(
$routeProvider
)
{
$routeProvider
.
when
(
'/dashboard/solo/:id/'
,
{
templateUrl
:
'app/partials/solo-panel.html'
,
controller
:
'SoloPanelCtrl'
,
});
});
module
.
controller
(
'SoloPanelCtrl'
,
function
(
$scope
,
$rootScope
,
datasourceSrv
,
$routeParams
,
dashboardSrv
,
timeSrv
,
$location
)
{
var
panelId
;
...
...
src/app/features/grafanaDatasource/datasource.js
View file @
164435f7
...
...
@@ -63,7 +63,7 @@ function (angular, _, kbn) {
};
GrafanaDatasource
.
prototype
.
searchDashboards
=
function
(
query
)
{
return
backendSrv
.
get
(
'/api/search/'
,
{
q
:
query
}
)
return
backendSrv
.
get
(
'/api/search/'
,
{
q
:
query
}
)
.
then
(
function
(
data
)
{
_
.
each
(
data
.
dashboards
,
function
(
item
)
{
item
.
id
=
item
.
slug
;
...
...
src/app/routes/backend/admin.js
deleted
100644 → 0
View file @
d3e11cab
define
([
'angular'
,
],
function
(
angular
)
{
"use strict"
;
var
module
=
angular
.
module
(
'grafana.routes'
);
module
.
config
(
function
(
$routeProvider
)
{
$routeProvider
.
when
(
'/admin/datasources'
,
{
templateUrl
:
'app/features/admin/partials/datasources.html'
,
controller
:
'DataSourcesCtrl'
,
})
.
when
(
'/account'
,
{
templateUrl
:
'app/features/admin/partials/account.html'
,
controller
:
'AccountCtrl'
,
});
});
});
src/app/routes/backend/all.js
View file @
164435f7
define
([
'angular'
,
'./dashboard'
,
'./admin'
,
'./login'
,
'./solo-panel'
,
],
function
()
{});
],
function
(
angular
)
{
"use strict"
;
var
module
=
angular
.
module
(
'grafana.routes'
);
module
.
config
(
function
(
$routeProvider
,
$locationProvider
)
{
$locationProvider
.
html5Mode
(
true
);
$routeProvider
.
when
(
'/'
,
{
templateUrl
:
'app/partials/dashboard.html'
,
controller
:
'DashFromDBProvider'
,
reloadOnSearch
:
false
,
})
.
when
(
'/dashboard/db/:id'
,
{
templateUrl
:
'app/partials/dashboard.html'
,
controller
:
'DashFromDBProvider'
,
reloadOnSearch
:
false
,
})
.
when
(
'/dashboard/temp/:id'
,
{
templateUrl
:
'app/partials/dashboard.html'
,
controller
:
'DashFromDBProvider'
,
reloadOnSearch
:
false
,
})
.
when
(
'/dashboard/import/:id'
,
{
templateUrl
:
'app/partials/dashboard.html'
,
controller
:
'DashFromImportCtrl'
,
reloadOnSearch
:
false
,
})
.
when
(
'/admin/datasources'
,
{
templateUrl
:
'app/features/admin/partials/datasources.html'
,
controller
:
'DataSourcesCtrl'
,
})
.
when
(
'/account'
,
{
templateUrl
:
'app/features/admin/partials/account.html'
,
controller
:
'AccountCtrl'
,
})
.
when
(
'/login'
,
{
templateUrl
:
'app/partials/login.html'
,
controller
:
'LoginCtrl'
,
})
.
when
(
'/register'
,
{
templateUrl
:
'app/partials/register.html'
,
controller
:
'RegisterCtrl'
,
})
.
when
(
'/dashboard/solo/:id/'
,
{
templateUrl
:
'app/partials/solo-panel.html'
,
controller
:
'SoloPanelCtrl'
,
});
});
});
src/app/routes/backend/dashboard.js
View file @
164435f7
...
...
@@ -7,32 +7,6 @@ function (angular, store) {
var
module
=
angular
.
module
(
'grafana.routes'
);
module
.
config
(
function
(
$routeProvider
,
$locationProvider
)
{
$locationProvider
.
html5Mode
(
true
);
$routeProvider
.
when
(
'/'
,
{
templateUrl
:
'app/partials/dashboard.html'
,
controller
:
'DashFromDBProvider'
,
reloadOnSearch
:
false
,
})
.
when
(
'/dashboard/db/:id'
,
{
templateUrl
:
'app/partials/dashboard.html'
,
controller
:
'DashFromDBProvider'
,
reloadOnSearch
:
false
,
})
.
when
(
'/dashboard/temp/:id'
,
{
templateUrl
:
'app/partials/dashboard.html'
,
controller
:
'DashFromDBProvider'
,
reloadOnSearch
:
false
,
})
.
when
(
'/dashboard/import/:id'
,
{
templateUrl
:
'app/partials/dashboard.html'
,
controller
:
'DashFromImportCtrl'
,
reloadOnSearch
:
false
,
});
});
// remember previous dashboard
var
prevDashPath
=
null
;
...
...
src/test/specs/SoloPanelCtrl-specs.js
deleted
100644 → 0
View file @
d3e11cab
src/test/specs/
pro/
soloPanelCtrl-specs.js
→
src/test/specs/soloPanelCtrl-specs.js
View file @
164435f7
define
([
'helpers'
,
'
routes/backend/solo-pane
l'
,
'
controllers/soloPanelCtr
l'
,
'features/dashboard/dashboardSrv'
,
],
function
(
helpers
)
{
'use strict'
;
...
...
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