mirror of
https://github.com/fullstack-cash/explorer.fullstack.cash.git
synced 2026-09-21 16:52:05 -07:00
Merge pull request #13 from Permissionless-Software-Foundation/ct-unstable
Skeleton of plugin interface
This commit is contained in:
+1
-1
@@ -6,5 +6,5 @@
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
/* Your site config here */
|
/* Your site config here */
|
||||||
plugins: ['gatsby-ipfs-web-wallet']
|
plugins: ['gatsby-ipfs-web-wallet', require.resolve('../gatsby-plugin-bch-tx-history')]
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+16
-81
@@ -4537,9 +4537,9 @@
|
|||||||
"integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
|
"integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
|
||||||
},
|
},
|
||||||
"aws4": {
|
"aws4": {
|
||||||
"version": "1.10.0",
|
"version": "1.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz",
|
||||||
"integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA=="
|
"integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA=="
|
||||||
},
|
},
|
||||||
"axe-core": {
|
"axe-core": {
|
||||||
"version": "3.5.5",
|
"version": "3.5.5",
|
||||||
@@ -21377,9 +21377,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gatsby-image": {
|
"gatsby-image": {
|
||||||
"version": "2.4.15",
|
"version": "2.4.16",
|
||||||
"resolved": "https://registry.npmjs.org/gatsby-image/-/gatsby-image-2.4.15.tgz",
|
"resolved": "https://registry.npmjs.org/gatsby-image/-/gatsby-image-2.4.16.tgz",
|
||||||
"integrity": "sha512-18DbwBXFHytFxk3N2mRO4g4dI+cm/0lUk8WP0jGKrJlgMxUYGf5KuIfugTPbTxC0CAR48DKJqB7CZGcpaGFC+g==",
|
"integrity": "sha512-N5kJ3LE8re57DgR1lAZFWP2or0nCSuNXSUKvSBvVgxwcebdcFGCxN/xTJbU4ojFfFBJ/D4gKuxJrvLvDf3jcyg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/runtime": "^7.10.3",
|
"@babel/runtime": "^7.10.3",
|
||||||
"object-fit-images": "^3.2.4",
|
"object-fit-images": "^3.2.4",
|
||||||
@@ -21415,9 +21415,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gatsby-ipfs-web-wallet": {
|
"gatsby-ipfs-web-wallet": {
|
||||||
"version": "1.9.2",
|
"version": "1.9.8",
|
||||||
"resolved": "https://registry.npmjs.org/gatsby-ipfs-web-wallet/-/gatsby-ipfs-web-wallet-1.9.2.tgz",
|
"resolved": "https://registry.npmjs.org/gatsby-ipfs-web-wallet/-/gatsby-ipfs-web-wallet-1.9.8.tgz",
|
||||||
"integrity": "sha512-oPyDzVfBaizBtlSlKd8VuBm8L4OpO2FvAPaRCuDOjgIi5b5t+oQ/mUZqjba53o1icn2w8rZ7KyN+X43E9H++iQ==",
|
"integrity": "sha512-oFLaCSmbaO6jHRsrm4/VQTMmEbe/6ZUFmqeYzdP/CRhYtMqt7iA6TBdoHiaqVSvaEFVgrMLi/0H+RO5i5mwUbA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"adminlte-2-react": "^0.1.27",
|
"adminlte-2-react": "^0.1.27",
|
||||||
"gatsby": "^2.23.7",
|
"gatsby": "^2.23.7",
|
||||||
@@ -21473,6 +21473,13 @@
|
|||||||
"micromatch": "^3.1.10"
|
"micromatch": "^3.1.10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gatsby-plugin-bch-tx-history": {
|
||||||
|
"version": "github:Permissionless-Software-Foundation/gatsby-plugin-bch-tx-history#99aeb6cb8e24af50fa7e912b2c44bdd3b15c81c8",
|
||||||
|
"from": "github:Permissionless-Software-Foundation/gatsby-plugin-bch-tx-history#ct-unstable",
|
||||||
|
"requires": {
|
||||||
|
"adminlte-2-react": "^0.1.27"
|
||||||
|
}
|
||||||
|
},
|
||||||
"gatsby-plugin-ipfs": {
|
"gatsby-plugin-ipfs": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-ipfs/-/gatsby-plugin-ipfs-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/gatsby-plugin-ipfs/-/gatsby-plugin-ipfs-2.0.2.tgz",
|
||||||
@@ -21578,19 +21585,6 @@
|
|||||||
"sharp": "^0.25.1"
|
"sharp": "^0.25.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"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": {
|
"semver": {
|
||||||
"version": "7.3.2",
|
"version": "7.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
|
||||||
@@ -21610,21 +21604,6 @@
|
|||||||
"idb-keyval": "^3.2.0",
|
"idb-keyval": "^3.2.0",
|
||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
"workbox-build": "^4.3.1"
|
"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": {
|
"gatsby-plugin-page-creator": {
|
||||||
@@ -21697,19 +21676,6 @@
|
|||||||
"lodash": "^4.17.14"
|
"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": {
|
"semver": {
|
||||||
"version": "7.3.2",
|
"version": "7.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
|
||||||
@@ -22023,19 +21989,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/file-type/-/file-type-12.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/file-type/-/file-type-12.4.2.tgz",
|
||||||
"integrity": "sha512-UssQP5ZgIOKelfsaB5CuGAL+Y+q7EmONuiwF3N5HAH0t27rvrttgi6Ra9k/+DVaY9UF6+ybxu5pOXLUdA8N7Vg=="
|
"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": {
|
"got": {
|
||||||
"version": "9.6.0",
|
"version": "9.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
|
||||||
@@ -30264,16 +30217,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
|
||||||
"integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
|
"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": {
|
"find-up": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
|
||||||
@@ -30312,14 +30255,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
||||||
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="
|
"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": {
|
"resolve-from": {
|
||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
|
||||||
|
|||||||
+2
-1
@@ -20,7 +20,8 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gatsby": "^2.23.7",
|
"gatsby": "^2.23.7",
|
||||||
"gatsby-ipfs-web-wallet": "^1.9.2"
|
"gatsby-ipfs-web-wallet": "^1.9.8",
|
||||||
|
"gatsby-plugin-bch-tx-history": "Permissionless-Software-Foundation/gatsby-plugin-bch-tx-history#ct-unstable"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import Wallet from 'gatsby-ipfs-web-wallet/src/components/admin-lte/wallet/index'
|
||||||
|
import TXHistory from 'gatsby-plugin-bch-tx-history/src/components/txhistory'
|
||||||
|
|
||||||
|
// 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.')
|
||||||
|
|
||||||
|
// console.log('Wallet info: ', props.walletInfo)
|
||||||
|
}
|
||||||
|
|
||||||
|
render () {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Wallet {...this.props} importComponents={this.addCards()} />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
addCards () {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<TXHistory walletInfo={this.props.walletInfo} />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Wallet2
|
||||||
Reference in New Issue
Block a user