-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
executable file
·66 lines (57 loc) · 2.02 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Author: Julien Diot [email protected]
# 2020
#
# Description:
# main UI file for the application
# this file contain the main structure of the GUI and source
# the ui of the app modules
shinyUI(
dashboardPage(
title = APP_TITLE,
skin = "black",
# app title
dashboardHeader(
title = tagList(shiny::icon("gear", "fa-2x"),
paste("\t", APP_TITLE)),
titleWidth = W_sideBar
),
# dashboard sidebar items
dashboardSidebar(
width = W_sideBar,
sidebarMenu(
id = "leftMenu",
menuItem("Marker effect estimation",
tabName = "EffEst",
icon = icon("microscope")),
menuItem("Data Vizualisation",
tabName = "dtaViz",
icon = icon("tv")),
menuItem("Selection and Mating",
tabName = "selectTools",
icon = icon("filter")),
menuItem("Requests",
tabName = "requests",
icon = icon("file-invoice"))
)
),
# dashboard body
dashboardBody(
# javascript function
tags$head(
tags$link(rel = "stylesheet",
type = "text/css",
href = "appStyle.css"), # in www folder
tags$link(rel = "stylesheet",
href = "https://fonts.googleapis.com/css?family=Nunito")
),
# load all file from "src/ui"
tabItems(tabItem(tabName = "hidden", useShinyjs())),
do.call(tabItems,
lapply(
list.files("src/ui/", full.names = TRUE),
function(f){
source(f, local = TRUE, encoding = "UTF-8")$value
}))
)
) # close dashboardPage
) # close shinyUI