-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: bs4Dash | ||
Type: Package | ||
Title: A 'Bootstrap 4' Version of 'shinydashboard' | ||
Version: 2.0.1.9000 | ||
Version: 2.0.1 | ||
Authors@R: c( | ||
person("David", "Granjon", email = "[email protected]", role = c("aut", "cre")), | ||
person(family = "RinteRface", role = "cph"), | ||
|
@@ -50,6 +50,7 @@ Collate: | |
'dashboardPage.R' | ||
'aliases.R' | ||
'auto-color.R' | ||
'bs4Dash-package.r' | ||
'bs4DashGallery.R' | ||
'deps.R' | ||
'grid.R' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#' bs4Dash | ||
#' | ||
#' @name bs4Dash | ||
#' @docType package | ||
#' @importFrom lifecycle deprecated | ||
"_PACKAGE" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ add_bs4Dash_deps <- function(tag, options) { | |
ionicons_css <- "https://unpkg.com/[email protected]/dist/css/" | ||
google_fonts <- "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" | ||
|
||
bs4Dash_version <- as.character(utils::packageVersion("bs4Dash")) | ||
|
||
bs4Dash_deps <- list( | ||
# jquery UI deps for sortable elements | ||
htmltools::htmlDependency( | ||
|
@@ -43,8 +45,8 @@ add_bs4Dash_deps <- function(tag, options) { | |
# additional options (this needs to be loaded before shinydashboardPlus deps) | ||
htmltools::htmlDependency( | ||
"options", | ||
as.character(utils::packageVersion("bs4Dash")), | ||
src = c(file = "bs4Dash-2.0.0"), | ||
bs4Dash_version, | ||
src = c(file = sprintf("bs4Dash-%s", bs4Dash_version)), | ||
head = paste0( | ||
"<script>var AdminLTEOptions = ", | ||
jsonlite::toJSON( | ||
|
@@ -69,16 +71,16 @@ add_bs4Dash_deps <- function(tag, options) { | |
# bs4Dash custom js/css (must come after adminlte, bootstrap 4) | ||
htmltools::htmlDependency( | ||
name = "bs4Dash", | ||
version = as.character(utils::packageVersion("bs4Dash")), | ||
src = c(file = "bs4Dash-2.0.0"), | ||
version = bs4Dash_version, | ||
src = c(file = sprintf("bs4Dash-%s", bs4Dash_version)), | ||
script = if (getOption("shiny.minified", TRUE)) "bs4Dash.min.js" else "bs4Dash.js" , | ||
stylesheet = bs4Dash_css, | ||
package = "bs4Dash" | ||
), | ||
# fontawesome Commented since Shiny already loads it with icon... | ||
#htmltools::htmlDependency( | ||
# name = "fontawesome", | ||
# version = as.character(utils::packageVersion("bs4Dash")), | ||
# version = bs4Dash_version, | ||
# src = c(href = fontawesome_css), | ||
# stylesheet = "all.css" | ||
#), | ||
|
@@ -92,14 +94,14 @@ add_bs4Dash_deps <- function(tag, options) { | |
# google fonts | ||
htmltools::htmlDependency( | ||
name = "googlefonts", | ||
version = as.character(utils::packageVersion("bs4Dash")), | ||
version = bs4Dash_version, | ||
src = c(href = google_fonts), | ||
stylesheet = "" | ||
), | ||
# glyphicons | ||
htmltools::htmlDependency( | ||
name = "glyphicons", | ||
version = as.character(utils::packageVersion("bs4Dash")), | ||
version = bs4Dash_version, | ||
src = c(file = "glyphicons"), | ||
stylesheet = "glyphicons.min.css", | ||
package = "bs4Dash" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.