Skip to content

Commit e723367

Browse files
committed
cleanup dead links
1 parent a9aacc7 commit e723367

File tree

5 files changed

+42
-39
lines changed

5 files changed

+42
-39
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Suggests:
3131
knitr,
3232
rmarkdown,
3333
jsonlite
34-
URL: https://github.com/RinteRface/shinydashboardPlus, https://rinterface.com/shiny/shinydashboardPlus/
34+
URL: https://github.com/RinteRface/shinydashboardPlus, https://shinydashboardPlus.rinterface.com/
3535
BugReports: https://github.com/RinteRface/shinydashboardPlus/issues
3636
Encoding: UTF-8
3737
RoxygenNote: 7.3.1

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ or redirect at the top of the page
249249
## Breaking changes
250250
- change argument name in `dropdownItem()` (`boxPlus()`): "target" is replaced by "url".
251251
- Widely simplify the `rightSidebar()` function: remove `rightSidebarTabList()`, `rightSidebarTabItem()` and
252-
`rightSidebarPanel()` from the user interface. See [here](https://rinterface.github.io/shinydashboardPlus/articles/rightSidebar.html) to discover how to set up
252+
`rightSidebarPanel()` from the user interface. See [here](https://shinydashboardplus.rinterface.com/articles/controlbar#controlbar) to discover how to set up
253253
a new `rightSidebar()`
254254
## Major changes
255255
- add a "width" argument to the `rightSidebar()` (set to 230 pixels by default) to

R/useful-items.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ accordionItem <- function(..., title, status = NULL, collapsed = TRUE,
185185
#' })
186186
#' observe(print(input$accordion1))
187187
#' observeEvent(input$accordion1, {
188-
#' showNotification(sprintf("You selected accordion N° %s", input$accordion1), type = "message")
188+
#' showNotification(
189+
#' sprintf("You selected accordion N° %s", input$accordion1),
190+
#' type = "message"
191+
#' )
189192
#' })
190193
#' }
191194
#' )

man/accordion.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/improved-boxes.Rmd

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,37 @@ server <- function(input, output, session) {
5656
req(!input$mybox$collapsed)
5757
plot(rnorm(200))
5858
})
59-
59+
6060
output$box_state <- renderText({
6161
state <- if (input$mybox$collapsed) "collapsed" else "uncollapsed"
6262
paste("My box is", state)
6363
})
64-
64+
6565
observeEvent(input$toggle_box, {
6666
updateBox("mybox", action = "toggle")
6767
})
68-
68+
6969
observeEvent(input$remove_box, {
7070
updateBox("mybox", action = "remove")
7171
})
72-
72+
7373
observeEvent(input$restore_box, {
7474
updateBox("mybox", action = "restore")
7575
})
76-
76+
7777
observeEvent(input$update_box, {
7878
updateBox(
79-
"mybox",
80-
action = "update",
79+
"mybox",
80+
action = "update",
8181
options = list(
8282
title = h2("New title", dashboardLabel(1, status = "primary")),
83-
status = "danger",
83+
status = "danger",
8484
solidHeader = TRUE,
8585
width = 4
8686
)
8787
)
8888
})
89-
89+
9090
observeEvent(input$mybox$visible, {
9191
collapsed <- if (input$mybox$collapsed) "collapsed" else "uncollapsed"
9292
visible <- if (input$mybox$visible) "visible" else "hidden"
@@ -107,7 +107,7 @@ We call the `updateBox()` function, specifying the action to accomplish:
107107

108108
Knowing the state of a box significantly opens new possibilities within the application, thereby increasing interactivity. Additionally, the toggle animation has been speed up (from 0.5s to 0.1s) so as to reduce the latency.
109109

110-
If you want to know more about the underlying mechanisms, have a look at the box widget [documentation](https://adminlte.io/docs/2.4/js-box-widget).
110+
If you want to know more about the underlying mechanisms, have a look at the box widget [documentation](https://github.com/ColorlibHQ/AdminLTE/tree/86990d5b48f5b9d747ee14d67df7bb200ffc6f85/documentation).
111111

112112
<div class="marvel-device ipad black">
113113
<div class="camera"></div>
@@ -140,21 +140,21 @@ shinyApp(
140140
header = dashboardHeader(),
141141
body = dashboardBody(
142142
box(
143-
title = "Update box sidebar",
144-
closable = TRUE,
143+
title = "Update box sidebar",
144+
closable = TRUE,
145145
width = 12,
146146
height = "500px",
147-
solidHeader = FALSE,
147+
solidHeader = FALSE,
148148
collapsible = TRUE,
149149
actionButton("update", "Toggle card sidebar"),
150150
sidebar = boxSidebar(
151151
id = "mycardsidebar",
152152
width = 25,
153153
sliderInput(
154-
"obs",
154+
"obs",
155155
"Number of observations:",
156-
min = 0,
157-
max = 1000,
156+
min = 0,
157+
max = 1000,
158158
value = 500
159159
)
160160
),
@@ -165,15 +165,14 @@ shinyApp(
165165
),
166166
server = function(input, output, session) {
167167
observe(print(input$mycardsidebar))
168-
168+
169169
output$distPlot <- renderPlot({
170170
hist(rnorm(input$obs))
171171
})
172-
172+
173173
observeEvent(input$update, {
174174
updateBoxSidebar("mycardsidebar")
175175
})
176-
177176
}
178177
)
179178
```
@@ -201,11 +200,11 @@ shinyApp(
201200
dashboardSidebar(),
202201
dashboardBody(
203202
box(
204-
title = "Closable Box with dropdown",
205-
closable = TRUE,
203+
title = "Closable Box with dropdown",
204+
closable = TRUE,
206205
width = 12,
207-
status = "warning",
208-
solidHeader = FALSE,
206+
status = "warning",
207+
solidHeader = FALSE,
209208
collapsible = TRUE,
210209
dropdownMenu = boxDropdown(
211210
boxDropdownItem("Click me", id = "dropdownItem", icon = icon("heart")),
@@ -284,14 +283,14 @@ shinyApp(
284283
navPills(
285284
id = "pillItem",
286285
navPillsItem(
287-
left = "Item 1",
286+
left = "Item 1",
288287
color = "green",
289288
right = 10
290289
),
291290
navPillsItem(
292-
left = "Item 2",
291+
left = "Item 2",
293292
color = "red",
294-
icon = icon("angle-down"),
293+
icon = icon("angle-down"),
295294
right = "10%"
296295
)
297296
),
@@ -301,18 +300,17 @@ shinyApp(
301300
title = "userBox"
302301
),
303302
server = function(input, output) {
304-
305303
observeEvent(input$pillItem, {
306304
if (input$pillItem == 2) {
307305
showModal(
308306
modalDialog("A modal")
309307
)
310308
}
311309
})
312-
310+
313311
observeEvent(input$pillItem, {
314312
showNotification(
315-
sprintf("You clicked on pill N° %s", input$pillItem),
313+
sprintf("You clicked on pill N° %s", input$pillItem),
316314
type = "warning",
317315
duration = 1
318316
)
@@ -497,10 +495,10 @@ shinyApp(
497495
fluidRow(
498496
column(
499497
width = 6,
500-
uiOutput("active_side"),
498+
uiOutput("active_side"),
501499
actionButton("toggle", "Toggle flip box"),
502500
flipBox(
503-
id = "myflipbox",
501+
id = "myflipbox",
504502
trigger = "hover",
505503
width = 12,
506504
front = div(
@@ -548,18 +546,17 @@ shinyApp(
548546
)
549547
)
550548
),
551-
552549
server = function(input, output, session) {
553550
output$active_side <- renderUI({
554551
side <- if (input$myflipbox) "front" else "back"
555552
dashboardBadge(side, color = "blue")
556553
})
557-
558-
output$active_side_2<- renderUI({
554+
555+
output$active_side_2 <- renderUI({
559556
side <- if (input$myflipbox2) "front" else "back"
560557
dashboardBadge(side, color = "blue")
561558
})
562-
559+
563560
observeEvent(input$toggle, {
564561
updateFlipBox("myflipbox")
565562
})

0 commit comments

Comments
 (0)