Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Ac remove views #115

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"@parity/plugin-signer-default": "github:parity-js/plugin-signer-default#dcf8cf23bb050070b6a691413b974b5c2d7d1ce6",
"@parity/plugin-signer-hardware": "github:parity-js/plugin-signer-hardware#e8b8a4e67adc37870e370d22805632d08012b9ee",
"@parity/plugin-signer-qr": "github:parity-js/plugin-signer-qr#c275ba13524e9f6759079fabd10faf49cc00cfc0",
"@parity/shared": "2.2.27",
"@parity/shared": "2.2.28",
"@parity/ui": "3.1.4",
"axios": "0.18.0",
"command-exists": "1.2.2",
Expand Down
5 changes: 1 addition & 4 deletions src/Dapp/dapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@ import path from 'path';
import url from 'url';

import builtinDapps from '@parity/shared/lib/config/dappsBuiltin.json';
import viewsDapps from '@parity/shared/lib/config/dappsViews.json';
import DappsStore from '@parity/shared/lib/mobx/dappsStore';
import HistoryStore from '@parity/shared/lib/mobx/historyStore';

import RequestsStore from '../DappRequests/store';
import styles from './dapp.css';

const internalDapps = [].concat(viewsDapps, builtinDapps);

@observer
export default class Dapp extends Component {
static contextTypes = {
Expand All @@ -54,7 +51,7 @@ export default class Dapp extends Component {
componentWillMount () {
const { id } = this.props.params;

if (!internalDapps[id] || !internalDapps[id].skipHistory) {
if (!builtinDapps[id] || !builtinDapps[id].skipHistory) {
this.historyStore.add(id);
}

Expand Down
4 changes: 1 addition & 3 deletions webpack/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ const rulesParity = require('./rules/parity');
const Shared = require('./shared');

const DAPPS_BUILTIN = require('@parity/shared/lib/config/dappsBuiltin.json');
const DAPPS_VIEWS = require('@parity/shared/lib/config/dappsViews.json');
const DAPPS_ALL = []
.concat(DAPPS_BUILTIN, DAPPS_VIEWS)
const DAPPS_ALL = DAPPS_BUILTIN
.filter((dapp) => !dapp.skipBuild)
.filter((dapp) => dapp.package);

Expand Down