R/dependencies.R

Defines functions localforage_dependencies dayjs_dependencies shinylogs_lf_dependencies

#' @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")
  )
}
karimelghazouly/shinylogs_modified documentation built on Jan. 9, 2021, 12:37 a.m.