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
524f5056
Commit
524f5056
authored
Sep 19, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tech(templating): refactoring, updated dashboardSrv to typescript
parent
5ce3e40c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
5 deletions
+4
-5
public/app/features/dashboard/all.js
+1
-1
public/app/features/dashboard/dashboard_ctrl.ts
+0
-2
public/app/features/dashboard/dashboard_srv.ts
+0
-0
public/app/features/dashboard/specs/dashboard_srv_specs.ts
+0
-0
public/app/features/dashboard/specs/dynamic_dashboard_srv_specs.ts
+2
-1
public/test/specs/unsavedChangesSrv-specs.js
+1
-1
No files found.
public/app/features/dashboard/all.js
View file @
524f5056
...
...
@@ -7,7 +7,7 @@ define([
'./rowCtrl'
,
'./shareModalCtrl'
,
'./shareSnapshotCtrl'
,
'./dashboard
S
rv'
,
'./dashboard
_s
rv'
,
'./keybindings'
,
'./viewStateSrv'
,
'./timeSrv'
,
...
...
public/app/features/dashboard/dashboard_ctrl.ts
View file @
524f5056
...
...
@@ -87,8 +87,6 @@ export class DashboardCtrl {
};
$scope
.
templateVariableUpdated
=
function
()
{
console
.
log
(
'dynamic update'
);
dynamicDashboardSrv
.
update
(
$scope
.
dashboard
);
};
$scope
.
updateSubmenuVisibility
=
function
()
{
...
...
public/app/features/dashboard/dashboard
Srv.j
s
→
public/app/features/dashboard/dashboard
_srv.t
s
View file @
524f5056
This diff is collapsed.
Click to expand it.
public/
test/specs/dashboardSrv-specs.j
s
→
public/
app/features/dashboard/specs/dashboard_srv_specs.t
s
View file @
524f5056
This diff is collapsed.
Click to expand it.
public/app/features/dashboard/specs/dynamic_dashboard_srv_specs.ts
View file @
524f5056
import
{
describe
,
beforeEach
,
it
,
sinon
,
expect
,
angularMocks
}
from
'test/lib/common'
;
import
'app/features/dashboard/dashboardS
rv'
;
import
{
DashboardSrv
}
from
'../dashboard_s
rv'
;
import
{
DynamicDashboardSrv
}
from
'../dynamic_dashboard_srv'
;
function
dynamicDashScenario
(
desc
,
func
)
{
...
...
@@ -10,6 +10,7 @@ function dynamicDashScenario(desc, func) {
ctx
.
setup
=
function
(
setupFunc
)
{
beforeEach
(
angularMocks
.
module
(
'grafana.core'
));
beforeEach
(
angularMocks
.
module
(
'grafana.services'
));
beforeEach
(
angularMocks
.
module
(
function
(
$provide
)
{
$provide
.
value
(
'contextSrv'
,
{
...
...
public/test/specs/unsavedChangesSrv-specs.js
View file @
524f5056
define
([
'app/features/dashboard/unsavedChangesSrv'
,
'app/features/dashboard/dashboard
S
rv'
'app/features/dashboard/dashboard
_s
rv'
],
function
()
{
'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