Drop built-in dapps for stable (#8030)
This commit is contained in:
parent
caaac78971
commit
362fb1dfed
64
js/package-lock.json
generated
64
js/package-lock.json
generated
@ -51,9 +51,9 @@
|
|||||||
"@parity/api": "2.1.15",
|
"@parity/api": "2.1.15",
|
||||||
"@parity/mobx": "1.1.2",
|
"@parity/mobx": "1.1.2",
|
||||||
"@parity/ui": "3.0.22",
|
"@parity/ui": "3.0.22",
|
||||||
"mobx": "3.5.1",
|
"mobx": "3.6.1",
|
||||||
"mobx-react": "4.3.5",
|
"mobx-react": "4.3.5",
|
||||||
"prop-types": "15.6.0",
|
"prop-types": "15.6.1",
|
||||||
"react": "16.2.0",
|
"react": "16.2.0",
|
||||||
"react-dom": "16.2.0",
|
"react-dom": "16.2.0",
|
||||||
"react-intl": "2.4.0",
|
"react-intl": "2.4.0",
|
||||||
@ -80,15 +80,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mobx": {
|
"mobx": {
|
||||||
"version": "3.5.1",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/mobx/-/mobx-3.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/mobx/-/mobx-3.6.1.tgz",
|
||||||
"integrity": "sha1-jmguxTXPROBABbnjfi32asyXWkI=",
|
"integrity": "sha1-rmOo8A4UhadA0Pka4val9o4wO+o=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"prop-types": {
|
"prop-types": {
|
||||||
"version": "15.6.0",
|
"version": "15.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz",
|
||||||
"integrity": "sha1-zq8IMCL8RrSjX2nhPvda7Q1jmFY=",
|
"integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
@ -105,7 +105,7 @@
|
|||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
"loose-envify": "1.3.1",
|
"loose-envify": "1.3.1",
|
||||||
"object-assign": "4.1.1",
|
"object-assign": "4.1.1",
|
||||||
"prop-types": "15.6.0"
|
"prop-types": "15.6.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-dom": {
|
"react-dom": {
|
||||||
@ -117,7 +117,7 @@
|
|||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
"loose-envify": "1.3.1",
|
"loose-envify": "1.3.1",
|
||||||
"object-assign": "4.1.1",
|
"object-assign": "4.1.1",
|
||||||
"prop-types": "15.6.0"
|
"prop-types": "15.6.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"semantic-ui-react": {
|
"semantic-ui-react": {
|
||||||
@ -130,7 +130,7 @@
|
|||||||
"classnames": "2.2.5",
|
"classnames": "2.2.5",
|
||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
"lodash": "4.17.4",
|
"lodash": "4.17.4",
|
||||||
"prop-types": "15.6.0"
|
"prop-types": "15.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -142,9 +142,9 @@
|
|||||||
"@parity/api": "2.1.15",
|
"@parity/api": "2.1.15",
|
||||||
"@parity/mobx": "1.1.2",
|
"@parity/mobx": "1.1.2",
|
||||||
"@parity/ui": "3.0.22",
|
"@parity/ui": "3.0.22",
|
||||||
"mobx": "3.5.1",
|
"mobx": "3.6.1",
|
||||||
"mobx-react": "4.3.5",
|
"mobx-react": "4.3.5",
|
||||||
"prop-types": "15.6.0",
|
"prop-types": "15.6.1",
|
||||||
"react": "16.2.0",
|
"react": "16.2.0",
|
||||||
"react-dom": "16.2.0",
|
"react-dom": "16.2.0",
|
||||||
"react-intl": "2.4.0",
|
"react-intl": "2.4.0",
|
||||||
@ -171,15 +171,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mobx": {
|
"mobx": {
|
||||||
"version": "3.5.1",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/mobx/-/mobx-3.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/mobx/-/mobx-3.6.1.tgz",
|
||||||
"integrity": "sha1-jmguxTXPROBABbnjfi32asyXWkI=",
|
"integrity": "sha1-rmOo8A4UhadA0Pka4val9o4wO+o=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"prop-types": {
|
"prop-types": {
|
||||||
"version": "15.6.0",
|
"version": "15.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz",
|
||||||
"integrity": "sha1-zq8IMCL8RrSjX2nhPvda7Q1jmFY=",
|
"integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
@ -196,7 +196,7 @@
|
|||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
"loose-envify": "1.3.1",
|
"loose-envify": "1.3.1",
|
||||||
"object-assign": "4.1.1",
|
"object-assign": "4.1.1",
|
||||||
"prop-types": "15.6.0"
|
"prop-types": "15.6.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-dom": {
|
"react-dom": {
|
||||||
@ -208,7 +208,7 @@
|
|||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
"loose-envify": "1.3.1",
|
"loose-envify": "1.3.1",
|
||||||
"object-assign": "4.1.1",
|
"object-assign": "4.1.1",
|
||||||
"prop-types": "15.6.0"
|
"prop-types": "15.6.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"semantic-ui-react": {
|
"semantic-ui-react": {
|
||||||
@ -221,7 +221,7 @@
|
|||||||
"classnames": "2.2.5",
|
"classnames": "2.2.5",
|
||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
"lodash": "4.17.4",
|
"lodash": "4.17.4",
|
||||||
"prop-types": "15.6.0"
|
"prop-types": "15.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -254,9 +254,9 @@
|
|||||||
"@parity/mobx": "1.1.2",
|
"@parity/mobx": "1.1.2",
|
||||||
"@parity/ui": "3.0.22",
|
"@parity/ui": "3.0.22",
|
||||||
"format-number": "3.0.0",
|
"format-number": "3.0.0",
|
||||||
"mobx": "3.5.1",
|
"mobx": "3.6.1",
|
||||||
"mobx-react": "4.3.5",
|
"mobx-react": "4.3.5",
|
||||||
"prop-types": "15.6.0",
|
"prop-types": "15.6.1",
|
||||||
"react": "16.2.0",
|
"react": "16.2.0",
|
||||||
"react-dom": "16.2.0",
|
"react-dom": "16.2.0",
|
||||||
"react-intl": "2.4.0",
|
"react-intl": "2.4.0",
|
||||||
@ -284,15 +284,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mobx": {
|
"mobx": {
|
||||||
"version": "3.5.1",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/mobx/-/mobx-3.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/mobx/-/mobx-3.6.1.tgz",
|
||||||
"integrity": "sha1-jmguxTXPROBABbnjfi32asyXWkI=",
|
"integrity": "sha1-rmOo8A4UhadA0Pka4val9o4wO+o=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"prop-types": {
|
"prop-types": {
|
||||||
"version": "15.6.0",
|
"version": "15.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz",
|
||||||
"integrity": "sha1-zq8IMCL8RrSjX2nhPvda7Q1jmFY=",
|
"integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
@ -309,7 +309,7 @@
|
|||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
"loose-envify": "1.3.1",
|
"loose-envify": "1.3.1",
|
||||||
"object-assign": "4.1.1",
|
"object-assign": "4.1.1",
|
||||||
"prop-types": "15.6.0"
|
"prop-types": "15.6.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-dom": {
|
"react-dom": {
|
||||||
@ -321,7 +321,7 @@
|
|||||||
"fbjs": "0.8.16",
|
"fbjs": "0.8.16",
|
||||||
"loose-envify": "1.3.1",
|
"loose-envify": "1.3.1",
|
||||||
"object-assign": "4.1.1",
|
"object-assign": "4.1.1",
|
||||||
"prop-types": "15.6.0"
|
"prop-types": "15.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
14
js/src/Dapps/blacklist.js
Normal file
14
js/src/Dapps/blacklist.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
module.exports = [
|
||||||
|
// tokendeploy
|
||||||
|
'0xf9f2d620c2e08f83e45555247146c62185e4ab7cf82a4b9002a265a0d020348f',
|
||||||
|
// methodreg
|
||||||
|
'0xf49089046f53f5d2e5f3513c1c32f5ff57d986e46309a42d2b249070e4e72c46',
|
||||||
|
// dappreg
|
||||||
|
'0x7bbc4f1a27628781b96213e781a1b8eec6982c1db8fac739af6e4c5a55862c03',
|
||||||
|
// githubhint
|
||||||
|
'0x058740ee9a5a3fb9f1cfa10752baec87e09cc45cd7027fd54708271aca300c75',
|
||||||
|
// console
|
||||||
|
'0xa635a9326814bded464190eddf0bdb90ce92d40ea2359cf553ea80e3c5a4076c',
|
||||||
|
// registry
|
||||||
|
'0xd1adaede68d344519025e2ff574650cd99d3830fe6d274c7a7843cdc00e17938'
|
||||||
|
];
|
@ -29,6 +29,8 @@ import DappCard from './DappCard';
|
|||||||
|
|
||||||
import styles from './dapps.css';
|
import styles from './dapps.css';
|
||||||
|
|
||||||
|
import BLACKLIST from './blacklist';
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
class Dapps extends Component {
|
class Dapps extends Component {
|
||||||
static contextTypes = {
|
static contextTypes = {
|
||||||
@ -53,8 +55,10 @@ class Dapps extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
renderSection = (apps) => (
|
renderSection = (_apps) => {
|
||||||
apps && apps.length > 0 &&
|
const apps = _apps.filter(({ id }) => !BLACKLIST.includes(id));
|
||||||
|
|
||||||
|
return apps && apps.length > 0 &&
|
||||||
<div className={ styles.dapps }>
|
<div className={ styles.dapps }>
|
||||||
{
|
{
|
||||||
apps.map((app, index) => (
|
apps.map((app, index) => (
|
||||||
@ -68,8 +72,8 @@ class Dapps extends Component {
|
|||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</div>
|
</div>;
|
||||||
)
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
|
@ -29,12 +29,14 @@ const rulesEs6 = require('./rules/es6');
|
|||||||
const rulesParity = require('./rules/parity');
|
const rulesParity = require('./rules/parity');
|
||||||
const Shared = require('./shared');
|
const Shared = require('./shared');
|
||||||
|
|
||||||
|
const BLACKLIST = require('../src/Dapps/blacklist');
|
||||||
const DAPPS_BUILTIN = require('@parity/shared/lib/config/dappsBuiltin.json');
|
const DAPPS_BUILTIN = require('@parity/shared/lib/config/dappsBuiltin.json');
|
||||||
const DAPPS_VIEWS = require('@parity/shared/lib/config/dappsViews.json');
|
const DAPPS_VIEWS = require('@parity/shared/lib/config/dappsViews.json');
|
||||||
const DAPPS_ALL = []
|
const DAPPS_ALL = []
|
||||||
.concat(DAPPS_BUILTIN, DAPPS_VIEWS)
|
.concat(DAPPS_BUILTIN, DAPPS_VIEWS)
|
||||||
.filter((dapp) => !dapp.skipBuild)
|
.filter((dapp) => !dapp.skipBuild)
|
||||||
.filter((dapp) => dapp.package);
|
.filter((dapp) => dapp.package)
|
||||||
|
.filter(({ id }) => !BLACKLIST.includes(id));
|
||||||
|
|
||||||
const FAVICON = path.resolve(__dirname, '../node_modules/@parity/shared/assets/images/parity-logo-black-no-text.png');
|
const FAVICON = path.resolve(__dirname, '../node_modules/@parity/shared/assets/images/parity-logo-black-no-text.png');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user