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
890e5ce8
Commit
890e5ce8
authored
Dec 05, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(playlist): added support for kiosk mode & minor polish/fix, closes #6727
parent
cc46b819
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
43 deletions
+26
-43
public/app/features/dashboard/dashnav/dashnav.html
+12
-12
public/app/features/playlist/playlist_srv.ts
+3
-2
public/sass/components/_view_states.scss
+10
-29
public/sass/pages/_dashboard.scss
+1
-0
No files found.
public/app/features/dashboard/dashnav/dashnav.html
View file @
890e5ce8
...
...
@@ -14,6 +14,18 @@
</span>
</a>
<ul
class=
"nav dash-playlist-actions"
ng-if=
"playlistSrv"
>
<li>
<a
ng-click=
"playlistSrv.prev()"
><i
class=
"fa fa-step-backward"
></i></a>
</li>
<li>
<a
ng-click=
"playlistSrv.stop()"
><i
class=
"fa fa-stop"
></i></a>
</li>
<li>
<a
ng-click=
"playlistSrv.next()"
><i
class=
"fa fa-step-forward"
></i></a>
</li>
</ul>
<ul
class=
"nav pull-left dashnav-action-icons"
>
<li
ng-show=
"::dashboardMeta.canStar"
>
<a
class=
"pointer"
ng-click=
"starDashboard()"
>
...
...
@@ -68,18 +80,6 @@
</li>
</ul>
<ul
class=
"nav dash-playlist-actions"
ng-if=
"playlistSrv"
>
<li>
<a
ng-click=
"playlistSrv.prev()"
><i
class=
"fa fa-step-backward"
></i></a>
</li>
<li>
<a
ng-click=
"playlistSrv.stop()"
><i
class=
"fa fa-stop"
></i></a>
</li>
<li>
<a
ng-click=
"playlistSrv.next()"
><i
class=
"fa fa-step-forward"
></i></a>
</li>
</ul>
<ul
class=
"nav pull-right"
>
<li
ng-show=
"dashboard.meta.fullscreen"
class=
"dashnav-back-to-dashboard"
>
<a
ng-click=
"exitFullscreen()"
>
...
...
public/app/features/playlist/playlist_srv.ts
View file @
890e5ce8
///<reference path="../../headers/common.d.ts" />
import
angular
from
'angular'
;
import
config
from
'app/core/config'
;
import
coreModule
from
'../../core/core_module'
;
import
kbn
from
'app/core/utils/kbn'
;
...
...
@@ -11,6 +10,7 @@ class PlaylistSrv {
private
index
:
number
;
private
interval
:
any
;
private
playlistId
:
number
;
private
startUrl
:
string
;
/** @ngInject */
constructor
(
private
$rootScope
:
any
,
private
$location
:
any
,
private
$timeout
:
any
,
private
backendSrv
:
any
)
{
}
...
...
@@ -21,7 +21,7 @@ class PlaylistSrv {
var
playedAllDashboards
=
this
.
index
>
this
.
dashboards
.
length
-
1
;
if
(
playedAllDashboards
)
{
window
.
location
.
href
=
`
${
config
.
appSubUrl
}
/playlists/play/
${
this
.
playlistId
}
`
;
window
.
location
.
href
=
this
.
startUrl
;
}
else
{
var
dash
=
this
.
dashboards
[
this
.
index
];
this
.
$location
.
url
(
'dashboard/'
+
dash
.
uri
);
...
...
@@ -39,6 +39,7 @@ class PlaylistSrv {
start
(
playlistId
)
{
this
.
stop
();
this
.
startUrl
=
window
.
location
.
href
;
this
.
index
=
0
;
this
.
playlistId
=
playlistId
;
this
.
$rootScope
.
playlistSrv
=
this
;
...
...
public/sass/components/_view_states.scss
View file @
890e5ce8
...
...
@@ -9,35 +9,6 @@
}
}
.playlist-active
{
@include
hide-controls
();
.navbar-inner
{
background
:
transparent
;
}
.navbar-brand-btn
,
.navbar-page-btn
{
border
:
none
;
background
:
transparent
;
.fa
,
.icon-gf
{
opacity
:
0
;
}
}
.dashnav-refresh-action
,
.dashnav-zoom-out
,
.dashnav-action-icons
,
.dashnav-move-timeframe
{
display
:
none
;
}
.dash-playlist-actions
{
a
{
color
:
$text-color-faint
!
important
;
}
}
}
.hide-controls
{
@include
hide-controls
();
}
...
...
@@ -49,6 +20,7 @@
}
}
.playlist-active
,
.user-activity-low
{
.add-row-panel-hint
,
.dash-row-menu-container
,
...
...
@@ -90,3 +62,12 @@
transition
:
transform
1
.5s
ease-in-out
1s
;
}
}
.playlist-active
{
.dash-playlist-actions
{
.fa
{
opacity
:
1
;
color
:
$text-color-faint
!
important
;
}
}
}
public/sass/pages/_dashboard.scss
View file @
890e5ce8
...
...
@@ -218,3 +218,4 @@ div.flot-text {
padding
:
0
.5rem
.5rem
.2rem
.5rem
;
}
}
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