Browse Source

Don't pass non-string values to Date.parse (#2491)

Fixes: https://github.com/almende/vis/issues/2490
readme-improvements
Jim O'Brien 8 years ago
committed by yotamberk
parent
commit
9d76f9888b
29 changed files with 49309 additions and 4 deletions
  1. +0
    -1
      .gitignore
  2. +17
    -1
      README.md
  3. BIN
      dist/img/network/acceptDeleteIcon.png
  4. BIN
      dist/img/network/addNodeIcon.png
  5. BIN
      dist/img/network/backIcon.png
  6. BIN
      dist/img/network/connectIcon.png
  7. BIN
      dist/img/network/cross.png
  8. BIN
      dist/img/network/cross2.png
  9. BIN
      dist/img/network/deleteIcon.png
  10. BIN
      dist/img/network/downArrow.png
  11. BIN
      dist/img/network/editIcon.png
  12. BIN
      dist/img/network/leftArrow.png
  13. BIN
      dist/img/network/minus.png
  14. BIN
      dist/img/network/plus.png
  15. BIN
      dist/img/network/rightArrow.png
  16. BIN
      dist/img/network/upArrow.png
  17. BIN
      dist/img/network/zoomExtends.png
  18. +33
    -0
      dist/vis-graph3d.min.js
  19. +1
    -0
      dist/vis-network.min.css
  20. +41
    -0
      dist/vis-network.min.js
  21. +1
    -0
      dist/vis-timeline-graph2d.min.css
  22. +39
    -0
      dist/vis-timeline-graph2d.min.js
  23. +1389
    -0
      dist/vis.css
  24. +47739
    -0
      dist/vis.js
  25. +1
    -0
      dist/vis.min.css
  26. +45
    -0
      dist/vis.min.js
  27. +1
    -1
      gulpfile.js
  28. +1
    -1
      lib/util.js
  29. +1
    -0
      misc/we_need_help.md

+ 0
- 1
.gitignore View File

@ -1,5 +1,4 @@
# vis.js files # vis.js files
dist/
test/ test/
# npm files # npm files

+ 17
- 1
README.md View File

