From 7a766ab26c33710e40beed313dff9bb5bb75ee5e Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 27 Sep 2019 16:26:14 -0400 Subject: [PATCH] renaming phoenix to subspace. pt-2 --- examples/embark-dapp/app/App.js | 2 +- examples/embark-dapp/app/RankItem.js | 2 +- examples/embark-dapp/package.json | 2 +- examples/embark-dapp/yarn.lock | 34 +++++++++++++---------- examples/react-apollo/README.md | 4 +-- examples/react-apollo/src/App.js | 2 +- examples/react-redux/README.md | 4 +-- examples/react-redux/src/App.js | 2 +- examples/react/README.md | 4 +-- examples/react/src/App.js | 2 +- examples/react/src/MyComponentObserver.js | 2 +- examples/reactive-graphql/README.md | 4 +-- examples/reactive-graphql/src/index.js | 2 +- examples/redux-observable/README.md | 4 +-- examples/redux-observable/src/store.js | 2 +- examples/redux/README.md | 4 +-- examples/redux/src/index.js | 2 +- 17 files changed, 42 insertions(+), 36 deletions(-) diff --git a/examples/embark-dapp/app/App.js b/examples/embark-dapp/app/App.js index 0b8124c..8685345 100644 --- a/examples/embark-dapp/app/App.js +++ b/examples/embark-dapp/app/App.js @@ -1,7 +1,7 @@ /* global web3 */ import React from 'react'; import EmbarkJS from 'Embark/EmbarkJS'; -import Subspace from 'phoenix'; +import Subspace from '@status-im/subspace'; import Ranking from '../embarkArtifacts/contracts/Ranking'; import { scan, map } from 'rxjs/operators'; import RankItem from './RankItem'; diff --git a/examples/embark-dapp/app/RankItem.js b/examples/embark-dapp/app/RankItem.js index f041c5a..221bd95 100644 --- a/examples/embark-dapp/app/RankItem.js +++ b/examples/embark-dapp/app/RankItem.js @@ -1,5 +1,5 @@ import React from "react"; -import { observe } from "phoenix/react"; +import { observe } from "@status-im/subspace/react"; const RankItem = ({ items, onUpvote, onDownvote }) => { if (!items) return null; diff --git a/examples/embark-dapp/package.json b/examples/embark-dapp/package.json index 55cdcb1..23d40f3 100644 --- a/examples/embark-dapp/package.json +++ b/examples/embark-dapp/package.json @@ -11,7 +11,7 @@ "devDependencies": {}, "dependencies": { "embark": "^4.1.0", - "phoenix": "../..", + "@status-im/subspace": "../..", "react": "^16.9.0", "react-dom": "^16.9.0", "rxjs": "^6.5.2", diff --git a/examples/embark-dapp/yarn.lock b/examples/embark-dapp/yarn.lock index 20417c0..72dc5ea 100644 --- a/examples/embark-dapp/yarn.lock +++ b/examples/embark-dapp/yarn.lock @@ -810,6 +810,21 @@ resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== +"@status-im/subspace@../..": + version "0.0.1" + dependencies: + fast-deep-equal "^2.0.1" + lokijs "^1.5.6" + object-hash "^1.3.1" + rxjs "^6.5.2" + web3-eth "^1.2.1" + optionalDependencies: + graphql "^14.4.2" + graphql-tag "^2.10.1" + graphql-tools "^4.0.5" + react "^16.9.0" + reactive-graphql "^3.0.2" + "@szmarczak/http-timer@^1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" @@ -7235,6 +7250,11 @@ object-copy@^0.1.0: define-property "^0.2.5" kind-of "^3.0.3" +object-hash@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-1.3.1.tgz#fde452098a951cb145f039bb7d455449ddc126df" + integrity sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA== + object-inspect@^1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" @@ -7684,20 +7704,6 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= -phoenix@../..: - version "1.0.0" - dependencies: - fast-deep-equal "^2.0.1" - lokijs "^1.5.6" - rxjs "^6.5.2" - web3-eth "^1.2.1" - optionalDependencies: - graphql "^14.4.2" - graphql-tag "^2.10.1" - graphql-tools "^4.0.5" - react "^16.9.0" - reactive-graphql "^3.0.2" - pify@^2.0.0, pify@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" diff --git a/examples/react-apollo/README.md b/examples/react-apollo/README.md index dce76a4..b687636 100644 --- a/examples/react-apollo/README.md +++ b/examples/react-apollo/README.md @@ -11,9 +11,9 @@ In the parent folder, link the package with `yarn` or `npm` ``` yarn link ``` -Then in the current folder link `subspace`, and install the packages +Then in the current folder link `@status-im/subspace`, and install the packages ``` -yarn link subspace +yarn link "@status-im/subspace" yarn ``` diff --git a/examples/react-apollo/src/App.js b/examples/react-apollo/src/App.js index 8eb7001..03cf79f 100644 --- a/examples/react-apollo/src/App.js +++ b/examples/react-apollo/src/App.js @@ -1,5 +1,5 @@ import React from "react"; -import Subspace from "phoenix"; +import Subspace from "@status-im/subspace"; import { graphql } from "reactive-graphql"; import gql from "graphql-tag"; import { makeExecutableSchema } from "graphql-tools"; diff --git a/examples/react-redux/README.md b/examples/react-redux/README.md index 79bd167..e3440db 100644 --- a/examples/react-redux/README.md +++ b/examples/react-redux/README.md @@ -11,9 +11,9 @@ In the parent folder, link the package with `yarn` or `npm` ``` yarn link ``` -Then in the current folder link `subspace`, and install the packages +Then in the current folder link `@status-im/subspace`, and install the packages ``` -yarn link subspace +yarn link "@status-im/subspace" yarn ``` diff --git a/examples/react-redux/src/App.js b/examples/react-redux/src/App.js index ff95165..8b9e5c4 100644 --- a/examples/react-redux/src/App.js +++ b/examples/react-redux/src/App.js @@ -1,5 +1,5 @@ import React from "react"; -import Subspace from "phoenix"; +import Subspace from "@status-im/subspace"; import web3 from './web3'; import MyContract from './MyContract'; import { connect } from "react-redux"; diff --git a/examples/react/README.md b/examples/react/README.md index 7e530a0..31a9ab3 100644 --- a/examples/react/README.md +++ b/examples/react/README.md @@ -11,9 +11,9 @@ In the parent folder, link the package with `yarn` or `npm` ``` yarn link ``` -Then in the current folder link `subspace`, and install the packages +Then in the current folder link `@status-im/subspace`, and install the packages ``` -yarn link subspace +yarn link "@status-im/subspace" yarn ``` diff --git a/examples/react/src/App.js b/examples/react/src/App.js index 62bfdbe..365072c 100644 --- a/examples/react/src/App.js +++ b/examples/react/src/App.js @@ -1,5 +1,5 @@ import React from "react"; -import Subspace from "phoenix"; +import Subspace from "@status-im/subspace"; import { scan } from 'rxjs/operators'; import MyComponentObserver from "./MyComponentObserver"; import web3 from './web3'; diff --git a/examples/react/src/MyComponentObserver.js b/examples/react/src/MyComponentObserver.js index aebb2fe..7106c1e 100644 --- a/examples/react/src/MyComponentObserver.js +++ b/examples/react/src/MyComponentObserver.js @@ -1,5 +1,5 @@ import React from "react"; -import { observe } from "phoenix/react"; +import { observe } from "@status-im/subspace/react"; const MyComponent = ({ eventData }) => { // Handle initial state when no data is available diff --git a/examples/reactive-graphql/README.md b/examples/reactive-graphql/README.md index e1c1c41..840797a 100644 --- a/examples/reactive-graphql/README.md +++ b/examples/reactive-graphql/README.md @@ -11,9 +11,9 @@ In the parent folder, link the package with `yarn` or `npm` ``` yarn link ``` -Then in the current folder link `subspace`, and install the packages +Then in the current folder link `@status-im/subspace`, and install the packages ``` -yarn link subspace +yarn link "@status-im/subspace" yarn ``` diff --git a/examples/reactive-graphql/src/index.js b/examples/reactive-graphql/src/index.js index 5847030..83f2644 100644 --- a/examples/reactive-graphql/src/index.js +++ b/examples/reactive-graphql/src/index.js @@ -1,4 +1,4 @@ -const Subspace = require('phoenix'); +const Subspace = require('@status-im/subspace'); const web3 = require('./web3'); const MyContract = require('./MyContract'); const { pluck } = require('rxjs/operators'); diff --git a/examples/redux-observable/README.md b/examples/redux-observable/README.md index e99842e..741c300 100644 --- a/examples/redux-observable/README.md +++ b/examples/redux-observable/README.md @@ -11,9 +11,9 @@ In the parent folder, link the package with `yarn` or `npm` ``` yarn link ``` -Then in the current folder link `subspace`, and install the packages +Then in the current folder link `"@status-im/subspace"`, and install the packages ``` -yarn link subspace +yarn link "@status-im/subspace" yarn ``` diff --git a/examples/redux-observable/src/store.js b/examples/redux-observable/src/store.js index 6e348c5..8e2fdab 100644 --- a/examples/redux-observable/src/store.js +++ b/examples/redux-observable/src/store.js @@ -18,7 +18,7 @@ import { myAction } from "./actions"; import web3 from "./web3"; -import Subspace from "phoenix"; +import Subspace from "@status-im/subspace"; let MyContractInstance; let subspace; diff --git a/examples/redux/README.md b/examples/redux/README.md index e05f074..c95e571 100644 --- a/examples/redux/README.md +++ b/examples/redux/README.md @@ -12,9 +12,9 @@ In the parent folder, link the package with `yarn` or `npm` ``` yarn link ``` -Then in the current folder link `subspace`, and install the packages +Then in the current folder link `@status-im/subspace`, and install the packages ``` -yarn link subspace +yarn link "@status-im/subspace" yarn ``` diff --git a/examples/redux/src/index.js b/examples/redux/src/index.js index 213d341..ed60022 100644 --- a/examples/redux/src/index.js +++ b/examples/redux/src/index.js @@ -1,6 +1,6 @@ import store from './store'; import web3 from './web3'; -import Subspace from 'phoenix'; +import Subspace from '@status-im/subspace'; import { myAction } from './actions'; import MyContract from './MyContract';