-
Notifications
You must be signed in to change notification settings - Fork 7
/
README.Rmd
165 lines (106 loc) · 5.96 KB
/
README.Rmd
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
output:
md_document:
variant: markdown_github
---
<!-- README.md is generated from README.Rmd. -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# ygdashboard
A modified shinydashboard to incorporate more functionality from adminLTE.
## Origination
I would like first express my sincere thanks to Winston Chang, the RStutio team, Almasaeed Studio and everyone involved in developing shiny and shinydashboard.
At first, I simply want have a sidebar that would still show menuItem icons when collapsed, so that me and other users can still switch between tabs without re-expanding the sidebar. I find this could only be completed (with my limited knowledge) by modifying shinydashboard source code. This is the begin I downloaded shinydashboard source code and started ygdashboard as a modified version.
Then, I fascinate on having a user info panel on the top right header, having a footer on the bottom of the body, having a menu segment on the side menu bar, having a right control panel with toggle on top right header. I implement the first three features, and leave the last one as a pure HTML holder - you still have it but via making a HTML input. This is the part I enjoyed the most seeing the capability of shinydashboard extending gradually.
At last, I would like to have versatile boxes, so I implements a calendar box, a chat box, and a timeline box. The calendar won't show up on shiny app page - I would happy if anyone knows the reason. The chat box is fun, as you would see in the show cases. The timeline box provides an excellent interface for logging, which I found as the most useful one. This is where the fun continues and I am start seeing ygdashboard showing some valuable extension on shinydashboard.
Along the way, I find that `leafletfix.css:8` in leaflet overrides shinydashboard css and makes the `sidebarUserPanel()` having grey box prominent from the black background - unconformable aesthetically - fix it by adding `style="background-color:transparent;"` in `div(class = "user-panel", ..., div(class = "pull-left info", ...))` in `sidebarUserPanel()`. I also find that font awesome icon like `envira` is not recognized in shiny - all 30 new icons in 4.6 won't? Please see full development log at [ygdashboard on github](https://github.com/gyang274/ygdashboard/).
Welcome to view this [ygdashboard app on shinyapps.io](https://gyang.shinyapps.io/ygdashboard/)!
## Main Feature
+ Overview
```{r overview, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/overview.png")
```
+ New feature: show menu icons when sidebar collapse.
```{r collapse_siderbar, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/collapse_sidebar.png")
```
+ New component:
- Add user info panel on top right header.
- Add footer on the bottom of the body.
- Add menu segments on the side menu bar.
- Add a right control panel with toggle on top right header.
```{r user_info_panel, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/user_info_panel.png")
```
```{r control_panel, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/control_panel.png")
```
- The user info panel can be created dynamically with userOutput() on client side and renderUser({ dashboardUser() }) on the server side. This allow login like feature, such as switching user info and possible UI design for different users at run time.
```{r switch_user_01, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/switch_user_01.png")
```
```{r switch_user_02, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/switch_user_02.png")
```
```{r switch_user_03, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/switch_user_03.png")
```
```{r switch_user_04, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/switch_user_04.png")
```
+ Dashboard Tab:
- Add a new infoBox() with progress bar.
```{r dashboard, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/dashboard.png")
```
+ Chat Tab:
- Add a chatBox() together with chatContactList(), chatContact(), chatMessage() for creating direct chat.
```{r chat01, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/chat_box_01.png")
```
```{r chat02, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/chat_box_02.png")
```
```{r chat03, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/chat_box_03.png")
```
+ Calendar Tab:
- TODO: why calendar won't show up?
```{r calendar, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/calendar_box.png")
```
+ Database Tab:
- A worth mention feature is that we can use javascripts, such as enter_as_click.js along with this app, to bind the sidebar search form or general shiny input box with a button, so that we can catch the event when the search form or input box is focused and user hit enter key on keyboard, without requiring a must click on the button.
```{r database, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/database.png")
```
+ Table Tab:
```{r table, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/table.png")
```
+ Figure Tab:
```{r figure, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/figure.png")
```
+ Map Tab:
```{r map, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/map.png")
```
+ Timeline Tab:
```{r timeline, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/timeline.png")
```
+ Documentation Tab:
```{r documenation, echo=FALSE, cache=TRUE}
knitr::include_graphics("fig/documentation.png")
```
## NEWS
+ 2016.08.10: Add `socialWidgetBox()` on __Chat Tab__, source from `boxes.R` in `ygdashboard`.
+ 2016.08.08: Add `carouselBox()`, `carouselSets()`, `carouselItem()` on __Carousel Tab__, source from `boxes.R` in `ygdashboard`.
## TODO
+ dashboardControlbar.R: create functions that can create sub-components in control-sidebar, like functions defined in dashboardSidebar.R.