-
Notifications
You must be signed in to change notification settings - Fork 8
/
ui.R
77 lines (53 loc) · 1.61 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
67
68
69
70
71
72
73
74
75
function(){
sidebar <- dashboardSidebar(
sidebarMenu(
id = "sidebar",
menuItem("Data", tabName = "tabData", icon = icon("file-upload")),
menuItem("Calendar", tabName = "tabCalendar", icon = icon("calendar-alt")),
menuItem("Visualization", tabName = "tabVisualization", icon = icon("chart-bar")),
menuItem("Analysis", tabName = "tabAnalysis", icon = icon("chart-line")),
menuItem("Data cutter", tabName = "tabCut", icon = icon("cut")),
menuItem("Batch analysis", tabName = "tabBatch", icon = icon("list-ol"))
)
)
body <- dashboardBody(
shinyjs::useShinyjs(),
shinytoastr::useToastr(),
includeCSS("www/custom.css"),
includeCSS("www/logos.css"),
#----- Choose directory, read files -----
tabItems(
tabItem("tabData",
dataUploadUI("data")
),
#----- Calendar data -----
tabItem("tabCalendar",
calendarUI("calendar")
),
#----- Visualization -----
tabItem("tabVisualization",
visualizationModuleUI("viz")
),
#----- Analysis -----
tabItem("tabAnalysis",
analysisModuleUI("analysis")
),
tabItem("tabCut",
cutDataModuleUI("cut")
),
tabItem("tabBatch",
batchModuleUI("batch")
)
)
)
header <- dashboardHeader(
title = "Empatica dashboard"
)
ui <- dashboardPage(
skin = "blue",
header = header,
sidebar = sidebar,
body = body
)
return(ui)
}