Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
ef46831
Resize sidebar when session is initialized.
krystian8207 Mar 5, 2021
de46cdb
Merge pull request #160 from Appsilon/krystian.resize-sidebar-when-se…
dokato Mar 5, 2021
632a9f6
quick fix in sidebar option
dokato Mar 5, 2021
252355b
box inside tabBox can be reopened
pawelchabros Apr 6, 2021
017920a
`selected` argument moved to `menuItem`; working now
pawelchabros Apr 7, 2021
0889387
Merge pull request #162 from Appsilon/box_in_tabItems_reopen
dokato Apr 8, 2021
ab563df
documentation corrected (@param selected moved from tab to menuItem)
pawelchabros Apr 8, 2021
a7276f6
documentation corrected; `selected` works also with `menuSubItem`
pawelchabros Apr 9, 2021
0f18096
Merge pull request #161 from Appsilon/sidebar-top
dokato Apr 10, 2021
df63fe4
Merge pull request #163 from Appsilon/tabItems_selected_arg
dokato Apr 11, 2021
dc16f8f
Update DESCRIPTION
dokato Apr 30, 2021
918cc03
Update DESCRIPTION
dokato Apr 30, 2021
eb0cf67
Bump hosted-git-info from 2.8.8 to 2.8.9 in /tools
dependabot[bot] May 11, 2021
7ba769c
Bump lodash from 4.17.20 to 4.17.21 in /tools
dependabot[bot] May 11, 2021
56bb121
Merge pull request #165 from Appsilon/dependabot/npm_and_yarn/tools/h…
przytu1 Jun 10, 2021
5afbb64
Merge pull request #166 from Appsilon/dependabot/npm_and_yarn/tools/l…
przytu1 Jun 10, 2021
72eb6b5
Changed dev@appsilon.com to support+opensource@appsilon.com
przytu1 Oct 31, 2021
ae732ae
Fix CRAN check NOTE
jakubsob Nov 9, 2021
c89c8ae
Fix invalid URL note
jakubsob Nov 9, 2021
a6e6f3f
Add rmarkdown to DESCRIPTION
jakubsob Nov 9, 2021
9025bdd
Merge pull request #171 from Appsilon/cran-fixes
jakubsob Nov 9, 2021
e227ebd
Update CI to check package on R-oldrel and R-devel
jakubsob Nov 18, 2021
5360c23
Add markdown to DESCRIPTION to fix vignette not building error
jakubsob Nov 18, 2021
fed48d0
Merge pull request #174 from Appsilon/feature/upgrade-and-fix-ci
jakubsob Nov 22, 2021
52f86c3
Merge branch 'master' into develop
jakubsob Nov 23, 2021
501ca70
Bump minimist from 1.2.5 to 1.2.6 in /tools
dependabot[bot] Mar 29, 2022
240ba84
Merge pull request #178 from Appsilon/dependabot/npm_and_yarn/tools/m…
osenan Apr 8, 2022
86711de
Bump copy-props from 2.0.4 to 2.0.5 in /tools
dependabot[bot] Apr 8, 2022
cdd5943
Merge pull request #179 from Appsilon/dependabot/npm_and_yarn/tools/c…
osenan Apr 8, 2022
6c94a66
Script running examples.
Apr 22, 2022
fd57802
Merge pull request #180 from Appsilon/dev-feature-run-examples
osenan Apr 27, 2022
a4530ba
Feature: Include validate_session_object to valide session
osenan May 4, 2022
b949b2e
Feature: Add function update_tab_items
osenan May 4, 2022
e4c1970
Refactor: Load js dependencies for update_tab_items
osenan May 4, 2022
4576cd0
Refactor: Add new functions to NAMESPACE
osenan May 4, 2022
8972a75
Docs: Add update_tab_items docs
osenan May 4, 2022
308829f
Merge pull request #185 from Appsilon/dev_update_tab
osenan May 6, 2022
1dc50d7
Bump terser from 5.5.1 to 5.14.2 in /tools
dependabot[bot] Jul 20, 2022
a1f0262
Remove docs from the main branch.
jakubnowicki Sep 14, 2022
f63ed45
Add docs to .gitignore.
jakubnowicki Sep 14, 2022
6b36f6e
Add missing documentation keywords.
jakubnowicki Sep 14, 2022
6d4d24d
Add styles and move to Bootstrap 5.
jakubnowicki Sep 14, 2022
6e21253
Add search url.
jakubnowicki Sep 14, 2022
ed3aced
Add favicon.
jakubnowicki Sep 14, 2022
85b9e9e
Update readme.
jakubnowicki Sep 14, 2022
268c7e9
Add pkgdown to .Rbuildignore.
jakubnowicki Sep 14, 2022
499bfb2
Add pkgdown Github Actions workflow.
jakubnowicki Sep 14, 2022
fa4de7d
Minor page adjustments.
jakubnowicki Sep 14, 2022
41b7bb6
Remove test branch from pkgdown workflow.
jakubnowicki Sep 14, 2022
74f64a5
Use develop branch for documentation.
jakubnowicki Sep 14, 2022
031c5ae
Fix opensource email.
jakubnowicki Sep 16, 2022
d3e2ae9
Merge pull request #189 from Appsilon/kuba.update-documentation
jakubnowicki Sep 26, 2022
dd51944
Bump yargs-parser and yargs in /tools
dependabot[bot] Sep 26, 2022
e32bc27
Fix code style.
jakubnowicki Sep 27, 2022
affef44
Files cleanup.
jakubnowicki Sep 28, 2022
80ef585
Update CI script.
jakubnowicki Sep 28, 2022
9a3ff3e
Add rcmdcheck to DESCRIPTION.
jakubnowicki Sep 28, 2022
0e3db73
Merge pull request #194 from Appsilon/kuba.ci-upgrade
osenan Oct 5, 2022
cb59ee5
Add Google tag to the documentation page.
jakubnowicki Oct 28, 2022
5a2743a
Merge pull request #195 from Appsilon/add-google-tag
jakubnowicki Oct 31, 2022
90ea53c
Bump minimatch from 3.0.4 to 3.1.2 in /tools
dependabot[bot] Nov 10, 2022
44fa9ff
Bump decode-uri-component from 0.2.0 to 0.2.2 in /tools
dependabot[bot] Dec 7, 2022
a446f2d
Feature: First commit of sidebar_user_panel
osenan Jun 23, 2022
389cb17
Refactor: transform list to html and allow to include multiple elements
osenan Sep 1, 2022
45ca52b
Feature: Use more fomantic ui css cclasses for better ui on the sideb…
osenan Sep 1, 2022
06419fe
Improve styling of sidebar user panel
osenan Sep 1, 2022
559d391
adds styling and documentation
averissimo Jan 27, 2023
f637209
adds compatibility with shinydashboard, update tests
averissimo Jan 27, 2023
22cfcb2
leftover from rebase
averissimo Jan 27, 2023
9efc039
updates documentation for sidebar_menu that was outdated
averissimo Jan 27, 2023
6e009e9
rename of jane_doe to jane_smith
averissimo Jan 27, 2023
b799ff1
corrects lint errors and typo on documentation
averissimo Jan 27, 2023
12637ef
change image link to local file provided by the package
averissimo Jan 27, 2023
4d96f61
corrects error with example
averissimo Jan 27, 2023
9ba7b15
minor corrections and typos
averissimo Jan 27, 2023
726b36c
revert back to this brach implementation of semantic_dashboard
averissimo Jan 27, 2023
3ee5b97
Merge pull request #187 from Appsilon/dependabot/npm_and_yarn/tools/t…
osenan Feb 3, 2023
0fb130e
Merge pull request #193 from Appsilon/dependabot/npm_and_yarn/tools/y…
osenan Feb 3, 2023
3640b35
Merge pull request #196 from Appsilon/dependabot/npm_and_yarn/tools/m…
osenan Feb 3, 2023
4edc5b5
Merge pull request #197 from Appsilon/dependabot/npm_and_yarn/tools/d…
osenan Feb 3, 2023
5a90928
chore: Add second GA tag.
jakubnowicki Mar 17, 2023
c377e69
Merge pull request #199 from Appsilon/add-cross-domain-ga-tag
jakubnowicki Mar 17, 2023
7d07e25
remove renv and renv.lock that sneaked in the commit
averissimo Mar 17, 2023
84787da
default back to px which is easier to read/understand
averissimo Mar 17, 2023
67286fa
updates to use a recent version of SASS
averissimo Mar 17, 2023
b1ff3da
Merge pull request #198 from Appsilon/sidebar_user_panel_rebased
osenan Mar 24, 2023
b07e3fe
chore: Update Appsilon section in the readme.
jakubnowicki Apr 18, 2023
afdb40e
chore: Use markdown headings in the readme.
jakubnowicki Apr 18, 2023
79537a7
Merge pull request #200 from Appsilon/update-appsilon-readme-section
osenan Apr 18, 2023
a68435c
chore: Replace Appsilon logo link.
jakubnowicki Apr 20, 2023
101de12
Merge pull request #201 from Appsilon/remove-cloudfront
jakubnowicki Apr 20, 2023
6bb5c6f
chore: Update doc page color scheme
sankhadeepdutta Apr 17, 2024
ddb0709
chore: Update package logos
sankhadeepdutta Apr 17, 2024
6e560ee
Update extra.css
sankhadeepdutta Apr 17, 2024
6497bb4
Update extra.css
sankhadeepdutta Apr 17, 2024
e2a29e5
Merge pull request #206 from sankhadeepdutta/main
jakubnowicki Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ development
^tools$
^srcjs$
^styles$
^_pkgdown\.yml$
pkgdown
.lintr
79 changes: 28 additions & 51 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,74 +3,51 @@ on: push
name: R-CMD-check