@ -1,6 +1,8 @@
vis.js vis.js
================== ==================
[![Join the chat at https://gitter.im/vis-js/Lobby](https://badges.gitter.im/vis-js/Lobby.svg)](https://gitter.im/vis-js/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
<a href="https://github.com/almende/vis/issues/1781" target="_blank"> <a href="https://github.com/almende/vis/issues/1781" target="_blank">
<img align="right" src="https://raw.githubusercontent.com/almende/vis/master/misc/we_need_help.png"> <img align="right" src="https://raw.githubusercontent.com/almende/vis/master/misc/we_need_help.png">
</a> </a>
@ -19,8 +21,22 @@ The library consists of the following components:
- Network. Display a network (force directed graph) with nodes and edges. - Network. Display a network (force directed graph) with nodes and edges.
- Timeline. Display different types of data on a timeline. - Timeline. Display different types of data on a timeline.
The vis.js library is developed by [Almende B.V](http://almende.com).
The vis.js library was initialy developed by [Almende B.V](http://almende.com).
## Badges
[![NPM](https://nodei.co/npm/vis.png?downloads=true&downloadRank=true)](https://nodei.co/npm/vis/)
[![Dependency Status](https://david-dm.org/almende/vis/status.svg)](https://david-dm.org/almende/vis)
[![devDependency Status](https://david-dm.org/almende/vis/dev-status.svg)](https://david-dm.org/almende/vis?type=dev)
[![last version on CDNJS](https://img.shields.io/cdnjs/v/vis.svg)](https://cdnjs.com/libraries/vis)
[![GitHub contributors](https://img.shields.io/github/contributors/almende/vis.svg)](https://github.com/almende/vis/graphs/contributors)
[![GitHub stars](https://img.shields.io/github/stars/almende/vis.svg)](https://github.com/almende/vis/stargazers)
[![GitHub issues](https://img.shields.io/github/issues/almende/vis.svg)](https://github.com/almende/vis/issues)
[![Pending Pull-Requests](http://githubbadges.herokuapp.com/almende/vis/pulls.svg)](https://github.com/almende/vis/pulls)
[![Code Climate](https://codeclimate.com/github/almende/vis/badges/gpa.svg)](https://codeclimate.com/github/almende/vis)
## Install ## Install

BIN
dist/img/network/acceptDeleteIcon.png View File

Before After
Width: 24  |  Height: 24  |  Size: 20 KiB

BIN
dist/img/network/addNodeIcon.png View File

Before After
Width: 24  |  Height: 24  |  Size: 20 KiB

BIN
dist/img/network/backIcon.png View File

Before After
Width: 24  |  Height: 24  |  Size: 20 KiB

BIN
dist/img/network/connectIcon.png View File

Before After
Width: 24  |  Height: 24  |  Size: 20 KiB

BIN
dist/img/network/cross.png View File

Before After
Width: 7  |  Height: 7  |  Size: 18 KiB

BIN
dist/img/network/cross2.png View File

Before After
Width: 5  |  Height: 5  |  Size: 17 KiB

BIN
dist/img/network/deleteIcon.png View File

Before After
Width: 24  |  Height: 24  |  Size: 20 KiB

BIN
dist/img/network/downArrow.png View File

Before After
Width: 30  |  Height: 30  |  Size: 4.4 KiB

BIN
dist/img/network/editIcon.png View File

Before After
Width: 24  |  Height: 24  |  Size: 20 KiB

BIN
dist/img/network/leftArrow.png View File

Before After
Width: 30  |  Height: 30  |  Size: 4.4 KiB

BIN
dist/img/network/minus.png View File

Before After
Width: 30  |  Height: 30  |  Size: 4.0 KiB

BIN
dist/img/network/plus.png View File

Before After
Width: 30  |  Height: 30  |  Size: 4.2 KiB

BIN
dist/img/network/rightArrow.png View File

Before After
Width: 30  |  Height: 30  |  Size: 4.4 KiB

BIN
dist/img/network/upArrow.png View File

Before After
Width: 30  |  Height: 30  |  Size: 4.4 KiB

BIN
dist/img/network/zoomExtends.png View File

Before After
Width: 30  |  Height: 30  |  Size: 4.4 KiB

+ 33
- 0
dist/vis-graph3d.min.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/vis-network.min.css
File diff suppressed because it is too large
View File


+ 41
- 0
dist/vis-network.min.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/vis-timeline-graph2d.min.css
File diff suppressed because it is too large
View File


+ 39
- 0
dist/vis-timeline-graph2d.min.js
File diff suppressed because it is too large
View File


+ 1389
- 0
dist/vis.css
File diff suppressed because it is too large
View File


+ 47739
- 0
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/vis.min.css
File diff suppressed because it is too large
View File


+ 45
- 0
dist/vis.min.js
File diff suppressed because it is too large
View File


+ 1
- 1
gulpfile.js View File

@ -75,7 +75,7 @@ var webpackConfig = {
cache: true, cache: true,
// generate details sourcempas of webpack modules // generate details sourcempas of webpack modules
devtool: 'source-map'
//devtool: 'source-map'
//debug: true, //debug: true,
//bail: true //bail: true

+ 1
- 1
lib/util.js View File

@ -409,7 +409,7 @@ exports.convert = function (object, type) {
case 'number': case 'number':
case 'Number': case 'Number':
if (!isNaN(Date.parse(object))) {
if (exports.isString(object) && !isNaN(Date.parse(object))) {
return moment(object).valueOf(); return moment(object).valueOf();
} else { } else {
return Number(object.valueOf()); return Number(object.valueOf());

+ 1
- 0
misc/we_need_help.md View File

@ -13,3 +13,4 @@ If you have shown some commitment to the project you can ask [@ludost](//github.
* [@ludost](//github.com/ludost) (almende maintainer) * [@ludost](//github.com/ludost) (almende maintainer)
* [@mojoaxel](//github.com/mojoaxel) * [@mojoaxel](//github.com/mojoaxel)
* [@yotamberk](//github.com/yotamberk) * [@yotamberk](//github.com/yotamberk)
* [@Tooa](//github.com/Tooa)

Loading…
Cancel
Save