diff --git a/DESCRIPTION b/DESCRIPTION index 97ee526..e6211cd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: shinymanager Title: Authentication Management for 'Shiny' Applications -Version: 1.0.320 +Version: 1.0.400 Authors@R: c( person("Benoit", "Thieurmel", email = "benoit.thieurmel@datastorm.fr", role = c("aut", "cre")), person("Victor", "Perrier", email = "victor.perrier@dreamRs.fr", role = c("aut")) diff --git a/NEWS.md b/NEWS.md index 408dbbc..f993e45 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# shinymanager 1.0.320 +# shinymanager 1.0.400 * (#84) : new FAB button with a position argument * (#81) : keep request query string. Thanks @erikor @@ -8,9 +8,6 @@ * (#106) add polish. Thanks @StatisMike * (#39) : fix use shiny bookmarking * Admin mode: new edit multiple users - -# shinymanager 1.0.310 - * Add full language label using `choose_language` * (#66) fix ``quanteda`` bad interaction * (#71) fix logs count for admin user diff --git a/README.md b/README.md index df3a54d..1eed5b3 100644 --- a/README.md +++ b/README.md @@ -20,17 +20,20 @@ You can authenticate with: Online documentation : https://datastorm-open.github.io/shinymanager/ -### News on shinymanager 1.0.300 - -* Add ``autofocus`` on username input. -* Fix some (strange) bug with ``input$shinymanager_where`` -* Fix `inputs_list` with some shiny version -* `auth_ui()` now accept a `choose_language` arguments. -* Rename `br` language into `pt-BR` (iso code) -* add user info in downloaded log file -* add `set_labels()` for customize labels -* Fix simultaneous admin session -* (#37) hashing password using `scrypt` +### News on shinymanager 1.0.400 + +* (#84) : new FAB button with a position argument +* (#81) : keep request query string. Thanks @erikor +* (#24) : secure_server() : added keep_token arg +* (#54) add spanish. Thanks @EAMI91 +* (#98) add german. Thanks @indubio +* (#106) add polish. Thanks @StatisMike +* (#39) : fix use shiny bookmarking +* Admin mode: new edit multiple users +* Add full language label using `choose_language` +* (#66) fix ``quanteda`` bad interaction +* (#71) fix logs count for admin user +* (#26) : restrict number of users ### Installation diff --git a/_pkgdown.yml b/_pkgdown.yml index e69de29..84e27f6 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -0,0 +1 @@ +url: https://datastorm-open.github.io/shinymanager/ diff --git a/docs/404.html b/docs/404.html index 2bd4d8c..2edb9f6 100644 --- a/docs/404.html +++ b/docs/404.html @@ -18,8 +18,8 @@ - - + + @@ -33,8 +33,8 @@ - - + + @@ -70,8 +70,8 @@
@@ -79,7 +79,7 @@check_credentials(db, passphrase = NULL)+
check_credentials(db, passphrase = NULL)
... | -HTML tags 'a' or 'button' or |
+
|
|
---|---|---|---|
inputId | -Id for the FAB button (act like an |
+ position | +Position for the button. |
+
animation | +Animation when displaying floating buttons. |
||
icon | -An |
+ toggle | +Display floating buttons when main button is clicked or hovered. |
+
inputId | +Id for the FAB button (act like an |
||
status | -Bootstra^p status to apply to the main button. |
+ label | +Label for main button. |
diff --git a/docs/reference/generate_pwd.html b/docs/reference/generate_pwd.html index 17ffefd..f67cf70 100644 --- a/docs/reference/generate_pwd.html +++ b/docs/reference/generate_pwd.html @@ -72,7 +72,7 @@ @@ -80,7 +80,7 @@if (interactive()) { - library(shiny) - library(shinymanager) ++if (interactive()) { + shinyApp(ui, server) +} +library(shiny) +library(shinymanager) - ui <- fluidPage( +ui <- fluidPage( - tags$h1("FAB button"), + tags$h1("FAB button"), - tags$p("FAB button:"), - verbatimTextOutput(outputId = "res_fab"), + tags$p("FAB button:"), + verbatimTextOutput(outputId = "res_fab"), - tags$p("Logout button:"), - verbatimTextOutput(outputId = "res_logout"), + tags$p("Logout button:"), + verbatimTextOutput(outputId = "res_logout"), - tags$p("Info button:"), - verbatimTextOutput(outputId = "res_info"), + tags$p("Info button:"), + verbatimTextOutput(outputId = "res_info"), - fab_button( - actionButton( - inputId = "logout", - label = NULL, - tooltip = "Logout", - icon = icon("sign-out") - ), - actionButton( - inputId = "info", - label = NULL, - tooltip = "Information", - icon = icon("info") - ), - inputId = "fab" - ) + fab_button( + actionButton( + inputId = "logout", + label = "Logout", + icon = icon("sign-out") + ), + actionButton( + inputId = "info", + label = "Information", + icon = icon("info") + ), + inputId = "fab" + ) - ) +) - server <- function(input, output, session) { +server <- function(input, output, session) { - output$res_fab <- renderPrint({ - input$fab - }) + output$res_fab <- renderPrint({ + input$fab + }) - output$res_logout <- renderPrint({ - input$logout - }) + output$res_logout <- renderPrint({ + input$logout + }) - output$res_info <- renderPrint({ - input$info - }) + output$res_info <- renderPrint({ + input$info + }) - } +} - shinyApp(ui, server) -}
generate_pwd(n = 1)+
generate_pwd(n = 1)
auth_ui( - id, - status = "primary", - tags_top = NULL, - tags_bottom = NULL, - background = NULL, - choose_language = NULL, - lan = NULL, - ... -) - -auth_server( - input, - output, - session, - check_credentials, - use_token = FALSE, - lan = NULL -)+
auth_ui( + id, + status = "primary", + tags_top = NULL, + tags_bottom = NULL, + background = NULL, + choose_language = NULL, + lan = NULL, + ... +) + +auth_server( + input, + output, + session, + check_credentials, + use_token = FALSE, + lan = NULL +)
tags_top | -A |
+ A |
|||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tags_bottom | -A |
+ A |
|||||||||||||||||||||||
background | @@ -180,11 +180,11 @@|||||||||||||||||||||||||
choose_language |
|
+or a vector of possibilities like ||||||||||||||||||||||||
lan | -An langauge object. Should not be used directly. |
+ A language object. See |
|||||||||||||||||||||||
... | @@ -198,8 +198,12 @@check_credentials | Function with two arguments ( |
+Must return a |||||||||||||||||||||||
use_token | @@ -217,11 +221,11 @@
language | -Language to use for labels, supported values are : "en", "fr", "pt-BR". |
+ Language to use for labels, supported values are : "en", "fr", "pt-BR", "es", "de", "pl". |
+
---|---|---|
fab_position | +Position for the FAB button, see |
|
check_credentials | @@ -192,10 +199,19 @@inputs_list |
|
max_users | +
|
+ |
fileEncoding | character string: Encoding of logs downloaded file. See |
|
keep_token | +Logical, keep the token used to authenticate in the URL, it allow to refresh the
+application in the browser, but careful the token can be shared between users ! Default to |
+ |
session | Shiny session. |
@@ -207,17 +223,17 @@