mirror of
https://github.com/embarklabs/subspace.git
synced 2025-01-21 20:11:12 +00:00
chore: rename org to @embarklabs (#62)
* chore: rename org to @embarklabs * fix: remove yarn-error.log
This commit is contained in:
parent
b4905fbb49
commit
f821569301
@ -12,7 +12,7 @@ https://subspace.status.im
|
||||
### Install
|
||||
Subspace can be used in browser, node and native script environments. You can install it through `npm` or `yarn`:
|
||||
```
|
||||
npm install --save @status-im/subspace
|
||||
npm install --save @embarklabs/subspace
|
||||
```
|
||||
|
||||
### Usage
|
||||
@ -20,10 +20,10 @@ npm install --save @status-im/subspace
|
||||
#### Import into a dApp
|
||||
```js
|
||||
// ESM (might require babel / browserify)
|
||||
import Subspace from '@status-im/subspace';
|
||||
import Subspace from '@embarklabs/subspace';
|
||||
|
||||
// CommonJS
|
||||
const Subspace = require('@status-im/subspace');
|
||||
const Subspace = require('@embarklabs/subspace');
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* global web3 */
|
||||
import React from 'react';
|
||||
import EmbarkJS from 'Embark/EmbarkJS';
|
||||
import Subspace from '@status-im/subspace';
|
||||
import Subspace from '@embarklabs/subspace';
|
||||
import Ranking from '../embarkArtifacts/contracts/Ranking';
|
||||
import { scan, map } from 'rxjs/operators';
|
||||
import RankItem from './RankItem';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { observe } from "@status-im/subspace/react";
|
||||
import { observe } from "@embarklabs/subspace/react";
|
||||
|
||||
const RankItem = ({ items, onUpvote, onDownvote }) => {
|
||||
if (!items) return null;
|
||||
|
@ -11,7 +11,7 @@
|
||||
"devDependencies": {},
|
||||
"dependencies": {
|
||||
"embark": "^4.1.0",
|
||||
"@status-im/subspace": "../..",
|
||||
"@embarklabs/subspace": "../..",
|
||||
"react": "^16.9.0",
|
||||
"react-dom": "^16.9.0",
|
||||
"rxjs": "^6.5.2",
|
||||
|
@ -810,7 +810,7 @@
|
||||
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
|
||||
integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==
|
||||
|
||||
"@status-im/subspace@../..":
|
||||
"@embarklabs/subspace@../..":
|
||||
version "0.0.1"
|
||||
dependencies:
|
||||
fast-deep-equal "^2.0.1"
|
||||
|
@ -13,9 +13,9 @@ yarn
|
||||
yarn build:dev
|
||||
yarn link
|
||||
```
|
||||
Then in the current folder link `@status-im/subspace`, and install the packages
|
||||
Then in the current folder link `@embarklabs/subspace`, and install the packages
|
||||
```
|
||||
yarn link "@status-im/subspace"
|
||||
yarn link "@embarklabs/subspace"
|
||||
yarn
|
||||
```
|
||||
|
||||
|
2
examples/react-apollo/src/App.js
vendored
2
examples/react-apollo/src/App.js
vendored
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import Subspace from "@status-im/subspace";
|
||||
import Subspace from "@embarklabs/subspace";
|
||||
import { graphql } from "reactive-graphql";
|
||||
import gql from "graphql-tag";
|
||||
import { makeExecutableSchema } from "graphql-tools";
|
||||
|
@ -13,9 +13,9 @@ yarn
|
||||
yarn build:dev
|
||||
yarn link
|
||||
```
|
||||
Then in the current folder link `@status-im/subspace`, and install the packages
|
||||
Then in the current folder link `@embarklabs/subspace`, and install the packages
|
||||
```
|
||||
yarn link "@status-im/subspace"
|
||||
yarn link "@embarklabs/subspace"
|
||||
yarn
|
||||
```
|
||||
|
||||
|
4
examples/react-example1/src/App.js
vendored
4
examples/react-example1/src/App.js
vendored
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import Subspace from "@status-im/subspace";
|
||||
import { $average, $max, $min, $latest } from "@status-im/subspace";
|
||||
import Subspace from "@embarklabs/subspace";
|
||||
import { $average, $max, $min, $latest } from "@embarklabs/subspace";
|
||||
import { map } from 'rxjs/operators';
|
||||
import ProductComponent from "./ProductComponent";
|
||||
import web3 from './web3';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { observe } from "@status-im/subspace/react";
|
||||
import { observe } from "@embarklabs/subspace/react";
|
||||
|
||||
const ProductComponent = ({ maxRating, minRating, averageRating, title, balance, last5Ratings }) => {
|
||||
// Handle initial state when no data is available
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -13,9 +13,9 @@ yarn
|
||||
yarn build:dev
|
||||
yarn link
|
||||
```
|
||||
Then in the current folder link `@status-im/subspace`, and install the packages
|
||||
Then in the current folder link `@embarklabs/subspace`, and install the packages
|
||||
```
|
||||
yarn link "@status-im/subspace"
|
||||
yarn link "@embarklabs/subspace"
|
||||
yarn
|
||||
```
|
||||
|
||||
|
2
examples/react-redux/src/App.js
vendored
2
examples/react-redux/src/App.js
vendored
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import Subspace from "@status-im/subspace";
|
||||
import Subspace from "@embarklabs/subspace";
|
||||
import web3 from './web3';
|
||||
import MyContract from './MyContract';
|
||||
import { connect } from "react-redux";
|
||||
|
@ -13,9 +13,9 @@ yarn
|
||||
yarn build:dev
|
||||
yarn link
|
||||
```
|
||||
Then in the current folder link `@status-im/subspace`, and install the packages
|
||||
Then in the current folder link `@embarklabs/subspace`, and install the packages
|
||||
```
|
||||
yarn link "@status-im/subspace"
|
||||
yarn link "@embarklabs/subspace"
|
||||
yarn
|
||||
```
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import Subspace from "@status-im/subspace";
|
||||
import Subspace from "@embarklabs/subspace";
|
||||
import { scan } from 'rxjs/operators';
|
||||
import MyComponentObserver from "./MyComponentObserver";
|
||||
import web3 from './web3';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { observe } from "@status-im/subspace/react";
|
||||
import { observe } from "@embarklabs/subspace/react";
|
||||
|
||||
const MyComponent = ({ eventData }) => {
|
||||
// Handle initial state when no data is available
|
||||
|
@ -13,9 +13,9 @@ yarn
|
||||
yarn build:dev
|
||||
yarn link
|
||||
```
|
||||
Then in the current folder link `@status-im/subspace`, and install the packages
|
||||
Then in the current folder link `@embarklabs/subspace`, and install the packages
|
||||
```
|
||||
yarn link "@status-im/subspace"
|
||||
yarn link "@embarklabs/subspace"
|
||||
yarn
|
||||
```
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
const Subspace = require('@status-im/subspace');
|
||||
const Subspace = require('@embarklabs/subspace');
|
||||
const web3 = require('./web3');
|
||||
const MyContract = require('./MyContract');
|
||||
const { pluck } = require('rxjs/operators');
|
||||
|
@ -13,9 +13,9 @@ yarn
|
||||
yarn build:dev
|
||||
yarn link
|
||||
```
|
||||
Then in the current folder link `"@status-im/subspace"`, and install the packages
|
||||
Then in the current folder link `"@embarklabs/subspace"`, and install the packages
|
||||
```
|
||||
yarn link "@status-im/subspace"
|
||||
yarn link "@embarklabs/subspace"
|
||||
yarn
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ import {
|
||||
myAction
|
||||
} from "./actions";
|
||||
import web3 from "./web3";
|
||||
import Subspace from "@status-im/subspace";
|
||||
import Subspace from "@embarklabs/subspace";
|
||||
|
||||
let MyContractInstance;
|
||||
let subspace;
|
||||
|
@ -14,9 +14,9 @@ yarn
|
||||
yarn build:dev
|
||||
yarn link
|
||||
```
|
||||
Then in the current folder link `@status-im/subspace`, and install the packages
|
||||
Then in the current folder link `@embarklabs/subspace`, and install the packages
|
||||
```
|
||||
yarn link "@status-im/subspace"
|
||||
yarn link "@embarklabs/subspace"
|
||||
yarn
|
||||
```
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import store from './store';
|
||||
import web3 from './web3';
|
||||
import Subspace from '@status-im/subspace';
|
||||
import Subspace from '@embarklabs/subspace';
|
||||
import { myAction } from './actions';
|
||||
import MyContract from './MyContract';
|
||||
|
||||
|
@ -13,9 +13,9 @@ yarn
|
||||
yarn build:dev
|
||||
yarn link
|
||||
```
|
||||
Then in the current folder link `@status-im/subspace`, and install the packages
|
||||
Then in the current folder link `@embarklabs/subspace`, and install the packages
|
||||
```
|
||||
yarn link "@status-im/subspace"
|
||||
yarn link "@embarklabs/subspace"
|
||||
yarn
|
||||
```
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
<script>
|
||||
import MyComponent from './components/MyComponent.vue'
|
||||
import Subspace from "@status-im/subspace";
|
||||
import Subspace from "@embarklabs/subspace";
|
||||
import web3 from './web3';
|
||||
import MyContract from './MyContract';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@status-im/subspace",
|
||||
"name": "@embarklabs/subspace",
|
||||
"version": "1.1.1",
|
||||
"description": "Library for Reactive Dapp Development with auto syncing and caching capabilities https://subspace.status.im",
|
||||
"homepage": "https://subspace.status.im",
|
||||
|
@ -3,7 +3,7 @@ const Web3Eth = require('web3-eth');
|
||||
const {deployRatingContract} = require('./utils-web3');
|
||||
const Subspace = require('../dist/node.js');
|
||||
|
||||
let eth = new Web3Eth("ws://localhost:8545");
|
||||
let eth = new Web3Eth("http://localhost:8545");
|
||||
|
||||
let myscan = scan((acc, curr) => {
|
||||
acc.push(curr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user