mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user