Skip to content

Commit

Permalink
update to vue 2.5.16
Browse files Browse the repository at this point in the history
  • Loading branch information
timelyportfolio committed Mar 20, 2018
1 parent 3f2a128 commit cd7357d
Show file tree
Hide file tree
Showing 18 changed files with 2,457 additions and 1,488 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: vueR
Type: Package
Title: 'Vuejs' Helpers and 'Htmlwidget'
Version: 0.4.0
Date: 2017-10-10
Version: 0.5.0
Date: 2018-03-19
Authors@R: c(
person(
"Evan","You"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015
Copyright (c) 2018

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# vueR 0.5.0

* Updated to Vue [2.5.16](https://github.com/vuejs/vue/releases/tag/v2.5.16)

# vueR 0.4.0

* Updated to Vue [2.4.4](https://github.com/vuejs/vue/releases/tag/v2.4.4)
Expand Down
2 changes: 1 addition & 1 deletion R/meta.R
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#'@keywords internal
vue_version <- function(){'2.4.4'}
vue_version <- function(){'2.5.16'}
23 changes: 19 additions & 4 deletions docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 19 additions & 4 deletions docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 18 additions & 3 deletions docs/articles/intro_to_vueR.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 19 additions & 4 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 19 additions & 4 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 27 additions & 3 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion docs/pkgdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,14 @@ pre, code {
color: #333;
}

pre img {
pre .img {
margin: 5px 0;
}

pre .img img {
background-color: #fff;
display: block;
height: auto;
}

code a, pre a {
Expand Down
37 changes: 37 additions & 0 deletions docs/pkgdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,41 @@ $(function() {
offset: 60
});

var cur_path = paths(location.pathname);
$("#navbar ul li a").each(function(index, value) {
if (value.text == "Home")
return;
if (value.getAttribute("href") === "#")
return;

var path = paths(value.pathname);
if (is_prefix(cur_path, path)) {
// Add class to parent <li>, and enclosing <li> if in dropdown
var menu_anchor = $(value);
menu_anchor.parent().addClass("active");
menu_anchor.closest("li.dropdown").addClass("active");
}
});
});

function paths(pathname) {
var pieces = pathname.split("/");
pieces.shift(); // always starts with /

var end = pieces[pieces.length - 1];
if (end === "index.html" || end === "")
pieces.pop();
return(pieces);
}

function is_prefix(needle, haystack) {
if (needle.length > haystack.lengh)
return(false);

for (var i = 0; i < haystack.length; i++) {
if (needle[i] != haystack[i])
return(false);
}

return(true);
}
Loading

0 comments on commit cd7357d

Please sign in to comment.