fix(component exension): Finally got the Wallet View working

This commit is contained in:
Chris Troutner
2020-08-12 14:04:07 -07:00
parent c196183a7f
commit d4e9fd50d1
3 changed files with 46 additions and 82 deletions
+9 -81
View File
@@ -4537,9 +4537,9 @@
"integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
},
"aws4": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz",
"integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA=="
"version": "1.10.1",
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz",
"integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA=="
},
"axe-core": {
"version": "3.5.5",
@@ -21377,9 +21377,9 @@
}
},
"gatsby-image": {
"version": "2.4.15",
"resolved": "https://registry.npmjs.org/gatsby-image/-/gatsby-image-2.4.15.tgz",
"integrity": "sha512-18DbwBXFHytFxk3N2mRO4g4dI+cm/0lUk8WP0jGKrJlgMxUYGf5KuIfugTPbTxC0CAR48DKJqB7CZGcpaGFC+g==",
"version": "2.4.16",
"resolved": "https://registry.npmjs.org/gatsby-image/-/gatsby-image-2.4.16.tgz",
"integrity": "sha512-N5kJ3LE8re57DgR1lAZFWP2or0nCSuNXSUKvSBvVgxwcebdcFGCxN/xTJbU4ojFfFBJ/D4gKuxJrvLvDf3jcyg==",
"requires": {
"@babel/runtime": "^7.10.3",
"object-fit-images": "^3.2.4",
@@ -21415,9 +21415,9 @@
}
},
"gatsby-ipfs-web-wallet": {
"version": "1.9.2",
"resolved": "https://registry.npmjs.org/gatsby-ipfs-web-wallet/-/gatsby-ipfs-web-wallet-1.9.2.tgz",
"integrity": "sha512-oPyDzVfBaizBtlSlKd8VuBm8L4OpO2FvAPaRCuDOjgIi5b5t+oQ/mUZqjba53o1icn2w8rZ7KyN+X43E9H++iQ==",
"version": "1.9.8",
"resolved": "https://registry.npmjs.org/gatsby-ipfs-web-wallet/-/gatsby-ipfs-web-wallet-1.9.8.tgz",
"integrity": "sha512-oFLaCSmbaO6jHRsrm4/VQTMmEbe/6ZUFmqeYzdP/CRhYtMqt7iA6TBdoHiaqVSvaEFVgrMLi/0H+RO5i5mwUbA==",
"requires": {
"adminlte-2-react": "^0.1.27",
"gatsby": "^2.23.7",
@@ -21578,19 +21578,6 @@
"sharp": "^0.25.1"
},
"dependencies": {
"gatsby-core-utils": {
"version": "1.3.15",
"resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-1.3.15.tgz",
"integrity": "sha512-np1tJCGejhCHtgHdFl6+y5EwVAzdrieJZ3hdvpeOrJ22bL9ktl5XVLy4K937ThgxHLp8+ElMDVdziNun5tC8eg==",
"requires": {
"ci-info": "2.0.0",
"configstore": "^5.0.1",
"fs-extra": "^8.1.0",
"node-object-hash": "^2.0.0",
"proper-lockfile": "^4.1.1",
"xdg-basedir": "^4.0.0"
}
},
"semver": {
"version": "7.3.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
@@ -21610,21 +21597,6 @@
"idb-keyval": "^3.2.0",
"lodash": "^4.17.15",
"workbox-build": "^4.3.1"
},
"dependencies": {
"gatsby-core-utils": {
"version": "1.3.15",
"resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-1.3.15.tgz",
"integrity": "sha512-np1tJCGejhCHtgHdFl6+y5EwVAzdrieJZ3hdvpeOrJ22bL9ktl5XVLy4K937ThgxHLp8+ElMDVdziNun5tC8eg==",
"requires": {
"ci-info": "2.0.0",
"configstore": "^5.0.1",
"fs-extra": "^8.1.0",
"node-object-hash": "^2.0.0",
"proper-lockfile": "^4.1.1",
"xdg-basedir": "^4.0.0"
}
}
}
},
"gatsby-plugin-page-creator": {
@@ -21697,19 +21669,6 @@
"lodash": "^4.17.14"
}
},
"gatsby-core-utils": {
"version": "1.3.15",
"resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-1.3.15.tgz",
"integrity": "sha512-np1tJCGejhCHtgHdFl6+y5EwVAzdrieJZ3hdvpeOrJ22bL9ktl5XVLy4K937ThgxHLp8+ElMDVdziNun5tC8eg==",
"requires": {
"ci-info": "2.0.0",
"configstore": "^5.0.1",
"fs-extra": "^8.1.0",
"node-object-hash": "^2.0.0",
"proper-lockfile": "^4.1.1",
"xdg-basedir": "^4.0.0"
}
},
"semver": {
"version": "7.3.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
@@ -22023,19 +21982,6 @@
"resolved": "https://registry.npmjs.org/file-type/-/file-type-12.4.2.tgz",
"integrity": "sha512-UssQP5ZgIOKelfsaB5CuGAL+Y+q7EmONuiwF3N5HAH0t27rvrttgi6Ra9k/+DVaY9UF6+ybxu5pOXLUdA8N7Vg=="
},
"gatsby-core-utils": {
"version": "1.3.15",
"resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-1.3.15.tgz",
"integrity": "sha512-np1tJCGejhCHtgHdFl6+y5EwVAzdrieJZ3hdvpeOrJ22bL9ktl5XVLy4K937ThgxHLp8+ElMDVdziNun5tC8eg==",
"requires": {
"ci-info": "2.0.0",
"configstore": "^5.0.1",
"fs-extra": "^8.1.0",
"node-object-hash": "^2.0.0",
"proper-lockfile": "^4.1.1",
"xdg-basedir": "^4.0.0"
}
},
"got": {
"version": "9.6.0",
"resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
@@ -30264,16 +30210,6 @@
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
"integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
},
"find-cache-dir": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz",
"integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==",
"requires": {
"commondir": "^1.0.1",
"make-dir": "^3.0.2",
"pkg-dir": "^4.1.0"
}
},
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
@@ -30312,14 +30248,6 @@
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="
},
"pkg-dir": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
"integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
"requires": {
"find-up": "^4.0.0"
}
},
"resolve-from": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+1 -1
View File
@@ -20,7 +20,7 @@
},
"dependencies": {
"gatsby": "^2.23.7",
"gatsby-ipfs-web-wallet": "^1.9.2"
"gatsby-ipfs-web-wallet": "^1.9.8"
},
"repository": {
"type": "git",
@@ -0,0 +1,36 @@
import React from 'react'
import Wallet from 'gatsby-ipfs-web-wallet/src/components/admin-lte/wallet/index'
// import Info from 'gatsby-ipfs-web-wallet/src/components/admin-lte/wallet/info'
// console.log('Wallet: ', Wallet)
// console.log('Info: ', Info)
// let _this
class Wallet2 extends Wallet {
// class Wallet2 extends React.Component {
constructor (props) {
super(props)
console.log('Loading new example view.')
// _this = this
}
render () {
return (
<>
<Wallet {...this.props} importComponents={this.addCards()} />
</>
)
}
addCards () {
return (
<>
<p>This is the new component!</p>
</>
)
}
}
export default Wallet2