Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dataviz_gitlabr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DREAL Pays de la Loire
Centre de Services de la Donnée
dataviz_gitlabr
Commits
c328ddac
Commit
c328ddac
authored
3 months ago
by
LE DURAND Matteo
Browse files
Options
Downloads
Patches
Plain Diff
Mise à jour de l'UI en ajoutant l'onglet indicateur
parent
82687511
Branches
Branches containing commit
No related tags found
2 merge requests
!28
Ajout de l'onglet indicateur et plus
,
!18
MAJ de main de la branche dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui.R
+28
-20
28 additions, 20 deletions
ui.R
with
28 additions
and
20 deletions
ui.R
+
28
−
20
View file @
c328ddac
...
@@ -4,7 +4,7 @@ ui <- shinygouv::navbarPage_dsfr(
...
@@ -4,7 +4,7 @@ ui <- shinygouv::navbarPage_dsfr(
id
=
"nav"
,
id
=
"nav"
,
header
=
shinygouv
::
header_dsfr
(
header
=
shinygouv
::
header_dsfr
(
intitule
=
c
(
"DREAL"
,
"Pays de la Loire"
),
intitule
=
c
(
"DREAL"
,
"Pays de la Loire"
),
nom_site_service
=
"
Tableau de bord GitLab-Forge
"
,
nom_site_service
=
"
Visualisation des projets du CSD gérés avec git
"
,
baseline
=
"Les Projets du Centre de Services de la Donnée"
baseline
=
"Les Projets du Centre de Services de la Donnée"
),
),
footer
=
footer_dsfr
(
footer
=
footer_dsfr
(
...
@@ -16,8 +16,7 @@ ui <- shinygouv::navbarPage_dsfr(
...
@@ -16,8 +16,7 @@ ui <- shinygouv::navbarPage_dsfr(
),
),
# First tab Projet ---------
# First tab Projet ---------
shinygouv
::
navbarPanel_dsfr
(
shinygouv
::
navbarPanel_dsfr
(
title
=
"Graphique des projets par durée"
,
title
=
"Graphique par période"
,
htmltools
::
tags
$
head
(
tags
$
style
(
".fr-container { max-width: calc(100% - 2rem); }"
)),
htmltools
::
tags
$
head
(
tags
$
style
(
".fr-container { max-width: calc(100% - 2rem); }"
)),
shinygouv
::
fluidRow_dsfr
(
shinygouv
::
fluidRow_dsfr
(
shinygouv
::
column_dsfr
(
shinygouv
::
column_dsfr
(
...
@@ -44,21 +43,23 @@ ui <- shinygouv::navbarPage_dsfr(
...
@@ -44,21 +43,23 @@ ui <- shinygouv::navbarPage_dsfr(
unique
()
,
unique
()
,
# Extrait les éléments uniques
# Extrait les éléments uniques
multiple
=
TRUE
multiple
=
TRUE
),
extra_class
=
"fr-mt-6w"
),
extra_class
=
"fr-mt-6w"
),
),
column_dsfr
(
column_dsfr
(
3
,
3
,
selectizeInput
(
selectizeInput
(
inputId
=
"project_name"
,
inputId
=
"project_name"
,
label
=
"
P
rojet : "
,
label
=
"
Sélectionnez p
rojet : "
,
choices
=
NULL
,
choices
=
NULL
,
multiple
=
TRUE
multiple
=
TRUE
),
extra_class
=
"fr-mt-6w"
),
extra_class
=
"fr-mt-6w"
),
),
column_dsfr
(
column_dsfr
(
3
,
3
,
selectizeInput
(
selectizeInput
(
inputId
=
"aut
ho
r"
,
inputId
=
"aut
eu
r"
,
label
=
"Auteur :"
,
label
=
"Auteur :"
,
choices
=
unique
(
str_to_title
(
replace_non_ascii
(
all_data
$
auteur
))),
choices
=
unique
(
str_to_title
(
replace_non_ascii
(
all_data
$
auteur
))),
selected
=
NULL
,
selected
=
NULL
,
...
@@ -83,12 +84,8 @@ ui <- shinygouv::navbarPage_dsfr(
...
@@ -83,12 +84,8 @@ ui <- shinygouv::navbarPage_dsfr(
4
,
4
,
selectizeInput
(
selectizeInput
(
inputId
=
"categorie"
,
inputId
=
"categorie"
,
label
=
"Groupe: "
,
label
=
" Évenement (précis) "
,
choices
=
c
(
choices
=
unique
(
all_data
$
type
),
"Autre"
=
"tous"
,
"Spyrales"
=
"spyrale"
,
"R Formation"
=
"github"
),
selected
=
NULL
,
selected
=
NULL
,
multiple
=
TRUE
multiple
=
TRUE
)
)
...
@@ -106,24 +103,35 @@ ui <- shinygouv::navbarPage_dsfr(
...
@@ -106,24 +103,35 @@ ui <- shinygouv::navbarPage_dsfr(
plotly
::
plotlyOutput
(
"filteredPlot2"
,
height
=
"700px"
),
plotly
::
plotlyOutput
(
"filteredPlot2"
,
height
=
"700px"
),
extra_class
=
"fr-my-1w"
extra_class
=
"fr-my-1w"
)
)
)
)
),
# tab graphique par choix ↑
),
# tab graphique par choix ↑
tabPanel_dsfr
(
tabPanel_dsfr
(
id
=
"indicateur"
,
id
=
"indicateur"
,
title
=
"Indicateurs"
,
title
=
"Indicateurs"
,
shinygouv
::
fluidRow_dsfr
(
shinygouv
::
fluidRow_dsfr
(
shinygouv
::
column_dsfr
(
12
)
column_dsfr
(
3
,
textOutput
(
"nb_projet"
),
textOutput
(
"nb_commit"
),
textOutput
(
"nb_temps"
),
extra_class
=
"fr-my-1w"
),
shinygouv
::
column_dsfr
(
9
,
plotlyOutput
(
"bar_chart"
),
extra_class
=
"fr-my-1w"
),
column_dsfr
(
12
,
textOutput
(
"min_value"
)),
column_dsfr
(
12
,
textOutput
(
"temps"
)),
column_dsfr
(
12
,
plotOutput
(
"bar"
),
extra_class
=
"fr-my-1w"
)
)
)
),
),
# tab indicateur par choix ↑
tabPanel_dsfr
(
tabPanel_dsfr
(
id
=
"
t
able"
,
id
=
"
T
able"
,
title
=
"
t
able
au
"
,
title
=
"
T
able"
,
shinygouv
::
fluidRow_dsfr
(
shinygouv
::
fluidRow_dsfr
(
shinygouv
::
column_dsfr
(
12
,
shinygouv
::
column_dsfr
(
12
,
DT
::
dataTableOutput
(
"table"
))
DTOutput
(
'table'
))
)
)
)
)
# tab table par choix ↑
)
#↑ tableau_proj
)
#↑ tableau_proj
)
# ↑ Navbar
)
# ↑ Navbar
)
# ↑ UI
)
# ↑ UI
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment