Skip to content

Commit 082c39c

Browse files
committed
name update
1 parent 13bcf3c commit 082c39c

File tree

7 files changed

+46
-46
lines changed

7 files changed

+46
-46
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# reactive-json
1+
# react-json-view
22
interactive json viewer wrapped up in a react component
33
object nodes can be collapsed and expanded.
44

55
## Usage
66
### Implementation Example:
7-
![alt text](https://github.com/mac-s-g/reactive-json/blob/master/doc/source-example-2.png?raw=true "Usage Example")
7+
![alt text](https://github.com/mac-s-g/react-json-view/blob/master/doc/source-example-2.png?raw=true "Usage Example")
88

99
### Output Example:
10-
![alt text](https://github.com/mac-s-g/reactive-json/blob/master/doc/output-example-3.png?raw=true "Output Example")
10+
![alt text](https://github.com/mac-s-g/react-json-view/blob/master/doc/output-example-3.png?raw=true "Output Example")
1111

1212
## Customizing Style
1313
update or override `src/style/_variables.scss` to apply your own theme.
@@ -17,10 +17,10 @@ You can use Docker to run the source code in your browser:
1717
1. Clone this repo
1818
2. Make sure docker is installed
1919
3. Build the docker image
20-
* `docker build -t reactive-json .`
20+
* `docker build -t react-json-view .`
2121
* *note:* you may need to use `sudo` to run docker commands
2222
4. Run the docker container on port 2000
23-
* `cd reactive-json`
23+
* `cd react-json-view`
2424
* `./docker/server.sh`
2525
* *note:* you may need to use `sudo` to run the server file
2626
5. open port 2000 in your browser

doc/example-usage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import ReactiveJson from 'reactive-json';
2+
import ReactiveJson from 'react-json-view';
33

44
//you have some json to display
55
let my_important_data = {

docker/server.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ echo "Running with NODE_ENV=$NODE_ENV"
77
# stop and remove the containers if they are running
88
stop_and_remove_container()
99
{
10-
docker stop reactive-json
11-
docker rm reactive-json
10+
docker stop react-json-view
11+
docker rm react-json-view
1212
}
1313
stop_and_remove_container || true
1414

@@ -18,8 +18,8 @@ docker run \
1818
-v $(pwd)/test:/react/test \
1919
-v $(pwd)/entrypoints:/react/entrypoints \
2020
-v $(pwd)/webpack.config.js:/react/webpack.config.js \
21-
--name=reactive-json \
21+
--name=react-json-view \
2222
-e NODE_ENV=$NODE_ENV \
2323
--publish 2000:2000 \
2424
--entrypoint=/react/entrypoints/server.sh \
25-
-t reactive-json
25+
-t react-json-view

docker/shell.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
NODE_ENV=${1:-local}
55
echo "Running with NODE_ENV=$NODE_ENV"
66

7-
# run the reactive-json container
7+
# run the react-json-view container
88
docker run \
99
--rm \
1010
-v $(pwd)/src:/react/src \
1111
-v $(pwd)/test:/react/test \
1212
-e NODE_ENV=$NODE_ENV \
1313
--entrypoint=/bin/bash \
14-
-ti reactive-json
14+
-ti react-json-view

npm-debug.log

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
7 silly cache add scope: null,
1111
7 silly cache add name: null,
1212
7 silly cache add rawSpec: '.',
13-
7 silly cache add spec: '/home/mac/dev/git/reactive-json',
13+
7 silly cache add spec: '/home/mac/dev/git/react-json-view',
1414
7 silly cache add type: 'directory' }
15-
8 verbose addLocalDirectory /home/mac/.npm/reactive-json/1.0.0/package.tgz not in flight; packing
16-
9 info lifecycle reactive[email protected]~prepublish: reactive[email protected]
17-
10 silly lifecycle reactive[email protected]~prepublish: no script for prepublish, continuing
18-
11 verbose tar pack [ '/home/mac/.npm/reactive-json/1.0.0/package.tgz',
19-
11 verbose tar pack '/home/mac/dev/git/reactive-json' ]
20-
12 verbose tarball /home/mac/.npm/reactive-json/1.0.0/package.tgz
21-
13 verbose folder /home/mac/dev/git/reactive-json
22-
14 verbose addLocalTarball adding from inside cache /home/mac/.npm/reactive-json/1.0.0/package.tgz
23-
15 silly cache afterAdd reactive[email protected]
24-
16 verbose afterAdd /home/mac/.npm/reactive-json/1.0.0/package/package.json not in flight; writing
25-
17 verbose afterAdd /home/mac/.npm/reactive-json/1.0.0/package/package.json written
26-
18 silly publish { name: 'reactive-json',
15+
8 verbose addLocalDirectory /home/mac/.npm/react-json-view/1.0.0/package.tgz not in flight; packing
16+
9 info lifecycle react-json-view@1.0.0~prepublish: react-json-view@1.0.0
17+
10 silly lifecycle react-json-view@1.0.0~prepublish: no script for prepublish, continuing
18+
11 verbose tar pack [ '/home/mac/.npm/react-json-view/1.0.0/package.tgz',
19+
11 verbose tar pack '/home/mac/dev/git/react-json-view' ]
20+
12 verbose tarball /home/mac/.npm/react-json-view/1.0.0/package.tgz
21+
13 verbose folder /home/mac/dev/git/react-json-view
22+
14 verbose addLocalTarball adding from inside cache /home/mac/.npm/react-json-view/1.0.0/package.tgz
23+
15 silly cache afterAdd react-json-view@1.0.0
24+
16 verbose afterAdd /home/mac/.npm/react-json-view/1.0.0/package/package.json not in flight; writing
25+
17 verbose afterAdd /home/mac/.npm/react-json-view/1.0.0/package/package.json written
26+
18 silly publish { name: 'react-json-view',
2727
18 silly publish description: 'interactive json viewer wrapped up in a react component',
2828
18 silly publish version: '1.0.0',
2929
18 silly publish main: 'main.js',
@@ -79,7 +79,7 @@
7979
18 silly publish 'dev:hot': 'webpack-dev-server' },
8080
18 silly publish repository:
8181
18 silly publish { type: 'git',
82-
18 silly publish url: 'git+https://github.com/mac-s-g/reactive-json.git' },
82+
18 silly publish url: 'git+https://github.com/mac-s-g/react-json-view.git' },
8383
18 silly publish keywords:
8484
18 silly publish [ 'react-component',
8585
18 silly publish 'react',
@@ -94,29 +94,29 @@
9494
18 silly publish 'pretty' ],
9595
18 silly publish license: 'ISC',
9696
18 silly publish author: { name: 'Mac Gainor' },
97-
18 silly publish bugs: { url: 'https://github.com/mac-s-g/reactive-json/issues' },
98-
18 silly publish homepage: 'https://github.com/mac-s-g/reactive-json',
97+
18 silly publish bugs: { url: 'https://github.com/mac-s-g/react-json-view/issues' },
98+
18 silly publish homepage: 'https://github.com/mac-s-g/react-json-view',
9999
18 silly publish directories: { docs: 'docs', test: 'test' },
100-
18 silly publish readme: '# reactive-json\ninteractive json viewer wrapped up in a react component\n\n## Usage\n### Implementation Example:\n![alt text](https://github.com/mac-s-g/reactive-json/blob/master/docs/source-example-v1.png?raw=true "Usage Example")\n\n### Output Example:\n![alt text](https://github.com/mac-s-g/reactive-json/blob/master/docs/output-example-v1.png?raw=true "Output Example")\n\n## Customizing Style\nupdate or override `src/style/_variables.scss` to apply your own theme.\n\n## Working with the source code:\nYou can use Docker to run the source code in your browser:\n 1. Clone this repo\n 2. Make sure docker is installed\n 3. Build the docker image\n * `docker build -t reactive-json .`\n * *note:* you may need to use `sudo` to run docker commands\n 4. Run the docker container on port 2000\n * `cd reactive-json`\n * `./docker/server.sh`\n * *note:* you may need to use `sudo` to run the server file\n 5. open port 2000 in your browser\n * navigate to localhost:2000\n \nYour source code will be mounted inside the docker container. The container is built on the standard Node image. \n\nWebpack-dev-server is running in the container and hot-reloading when changes are made locally.\n\nAll node modules are installed within the container, so make sure to rebuild your container if you make changes to package.json (see step 3, above).\n\n## ToDo\'s\n1. Add Tests!\n2. move each data type into it\'s own component\n```\ncase \'string\':\n return <div class="object-value string">\n <span class="data-type">string</span> \n {value}\n </div>;\n```\nshould become \n``` \ncase \'string\':\n return <PrettyString value={value} />;\n```\n\n3. improve customizability\n * add optional `depth` prop\n * consider moving to postcss\n * add a few different themes on top of `_variables.scss`\n4. add collapsed attributes to objects and support collapse / expand functionality\n',
100+
18 silly publish readme: '# react-json-view\ninteractive json viewer wrapped up in a react component\n\n## Usage\n### Implementation Example:\n![alt text](https://github.com/mac-s-g/react-json-view/blob/master/docs/source-example-v1.png?raw=true "Usage Example")\n\n### Output Example:\n![alt text](https://github.com/mac-s-g/react-json-view/blob/master/docs/output-example-v1.png?raw=true "Output Example")\n\n## Customizing Style\nupdate or override `src/style/_variables.scss` to apply your own theme.\n\n## Working with the source code:\nYou can use Docker to run the source code in your browser:\n 1. Clone this repo\n 2. Make sure docker is installed\n 3. Build the docker image\n * `docker build -t react-json-view .`\n * *note:* you may need to use `sudo` to run docker commands\n 4. Run the docker container on port 2000\n * `cd react-json-view`\n * `./docker/server.sh`\n * *note:* you may need to use `sudo` to run the server file\n 5. open port 2000 in your browser\n * navigate to localhost:2000\n \nYour source code will be mounted inside the docker container. The container is built on the standard Node image. \n\nWebpack-dev-server is running in the container and hot-reloading when changes are made locally.\n\nAll node modules are installed within the container, so make sure to rebuild your container if you make changes to package.json (see step 3, above).\n\n## ToDo\'s\n1. Add Tests!\n2. move each data type into it\'s own component\n```\ncase \'string\':\n return <div class="object-value string">\n <span class="data-type">string</span> \n {value}\n </div>;\n```\nshould become \n``` \ncase \'string\':\n return <PrettyString value={value} />;\n```\n\n3. improve customizability\n * add optional `depth` prop\n * consider moving to postcss\n * add a few different themes on top of `_variables.scss`\n4. add collapsed attributes to objects and support collapse / expand functionality\n',
101101
18 silly publish readmeFilename: 'README.md',
102102
18 silly publish gitHead: '166db49760f0169cb5e332efa22c0e6d72b38b14',
103-
18 silly publish _id: 'reactive[email protected]',
103+
18 silly publish _id: 'react-json-view@1.0.0',
104104
18 silly publish _shasum: 'e1681aeddf43353ba8abad2a229b768685c6a33c',
105105
18 silly publish _from: '.' }
106106
19 verbose getPublishConfig undefined
107-
20 silly mapToRegistry name reactive-json
107+
20 silly mapToRegistry name react-json-view
108108
21 silly mapToRegistry using default registry
109109
22 silly mapToRegistry registry https://registry.npmjs.org/
110-
23 silly mapToRegistry uri https://registry.npmjs.org/reactive-json
110+
23 silly mapToRegistry uri https://registry.npmjs.org/react-json-view
111111
24 verbose publish registryBase https://registry.npmjs.org/
112-
25 silly publish uploading /home/mac/.npm/reactive-json/1.0.0/package.tgz
113-
26 verbose request uri https://registry.npmjs.org/reactive-json
112+
25 silly publish uploading /home/mac/.npm/react-json-view/1.0.0/package.tgz
113+
26 verbose request uri https://registry.npmjs.org/react-json-view
114114
27 verbose request sending authorization for write operation
115115
28 info attempt registry request try #1 at 8:11:39 PM
116116
29 verbose request using bearer token for auth
117117
30 verbose request id 2c3def4a7a9f53d7
118-
31 http request PUT https://registry.npmjs.org/reactive-json
119-
32 http 403 https://registry.npmjs.org/reactive-json
118+
31 http request PUT https://registry.npmjs.org/react-json-view
119+
32 http 403 https://registry.npmjs.org/react-json-view
120120
33 verbose headers { 'content-type': 'application/json',
121121
33 verbose headers 'cache-control': 'max-age=300',
122122
33 verbose headers 'content-length': '111',
@@ -129,9 +129,9 @@
129129
33 verbose headers 'x-cache-hits': '0',
130130
33 verbose headers 'x-timer': 'S1490584299.271812,VS0,VE48',
131131
33 verbose headers vary: 'Accept-Encoding' }
132-
34 verbose request invalidating /home/mac/.npm/registry.npmjs.org/reactive-json on PUT
132+
34 verbose request invalidating /home/mac/.npm/registry.npmjs.org/react-json-view on PUT
133133
35 error publish Failed PUT 403
134-
36 verbose stack Error: you do not have permission to publish "reactive-json". Are you logged in as the correct user? : reactive-json
134+
36 verbose stack Error: you do not have permission to publish "react-json-view". Are you logged in as the correct user? : react-json-view
135135
36 verbose stack at makeError (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:264:12)
136136
36 verbose stack at CachingRegistryClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:252:14)
137137
36 verbose stack at Request._callback (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:172:14)
@@ -143,14 +143,14 @@
143143
36 verbose stack at Request.emit (events.js:169:7)
144144
36 verbose stack at IncomingMessage.<anonymous> (/usr/share/npm/node_modules/request/request.js:1009:12)
145145
37 verbose statusCode 403
146-
38 verbose pkgid reactive-json
147-
39 verbose cwd /home/mac/dev/git/reactive-json
146+
38 verbose pkgid react-json-view
147+
39 verbose cwd /home/mac/dev/git/react-json-view
148148
40 error Linux 4.4.0-66-generic
149149
41 error argv "/usr/bin/nodejs" "/usr/bin/npm" "publish"
150150
42 error node v4.2.6
151151
43 error npm v3.5.2
152152
44 error code E403
153-
45 error you do not have permission to publish "reactive-json". Are you logged in as the correct user? : reactive-json
153+
45 error you do not have permission to publish "react-json-view". Are you logged in as the correct user? : react-json-view
154154
46 error If you need help, you may report this error at:
155155
46 error <https://github.com/npm/npm/issues>
156156
47 verbose exit [ 1, true ]

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "reactive-json",
2+
"name": "react-json-view",
33
"description": "interactive json viewer wrapped up in a react component",
44
"version": "1.1.2",
55
"main": "main.js",
@@ -58,7 +58,7 @@
5858
},
5959
"repository": {
6060
"type": "git",
61-
"url": "https://github.com/mac-s-g/reactive-json.git"
61+
"url": "https://github.com/mac-s-g/react-json-view.git"
6262
},
6363
"keywords": [
6464
"react-component",
@@ -79,9 +79,9 @@
7979
"author": "Mac Gainor",
8080
"license": "ISC",
8181
"bugs": {
82-
"url": "https://github.com/mac-s-g/reactive-json/issues"
82+
"url": "https://github.com/mac-s-g/react-json-view/issues"
8383
},
84-
"homepage": "https://github.com/mac-s-g/reactive-json",
84+
"homepage": "https://github.com/mac-s-g/react-json-view",
8585
"directories": {
8686
"docs": "docs",
8787
"test": "test"

src/html/index.html.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<title>reactive-json</title>
4+
<title>react-json-view</title>
55
<meta charset="UTF-8">
66
<!--[if lt IE 9]>
77
<script>

0 commit comments

Comments
 (0)