Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ce-deploy-ui
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ccce
dev
ce-deploy-ui
Merge requests
!214
ICSHWI-10398
: Bugfixing loading indicator for statistics page
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ICSHWI-10398
: Bugfixing loading indicator for statistics page
ICSHWI-10398_Bugfixing_loading_indicatior_for_statistics
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Imre Toth
requested to merge
ICSHWI-10398_Bugfixing_loading_indicatior_for_statistics
into
develop
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
2a4ff3a3
1 commit,
2 years ago
1 file
+
11
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/views/statistics/StatisticsView.js
+
11
−
3
Options
import
React
,
{
useEffect
}
from
"
react
"
;
import
{
Paper
,
Grid
,
useTheme
,
makeStyles
}
from
"
@material-ui/core
"
;
import
{
Paper
,
Grid
,
useTheme
,
makeStyles
,
LinearProgress
}
from
"
@material-ui/core
"
;
import
{
useStatistics
}
from
"
../../api/SwaggerApi
"
;
import
{
useGlobalAppBar
}
from
"
../../components/navigation/GlobalAppBar/GlobalAppBar
"
;
import
{
RootContainer
}
from
"
../../components/common/Container/RootContainer
"
;
@@ -53,10 +53,13 @@ export function StatisticsView() {
return
(
<
RootContainer
>
<
Grid
container
direction
=
"
column
"
spacing
=
{
theme
.
spacing
(
0.5
)}
>
{
statistics
&&
<
Grid
item
xs
=
{
12
}
>
<
h2
>
Statistics
<
/h2
>
<
/Grid
>
{
statistics
?
<>
<
Grid
item
xs
=
{
12
}
>
<
h2
>
Statistics
<
/h2
>
<
PrimeKeyValueTable
obj
=
{
prometheusStats
}
labels
=
{[
"
Network monitoring
"
]}
/
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
>
@@ -66,8 +69,13 @@ export function StatisticsView() {
<
PrimeKeyValueTable
obj
=
{
statistics
.
networkScopesIocCount
}
labels
=
{[
"
IOCs per network scope according to the deployment tool
"
]}
/
>
<
/Grid
>
<
/
>
:
<
Grid
item
xs
=
{
12
}
>
<
div
style
=
{{
width
:
"
100%
"
}}
><
LinearProgress
color
=
"
primary
"
/><
/div
>
<
/Grid
>
}
<
Grid
item
xs
=
{
12
}
>
<
Paper
className
=
{
classes
.
paper
}
>
<
DeploymentLineChart
title
=
"
Successful deployments over time by the deployment tool
"
chartLabel
=
"
Deployed IOCs in time
"
hook
=
{
useDeployedIOCStatistics
}
/
>
Loading