feat: ACP analytics API route (#7725)

* feat: added API route for retrieving analytics via REST API

* feat: sets is now optional, can pass in multiple sets

* fix: moved expand and added json button to panel header

* fix: matching api params to socket method

* fix: update json api button url on graph change

* fix: updated default counts based on passed in units
This commit is contained in:
Julian Lam
2019-06-28 14:59:55 -04:00
committed by GitHub
parent fb0870297b
commit a0c0ef1ba4
6 changed files with 81 additions and 19 deletions

View File

@@ -5,26 +5,35 @@
max-width: 100% !important;
}
#analytics-panel .panel-heading i {
&.fa-expand {
display: none;
}
&.fa-terminal::after {
content: 'JSON';
font-family: @font-family-sans-serif;
font-weight: 600;
color: @gray-dark;
padding-left: .5em;
}
padding: .75em;
background-color: @gray-lighter;
color: @gray-base;
cursor: pointer;
.transition(all .4s);
&.active {
display: inline;
}
}
.graph-container {
padding-right: 50px;
position: relative;
background: @body-bg;
.fa-expand {
display: none;
position: absolute;
right: 20px;
padding: 5px;
background-color: @gray-lighter;
color: @gray-base;
cursor: pointer;
.transition(all .4s);
&.active {
display: inline;
}
}
&:hover {
.fa-expand {
color: @gray-lighter;