#' @importFrom htmltools htmlDependency
shinylogs_lf_dependencies <- function() {
htmlDependency(
name = "shinylogs", version = "0.1.0",
src = list(href = "shinylogs", file = "assets"), package = "shinylogs",
script = c("js/shinylogs-localForage.js")
)
}
#' @importFrom htmltools htmlDependency
dayjs_dependencies <- function() {
htmlDependency(
name = "dayjs", version = "1.7.7",
src = list(href = "shinylogs", file = "assets"), package = "shinylogs",
script = c("dayjs/dayjs.min.js")
)
}
#' @importFrom htmltools htmlDependency
localforage_dependencies <- function() {
htmlDependency(
name = "localForage", version = "1.7.3",
src = list(href = "shinylogs", file = "assets"), package = "shinylogs",
script = c("localForage/localforage.min.js", "localForage/localforage-getitems.js")
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.