jobs:
R-CMD-check:
main:
name: ${{ matrix.config.os }} (${{ matrix.config.r }})

runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
config:
- { os: windows-latest, r: '3.6'}
- { os: macOS-latest, r: '3.6'}
- { os: ubuntu-18.04, r: '3.6', cran: "https://demo.rstudiopm.com/all/__linux__/bionic/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
CRAN: ${{ matrix.config.cran }}
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-22.04, r: 'devel'}
- {os: ubuntu-22.04, r: 'release'}
- {os: ubuntu-22.04, r: 'oldrel'}

steps:
- uses: actions/checkout@v1
- name: Checkout repository
uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@master
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}

- uses: r-lib/actions/setup-pandoc@master

- name: Query dependencies
run: Rscript -e "install.packages('remotes')" -e "saveRDS(remotes::dev_package_deps(dependencies = TRUE), 'depends.Rds', version = 2)"

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
- name: Install R package dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-
extra-packages: local::. # Necessary to avoid object usage linter errors.

- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"

- name: Install vctrs
if: runner.os == 'Windows'
run: Rscript -e "remotes::install_cran('vctrs')"

- name: Install vctrs
if: runner.os == 'macos'
run: Rscript -e "remotes::install_cran('Rcpp')"

- name: Install dependencies
run: Rscript -e "library(remotes)" -e "update(readRDS('depends.Rds'))" -e "remotes::install_cran('rcmdcheck')"

