Skip to content

Commit cf33ebb

Browse files
committed
Release 0.1.0
1 parent 0c995c9 commit cf33ebb

22 files changed

+1378
-2
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015", "react", "stage-0"]
3+
}

.eslintrc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"ecmaFeatures": {
3+
"jsx": true,
4+
"modules": true
5+
},
6+
"env": {
7+
"browser": true,
8+
"node": true
9+
},
10+
"parser": "babel-eslint",
11+
"rules": {
12+
// "quotes": [2, "single"],
13+
// "strict": [2, "never"],
14+
"no-var": 0,
15+
"react/jsx-uses-react": 2,
16+
"react/jsx-uses-vars": 2,
17+
"react/react-in-jsx-scope": 2
18+
},
19+
"plugins": [
20+
"react"
21+
]
22+
}

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_modules
2+
npm-debug.log
3+
.DS_Store
4+
jsconfig.json
5+
6+
react-codemod
7+
dev
8+
journal
9+
lib
10+
journal
11+
gh-pages/
12+
13+
static/images/logo.ico
14+
build/

.jshintrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"node": true,
3+
"browser": true,
4+
"esnext": true,
5+
"newcap": false
6+
}

.npmignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.eslintrc
2+
.gitignore
3+
.npmignore
4+
jsconfig.json
5+
6+
react-codemod
7+
dev
8+
journal
9+
gh-pages
10+
11+
build/
12+
example
13+
server.js
14+
src/
15+
webpack.config.js

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: node_js
2+
node_js:
3+
- "4"
4+
- "5"
5+
script:
6+
- npm run lint
7+
- npm test
8+
- npm run build
9+
before_install:
10+
- "export DISPLAY=:99.0"
11+
- "sh -e /etc/init.d/xvfb start"

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016
3+
Copyright (c) 2016 Henry Tao
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

100644100755
+21-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
1-
# react-nested-json-table
1+
react-nested-json-table
2+
=======================
23
A simple React component that renders any deeply nested json into a collapsible table
4+
5+
Turn this deeply nested json:
6+
7+
```javascript
8+
[
9+
{ "foo": 'bar' },
10+
{
11+
"nested": { "nested-arr": [
12+
{ "simple": "object" },
13+
{ "another-simple": "object" },
14+
{ "arr": ["1", 2, { "variant": "3" }] } ] }
15+
},
16+
{
17+
"attr0": 6789,
18+
"attr1": [{"key-0": "foo", "key-1": "bar"}],
19+
"attr2": ["mem-0", "mem-1"]
20+
}
21+
]
22+
```

dist/index.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
3+
Object.defineProperty(exports, "__esModule", {
4+
value: true
5+
});
6+
exports.default = undefined;
7+
8+
var _NestedJsonTable = require('./lib/NestedJsonTable');
9+
10+
var _NestedJsonTable2 = _interopRequireDefault(_NestedJsonTable);
11+
12+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13+
14+
exports.default = _NestedJsonTable2.default;

0 commit comments

Comments
 (0)