use packer

This commit is contained in:
pvictor 2021-08-20 16:53:55 +02:00
parent 4178c633de
commit 027c5bc16f
No known key found for this signature in database
GPG Key ID: 31124C9F3F9268B8
115 changed files with 3439 additions and 428 deletions

View File

@ -13,3 +13,10 @@
^LICENSE\.md$
^codecov\.yml$
^pkgdown$
^srcjs$
^node_modules$
^package\.json$
^package-lock\.json$
^webpack\.dev\.js$
^webpack\.prod\.js$
^webpack\.common\.js$

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ inst/doc
.RData
*.Rproj
data-raw/*.csv
node_modules

View File

@ -56,7 +56,7 @@ apexchart <- function(ax_opts = list(), auto_update = TRUE, width = NULL, height
)
}
# dput(tools::file_path_sans_ext(list.files("inst/htmlwidgets/assets/apexcharts-locales/")))
# dput(tools::file_path_sans_ext(list.files("inst/apexcharts-locale/")))
#' @importFrom jsonlite fromJSON
add_locale_apex <- function(widget) {
if (!is.null(widget$x$ax_opts$chart$defaultLocale)) {
@ -75,7 +75,7 @@ add_locale_apex <- function(widget) {
)
} else {
path <- system.file(
file.path("htmlwidgets/assets/apexcharts-locales", paste0(defaultLocale, ".json")),
file.path("apexcharts-locale", paste0(defaultLocale, ".json")),
package = "apexcharter"
)
locale <- jsonlite::fromJSON(txt = path)

View File

@ -16,7 +16,7 @@
#' @example examples/format.R
format_num <- function(format, prefix = "", suffix = "", locale = "en-US") {
check_locale_d3(locale)
path <- system.file(file.path("htmlwidgets/assets/d3-format/locale", paste0(locale, ".json")), package = "apexcharter")
path <- system.file(file.path("d3-format-locale", paste0(locale, ".json")), package = "apexcharter")
if (path != "") {
locale <- paste(readLines(con = path, encoding = "UTF-8"), collapse = "")
}
@ -28,7 +28,7 @@ format_num <- function(format, prefix = "", suffix = "", locale = "en-US") {
check_locale_d3 <- function(x) {
json <- list.files(system.file("htmlwidgets/assets/d3-format/locale", package = "apexcharter"))
json <- list.files(system.file("d3-format-locale", package = "apexcharter"))
njson <- gsub("\\.json", "", json)
if (!x %in% njson) {
stop(paste(

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,13 @@
/*!
* ApexCharts v3.27.3
* (c) 2018-2021 Juned Chhipa
* Released under the MIT License.
*/
/*! svg.draggable.js - v2.2.2 - 2019-01-08
* https://github.com/svgdotjs/svg.draggable.js
* Copyright (c) 2019 Wout Fierens; Licensed MIT */
/*! svg.filter.js - v2.0.2 - 2016-02-24
* https://github.com/wout/svg.filter.js
* Copyright (c) 2016 Wout Fierens; Licensed MIT */

View File

@ -1,14 +0,0 @@
dependencies:
- name: apexcharts
version: 3.27.3
src: htmlwidgets/assets/apexcharts-3.27
script: apexcharts.min.js
- name: apexcharter-css
version: 0.1.0
src: htmlwidgets
stylesheet: apexcharter.css
- name: d3-format
version: 1.4.2
src: htmlwidgets/assets/d3-format
script: d3-format.min.js
all_files: false

View File

@ -1,24 +0,0 @@
ApexCharts.js
=============
The MIT License (MIT)
Copyright (c) 2018 ApexCharts
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More