- name: Check
run: Rscript -e "rcmdcheck::rcmdcheck(args = c('--no-manual', '--as-cran'), error_on = 'error', check_dir = 'check')"

- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
- name: R CMD check
if: always()
uses: r-lib/actions/check-r-package@v2
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
error-on: '"note"'

- name: Lint
if: always()
shell: Rscript {0}
run: |
lints <- lintr::lint_package()
for (lint in lints) print(lint)
quit(status = length(lints) > 0)
- name: Test coverage
if: matrix.config.os == 'macOS-latest' && matrix.config.r == '3.6'
if: matrix.config.os == 'ubuntu-22.04' && matrix.config.r == 'release'
run: |
Rscript -e 'covr::codecov(token = "${{secrets.CODECOV_TOKEN}}")'
34 changes: 34 additions & 0 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches:
- develop
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Deploy to gh-pages branch
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store

# History files
.Rhistory
.Rapp.history
Expand Down Expand Up @@ -33,3 +35,4 @@ vignettes/*.pdf
*.knit.md
.Rproj.user

/docs/
9 changes: 9 additions & 0 deletions .lintr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
linters:
linters_with_defaults(
line_length_linter = line_length_linter(100),
object_name_linter = NULL
)
exclusions:
c(
"vignettes"
)
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

## [Unreleased]
### Added
- `sidebarUserPanel` was added increasing support of `shinydashboard` functions

### Changed
### Fixed
### Removed
Expand All @@ -17,7 +19,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
- `fluid` param for `tabItem`
- `class` param for `dashboardPage`, `dashboardBody`, `dashboardSidebar` and `dashboardHeader`
- `dashboardPage`, `dashboardBody`, `dashboardSidebar` and `dashboardHeader` have now built-in CSS classes of syntax `dashboard-<component>` e.g. `dashboard-page`. Thanks to that it's easy to write selectors for DOM nodes related to them
- pkgdown docuemntation
- pkgdown documentation
- tests for dropdown menu, utils and value box

### Changed
Expand Down
20 changes: 13 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Package: semantic.dashboard
Type: Package
Title: Dashboard with Fomantic UI Support for Shiny
Version: 0.2.0
Version: 0.2.1
Authors@R: c(person("Filip", "Stachura", email = "filip@appsilon.com", role = "aut"),
person("Dominik", "Krzeminski", email = "dominik@appsilon.com", role = "cre"),
person("Dominik", "Krzeminski", email = "dominik@appsilon.com", role = "aut"),
person("Krystian", "Igras", role = "aut"),
person("Michał", "Maj", role = "ctb"),
person("Michał", "Drzazga", role = "ctb"),
person("Developers", "Appsilon", email = "support+opensource@appsilon.com", role = "cre"),
person(family = "Appsilon", role = "cph"))
Description: It offers functions for creating dashboard with Fomantic UI.
Description: It offers functions for creating dashboard with Fomantic UI.
BugReports: https://github.com/Appsilon/semantic.dashboard/issues
Encoding: UTF-8
LazyData: TRUE
License: MIT + file LICENSE
Imports:
utils,
Expand All @@ -21,8 +21,14 @@ Imports:
glue,
checkmate
Suggests:
testthat,
covr,
knitr,
lintr,
markdown,
rcmdcheck,
rmarkdown,
shinydashboard,
covr
RoxygenNote: 7.1.1
testthat
RoxygenNote: 7.2.1
VignetteBuilder:
knitr
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ export(render_value_box)
export(semantic_palette)
export(sidebarMenu)
export(sidebarMenuOutput)
export(sidebarUserPanel)
export(sidebar_menu)
export(sidebar_menu_output)
export(sidebar_user_panel)
export(tabBox)
export(tabItem)
export(tabItems)
Expand All @@ -47,6 +49,8 @@ export(tab_item)
export(tab_items)
export(taskItem)
export(task_item)
export(updateTabItems)
export(update_tab_items)
export(valueBox)
export(valueBoxOutput)
export(value_box)
Expand Down
21 changes: 15 additions & 6 deletions R/box.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ box <- function(..., title = NULL, color = "", ribbon = TRUE, title_side = "top
collapsible = TRUE, width = 8, id = NULL, collapse_icon = "minus",
expand_icon = "plus") {
verify_value_allowed("color", c("", ALLOWED_COLORS))
verify_value_allowed("title_side", if (ribbon) ALLOWED_BOX_SIDES_RIBBON else ALLOWED_BOX_SIDES_NONRIBBON)
verify_value_allowed(
"title_side",
if (ribbon) ALLOWED_BOX_SIDES_RIBBON else ALLOWED_BOX_SIDES_NONRIBBON
)
box_id <- if (!is.character(id)) {
paste0("box_", random_id_generator())
} else {
id
}
title_id <- sub("box_", "title_", box_id)
label <- if (!is.character(title)) {
NULL
} else {
Expand All @@ -40,18 +44,23 @@ box <- function(..., title = NULL, color = "", ribbon = TRUE, title_side = "top
}
shiny::div(class = title_class, minimize_button, title)
}
icon_selector <- glue::glue("'#{title_id} > .label > .icon'")
# nolint start: line_length_linter
js_script <- glue::glue("$('#{box_id}').accordion({{
selector: {{ trigger: '.title .icon' }},
onOpening: function() {{ $('#{box_id}').find('.label .icon').removeClass('{expand_icon}').addClass('{collapse_icon}'); }},
onClosing: function() {{ $('#{box_id}').find('.label .icon').removeClass('{collapse_icon}').addClass('{expand_icon}'); }}
selector: {{ trigger: {icon_selector} }},
onOpening: function() {{ $({icon_selector}).removeClass('{expand_icon}').addClass('{collapse_icon}'); }},
onClosing: function() {{ $({icon_selector}).removeClass('{collapse_icon}').addClass('{expand_icon}'); }}
}});")
# nolint end
column(width = width,
shiny::div(class = paste("ui segment raised", color),
shiny::div(id = box_id, class = "ui accordion",
shiny::div(class = "title", style = "cursor: auto", label),
shiny::div(id = title_id, class = "title", style = "cursor: auto", label),
shiny::div(class = "content active", shiny::div(...))
)
),
if (collapsible) shiny::singleton(shiny::tags$script(paste0("$(document).ready(function() { ", js_script, " })")))
if (collapsible) shiny::singleton(
shiny::tags$script(shiny::HTML(paste0("$(document).ready(function() {", js_script, " })")))
)
)
}
4 changes: 2 additions & 2 deletions R/column.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#' @param ... UI elements to include within the column.
#' @return A column that can be passed to \code{\link[semantic.dashboard]{dashboardPage}}
#' @export
column <- function(width, ...){
if (!is.numeric(width) || (width < MIN_COLUMN_WIDTH) || (width > MAX_COLUMN_WIDTH)){
column <- function(width, ...) {
if (!is.numeric(width) || (width < MIN_COLUMN_WIDTH) || (width > MAX_COLUMN_WIDTH)) {
stop(paste("'width' must be between", MIN_COLUMN_WIDTH, "and", MAX_COLUMN_WIDTH))
}
shiny::tags$div(class = paste(COLUMN_WIDTHS[width], "wide column"), ...)
Expand Down
46 changes: 30 additions & 16 deletions R/constants.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
ALLOWED_COLORS <- c("", "red", "orange", "yellow", "olive", "green", "teal",
"blue", "violet", "purple", "pink", "brown", "grey", "black")
ALLOWED_COLORS <- c(
"", "red", "orange", "yellow", "olive", "green", "teal",
"blue", "violet", "purple", "pink", "brown", "grey", "black"
)
ALLOWED_SIDEBAR_SIZES <- c("", "thin", "very thin", "wide", "very wide")
ALLOWED_SIDEBAR_SIDES <- c("left", "right", "top", "bottom")
ALLOWED_VALUEBOX_SIZES <- c("mini", "tiny", "small", "", "large", "huge")
ALLOWED_BOX_SIDES_NONRIBBON <- c("top", "bottom", "top left", "top right", "bottom left", "bottom right")
ALLOWED_BOX_SIDES_NONRIBBON <- c(
"top", "bottom", "top left", "top right", "bottom left", "bottom right"
)
ALLOWED_BOX_SIDES_RIBBON <- c("top left", "top right")
COLUMN_WIDTHS <- c("", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten",
"eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen")
COLUMN_WIDTHS <- c(
"", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten",
"eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen"
)
MIN_COLUMN_WIDTH <- 1
MAX_COLUMN_WIDTH <- 16
MIN_PROGRESS_VALUE <- 0
Expand All @@ -21,19 +27,27 @@ progress_bar_js <- "$('.progress').progress();"
#' Semantic colors
#' https://github.com/Semantic-Org/Semantic-UI/blob/master/src/themes/default/globals/site.variables
#' @export
semantic_palette <- c("#A333C8", "#21BA45", "#2185D0", "#DB2828", "#F2711C", "#FBBD08", "#B5CC18",
"#00B5AD", "#6435C9", "#E03997", "#A5673F", "#767676", "#1B1C1D")
names(semantic_palette) <- c("purple", "green", "blue", "red", "orange", "yellow", "olive", "teal",
"violet", "pink", "brown", "grey", "black")
semantic_palette <- c(
"#A333C8", "#21BA45", "#2185D0", "#DB2828", "#F2711C", "#FBBD08", "#B5CC18",
"#00B5AD", "#6435C9", "#E03997", "#A5673F", "#767676", "#1B1C1D"
)
names(semantic_palette) <- c(
"purple", "green", "blue", "red", "orange", "yellow", "olive", "teal",
"violet", "pink", "brown", "grey", "black"
)

#' Semantic light colors
#' https://github.com/Semantic-Org/Semantic-UI/blob/master/src/themes/default/globals/site.variables
#' @export
light_semantic_palette <- c("#DC73FF", "#2ECC40", "#54C8FF", "#FF695E", "#FF851B", "#FFE21F",
"#D9E778", "#6DFFFF", "#A291FB", "#FF8EDF", "#D67C1C", "#DCDDDE",
"#545454")
light_semantic_palette <- c(
"#DC73FF", "#2ECC40", "#54C8FF", "#FF695E", "#FF851B", "#FFE21F",
"#D9E778", "#6DFFFF", "#A291FB", "#FF8EDF", "#D67C1C", "#DCDDDE",
"#545454"
)

names(light_semantic_palette) <- c("lightPurple", "lightGreen", "lightBlue", "lightRed",
"lightOrange", "lightYellow", "lightOlive", "lightTeal",
"lightViolet", "lightPink", "lightBrown", "lightGrey",
"lightBlack")
names(light_semantic_palette) <- c(
"lightPurple", "lightGreen", "lightBlue", "lightRed",
"lightOrange", "lightYellow", "lightOlive", "lightTeal",
"lightViolet", "lightPink", "lightBrown", "lightGrey",
"lightBlack"
)
6 changes: 4 additions & 2 deletions R/deps.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#' Get the semantic.dashboard dependencies
#'
#' @description To add dependencies in the future follow the \code{\link[htmltools]{htmlDependency}} help.
#' @description To add dependencies in the future follow the \code{\link[htmltools]{htmlDependency}}
#' help.
#'
#' @return semantic.dashboard dependencies
#' @keywords internal
get_dashboard_dependencies <- function() {
list(
htmlDependency(
"semantic.dashboard",
as.character(utils::packageVersion("semantic.dashboard")),
c(file = system.file(package = "semantic.dashboard")),
script = "semantic.dashboard.min.js",
script = c("semantic.dashboard.min.js", "updateTabItems.js"),
stylesheet = "semantic.dashboard.min.css"
)
)
Expand Down
Loading