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
b6f27626
Commit
b6f27626
authored
Jan 29, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(playlist): remove semi colons for functions in TS
parent
d66932a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
20 deletions
+19
-20
public/app/features/playlist/playlist_edit_ctrl.ts
+13
-13
public/app/features/playlist/playlist_search.ts
+4
-4
public/app/features/playlist/playlists_ctrl.ts
+2
-3
No files found.
public/app/features/playlist/playlist_edit_ctrl.ts
View file @
b6f27626
...
@@ -44,7 +44,7 @@ export class PlaylistEditCtrl {
...
@@ -44,7 +44,7 @@ export class PlaylistEditCtrl {
});
});
this
.
filteredTags
=
this
.
tagresult
;
this
.
filteredTags
=
this
.
tagresult
;
}
;
}
addPlaylistItem
(
playlistItem
)
{
addPlaylistItem
(
playlistItem
)
{
playlistItem
.
value
=
playlistItem
.
id
.
toString
();
playlistItem
.
value
=
playlistItem
.
id
.
toString
();
...
@@ -53,7 +53,7 @@ export class PlaylistEditCtrl {
...
@@ -53,7 +53,7 @@ export class PlaylistEditCtrl {
this
.
playlistItems
.
push
(
playlistItem
);
this
.
playlistItems
.
push
(
playlistItem
);
this
.
filterFoundPlaylistItems
();
this
.
filterFoundPlaylistItems
();
}
;
}
addTagPlaylistItem
(
tag
)
{
addTagPlaylistItem
(
tag
)
{
console
.
log
(
tag
);
console
.
log
(
tag
);
...
@@ -92,31 +92,31 @@ export class PlaylistEditCtrl {
...
@@ -92,31 +92,31 @@ export class PlaylistEditCtrl {
},
()
=>
{
},
()
=>
{
this
.
$scope
.
appEvent
(
'alert-error'
,
[
'Unable to save playlist'
,
''
]);
this
.
$scope
.
appEvent
(
'alert-error'
,
[
'Unable to save playlist'
,
''
]);
});
});
}
;
}
isNew
()
{
isNew
()
{
return
!
this
.
playlist
.
id
;
return
!
this
.
playlist
.
id
;
}
;
}
isPlaylistEmpty
()
{
isPlaylistEmpty
()
{
return
!
this
.
playlistItems
.
length
;
return
!
this
.
playlistItems
.
length
;
}
;
}
isSearchResultsEmpty
()
{
isSearchResultsEmpty
()
{
return
!
this
.
dashboardresult
.
length
;
return
!
this
.
dashboardresult
.
length
;
}
;
}
isSearchQueryEmpty
()
{
isSearchQueryEmpty
()
{
return
this
.
searchQuery
===
''
;
return
this
.
searchQuery
===
''
;
}
;
}
backToList
()
{
backToList
()
{
this
.
$location
.
path
(
'/playlists'
);
this
.
$location
.
path
(
'/playlists'
);
}
;
}
isLoading
()
{
isLoading
()
{
return
this
.
loading
;
return
this
.
loading
;
}
;
}
searchStarted
(
promise
)
{
searchStarted
(
promise
)
{
promise
.
then
((
data
)
=>
{
promise
.
then
((
data
)
=>
{
...
@@ -126,7 +126,7 @@ export class PlaylistEditCtrl {
...
@@ -126,7 +126,7 @@ export class PlaylistEditCtrl {
this
.
tagresult
=
data
.
tagResult
;
this
.
tagresult
=
data
.
tagResult
;
this
.
filterFoundPlaylistItems
();
this
.
filterFoundPlaylistItems
();
});
});
}
;
}
movePlaylistItem
(
playlistItem
,
offset
)
{
movePlaylistItem
(
playlistItem
,
offset
)
{
var
currentPosition
=
this
.
playlistItems
.
indexOf
(
playlistItem
);
var
currentPosition
=
this
.
playlistItems
.
indexOf
(
playlistItem
);
...
@@ -136,15 +136,15 @@ export class PlaylistEditCtrl {
...
@@ -136,15 +136,15 @@ export class PlaylistEditCtrl {
this
.
playlistItems
.
splice
(
currentPosition
,
1
);
this
.
playlistItems
.
splice
(
currentPosition
,
1
);
this
.
playlistItems
.
splice
(
newPosition
,
0
,
playlistItem
);
this
.
playlistItems
.
splice
(
newPosition
,
0
,
playlistItem
);
}
}
}
;
}
movePlaylistItemUp
(
playlistItem
)
{
movePlaylistItemUp
(
playlistItem
)
{
this
.
movePlaylistItem
(
playlistItem
,
-
1
);
this
.
movePlaylistItem
(
playlistItem
,
-
1
);
}
;
}
movePlaylistItemDown
(
playlistItem
)
{
movePlaylistItemDown
(
playlistItem
)
{
this
.
movePlaylistItem
(
playlistItem
,
1
);
this
.
movePlaylistItem
(
playlistItem
,
1
);
}
;
}
}
}
coreModule
.
controller
(
'PlaylistEditCtrl'
,
PlaylistEditCtrl
);
coreModule
.
controller
(
'PlaylistEditCtrl'
,
PlaylistEditCtrl
);
public/app/features/playlist/playlist_search.ts
View file @
b6f27626
...
@@ -39,11 +39,11 @@ export class PlaylistSearchCtrl {
...
@@ -39,11 +39,11 @@ export class PlaylistSearchCtrl {
showStarred
()
{
showStarred
()
{
this
.
query
.
starred
=
!
this
.
query
.
starred
;
this
.
query
.
starred
=
!
this
.
query
.
starred
;
this
.
searchDashboards
();
this
.
searchDashboards
();
}
;
}
queryHasNoFilters
()
{
queryHasNoFilters
()
{
return
this
.
query
.
query
===
''
&&
this
.
query
.
starred
===
false
&&
this
.
query
.
tag
.
length
===
0
;
return
this
.
query
.
query
===
''
&&
this
.
query
.
starred
===
false
&&
this
.
query
.
tag
.
length
===
0
;
}
;
}
filterByTag
(
tag
,
evt
)
{
filterByTag
(
tag
,
evt
)
{
this
.
query
.
tag
.
push
(
tag
);
this
.
query
.
tag
.
push
(
tag
);
...
@@ -52,7 +52,7 @@ export class PlaylistSearchCtrl {
...
@@ -52,7 +52,7 @@ export class PlaylistSearchCtrl {
evt
.
stopPropagation
();
evt
.
stopPropagation
();
evt
.
preventDefault
();
evt
.
preventDefault
();
}
}
}
;
}
getTags
()
{
getTags
()
{
var
prom
:
any
=
{};
var
prom
:
any
=
{};
...
@@ -65,7 +65,7 @@ export class PlaylistSearchCtrl {
...
@@ -65,7 +65,7 @@ export class PlaylistSearchCtrl {
});
});
this
.
searchStarted
(
prom
);
this
.
searchStarted
(
prom
);
}
;
}
}
}
export
function
playlistSearchDirective
()
{
export
function
playlistSearchDirective
()
{
...
...
public/app/features/playlist/playlists_ctrl.ts
View file @
b6f27626
...
@@ -25,7 +25,7 @@ export class PlaylistsCtrl {
...
@@ -25,7 +25,7 @@ export class PlaylistsCtrl {
this
.
$scope
.
appEvent
(
'alert-error'
,
[
'Unable to delete playlist'
,
''
]);
this
.
$scope
.
appEvent
(
'alert-error'
,
[
'Unable to delete playlist'
,
''
]);
this
.
playlists
.
push
(
playlist
);
this
.
playlists
.
push
(
playlist
);
});
});
}
;
}
removePlaylist
(
playlist
)
{
removePlaylist
(
playlist
)
{
...
@@ -38,8 +38,7 @@ export class PlaylistsCtrl {
...
@@ -38,8 +38,7 @@ export class PlaylistsCtrl {
this
.
removePlaylistConfirmed
(
playlist
);
this
.
removePlaylistConfirmed
(
playlist
);
}
}
});
});
}
};
}
}
coreModule
.
controller
(
'PlaylistsCtrl'
,
PlaylistsCtrl
);
coreModule
.
controller
(
'PlaylistsCtrl'
,
PlaylistsCtrl
);
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